Commit | Line | Data |
---|---|---|
fbad27e8 RP |
1 | #include <stdio.h> |
2 | #include <unistd.h> | |
3 | #include <fcntl.h> | |
4 | #include <string.h> | |
5 | #include <errno.h> | |
6 | #include <stdio.h> | |
7 | #include <sys/types.h> | |
8 | #include <sys/stat.h> | |
9 | #include <malloc.h> | |
10 | ||
11 | #if 0 | |
12 | #include <ctype.h> | |
13 | #include <sys/file.h> | |
14 | #endif | |
15 | ||
16 | #if !defined (O_ACCMODE) | |
17 | #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) | |
18 | #endif | |
19 | ||
20 | #if !defined (SEEK_SET) | |
21 | #define SEEK_SET 0 | |
22 | #define SEEK_CUR 1 | |
23 | #endif | |
24 | ||
25 | /* EXACT TYPES */ | |
26 | typedef char int8e_type; | |
27 | typedef unsigned char uint8e_type; | |
28 | typedef short int16e_type; | |
29 | typedef unsigned short uint16e_type; | |
30 | typedef int int32e_type; | |
31 | typedef unsigned int uint32e_type; | |
32 | ||
33 | /* CORRECT SIZE OR GREATER */ | |
34 | typedef char int8_type; | |
35 | typedef unsigned char uint8_type; | |
36 | typedef short int16_type; | |
37 | typedef unsigned short uint16_type; | |
38 | typedef int int32_type; | |
39 | typedef unsigned int uint32_type; | |
40 | ||
41 | #include "fopen-same.h" |