Commit | Line | Data |
---|---|---|
c5652bff | 1 | #include <stddef.h> |
660f21b7 SC |
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 <string.h> | |
9 | #include <sys/file.h> | |
06d0bdef JG |
10 | #include <stdlib.h> /* for malloc() */ |
11 | ||
c5652bff | 12 | #ifndef O_ACCMODE |
660f21b7 SC |
13 | #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) |
14 | #endif | |
15 | #define SEEK_SET 0 | |
16 | #define SEEK_CUR 1 | |
17 | ||
a5431adc | 18 | #include "fopen-same.h" |