|
|
1.1 root 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: * Redistribution and use in source and binary forms are permitted provided
15: * that: (1) source distributions retain this entire copyright notice and
16: * comment, and (2) distributions including binaries display the following
17: * acknowledgement: ``This product includes software developed by the
18: * University of California, Berkeley and its contributors'' in the
19: * documentation or other materials provided with the distribution and in
20: * all advertising materials mentioning features or use of this software.
21: * Neither the name of the University nor the names of its contributors may
22: * be used to endorse or promote products derived from this software without
23: * specific prior written permission.
24: * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
25: * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
26: * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
27: *
28: * @(#)os-hpux.h 5.1 (Berkeley) 6/29/90
29: */
30:
31: /*
32: * Does the compiler grok void *
33: */
34: #ifdef __GNUC__
35: #define VOIDP
36: #endif
37:
38: /*
39: * Which version of the Sun RPC library we are using
40: * This is the implementation release number, not
41: * the protocol revision number.
42: */
43: #define RPC_3
44:
45: /*
46: * Which version of the NFS interface are we using.
47: * This is the implementation release number, not
48: * the protocol revision number.
49: */
50: #define NFS_3
51:
52: /*
53: * Byte ordering
54: */
55: #undef ARCH_ENDIAN
56: #if defined(hp9000s200) || defined(hp9000s300)
57: #define ARCH_ENDIAN "big"
58: #endif
59: /*
60: #if defined(hp9000s800)
61: #define ARCH_ENDIAN "unknown"
62: #endif
63: */
64:
65: /*
66: * No support for syslog()
67: */
68: #undef HAS_SYSLOG
69:
70: /*
71: * No support for ndbm
72: */
73: #undef OS_HAS_NDBM
74:
75: /*
76: * Name of filesystem types
77: */
78: #define MOUNT_TYPE_UFS MOUNT_UFS
79: #define MOUNT_TYPE_NFS MOUNT_NFS
80: #undef MTAB_TYPE_UFS
81: #define MTAB_TYPE_UFS "hfs"
82:
83: /*
84: * Where to get NFS definitions
85: */
86: #define NFS_HDR "misc-hpux.h"
87:
88: /*
89: * Where to get union wait
90: */
91: #undef WAIT
92: #define WAIT "uwait.h"
93: #ifndef SIGCHLD
94: #define SIGCHLD SIGCLD
95: #endif
96: #define SYS5_SIGNALS
97:
98: /*
99: * Miscellaneous HP-UX definitions
100: */
101:
102: #define MISC_RPC
103:
104: /*
105: * Use <fcntl.h> rather than <sys/file.h>
106: */
107: #define USE_FCNTL
108:
109: /*
110: * Use fcntl() rather than flock()
111: */
112: #define LOCK_FCNTL
113:
114: #ifdef __GNUC__
115: #define alloca(sz) __builtin_alloca(sz)
116: #endif
117: #define bzero(ptr, len) memset(ptr, 0, len)
118: #define bcopy(from, to, len) memcpy(to, from, len)
119: #define getpagesize() (2048)
120: #undef MOUNT_TRAP
121: #define MOUNT_TRAP(type, mnt, flags, mnt_data) \
122: vfsmount(type, mnt->mnt_dir, flags, mnt_data)
123: #undef UNMOUNT_TRAP
124: #define UNMOUNT_TRAP(mnt) umount(mnt->mnt_dir)
125: #define NFDS 30 /* conservative */
126: #define MOUNTED MNT_MNTTAB
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.