* hosts/h-*.h: Configure fopen using ../include/fopen-*.h
[deliverable/binutils-gdb.git] / bfd / hosts / rtbsd.h
CommitLineData
c1c70e68
SC
1#include <fcntl.h>
2#include <errno.h>
3#include <stdio.h>
4#include <sys/types.h>
5#include <sys/stat.h>
6#include <ctype.h>
7#include <string.h>
8#include <sys/file.h>
9
10#ifndef O_ACCMODE
11#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
12#endif
13
14#define SEEK_SET 0
15#define SEEK_CUR 1
16
17extern char *malloc();
18extern void free();
19
20
21/* EXACT TYPES */
22typedef char int8e_type;
23typedef unsigned char uint8e_type;
24typedef short int16e_type;
25typedef unsigned short uint16e_type;
26typedef int int32e_type;
27typedef unsigned int uint32e_type;
28
29/* CORRECT SIZE OR GREATER */
30typedef char int8_type;
31typedef unsigned char uint8_type;
32typedef short int16_type;
33typedef unsigned short uint16_type;
34typedef int int32_type;
35typedef unsigned int uint32_type;
33b6c262
SC
36/* Macros for the 'type' part of an fopen, freopen or fdopen.
37 <Read|Write>[Update]<Binary file><text file>
38 */
39#define FOPEN_RB "r"
40#define FOPEN_WB "w"
41#define FOPEN_AB "a"
42#define FOPEN_RUB "r+"
43#define FOPEN_WUB "w+"
44#define FOPEN_AUB "a+"
45#define FOPEN_RT "r"
46#define FOPEN_WT "w"
47#define FOPEN_AT "a"
48#define FOPEN_RUT "r+"
49#define FOPEN_WUT "w+"
50#define FOPEN_AUT "a+"
This page took 0.035228 seconds and 4 git commands to generate.