| 1 | /* i386 AIX 1.2.x host system */ |
| 2 | /* From Minh Tran-Le <TRANLE@INTELLICORP.COM>. */ |
| 3 | |
| 4 | #include <ansidecl.h> |
| 5 | #include <fcntl.h> |
| 6 | #include <errno.h> |
| 7 | #include <stdio.h> |
| 8 | #include <sys/types.h> |
| 9 | #include <sys/stat.h> |
| 10 | #include <utime.h> |
| 11 | #include <ctype.h> |
| 12 | #include <string.h> |
| 13 | #include <sys/file.h> |
| 14 | |
| 15 | #ifndef O_ACCMODE |
| 16 | #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) |
| 17 | #endif |
| 18 | #define SEEK_SET 0 |
| 19 | #define SEEK_CUR 1 |
| 20 | |
| 21 | #define POSIX_UTIME |
| 22 | |
| 23 | extern void abort PARAMS ((void)); |
| 24 | extern int close PARAMS ((int)); |
| 25 | extern void exit PARAMS ((int)); |
| 26 | extern int fclose PARAMS ((FILE*)); |
| 27 | extern void free PARAMS ((PTR)); |
| 28 | extern int fseek PARAMS ((FILE*, long, int)); |
| 29 | extern PTR malloc PARAMS ((unsigned)); |
| 30 | extern void perror PARAMS ((CONST char *)); |
| 31 | extern int qsort PARAMS ((void *data, int els, int siz, int func())); |
| 32 | extern PTR realloc PARAMS ((PTR, unsigned)); |
| 33 | |
| 34 | extern char *getenv(); |
| 35 | extern int chmod(); |
| 36 | extern int fstat(); |
| 37 | extern int stat(); |
| 38 | |
| 39 | extern char *ctime(); |
| 40 | extern int _flsbuf(); |
| 41 | extern int fclose(); |
| 42 | extern int utimes(); |
| 43 | extern int vfprintf(); |
| 44 | extern long atol(); |
| 45 | extern int fputc(); |
| 46 | extern int unlink(); |
| 47 | |
| 48 | #include "fopen-same.h" |