Commit | Line | Data |
---|---|---|
e1a31032 | 1 | /* |
e1a31032 KM |
2 | * Copyright (c) 1989 Jan-Simon Pendry |
3 | * Copyright (c) 1989 Imperial College of Science, Technology & Medicine | |
4 | * Copyright (c) 1989 The Regents of the University of California. | |
5 | * All rights reserved. | |
6 | * | |
7 | * This code is derived from software contributed to Berkeley by | |
8 | * Jan-Simon Pendry at Imperial College, London. | |
9 | * | |
10 | * %sccs.include.redist.c% | |
11 | * | |
332f0791 | 12 | * @(#)os-hpux.h 5.4 (Berkeley) %G% |
8d2991d5 | 13 | * |
332f0791 | 14 | * $Id: os-hpux.h,v 5.2.2.1 1992/02/09 15:10:23 jsp beta $ |
8d2991d5 JSP |
15 | * |
16 | * HP/9000 HP-UX definitions for Amd (automounter) | |
e1a31032 KM |
17 | */ |
18 | ||
19 | /* | |
20 | * Does the compiler grok void * | |
21 | */ | |
22 | #ifdef __GNUC__ | |
23 | #define VOIDP | |
24 | #endif | |
25 | ||
26 | /* | |
27 | * Which version of the Sun RPC library we are using | |
28 | * This is the implementation release number, not | |
29 | * the protocol revision number. | |
30 | */ | |
31 | #define RPC_3 | |
32 | ||
33 | /* | |
34 | * Which version of the NFS interface are we using. | |
35 | * This is the implementation release number, not | |
36 | * the protocol revision number. | |
37 | */ | |
38 | #define NFS_3 | |
39 | ||
40 | /* | |
41 | * Byte ordering | |
42 | */ | |
43 | #undef ARCH_ENDIAN | |
2f619045 | 44 | #if defined(hp9000s200) || defined(hp9000s300) || defined(hp9000s800) |
e1a31032 KM |
45 | #define ARCH_ENDIAN "big" |
46 | #endif | |
2f619045 JSP |
47 | |
48 | #ifndef __hpux | |
49 | #define HPUX_VERSION_6 | |
e1a31032 | 50 | #endif |
e1a31032 KM |
51 | |
52 | /* | |
2f619045 | 53 | * No support for syslog() prior to 7.0 |
e1a31032 | 54 | */ |
2f619045 | 55 | #ifdef HPUX_VERSION_6 |
e1a31032 | 56 | #undef HAS_SYSLOG |
2f619045 | 57 | #endif |
e1a31032 KM |
58 | |
59 | /* | |
60 | * No support for ndbm | |
61 | */ | |
62 | #undef OS_HAS_NDBM | |
63 | ||
64 | /* | |
65 | * Name of filesystem types | |
66 | */ | |
67 | #define MOUNT_TYPE_UFS MOUNT_UFS | |
68 | #define MOUNT_TYPE_NFS MOUNT_NFS | |
69 | #undef MTAB_TYPE_UFS | |
70 | #define MTAB_TYPE_UFS "hfs" | |
71 | ||
72 | /* | |
73 | * Where to get NFS definitions | |
74 | */ | |
75 | #define NFS_HDR "misc-hpux.h" | |
76 | ||
77 | /* | |
78 | * Where to get union wait | |
79 | */ | |
80 | #undef WAIT | |
81 | #define WAIT "uwait.h" | |
2f619045 | 82 | #ifdef HPUX_VERSION_6 |
e1a31032 KM |
83 | #define SIGCHLD SIGCLD |
84 | #endif | |
85 | #define SYS5_SIGNALS | |
86 | ||
87 | /* | |
88 | * Miscellaneous HP-UX definitions | |
89 | */ | |
90 | ||
2f619045 JSP |
91 | #define NEED_XDR_POINTER |
92 | #define NEED_CLNT_SPERRNO | |
e1a31032 KM |
93 | |
94 | /* | |
95 | * Use <fcntl.h> rather than <sys/file.h> | |
96 | */ | |
97 | #define USE_FCNTL | |
98 | ||
99 | /* | |
100 | * Use fcntl() rather than flock() | |
101 | */ | |
102 | #define LOCK_FCNTL | |
103 | ||
2f619045 JSP |
104 | /* |
105 | * Additional fields in struct mntent | |
106 | * are fixed up here | |
107 | */ | |
108 | #define FIXUP_MNTENT(mntp) { \ | |
109 | (mntp)->mnt_time = clocktime(); \ | |
110 | } | |
111 | #define FIXUP_MNTENT_DUP(mntp, mp) { \ | |
112 | (mntp)->mnt_time = (mp)->mnt_time; \ | |
113 | } | |
114 | ||
e1a31032 KM |
115 | #define bzero(ptr, len) memset(ptr, 0, len) |
116 | #define bcopy(from, to, len) memcpy(to, from, len) | |
117 | #define getpagesize() (2048) | |
118 | #undef MOUNT_TRAP | |
119 | #define MOUNT_TRAP(type, mnt, flags, mnt_data) \ | |
120 | vfsmount(type, mnt->mnt_dir, flags, mnt_data) | |
121 | #undef UNMOUNT_TRAP | |
122 | #define UNMOUNT_TRAP(mnt) umount(mnt->mnt_dir) | |
123 | #define NFDS 30 /* conservative */ | |
124 | #define MOUNTED MNT_MNTTAB |