Commit | Line | Data |
---|---|---|
335413d8 | 1 | #include <ansidecl.h> |
e4a0e98e SC |
2 | #include <fcntl.h> |
3 | #include <errno.h> | |
4 | #include <stdio.h> | |
5 | #include <sys/types.h> | |
6 | #include <sys/stat.h> | |
7 | #include <ctype.h> | |
8 | #include <string.h> | |
9 | #include <sys/file.h> | |
10 | #ifndef O_ACCMODE | |
11 | #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) | |
12 | #endif | |
13 | #define SEEK_SET 0 | |
14 | #define SEEK_CUR 1 | |
15 | ||
bec9b335 | 16 | #ifdef __STDC__ |
f6eaba83 | 17 | extern void EXFUN(free,(PTR)); |
bec9b335 RP |
18 | #else /* not __STDC__ */ |
19 | extern int EXFUN(free,(PTR)); | |
20 | #endif /* not __STDC__ */ | |
de1478e1 | 21 | extern void EXFUN(abort,(void)); |
302c8ab1 SC |
22 | extern int EXFUN(close,(int)); |
23 | extern int EXFUN(fcntl,(int des, int cmd, int e)); | |
36c0a1ec | 24 | extern int EXFUN(fprintf,(FILE *,CONST char *,...)); |
302c8ab1 SC |
25 | extern int EXFUN(printf,(char *,...)); |
26 | extern int EXFUN(qsort,(void *data,int els, int siz, int func())); | |
de1478e1 | 27 | extern void EXFUN(exit,(int)); |
302c8ab1 SC |
28 | extern int EXFUN(fseek,(FILE*, int, int)); |
29 | extern int EXFUN(fclose,(FILE*)); | |
30 | extern void EXFUN(bcopy,(char*,char*,int)); | |
31 | extern int EXFUN(bcmp,(char *, char *, int)); | |
32 | extern void EXFUN(bzero,(char *, int)); | |
33 | extern void EXFUN(perror,(CONST char *)); | |
e4a0e98e | 34 | extern char *getenv(); |
302c8ab1 | 35 | extern char * strchr(); |
e4a0e98e SC |
36 | extern char *memchr(); |
37 | extern char *strrchr(); | |
38 | extern int chmod(); | |
39 | extern int fread(); | |
40 | extern int fstat(); | |
41 | extern int fwrite(); | |
42 | extern int sscanf(); | |
43 | extern int stat(); | |
44 | extern int strtol(); | |
de1478e1 SC |
45 | #ifndef DONTDECLARE_MALLOC |
46 | extern PTR EXFUN(malloc,(unsigned)); | |
47 | extern PTR EXFUN(realloc, (PTR, unsigned)); | |
48 | #endif | |
f6eaba83 | 49 | |
e4a0e98e SC |
50 | extern char *strrchr(); |
51 | extern char *ctime(); | |
52 | extern int _flsbuf(); | |
53 | extern int fclose(); | |
54 | extern int time(); | |
55 | extern int utimes(); | |
56 | extern int vfprintf(); | |
57 | extern long atol(); | |
58 | extern char *getenv(); | |
59 | extern int fputc(); | |
60 | extern int unlink(); | |
61 | ||
62 | ||
63 | /* EXACT TYPES */ | |
64 | typedef char int8e_type; | |
65 | typedef unsigned char uint8e_type; | |
66 | typedef short int16e_type; | |
67 | typedef unsigned short uint16e_type; | |
68 | typedef int int32e_type; | |
69 | typedef unsigned int uint32e_type; | |
70 | ||
71 | /* CORRECT SIZE OR GREATER */ | |
72 | typedef char int8_type; | |
73 | typedef unsigned char uint8_type; | |
74 | typedef short int16_type; | |
75 | typedef unsigned short uint16_type; | |
76 | typedef int int32_type; | |
77 | typedef unsigned int uint32_type; | |
78 | ||
a5431adc | 79 | #include "fopen-same.h" |