xref: /original-bsd/usr.sbin/amd/config/os-irix.h (revision 08cd6844)
1 /* $Id: os-irix.h,v 5.2.1.2 91/03/03 20:50:27 jsp Alpha $ */
2 
3 /*
4  * IRIX 3.3 definitions for Amd (automounter)
5  * Contributed by Scott R. Presnell <srp@cgl.ucsf.edu>
6  *
7  * Copyright (c) 1990 Jan-Simon Pendry
8  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
9  * Copyright (c) 1990 The Regents of the University of California.
10  * All rights reserved.
11  *
12  * This code is derived from software contributed to Berkeley by
13  * Jan-Simon Pendry at Imperial College, London.
14  *
15  * %sccs.include.redist.c%
16  *
17  *	@(#)os-irix.h	5.2 (Berkeley) 03/17/91
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  * %sccs.include.redist.c%
108 #define	MNTINFO_PREF	"0x"
109