10 #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
15 extern PROTO(int, abort,(void));
16 extern PROTO(int, close,(int));
17 extern PROTO(int, fcntl,(int des, int cmd, int e));
18 extern PROTO(int, fprintf,(FILE *,char *,...));
19 extern PROTO(int, printf,(char *,...));
20 extern PROTO(int, qsort,(void *data,int els, int siz, int func()));
21 extern PROTO(int, exit,(int));
22 extern PROTO(int, fseek,(FILE*, int, int));
23 extern PROTO(int, fclose,(FILE*));
24 extern PROTO(void, bcopy,(char*,char*,int));
25 extern PROTO(int, bcmp,(char *, char *, int));
26 extern PROTO(void, bzero,(char *, int));
27 extern char * strchr();
28 extern PROTO(void, perror,(CONST char *));
29 extern char *getenv();
30 extern char *memchr();
31 extern char *strrchr();
42 extern char *strrchr();
48 extern int vfprintf();
50 extern char *getenv();
56 typedef char int8e_type;
57 typedef unsigned char uint8e_type;
58 typedef short int16e_type;
59 typedef unsigned short uint16e_type;
60 typedef int int32e_type;
61 typedef unsigned int uint32e_type;
63 /* CORRECT SIZE OR GREATER */
64 typedef char int8_type;
65 typedef unsigned char uint8_type;
66 typedef short int16_type;
67 typedef unsigned short uint16_type;
68 typedef int int32_type;
69 typedef unsigned int uint32_type;
70 /* Macros for the 'type' part of an fopen, freopen or fdopen.
71 <Read|Write>[Update]<Binary file><text file>
76 #define FOPEN_RUB "r+"
77 #define FOPEN_WUB "w+"
78 #define FOPEN_AUB "a+"
82 #define FOPEN_RUT "r+"
83 #define FOPEN_WUT "w+"
84 #define FOPEN_AUT "a+"