Commit | Line | Data |
---|---|---|
f751f474 | 1 | #include <ansidecl.h> |
660f21b7 SC |
2 | #include <fcntl.h> |
3 | #include <errno.h> | |
4 | #include <stdio.h> | |
8215bbac | 5 | #include <sys/types.h> |
660f21b7 SC |
6 | #include <sys/stat.h> |
7 | #include <ctype.h> | |
8 | #include <string.h> | |
c5ab244b SEF |
9 | #include <unistd.h> |
10 | ||
660f21b7 SC |
11 | #ifndef O_ACCMODE |
12 | #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) | |
13 | #endif | |
c5ab244b | 14 | #ifndef SEEK_SET |
660f21b7 SC |
15 | #define SEEK_SET 0 |
16 | #define SEEK_CUR 1 | |
c5ab244b SEF |
17 | #endif |
18 | ||
3fd7451e | 19 | #define USE_UTIME |
06d0bdef JG |
20 | |
21 | /* Some things that need to be defined in order to make code written for | |
22 | BSD Unix compile under System V Unix. */ | |
660f21b7 | 23 | |
c5ab244b | 24 | /*#include <memory.h>*/ |
660f21b7 SC |
25 | #define bcmp(b1,b2,len) memcmp(b1,b2,len) |
26 | #define bcopy(src,dst,len) memcpy(dst,src,len) | |
27 | #define bzero(s,n) memset(s,0,n) | |
28 | ||
29 | #include <string.h> | |
660f21b7 | 30 | |
67099990 | 31 | #ifndef DONTDECLARE_MALLOC |
e49d5379 JG |
32 | extern PTR malloc PARAMS ((unsigned)); |
33 | extern PTR realloc PARAMS ((PTR, unsigned)); | |
34 | extern void free PARAMS ((PTR)); | |
67099990 SC |
35 | #endif |
36 | ||
a5431adc | 37 | #include "fopen-same.h" |