Initial revision
[deliverable/binutils-gdb.git] / bfd / hosts / go32.h
CommitLineData
5af19052
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#ifndef O_ACCMODE
10#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
11#endif
12#define SEEK_SET 0
13#define SEEK_CUR 1
14
15#define POSIX_UTIME
16#define NO_FCNTL
17
18/* EXACT TYPES */
19 typedef char int8e_type;
20 typedef unsigned char uint8e_type;
21 typedef short int16e_type;
22 typedef unsigned short uint16e_type;
23 typedef int int32e_type;
24 typedef unsigned int uint32e_type;
25
26 /* CORRECT SIZE OR GREATER */
27 typedef char int8_type;
28 typedef unsigned char uint8_type;
29 typedef short int16_type;
30 typedef unsigned short uint16_type;
31 typedef int int32_type;
32 typedef unsigned int uint32_type;
33
34/* Macros for the 'type' part of an fopen, freopen or fdopen.
35 <Read|Write>[Update]<Binary file><text file>
36 */
37#define FOPEN_RB "rb"
38#define FOPEN_WB "wb"
39#define FOPEN_AB "ab"
40#define FOPEN_RUB "r+b"
41#define FOPEN_WUB "w+b"
42#define FOPEN_AUB "a+b"
43#define FOPEN_RT "r"
44#define FOPEN_WT "w"
45#define FOPEN_AT "a"
46#define FOPEN_RUT "r+"
47#define FOPEN_WUT "w+"
48#define FOPEN_AUT "a+"
This page took 0.024352 seconds and 4 git commands to generate.