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__ |
e49d5379 | 17 | extern void free PARAMS ((PTR)); |
bec9b335 | 18 | #else /* not __STDC__ */ |
e49d5379 | 19 | extern int free PARAMS ((PTR)); |
bec9b335 | 20 | #endif /* not __STDC__ */ |
e49d5379 JG |
21 | extern void abort PARAMS ((void)); |
22 | extern int close PARAMS ((int)); | |
23 | extern int fprintf PARAMS ((FILE *,CONST char *,...)); | |
24 | extern int qsort PARAMS ((void *data, int els, int siz, int func())); | |
25 | extern void exit PARAMS ((int)); | |
26 | extern int fclose PARAMS ((FILE*)); | |
27 | extern void bcopy PARAMS ((char*,char*,int)); | |
28 | extern int bcmp PARAMS ((char *, char *, int)); | |
29 | extern void bzero PARAMS ((char *, int)); | |
30 | extern void perror PARAMS ((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 | 39 | #ifndef DONTDECLARE_MALLOC |
e49d5379 JG |
40 | extern PTR malloc PARAMS ((unsigned)); |
41 | extern PTR realloc PARAMS ((PTR, unsigned)); | |
de1478e1 | 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" |