1 | /* |
---|
2 | * Copyright (c) 1992-1998 Michael A. Cooper. |
---|
3 | * This software may be freely used and distributed provided it is not |
---|
4 | * sold for profit or used in part or in whole for commercial gain |
---|
5 | * without prior written agreement, and the author is credited |
---|
6 | * appropriately. |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * $Revision: 1.1.1.3 $ |
---|
11 | */ |
---|
12 | |
---|
13 | #ifndef __os_hpux_h__ |
---|
14 | #define __os_hpux_h__ |
---|
15 | |
---|
16 | /* |
---|
17 | * HP HP-UX |
---|
18 | */ |
---|
19 | |
---|
20 | #include <sys/param.h> |
---|
21 | |
---|
22 | #define MAN_SHORT "HP" |
---|
23 | #define MAN_LONG "Hewlett-Packard Company" |
---|
24 | |
---|
25 | #if OSMVER >= 10 |
---|
26 | #define NAMELIST "/stand/vmunix" |
---|
27 | #else |
---|
28 | #define NAMELIST "/hp-ux" |
---|
29 | #endif /* OSMVER >= 10 */ |
---|
30 | |
---|
31 | #define VERSION_SYM "_release_version" |
---|
32 | #define PHYSMEM_SYM "physmem" |
---|
33 | #define IS_POSIX_SOURCE 1 |
---|
34 | #define NEED_KVM 1 |
---|
35 | #define HAVE_NLIST 1 |
---|
36 | #define RE_TYPE RE_REGCOMP |
---|
37 | |
---|
38 | /* |
---|
39 | * Don't check Serial numbers when adding devices to the device tree. |
---|
40 | * We need to skip this because SCSI device's Serial numbers on HPUX |
---|
41 | * are usually not unique. They appear to be used for other info. |
---|
42 | */ |
---|
43 | #define DONT_FIND_ON_SERIAL 1 |
---|
44 | |
---|
45 | /* |
---|
46 | * Device support depends on ioscan(1m) which appears first in HPUX 10.x |
---|
47 | */ |
---|
48 | #if OSMVER >= 10 |
---|
49 | /* HPUX cc doesn't appear to define __STDC__ */ |
---|
50 | #ifndef __STDC__ |
---|
51 | #define __STDC__ |
---|
52 | #endif |
---|
53 | #define HAVE_STDARG |
---|
54 | #define IOSCAN_ARGS "-k -n -F" |
---|
55 | #define HAVE_DEVICE_SUPPORT |
---|
56 | #define HAVE_SCSI_CTL |
---|
57 | #define SETMACINFO_FUNC HPUXSetMacInfo |
---|
58 | #define _PATH_IOSCAN "/usr/sbin/ioscan" |
---|
59 | #endif /* OSMVER >= 10 */ |
---|
60 | |
---|
61 | #if OSMVER == 9 |
---|
62 | #define HAVE_VARARGS |
---|
63 | /* For compatibility */ |
---|
64 | #define setreuid(r,e) setresuid(r,e,-1) |
---|
65 | #endif /* OSMVER == 9 */ |
---|
66 | |
---|
67 | /* |
---|
68 | * General pathnames |
---|
69 | */ |
---|
70 | #define _PATH_DEV_DSK "/dev/dsk" |
---|
71 | #define _PATH_DEV_RDSK "/dev/rdsk" |
---|
72 | #define _PATH_DEV_RMT "/dev/rmt" |
---|
73 | #define _PATH_DEV_RSCSI "/dev/rscsi" |
---|
74 | |
---|
75 | #ifndef _BIT_FIELDS_HTOL |
---|
76 | #define _BIT_FIELDS_HTOL 1 /* High-to-low bit order */ |
---|
77 | #endif |
---|
78 | |
---|
79 | /* |
---|
80 | * Run Test Programs using sh(1) since HPUX (9.x) |
---|
81 | * does not put a #! in the header of /bin/hp9000s* programs. |
---|
82 | */ |
---|
83 | #define RUN_TEST_CMD { "/bin/sh", "-c", NULL } |
---|
84 | |
---|
85 | /* |
---|
86 | * Constants |
---|
87 | */ |
---|
88 | #define HP_KA_HP200 "hp9000s200" |
---|
89 | #define HP_KA_HP300 "hp9000s300" |
---|
90 | #define HP_KA_HP400 "hp9000s400" |
---|
91 | #define HP_KA_HP500 "hp9000s500" |
---|
92 | #define HP_KA_HP700 "hp9000s700" |
---|
93 | #define HP_KA_HP800 "hp9000s800" |
---|
94 | #define HP_KA_HPCOMB "hp9000" |
---|
95 | #define HP_AA_PARISC "PA-RISC" |
---|
96 | #define HP_AA_MC68K "MC680x0" |
---|
97 | |
---|
98 | /* |
---|
99 | * Default Frame Buffer device file |
---|
100 | */ |
---|
101 | #define FB_DEFAULT_FILE "/dev/crt" |
---|
102 | |
---|
103 | /* |
---|
104 | * Compatibility |
---|
105 | */ |
---|
106 | #define GETPAGESIZE() sysconf(_SC_PAGE_SIZE) |
---|
107 | |
---|
108 | #endif /* __os_hpux_h__ */ |
---|