Commit | Line | Data |
---|---|---|
1 | #include <fcntl.h> | |
2 | #include <errno.h> | |
3 | #include <stdio.h> | |
4 | #include <sys/types.h> | |
5 | #include <sys/stat.h> | |
6 | #include <ctype.h> | |
7 | #include <string.h> | |
8 | #include <sys/file.h> | |
9 | #include <stdlib.h> /* for malloc() */ | |
10 | ||
11 | #ifndef O_ACCMODE | |
12 | #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) | |
13 | #endif | |
14 | #define SEEK_SET 0 | |
15 | #define SEEK_CUR 1 | |
16 | ||
17 | #include "fopen-same.h" |