]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/hosts/hppabsd.h
* hosts/sysv4.h (qsort, strtol): Don't declare.
[thirdparty/binutils-gdb.git] / bfd / hosts / hppabsd.h
CommitLineData
c5652bff 1#ifndef _HPPABSD_H
d325e28c
SG
2#define _HPPABSD_H
3
c5652bff 4#include <stddef.h>
3fd76e58
SG
5#include <fcntl.h>
6#include <errno.h>
7#include <stdio.h>
8#include <sys/types.h>
9#include <sys/stat.h>
10#include <ctype.h>
11#include <string.h>
12#include <sys/file.h>
01619b8b
KR
13#include <stdlib.h>
14#include <unistd.h>
3fd76e58 15
9a5e3a9a
SG
16#define HOST_HPPABSD
17
c5652bff 18#ifndef O_ACCMODE
3fd76e58
SG
19#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
20#endif
21
22#define SEEK_SET 0
23#define SEEK_CUR 1
24
25#include <machine/machparam.h>
26
27#define HOST_PAGE_SIZE NBPG
28#define HOST_SEGMENT_SIZE NBPG /* Data seg start addr rounds to NBPG */
e2a422b8 29#define HOST_MACHINE_ARCH bfd_arch_hppa
3fd76e58
SG
30/* #define HOST_MACHINE_MACHINE */
31
32#define HOST_TEXT_START_ADDR UTEXTSEG
33#define HOST_DATA_START_ADDR UDATASEG
34#define HOST_STACK_END_ADDR KSTAKSEG
35
3fd76e58 36#include "fopen-same.h"
d325e28c
SG
37
38#endif /* _HPPABSD_H */