xref: /original-bsd/usr.sbin/amd/config/os-u4_2.h (revision c3e32dec)
1 /*
2  * Copyright (c) 1989 Jan-Simon Pendry
3  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
4  * Copyright (c) 1989, 1993
5  *	The Regents of the University of California.  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-u4_2.h	8.1 (Berkeley) 06/06/93
13  *
14  * $Id: os-u4_2.h,v 5.2.2.1 1992/02/09 15:10:54 jsp beta $
15  *
16  * Ultrix 4.2 definitions for Amd (automounter)
17  *		from Chris Lindblad <cjl@ai.mit.edu>
18  *		and Chris Metcalf <metcalf@lcs.mit.edu>
19  */
20 
21 /*
22  * Does the compiler grok void *
23  */
24 #define VOIDP
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_4
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(vax) || defined(mips)
45 #define	ARCH_ENDIAN "little"
46 #endif
47 
48 /*
49  * The mount table is obtained from the kernel
50  */
51 #undef	UPDATE_MTAB
52 
53 /*
54  * No mntent info on Ultrix
55   */
56 #undef	MNTENT_HDR
57 
58 /*
59  * No support for syslog()
60  */
61 #define	HAS_SYSLOG
62 
63 /*
64  * Name of filesystem types
65  */
66 #define	MOUNT_TYPE_NFS	GT_NFS
67 #define	MOUNT_TYPE_UFS	GT_ULTRIX
68 #undef	MTAB_TYPE_UFS
69 #define	MTAB_TYPE_UFS	"ufs"
70 
71 /*
72  * Name of mount & unmount system calls
73  */
74 #undef	MOUNT_TRAP
75 #define	MOUNT_TRAP(type, mnt, flag, mnt_data) \
76 	mount(mnt->mnt_fsname, mnt->mnt_dir, flag, type, mnt_data)
77 #undef	UNMOUNT_TRAP
78 #define	UNMOUNT_TRAP(mnt)	umount(mnt->mnt_passno)
79 
80 /*
81  * Miscellaneous Ultrix bits
82  */
83 #define	M_RDONLY	M_RONLY
84 
85 #define	MNTMAXSTR	128
86 
87 #define	MNTTYPE_UFS	"ufs"		/* Un*x file system */
88 #define	MNTTYPE_NFS	"nfs"		/* network file system */
89 #define	MNTTYPE_IGNORE	"ignore"	/* No type specified, ignore this entry */
90 
91 #define	MNTOPT_RO	"ro"		/* read only */
92 #define	MNTOPT_RW	"rw"		/* read/write */
93 #define	MNTOPT_QUOTA	"quota"		/* quotas */
94 #define	MNTOPT_NOQUOTA	"noquota"	/* no quotas */
95 #define	MNTOPT_HARD	"hard"		/* hard mount */
96 #define	MNTOPT_SOFT	"soft"		/* soft mount */
97 #define	MNTOPT_INTR	"intr"		/* interrupts allowed */
98 
99 #define	MNTOPT_NOSUID	"nosuid"	/* no set uid allowed */
100 
101 struct mntent {
102 	char	*mnt_fsname;	/* name of mounted file system */
103 	char	*mnt_dir;	/* file system path prefix */
104 	char	*mnt_type;	/* MNTTYPE_* */
105 	char	*mnt_opts;	/* MNTOPT* */
106 	int	mnt_freq;	/* dump frequency, in days */
107 	int	mnt_passno;	/* pass number on parallel fsck */
108 };
109 #define	MOUNTED		"/etc/mtab"
110 
111 #define	NFS_HDR	"misc-ultrix.h"
112 #define	UFS_HDR	"misc-ultrix.h"
113 
114 #define	nfs_args	nfs_gfs_mount
115 #define	ULTRIX_HACK	/* Should be handled better than this !! */
116 #define	NEED_MNTOPT_PARSER
117 
118 /*
119  * How to get a mount list
120  */
121 #undef	READ_MTAB_FROM_FILE
122 #define	READ_MTAB_ULTRIX_STYLE
123 
124 /*
125  * Need precise length links
126  */
127 #define	PRECISE_SYMLINKS
128