12 #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
20 # define L_SET SEEK_SET
25 /* Some things that need to be defined in order to make code written for
26 BSD Unix compile under System V Unix. */
28 /*#include <memory.h>*/
29 #define bcmp(b1,b2,len) memcmp(b1,b2,len)
30 #define bcopy(src,dst,len) memcpy(dst,src,len)
31 #define bzero(s,n) memset(s,0,n)
34 #define index(s,c) strchr(s,c)
35 #define rindex(s,c) strrchr(s,c)
38 * Might not need these. Leave them out for now.
42 # define L_SET SEEK_SET
48 # define L_INCR SEEK_CUR
53 #ifndef DONTDECLARE_MALLOC
54 extern PTR EXFUN(malloc,(unsigned));
55 extern PTR EXFUN(realloc, (PTR, unsigned));
56 extern void EXFUN(free,(PTR));
60 typedef char int8e_type;
61 typedef unsigned char uint8e_type;
62 typedef short int16e_type;
63 typedef unsigned short uint16e_type;
64 typedef int int32e_type;
65 typedef unsigned int uint32e_type;
67 /* CORRECT SIZE OR GREATER */
68 typedef char int8_type;
69 typedef unsigned char uint8_type;
70 typedef short int16_type;
71 typedef unsigned short uint16_type;
72 typedef int int32_type;
73 typedef unsigned int uint32_type;
75 #include "fopen-same.h"