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> | |
8 | #include <strings.h> | |
9 | #ifndef O_ACCMODE | |
10 | #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) | |
11 | #endif | |
12 | #ifndef SEEK_SET | |
13 | #define SEEK_SET 0 | |
14 | #define SEEK_CUR 1 | |
15 | #endif | |
16 | ||
17 | #ifndef MAXPATHLEN | |
18 | #define MAXPATHLEN 1024 | |
19 | #endif /* MAXPATHLEN */ | |
20 | ||
59ad286d SEF |
21 | #ifndef DONTDECLARE_MALLOC |
22 | extern PTR EXFUN(malloc,(unsigned)); | |
23 | extern PTR EXFUN(realloc, (PTR, unsigned)); | |
24 | extern void EXFUN( free,(PTR)); | |
25 | #endif | |
26 | ||
59ad286d | 27 | #include "fopen-same.h" |