Commit | Line | Data |
---|---|---|
06d0bdef | 1 | /* Amiga Unix host system */ |
a5431adc | 2 | |
2d996e5d JG |
3 | #include <fcntl.h> |
4 | #include <errno.h> | |
5 | #include <stdio.h> | |
6 | #include <sys/types.h> | |
7 | #include <sys/stat.h> | |
06d0bdef | 8 | #include <utime.h> |
2d996e5d JG |
9 | #include <ctype.h> |
10 | #include <string.h> | |
11 | #include <sys/file.h> | |
12 | ||
13 | #ifndef O_ACCMODE | |
14 | #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) | |
15 | #endif | |
16 | #define SEEK_SET 0 | |
17 | #define SEEK_CUR 1 | |
18 | ||
06d0bdef | 19 | #define POSIX_UTIME |
748ec124 | 20 | #define HAVE_PROCFS /* This host has /proc support */ |
06d0bdef | 21 | |
5baf85b6 | 22 | extern PROTO(void, abort,(void)); |
2d996e5d JG |
23 | extern PROTO(int, close,(int)); |
24 | extern PROTO(void, exit,(int)); | |
25 | extern PROTO(int, fclose,(FILE*)); | |
8c8af913 | 26 | extern PROTO(void, free,(PTR)); |
2d996e5d JG |
27 | extern PROTO(int, fseek,(FILE*, long, int)); |
28 | extern PROTO(int, getgid,()); | |
29 | extern PROTO(int, getuid,()); | |
30 | extern PROTO(PTR, malloc,(unsigned)); | |
31 | extern PROTO(void, perror,(CONST char *)); | |
32 | extern PROTO(int, qsort,(void *data,int els, int siz, int func())); | |
33 | extern PROTO(PTR, realloc, (PTR, unsigned)); | |
34 | ||
35 | extern char *getenv(); | |
36 | extern int chmod(); | |
37 | extern int fstat(); | |
38 | extern int stat(); | |
39 | extern int strtol(); | |
40 | ||
41 | extern char *ctime(); | |
42 | extern int _flsbuf(); | |
43 | extern int fclose(); | |
44 | extern int utimes(); | |
45 | extern int vfprintf(); | |
46 | extern long atol(); | |
47 | extern int fputc(); | |
48 | extern int unlink(); | |
49 | ||
50 | /* EXACT TYPES */ | |
51 | typedef char int8e_type; | |
52 | typedef unsigned char uint8e_type; | |
53 | typedef short int16e_type; | |
54 | typedef unsigned short uint16e_type; | |
55 | typedef int int32e_type; | |
56 | typedef unsigned int uint32e_type; | |
57 | ||
58 | /* CORRECT SIZE OR GREATER */ | |
59 | typedef char int8_type; | |
60 | typedef unsigned char uint8_type; | |
61 | typedef short int16_type; | |
62 | typedef unsigned short uint16_type; | |
63 | typedef int int32_type; | |
64 | typedef unsigned int uint32_type; | |
748ec124 FF |
65 | |
66 | #include "fopen-same.h" |