dvitomp fix from Akira
[mplib] / src / texk / kpathsea / c-unistd.h
1 /* c-unistd.h: ensure we have constants from <unistd.h>.  Included from
2    c-std.h.
3
4    Copyright 1992, 1993, 2008 Karl Berry.
5    Copyright 2005 Olaf Weber.
6
7    This library is free software; you can redistribute it and/or
8    modify it under the terms of the GNU Lesser General Public
9    License as published by the Free Software Foundation; either
10    version 2.1 of the License, or (at your option) any later version.
11
12    This library is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15    Lesser General Public License for more details.
16
17    You should have received a copy of the GNU Lesser General Public License
18    along with this library; if not, see <http://www.gnu.org/licenses/>.  */
19
20 #ifndef KPATHSEA_C_UNISTD_H
21 #define KPATHSEA_C_UNISTD_H
22
23 /* <unistd.h> is allowed to depend on <sys/types.h>.  */
24 #include <kpathsea/systypes.h>
25
26 #if HAVE_UNISTD_H
27 #include <unistd.h>
28 #endif
29
30 #include <kpathsea/c-std.h>
31
32 /* For fseek.  */
33 #ifndef SEEK_SET
34 #define SEEK_SET 0
35 #define SEEK_CUR 1
36 #define SEEK_END 2
37 #endif /* not SEEK_SET */
38
39 /* For access.  */
40 #ifndef F_OK
41 #define F_OK 0
42 #define X_OK 1
43 #define W_OK 2
44 #define R_OK 4
45 #endif /* not F_OK */
46
47 #ifndef STDIN_FILENO
48 #define STDIN_FILENO    0
49 #define STDOUT_FILENO   1
50 #define STDERR_FILENO   2
51 #endif /* not STDIN_FILENO */
52
53 #endif /* not KPATHSEA_C_UNISTD_H */