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 | 22 | extern int EXFUN(close,(int)); |
36c0a1ec | 23 | extern int EXFUN(fprintf,(FILE *,CONST char *,...)); |
302c8ab1 | 24 | extern int EXFUN(qsort,(void *data,int els, int siz, int func())); |
de1478e1 | 25 | extern void EXFUN(exit,(int)); |
302c8ab1 SC |
26 | extern int EXFUN(fclose,(FILE*)); |
27 | extern void EXFUN(bcopy,(char*,char*,int)); | |
28 | extern int EXFUN(bcmp,(char *, char *, int)); | |
29 | extern void EXFUN(bzero,(char *, int)); | |
30 | extern void EXFUN(perror,(CONST char *)); | |
e4a0e98e | 31 | extern char *getenv(); |
302c8ab1 | 32 | extern char * strchr(); |
e4a0e98e SC |
33 | extern char *memchr(); |
34 | extern char *strrchr(); | |
35 | extern int chmod(); | |
e4a0e98e | 36 | extern int fstat(); |
e4a0e98e SC |
37 | extern int stat(); |
38 | extern int strtol(); | |
de1478e1 SC |
39 | #ifndef DONTDECLARE_MALLOC |
40 | extern PTR EXFUN(malloc,(unsigned)); | |
41 | extern PTR EXFUN(realloc, (PTR, unsigned)); | |
42 | #endif | |
f6eaba83 | 43 | |
e4a0e98e SC |
44 | extern char *strrchr(); |
45 | extern char *ctime(); | |
46 | extern int _flsbuf(); | |
47 | extern int fclose(); | |
e4a0e98e SC |
48 | extern int utimes(); |
49 | extern int vfprintf(); | |
50 | extern long atol(); | |
51 | extern char *getenv(); | |
52 | extern int fputc(); | |
53 | extern int unlink(); | |
54 | ||
55 | ||
a5431adc | 56 | #include "fopen-same.h" |