Commit | Line | Data |
---|---|---|
f751f474 | 1 | #include <ansidecl.h> |
9ba0618d 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 <utime.h> | |
8 | #include <ctype.h> | |
9 | #include <string.h> | |
c5652bff | 10 | #ifndef O_ACCMODE |
9ba0618d SEF |
11 | #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) |
12 | #endif | |
13 | #define SEEK_SET 0 | |
14 | #define SEEK_CUR 1 | |
15 | ||
16 | #ifndef MAXPATHLEN | |
17 | #define MAXPATHLEN 1024 | |
18 | #endif /* MAXPATHLEN */ | |
19 | ||
20 | #define POSIX_UTIME | |
21 | ||
22 | /* Some things that need to be defined in order to make code written for | |
23 | BSD Unix compile under System V Unix. */ | |
24 | ||
25 | #include <memory.h> | |
26 | #define bcmp(b1,b2,len) memcmp(b1,b2,len) | |
27 | #define bcopy(src,dst,len) memcpy(dst,src,len) | |
28 | #define bzero(s,n) memset(s,0,n) | |
29 | ||
30 | #include <string.h> | |
31 | ||
c5652bff | 32 | #ifndef DONTDECLARE_MALLOC |
e49d5379 JG |
33 | extern PTR malloc PARAMS ((unsigned)); |
34 | extern PTR realloc PARAMS ((PTR, unsigned)); | |
35 | extern void free PARAMS ((PTR)); | |
9ba0618d SEF |
36 | #endif |
37 | ||
9ba0618d | 38 | #include "fopen-same.h" |