Back to index

tetex-bin  3.0
c-unistd.h
Go to the documentation of this file.
00001 /* c-unistd.h: ensure we have constants from <unistd.h>.  Included from
00002    c-std.h.
00003 
00004 Copyright (C) 1992, 93 Free Software Foundation, Inc.
00005 
00006 This library is free software; you can redistribute it and/or
00007 modify it under the terms of the GNU Library General Public
00008 License as published by the Free Software Foundation; either
00009 version 2 of the License, or (at your option) any later version.
00010 
00011 This library is distributed in the hope that it will be useful,
00012 but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 Library General Public License for more details.
00015 
00016 You should have received a copy of the GNU Library General Public
00017 License along with this library; if not, write to the Free Software
00018 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
00019 
00020 #ifndef KPATHSEA_C_UNISTD_H
00021 #define KPATHSEA_C_UNISTD_H
00022 
00023 /* <unistd.h> is allowed to depend on <sys/types.h>.  */
00024 #include <kpathsea/systypes.h>
00025 
00026 #if HAVE_UNISTD_H
00027 #include <unistd.h>
00028 #endif
00029 
00030 #include <kpathsea/c-std.h>
00031 
00032 /* For fseek.  */
00033 #ifndef SEEK_SET
00034 #define SEEK_SET 0
00035 #define SEEK_CUR 1
00036 #define SEEK_END 2
00037 #endif /* not SEEK_SET */
00038 
00039 /* For access.  */
00040 #ifndef F_OK
00041 #define F_OK 0
00042 #define X_OK 1
00043 #define W_OK 2
00044 #define R_OK 4
00045 #endif /* not F_OK */
00046 
00047 #ifndef STDIN_FILENO
00048 #define STDIN_FILENO    0
00049 #define STDOUT_FILENO   1
00050 #define STDERR_FILENO   2
00051 #endif /* not STDIN_FILENO */
00052 
00053 #endif /* not KPATHSEA_C_UNISTD_H */