]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/hosts/hp300bsd.h
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / bfd / hosts / hp300bsd.h
CommitLineData
33b6c262
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
10void *malloc();
11void free();
12
13#ifndef O_ACCMODE
14#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
15#endif
16
17#define SEEK_SET 0
18#define SEEK_CUR 1
19
20#include <machine/machparam.h>
21
22#define HOST_PAGE_SIZE NBPG
23#define HOST_SEGMENT_SIZE NBPG /* Data seg start addr rounds to NBPG */
24#define HOST_MACHINE_ARCH bfd_arch_m68k
25/* #define HOST_MACHINE_MACHINE */
26
27#define HOST_TEXT_START_ADDR 0
28#define HOST_STACK_END_ADDR 0xfff00000
29
30/* EXACT TYPES */
31typedef char int8e_type;
32typedef unsigned char uint8e_type;
33typedef short int16e_type;
34typedef unsigned short uint16e_type;
35typedef int int32e_type;
36typedef unsigned int uint32e_type;
37
38/* CORRECT SIZE OR GREATER */
39typedef char int8_type;
40typedef unsigned char uint8_type;
41typedef short int16_type;
42typedef unsigned short uint16_type;
43typedef int int32_type;
44typedef unsigned int uint32_type;
45/* Macros for the 'type' part of an fopen, freopen or fdopen.
46 <Read|Write>[Update]<Binary file><text file>
47 */
48#define FOPEN_RB "r"
49#define FOPEN_WB "w"
50#define FOPEN_AB "a"
51#define FOPEN_RUB "r+"
52#define FOPEN_WUB "w+"
53#define FOPEN_AUB "a+"
54#define FOPEN_RT "r"
55#define FOPEN_WT "w"
56#define FOPEN_AT "a"
57#define FOPEN_RUT "r+"
58#define FOPEN_WUT "w+"
59#define FOPEN_AUT "a+"