Added macros for the 'type' part of an fopen, freopen or fdopen.
[deliverable/binutils-gdb.git] / bfd / hosts / i386v4.h
1 /* SVR4 Unix host system */
2 #include <fcntl.h>
3 #include <errno.h>
4 #include <stdio.h>
5 #include <sys/types.h>
6 #include <sys/stat.h>
7 #include <utime.h>
8 #include <ctype.h>
9 #include <string.h>
10 #include <sys/file.h>
11
12 #ifndef O_ACCMODE
13 #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
14 #endif
15 #define SEEK_SET 0
16 #define SEEK_CUR 1
17
18 #define POSIX_UTIME
19
20 extern PROTO(int, abort,(void));
21 extern PROTO(int, close,(int));
22 extern PROTO(void, exit,(int));
23 extern PROTO(int, fclose,(FILE*));
24 extern PROTO(void, free,(PTR));
25 extern PROTO(int, fseek,(FILE*, long, int));
26 extern PROTO(int, getgid,());
27 extern PROTO(int, getuid,());
28 extern PROTO(PTR, malloc,(unsigned));
29 extern PROTO(void, perror,(CONST char *));
30 extern PROTO(int, qsort,(void *data,int els, int siz, int func()));
31 extern PROTO(PTR, realloc, (PTR, unsigned));
32
33 extern char *getenv();
34 extern int chmod();
35 extern int fstat();
36 extern int stat();
37 extern int strtol();
38
39 extern char *ctime();
40 extern int _flsbuf();
41 extern int fclose();
42 extern int utimes();
43 extern int vfprintf();
44 extern long atol();
45 extern int fputc();
46 extern int unlink();
47
48 /* EXACT TYPES */
49 typedef char int8e_type;
50 typedef unsigned char uint8e_type;
51 typedef short int16e_type;
52 typedef unsigned short uint16e_type;
53 typedef int int32e_type;
54 typedef unsigned int uint32e_type;
55
56 /* CORRECT SIZE OR GREATER */
57 typedef char int8_type;
58 typedef unsigned char uint8_type;
59 typedef short int16_type;
60 typedef unsigned short uint16_type;
61 typedef int int32_type;
62 typedef unsigned int uint32_type;
63 /* Macros for the 'type' part of an fopen, freopen or fdopen.
64 <Read|Write>[Update]<Binary file><text file>
65 */
66 #define FOPEN_RB "r"
67 #define FOPEN_WB "w"
68 #define FOPEN_AB "a"
69 #define FOPEN_RUB "r+"
70 #define FOPEN_WUB "w+"
71 #define FOPEN_AUB "a+"
72 #define FOPEN_RT "r"
73 #define FOPEN_WT "w"
74 #define FOPEN_AT "a"
75 #define FOPEN_RUT "r+"
76 #define FOPEN_WUT "w+"
77 #define FOPEN_AUT "a+"
This page took 0.037702 seconds and 4 git commands to generate.