Commit | Line | Data |
---|---|---|
bdd4be41 DZ |
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> | |
9 | #ifndef O_ACCMODE | |
10 | #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) | |
11 | #endif | |
12 | #define SEEK_SET 0 | |
13 | #define SEEK_CUR 1 | |
14 | ||
a643e626 ILT |
15 | #define HOST_HP300HPUX |
16 | ||
3fd7451e ILT |
17 | #define USE_UTIME |
18 | ||
bdd4be41 DZ |
19 | void free(); |
20 | ||
21 | /* Some things that need to be defined in order to make code written for | |
22 | BSD Unix compile under System V Unix. */ | |
23 | ||
24 | #include <memory.h> | |
25 | #define bcmp(b1,b2,len) memcmp(b1,b2,len) | |
26 | #define bcopy(src,dst,len) memcpy(dst,src,len) | |
27 | #define bzero(s,n) memset(s,0,n) | |
28 | ||
29 | #if 0 | |
30 | static int | |
31 | rename(from, to) | |
32 | { | |
33 | unlink(to); | |
34 | return(link(from, to)); | |
35 | } | |
36 | #endif | |
37 | ||
bdd4be41 | 38 | #include "fopen-same.h" |