Commit | Line | Data |
---|---|---|
9ba0618d 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 <utime.h> | |
7 | #include <ctype.h> | |
8 | #include <string.h> | |
9 | #ifndef O_ACCMODE | |
10 | #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) | |
11 | #endif | |
12 | #define SEEK_SET 0 | |
13 | #define SEEK_CUR 1 | |
14 | ||
15 | #ifndef MAXPATHLEN | |
16 | #define MAXPATHLEN 1024 | |
17 | #endif /* MAXPATHLEN */ | |
18 | ||
19 | #define POSIX_UTIME | |
20 | ||
21 | /* Some things that need to be defined in order to make code written for | |
22 | BSD Unix compile under System V Unix. */ | |
23 | ||
24 | #include <memory.h> | |
25 | #define bcmp(b1,b2,len) memcmp(b1,b2,len) | |
26 | #define bcopy(src,dst,len) memcpy(dst,src,len) | |
27 | #define bzero(s,n) memset(s,0,n) | |
28 | ||
29 | #include <string.h> | |
30 | ||
31 | /* | |
32 | * Might not need these. Leave them out for now. | |
33 | * | |
34 | #ifdef SEEK_SET | |
35 | # ifndef L_SET | |
36 | # define L_SET SEEK_SET | |
37 | # endif | |
38 | # endif | |
39 | ||
40 | #ifdef SEEK_CUR | |
41 | # ifndef L_INCR | |
42 | # define L_INCR SEEK_CUR | |
43 | # endif | |
44 | # endif | |
45 | */ | |
46 | ||
47 | #ifndef DONTDECLARE_MALLOC | |
48 | extern PROTO(PTR,malloc,(unsigned)); | |
49 | extern PROTO(PTR ,realloc, (PTR, unsigned)); | |
50 | extern PROTO(void, free,(PTR)); | |
51 | #endif | |
52 | ||
53 | /* EXACT TYPES */ | |
54 | typedef char int8e_type; | |
55 | typedef unsigned char uint8e_type; | |
56 | typedef short int16e_type; | |
57 | typedef unsigned short uint16e_type; | |
58 | typedef int int32e_type; | |
59 | typedef unsigned int uint32e_type; | |
60 | ||
61 | /* CORRECT SIZE OR GREATER */ | |
62 | typedef char int8_type; | |
63 | typedef unsigned char uint8_type; | |
64 | typedef short int16_type; | |
65 | typedef unsigned short uint16_type; | |
66 | typedef int int32_type; | |
67 | typedef unsigned int uint32_type; | |
68 | ||
69 | #include "fopen-same.h" |