Commit | Line | Data |
---|---|---|
be78a130 JG |
1 | /* System V Release 4 Unix host system */ |
2 | ||
c5652bff | 3 | #include <stddef.h> |
d7276c0a | 4 | #include <ansidecl.h> |
be78a130 JG |
5 | #include <fcntl.h> |
6 | #include <errno.h> | |
7 | #include <stdio.h> | |
8 | #include <sys/types.h> | |
9 | #include <sys/stat.h> | |
10 | #include <utime.h> | |
11 | #include <ctype.h> | |
12 | #include <string.h> | |
13 | #include <sys/file.h> | |
ebb6075d ILT |
14 | #include <unistd.h> |
15 | #include <stdlib.h> | |
16 | #include <time.h> | |
be78a130 | 17 | |
c5652bff | 18 | #ifndef O_ACCMODE |
be78a130 JG |
19 | #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) |
20 | #endif | |
ebb6075d | 21 | #ifndef SEEK_SET |
be78a130 | 22 | #define SEEK_SET 0 |
ebb6075d ILT |
23 | #endif |
24 | #ifndef SEEK_CUR | |
be78a130 | 25 | #define SEEK_CUR 1 |
ebb6075d | 26 | #endif |
be78a130 JG |
27 | |
28 | #define POSIX_UTIME | |
471c3c3f JK |
29 | |
30 | /* Note that we also use this for ptx4 (sequent). ptx4 does not | |
31 | really have procfs, but it has the relevant headers for BFD to read | |
32 | core files, so the proper thing to do for ptx4 is define | |
33 | HAVE_PROCFS in BFD but not GDB. */ | |
34 | ||
be78a130 JG |
35 | #define HAVE_PROCFS /* This host has /proc support */ |
36 | ||
be78a130 | 37 | #include "fopen-same.h" |