OSDN Git Service

updated sources.
[putex/putex.git] / src / texsourc / c-unistd.h
1 /* c-unistd.h: ensure we have constants from <unistd.h>.  Included from
2    c-std.h.
3
4    Copyright 1992 Karl Berry
5    Copyright 2007 TeX Users Group
6    Copyright 2014 Clerk Ma
7
8    This program is free software; you can redistribute it and/or modify
9    it under the terms of the GNU General Public License as published by
10    the Free Software Foundation; either version 2 of the License, or
11    (at your option) any later version.
12
13    This program is distributed in the hope that it will be useful, but
14    WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16    General Public License for more details.
17
18    You should have received a copy of the GNU General Public License
19    along with this program; if not, write to the Free Software
20    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21    02110-1301 USA.  */
22
23 #ifndef C_UNISTD_H
24 #define C_UNISTD_H
25
26 /* #if HAVE_UNISTD_H */
27 #ifdef HAVE_UNISTD_H
28   #include <unistd.h>
29 #endif
30
31 #include "c-std.h"
32
33 /* For fseek.  */
34 #ifndef SEEK_SET
35   #define SEEK_SET 0
36   #define SEEK_CUR 1
37   #define SEEK_END 2
38 #endif /* not SEEK_SET */
39
40 /* For access.  */
41 #ifndef F_OK
42   #define F_OK 0
43   #define X_OK 1
44   #define W_OK 2
45   #define R_OK 4
46 #endif /* not F_OK */
47
48 #ifndef STDIN_FILENO
49   #define STDIN_FILENO    0
50   #define STDOUT_FILENO   1
51   #define STDERR_FILENO   2
52 #endif /* not STDIN_FILENO */
53
54 #endif /* not C_UNISTD_H */