Commit | Line | Data |
---|---|---|
3fd76e58 SG |
1 | #include <fcntl.h> |
2 | #include <errno.h> | |
3 | #include <stdio.h> | |
4 | #include <sys/types.h> | |
5 | #include <sys/stat.h> | |
6 | #include <ctype.h> | |
7 | #include <string.h> | |
8 | #include <sys/file.h> | |
b85bd0c1 | 9 | #include <memory.h> |
ad486d77 SG |
10 | |
11 | void free(); | |
12 | ||
3fd76e58 SG |
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 | ||
acc7c493 ILT |
19 | #ifndef __STDC__ |
20 | #define NATIVE_HPPAHPUX_COMPILER | |
21 | #endif | |
22 | ||
3fd7451e ILT |
23 | #define USE_UTIME |
24 | ||
3fd76e58 SG |
25 | #if 0 |
26 | static int | |
27 | rename(from, to) | |
28 | { | |
29 | unlink(to); | |
30 | return(link(from, to)); | |
31 | } | |
32 | #endif | |
33 | ||
764c960d SG |
34 | extern PTR EXFUN(malloc,(unsigned)); |
35 | extern PTR EXFUN(realloc, (PTR, unsigned)); | |
36 | ||
3fd76e58 SG |
37 | /* EXACT TYPES */ |
38 | typedef char int8e_type; | |
39 | typedef unsigned char uint8e_type; | |
40 | typedef short int16e_type; | |
41 | typedef unsigned short uint16e_type; | |
42 | typedef int int32e_type; | |
43 | typedef unsigned int uint32e_type; | |
44 | ||
45 | /* CORRECT SIZE OR GREATER */ | |
46 | typedef char int8_type; | |
47 | typedef unsigned char uint8_type; | |
48 | typedef short int16_type; | |
49 | typedef unsigned short uint16_type; | |
50 | typedef int int32_type; | |
51 | typedef unsigned int uint32_type; | |
52 | ||
53 | #include "fopen-same.h" |