Commit | Line | Data |
---|---|---|
60ac749c ILT |
1 | /* Host configuration file for Interactive Unix 3.2 */ |
2 | /* From Minh Tran-Le <TRANLE@INTELLICORP.COM>. */ | |
f751f474 | 3 | #include <ansidecl.h> |
60ac749c ILT |
4 | #include <fcntl.h> |
5 | #include <errno.h> | |
6 | #include <stdio.h> | |
7 | #include <sys/types.h> | |
8 | #include <sys/stat.h> | |
9 | #include <ctype.h> | |
10 | #include <string.h> | |
11 | #include <unistd.h> | |
12 | ||
13 | #ifndef O_ACCMODE | |
14 | #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) | |
15 | #endif | |
16 | #ifndef SEEK_SET | |
17 | #define SEEK_SET 0 | |
18 | #define SEEK_CUR 1 | |
19 | #endif | |
20 | ||
21 | #define USE_UTIME | |
22 | ||
23 | /* Some things that need to be defined in order to make code written for | |
24 | BSD Unix compile under System V Unix. */ | |
25 | ||
26 | /*#include <memory.h>*/ | |
27 | #define bcmp(b1,b2,len) memcmp(b1,b2,len) | |
28 | #define bcopy(src,dst,len) memcpy(dst,src,len) | |
29 | #define bzero(s,n) memset(s,0,n) | |
30 | ||
31 | #include <string.h> | |
60ac749c ILT |
32 | |
33 | #ifndef DONTDECLARE_MALLOC | |
34 | extern PTR EXFUN(malloc,(unsigned)); | |
35 | extern PTR EXFUN(realloc, (PTR, unsigned)); | |
36 | extern void EXFUN(free,(PTR)); | |
37 | #endif | |
38 | ||
60ac749c ILT |
39 | #include "fopen-same.h" |
40 | ||
41 | #ifndef fileno | |
42 | #define fileno(fp) ((fp)->_file) | |
43 | #endif |