Commit | Line | Data |
---|---|---|
2f192e9b SC |
1 | #include <errno.h> |
2 | #include <sys/types.h> | |
3 | #include <unistd.h> | |
4 | ||
5 | #include <string.h> | |
6 | #include <fcntl.h> | |
7 | #include <sys/stat.h> | |
8 | #include <time.h> | |
9 | #include <ctype.h> | |
10 | ||
11 | #include <stdio.h> | |
12 | ||
13 | #ifndef DONTDECLARE_MALLOC | |
302c8ab1 | 14 | extern PTR EXFUN(malloc,(unsigned)); |
56a56f4c | 15 | extern PTR EXFUN(realloc, (PTR, unsigned)); |
2f192e9b | 16 | #endif |
302c8ab1 SC |
17 | extern int EXFUN(abort,(void)); |
18 | extern int EXFUN(free,(PTR)); | |
19 | extern void EXFUN(bcopy,(char*,char*,int)); | |
20 | extern void EXFUN(exit,(int)); | |
21 | extern int EXFUN(strtol()); | |
22 | extern void EXFUN(bzero,(char *, int)); | |
2f192e9b | 23 | #define NO_STDARG 1 |
302c8ab1 SC |
24 | extern int EXFUN(abort,(void)); |
25 | extern int EXFUN(close,(int)); | |
26 | extern int EXFUN(fcntl,(int des, int cmd, int e)); | |
27 | extern int EXFUN(qsort,(void *data,int els, int siz, int func())); | |
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 *)); | |
34 | extern PTR EXFUN(memchr,(const void *, int, unsigned )); | |
56a56f4c SC |
35 | extern unsigned short EXFUN(getuid,(void)); |
36 | extern unsigned short EXFUN(getgid,(void)); | |
302c8ab1 | 37 | |
2f192e9b | 38 | extern char * strchr(); |
302c8ab1 | 39 | |
2f192e9b | 40 | extern char *getenv(); |
2f192e9b SC |
41 | extern char *strrchr(); |
42 | extern int chmod(); | |
43 | extern int fread(); | |
44 | extern int fstat(); | |
45 | extern int fwrite(); | |
46 | extern int sscanf(); | |
47 | extern int stat(); | |
48 | extern int strtol(); | |
49 | extern int fileno(); | |
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" |