Commit | Line | Data |
---|---|---|
660f21b7 SC |
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> | |
06d0bdef JG |
9 | #include <stdlib.h> /* for malloc() */ |
10 | ||
660f21b7 SC |
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 | /* EXACT TYPES */ | |
18 | typedef char int8e_type; | |
19 | typedef unsigned char uint8e_type; | |
20 | typedef short int16e_type; | |
21 | typedef unsigned short uint16e_type; | |
22 | typedef int int32e_type; | |
23 | typedef unsigned int uint32e_type; | |
24 | ||
25 | /* CORRECT SIZE OR GREATER */ | |
26 | typedef char int8_type; | |
27 | typedef unsigned char uint8_type; | |
28 | typedef short int16_type; | |
29 | typedef unsigned short uint16_type; | |
30 | typedef int int32_type; | |
31 | typedef unsigned int uint32_type; | |
32 | ||
a5431adc | 33 | #include "fopen-same.h" |