xref: /original-bsd/usr.sbin/amd/config/os-hpux.h (revision 92ab646d)
1 /* $Id: os-hpux.h,v 5.2 90/06/23 22:20:47 jsp Rel $ */
2 
3 /*
4  * HP/9000 HP-UX definitions for Amd (automounter)
5  *
6  * Copyright (c) 1989 Jan-Simon Pendry
7  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
8  * Copyright (c) 1989 The Regents of the University of California.
9  * All rights reserved.
10  *
11  * This code is derived from software contributed to Berkeley by
12  * Jan-Simon Pendry at Imperial College, London.
13  *
14  * %sccs.include.redist.c%
15  *
16  *	@(#)os-hpux.h	5.1 (Berkeley) 06/29/90
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
44 #if defined(hp9000s200) || defined(hp9000s300)
45 #define	ARCH_ENDIAN	"big"
46 #endif
47 /*
48 #if defined(hp9000s800)
49 #define ARCH_ENDIAN	"unknown"
50 #endif
51 */
52 
53 /*
54  * No support for syslog()
55  */
56 #undef HAS_SYSLOG
57 
58 /*
59  * No support for ndbm
60  */
61 #undef OS_HAS_NDBM
62 
63 /*
64  * Name of filesystem types
65  */
66 #define	MOUNT_TYPE_UFS	MOUNT_UFS
67 #define MOUNT_TYPE_NFS MOUNT_NFS
68 #undef MTAB_TYPE_UFS
69 #define	MTAB_TYPE_UFS	"hfs"
70 
71 /*
72  * Where to get NFS definitions
73  */
74 #define	NFS_HDR "misc-hpux.h"
75 
76 /*
77  * Where to get union wait
78  */
79 #undef WAIT
80 #define	WAIT	"uwait.h"
81 #ifndef SIGCHLD
82 #define SIGCHLD	SIGCLD
83 #endif
84 #define	SYS5_SIGNALS
85 
86 /*
87  * Miscellaneous HP-UX definitions
88  */
89 
90 #define	MISC_RPC
91 
92 /*
93  * Use <fcntl.h> rather than <sys/file.h>
94  */
95 #define USE_FCNTL
96 
97 /*
98  * Use fcntl() rather than flock()
99  */
100 #define LOCK_FCNTL
101 
102 #ifdef __GNUC__
103 #define alloca(sz) __builtin_alloca(sz)
104 #endif
105 #define	bzero(ptr, len)	memset(ptr, 0, len)
106 #define bcopy(from, to, len) memcpy(to, from, len)
107 #define getpagesize() (2048)
108 #undef MOUNT_TRAP
109 #define MOUNT_TRAP(type, mnt, flags, mnt_data) \
110 	vfsmount(type, mnt->mnt_dir, flags, mnt_data)
111 #undef UNMOUNT_TRAP
112 #define	UNMOUNT_TRAP(mnt)	umount(mnt->mnt_dir)
113 #define NFDS	30	/* conservative */
114 #define	MOUNTED MNT_MNTTAB
115