xref: /original-bsd/usr.sbin/amd/config/os-irix.h (revision 334c6481)
1 /*
2  * Copyright (c) 1990 Jan-Simon Pendry
3  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
4  * Copyright (c) 1990 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  *
12  *	@(#)os-irix.h	5.4 (Berkeley) 02/09/92
13  *
14  * $Id: os-irix.h,v 5.2.2.1 1992/02/09 15:10:28 jsp beta $
15  *
16  * IRIX 3.3 definitions for Amd (automounter)
17  * Contributed by Scott R. Presnell <srp@cgl.ucsf.edu>
18  */
19 
20 /*
21  * Does the compiler grok void *
22  */
23 #define VOIDP
24 
25 /*
26  * Which version of the Sun RPC library we are using
27  * This is the implementation release number, not
28  * the protocol revision number.
29  */
30 #define RPC_3
31 
32 /*
33  * Which version of the NFS interface are we using.
34  * This is the implementation release number, not
35  * the protocol revision number.
36  */
37 #define NFS_3
38 
39 /*
40  * Byte ordering
41  */
42 #undef ARCH_ENDIAN
43 #define ARCH_ENDIAN	"big"
44 
45 /*
46  * Has support for syslog()
47  */
48 #define HAS_SYSLOG
49 
50 #define M_GRPID		MS_GRPID
51 #define M_RDONLY	MS_RDONLY
52 /*
53  * Support for ndbm
54  */
55 #define OS_HAS_NDBM
56 
57 #define UPDATE_MTAB
58 
59 #undef	MTAB_TYPE_NFS
60 #define MTAB_TYPE_NFS	"nfs"
61 
62 #undef	MTAB_TYPE_UFS
63 #define MTAB_TYPE_UFS	"efs"
64 
65 #define NMOUNT	40	/* The std sun value */
66 /*
67  * Name of filesystem types
68  */
69 #define MOUNT_TYPE_UFS	sysfs(GETFSIND, FSID_EFS)
70 #define MOUNT_TYPE_NFS	sysfs(GETFSIND, FSID_NFS)
71 
72 #define SYS5_SIGNALS
73 
74 /*
75  * Use <fcntl.h> rather than <sys/file.h>
76  */
77 /*#define USE_FCNTL*/
78 
79 /*
80  * Use fcntl() rather than flock()
81  */
82 /*#define LOCK_FCNTL*/
83 
84 #ifdef __GNUC__
85 #define alloca(sz) __builtin_alloca(sz)
86 #endif
87 
88 #define bzero(ptr, len) memset(ptr, 0, len)
89 #define bcopy(from, to, len) memcpy(to, from, len)
90 
91 #undef MOUNT_TRAP
92 #define MOUNT_TRAP(type, mnt, flags, mnt_data) \
93 	irix_mount(mnt->mnt_fsname, mnt->mnt_dir,flags, type, mnt_data)
94 #undef UNMOUNT_TRAP
95 #define UNMOUNT_TRAP(mnt)	umount(mnt->mnt_dir)
96 #define NFDS	30	/* conservative */
97 
98 #define NFS_HDR "misc-irix.h"
99 #define UFS_HDR "misc-irix.h"
100 
101 /* not included in sys/param.h */
102 #include <sys/types.h>
103 
104 #define MOUNT_HELPER_SOURCE "mount_irix.c"
105 
106 #define	MNTINFO_DEV	"fsid"
107 #define	MNTINFO_PREF	"0x"
108