Commit | Line | Data |
---|---|---|
f751f474 | 1 | #include <ansidecl.h> |
59ad286d SEF |
2 | #include <fcntl.h> |
3 | #include <errno.h> | |
4 | #include <stdio.h> | |
5 | #include <sys/types.h> | |
6 | #include <sys/stat.h> | |
7 | #include <ctype.h> | |
c5652bff | 8 | #ifndef O_ACCMODE |
59ad286d SEF |
9 | #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) |
10 | #endif | |
11 | #ifndef SEEK_SET | |
12 | #define SEEK_SET 0 | |
13 | #define SEEK_CUR 1 | |
14 | #endif | |
15 | ||
16 | #ifndef MAXPATHLEN | |
17 | #define MAXPATHLEN 1024 | |
18 | #endif /* MAXPATHLEN */ | |
19 | ||
c5652bff | 20 | #ifndef DONTDECLARE_MALLOC |
e49d5379 JG |
21 | extern PTR malloc PARAMS ((unsigned)); |
22 | extern PTR realloc PARAMS ((PTR, unsigned)); | |
23 | extern void free PARAMS ((PTR)); | |
59ad286d SEF |
24 | #endif |
25 | ||
59ad286d | 26 | #include "fopen-same.h" |