Commit | Line | Data |
---|---|---|
59ad286d SEF |
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 <strings.h> | |
8 | #ifndef O_ACCMODE | |
9 | #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) | |
10 | #endif | |
11 | #ifndef SEEK_SET | |
12 | #define SEEK_SET 0 | |
13 | #define SEEK_CUR 1 | |
14 | #endif | |
15 | ||
16 | #ifndef MAXPATHLEN | |
17 | #define MAXPATHLEN 1024 | |
18 | #endif /* MAXPATHLEN */ | |
19 | ||
59ad286d SEF |
20 | #ifndef DONTDECLARE_MALLOC |
21 | extern PTR EXFUN(malloc,(unsigned)); | |
22 | extern PTR EXFUN(realloc, (PTR, unsigned)); | |
23 | extern void EXFUN( free,(PTR)); | |
24 | #endif | |
25 | ||
26 | /* EXACT TYPES */ | |
27 | typedef char int8e_type; | |
28 | typedef unsigned char uint8e_type; | |
29 | typedef short int16e_type; | |
30 | typedef unsigned short uint16e_type; | |
31 | typedef int int32e_type; | |
32 | typedef unsigned int uint32e_type; | |
33 | ||
34 | /* CORRECT SIZE OR GREATER */ | |
35 | typedef char int8_type; | |
36 | typedef unsigned char uint8_type; | |
37 | typedef short int16_type; | |
38 | typedef unsigned short uint16_type; | |
39 | typedef int int32_type; | |
40 | typedef unsigned int uint32_type; | |
41 | ||
42 | #include "fopen-same.h" |