50 #if defined(__acorn) && defined(__riscos) 54 #if defined(__MWERKS__) || defined(THINK_C) 61 #if defined(__PPCC__) || defined(__SC__) || defined(__MRC__) 63 #elif !defined(__MWERKS__) && !defined(THINK_C) && !defined(__acornriscos) && !defined(applec) 64 #include <sys/types.h> 70 #elif !defined(__acornriscos) 82 #if defined(__MWERKS__) || defined(THINK_C) || defined(__PPCC__) || defined(__SC__) || defined(__MRC__) 85 #define HAVE_UNISTD_H 0 86 #elif (defined(_WINDOWS) || defined(__WIN32__) || defined(_Windows) || defined(_WIN32)) && !defined(unix) 88 #elif defined(OS2_16) || defined(OS2_32) 90 #elif defined(__acornriscos) 93 #define HAVE_UNISTD_H 0 95 #define HAVE_UNISTD_H 0 97 #define HAVE_UNISTD_H 1 106 #if !defined(SEEK_SET) && HAVE_UNISTD_H 121 #if defined(BSDTYPES) 122 # ifndef _BSDTYPES_DEFINED 123 # ifndef __u_char_defined 124 typedef unsigned char u_char;
125 typedef unsigned short u_short;
126 typedef unsigned int u_int;
127 typedef unsigned long u_long;
128 # define __u_char_defined 130 # define _BSDTYPES_DEFINED 140 #if defined(__SC__) || defined(THINK_C) 151 #if defined(__GNUC__) 152 #if defined(__STRICT_ANSI__) 153 #define INLINE __inline__ 155 #define INLINE inline 173 #if defined(VAX) && defined(VMS) 175 #define GLOBALDATA(TYPE,NAME) extern noshare TYPE NAME 177 #if defined(__GNUC__) 178 #define GLOBALDATA(TYPE,NAME) extern TYPE NAME \ 179 asm("_$$PsectAttributes_NOSHR$$" #NAME) 182 #define GLOBALDATA(TYPE,NAME) extern TYPE NAME 185 #if defined(__acornriscos) 192 #if defined(__cplusplus) 199 #define O_CREAT 0x200 200 #define O_TRUNC 0x400 202 extern int open(
const char *name,
int flags,
int mode);
203 extern int close(
int fd);
204 extern int write(
int fd,
const char *buf,
int nbytes);
205 extern int read(
int fd,
char *buf,
int nbytes);
206 extern off_t
lseek(
int fd, off_t offset,
int whence);
207 extern int creat(
const char *path,
int mode);
213 #undef HOST_FILLORDER 214 #undef HOST_BIGENDIAN 215 #define HOST_FILLORDER FILLORDER_LSB2MSB 216 #define HOST_BIGENDIAN 0 int write(int fd, const char *buf, int nbytes)
int read(int fd, char *buf, int nbytes)
off_t lseek(int fd, off_t offset, int whence)
int open(const char *name, int flags, int mode)