Commit | Line | Data |
---|---|---|
bdd4be41 DZ |
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 | #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 | void free(); | |
16 | ||
17 | /* Some things that need to be defined in order to make code written for | |
18 | BSD Unix compile under System V Unix. */ | |
19 | ||
20 | #include <memory.h> | |
21 | #define bcmp(b1,b2,len) memcmp(b1,b2,len) | |
22 | #define bcopy(src,dst,len) memcpy(dst,src,len) | |
23 | #define bzero(s,n) memset(s,0,n) | |
24 | ||
25 | #if 0 | |
26 | static int | |
27 | rename(from, to) | |
28 | { | |
29 | unlink(to); | |
30 | return(link(from, to)); | |
31 | } | |
32 | #endif | |
33 | ||
34 | /* | |
35 | * Might not need these. Leave them out for now. | |
36 | * | |
37 | #include <string.h> | |
38 | #define index(s,c) strchr(s,c) | |
39 | #define rindex(s,c) strrchr(s,c) | |
bdd4be41 DZ |
40 | */ |
41 | ||
42 | /* EXACT TYPES */ | |
43 | typedef char int8e_type; | |
44 | typedef unsigned char uint8e_type; | |
45 | typedef short int16e_type; | |
46 | typedef unsigned short uint16e_type; | |
47 | typedef int int32e_type; | |
48 | typedef unsigned int uint32e_type; | |
49 | ||
50 | /* CORRECT SIZE OR GREATER */ | |
51 | typedef char int8_type; | |
52 | typedef unsigned char uint8_type; | |
53 | typedef short int16_type; | |
54 | typedef unsigned short uint16_type; | |
55 | typedef int int32_type; | |
56 | typedef unsigned int uint32_type; | |
57 | ||
58 | #include "fopen-same.h" |