xref: /original-bsd/usr.sbin/amd/config/os-u3_0.h (revision 34cc5a85)
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-u3_0.h	8.1 (Berkeley) 06/06/93
13  *
14  * $Id: os-u3_0.h,v 5.2.2.1 1992/02/09 15:10:52 jsp beta $
15  *
16  * Ultrix 3.0 definitions for Amd (automounter)
17  */
18 
19 /*
20  * Does the compiler grok void *
21  */
22 #undef	VOIDP
23 
24 /*
25  * Which version of the Sun RPC library we are using
26  * This is the implementation release number, not
27  * the protocol revision number.
28  */
29 #define	RPC_3
30 
31 /*
32  * Which version of the NFS interface are we using.
33  * This is the implementation release number, not
34  * the protocol revision number.
35  */
36 #define	NFS_3
37 
38 /*
39  * Byte ordering
40  */
41 #undef ARCH_ENDIAN
42 #if defined(vax) || defined(mips)
43 #define	ARCH_ENDIAN "little"
44 #endif
45 
46 /*
47  * The mount table is obtained from the kernel
48  */
49 #undef	UPDATE_MTAB
50 
51 /*
52  * No mntent info on Ultrix
53   */
54 #undef	MNTENT_HDR
55 
56 /*
57  * No support for syslog()
58  */
59 #undef	HAS_SYSLOG
60 
61 /*
62  * Name of filesystem types
63  */
64 #define	MOUNT_TYPE_NFS	GT_NFS
65 #define	MOUNT_TYPE_UFS	GT_ULTRIX
66 #undef	MTAB_TYPE_UFS
67 #define	MTAB_TYPE_UFS	"ufs"
68 
69 /*
70  * Name of mount & unmount system calls
71  */
72 #undef	MOUNT_TRAP
73 #define	MOUNT_TRAP(type, mnt, flag, mnt_data) \
74 	mount(mnt->mnt_fsname, mnt->mnt_dir, flag, type, mnt_data)
75 #undef	UNMOUNT_TRAP
76 #define	UNMOUNT_TRAP(mnt)	umount(mnt->mnt_passno)
77 
78 /*
79  * Miscellaneous Ultrix bits
80  */
81 #define	M_RDONLY	M_RONLY
82 
83 #define	MNTMAXSTR	128
84 
85 #define	MNTTYPE_UFS	"ufs"		/* Un*x file system */
86 #define	MNTTYPE_NFS	"nfs"		/* network file system */
87 #define	MNTTYPE_IGNORE	"ignore"	/* No type specified, ignore this entry */
88 
89 #define	MNTOPT_RO	"ro"		/* read only */
90 #define	MNTOPT_RW	"rw"		/* read/write */
91 #define	MNTOPT_QUOTA	"quota"		/* quotas */
92 #define	MNTOPT_NOQUOTA	"noquota"	/* no quotas */
93 #define	MNTOPT_HARD	"hard"		/* hard mount */
94 #define	MNTOPT_SOFT	"soft"		/* soft mount */
95 #define	MNTOPT_INTR	"intr"		/* interrupts allowed */
96 
97 #define	MNTOPT_NOSUID	"nosuid"	/* no set uid allowed */
98 
99 struct mntent {
100 	char	*mnt_fsname;	/* name of mounted file system */
101 	char	*mnt_dir;	/* file system path prefix */
102 	char	*mnt_type;	/* MNTTYPE_* */
103 	char	*mnt_opts;	/* MNTOPT* */
104 	int	mnt_freq;	/* dump frequency, in days */
105 	int	mnt_passno;	/* pass number on parallel fsck */
106 };
107 #define	MOUNTED		"/etc/mtab"
108 
109 #define	NFS_HDR	"misc-ultrix.h"
110 #define	UFS_HDR	"misc-ultrix.h"
111 
112 #define NEED_XDR_POINTER
113 #define	NEED_CLNT_SPERRNO
114 
115 #define	nfs_args	nfs_gfs_mount
116 #define	ULTRIX_HACK	/* Should be handled better than this !! */
117 #define	NEED_MNTOPT_PARSER
118 
119 /*
120  * How to get a mount list
121  */
122 #undef	READ_MTAB_FROM_FILE
123 #define	READ_MTAB_ULTRIX_STYLE
124 
125 /*
126  * Need precise length links
127  */
128 #define	PRECISE_SYMLINKS
129