xref: /original-bsd/usr.sbin/amd/config/os-u4_0.h (revision 6c8be42f)
1 /* $Id: os-u4_0.h,v 5.2 91/03/03 20:22:45 jsp Alpha $ */
2 
3 /*
4  * Ultrix 4.0 definitions for Amd (automounter)
5  *		from Chris Lindblad <cjl@ai.mit.edu>
6  *
7  * Copyright (c) 1989 Jan-Simon Pendry
8  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
9  * Copyright (c) 1989 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-u4_0.h	5.2 (Berkeley) 03/17/91
18  */
19 
20 /*
21  * Does the compiler grok void *
22  */
23 #undef	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 #if defined(vax) || defined(mips)
44 #define	ARCH_ENDIAN "little"
45 #endif
46 
47 /*
48  * The mount table is obtained from the kernel
49  */
50 #undef	UPDATE_MTAB
51 
52 /*
53  * No mntent info on Ultrix
54   */
55 #undef	MNTENT_HDR
56 
57 /*
58  * No support for syslog()
59  */
60 #define	HAS_SYSLOG
61 
62 /*
63  * Name of filesystem types
64  */
65 #define	MOUNT_TYPE_NFS	GT_NFS
66 #define	MOUNT_TYPE_UFS	GT_ULTRIX
67 #undef	MTAB_TYPE_UFS
68 #define	MTAB_TYPE_UFS	"ufs"
69 
70 /*
71  * Name of mount & unmount system calls
72  */
73 #undef	MOUNT_TRAP
74 #define	MOUNT_TRAP(type, mnt, flag, mnt_data) \
75 	mount(mnt->mnt_fsname, mnt->mnt_dir, flag, type, mnt_data)
76 #undef	UNMOUNT_TRAP
77 #define	UNMOUNT_TRAP(mnt)	umount(mnt->mnt_passno)
78 
79 /*
80  * Miscellaneous Ultrix bits
81  */
82 #define	M_RDONLY	M_RONLY
83 
84 #define	MNTMAXSTR	128
85 
86 #define	MNTTYPE_UFS	"ufs"		/* Un*x file system */
87 #define	MNTTYPE_NFS	"nfs"		/* network file system */
88 #define	MNTTYPE_IGNORE	"ignore"	/* No type specified, ignore this entry */
89 
90 #define	MNTOPT_RO	"ro"		/* read only */
91 #define	MNTOPT_RW	"rw"		/* read/write */
92 #define	MNTOPT_QUOTA	"quota"		/* quotas */
93 #define	MNTOPT_NOQUOTA	"noquota"	/* no quotas */
94 #define	MNTOPT_HARD	"hard"		/* hard mount */
95 #define	MNTOPT_SOFT	"soft"		/* soft mount */
96 #define	MNTOPT_INTR	"intr"		/* interrupts allowed */
97 
98 #define	MNTOPT_NOSUID	"nosuid"	/* no set uid allowed */
99 
100 struct mntent {
101 	char	*mnt_fsname;	/* name of mounted file system */
102 	char	*mnt_dir;	/* file system path prefix */
103 	char	*mnt_type;	/* MNTTYPE_* */
104 	char	*mnt_opts;	/* MNTOPT* */
105 	int	mnt_freq;	/* dump frequency, in days */
106 	int	mnt_passno;	/* pass number on parallel fsck */
107 };
108 #define	MOUNTED		"/etc/mtab"
109 
110 #define	NFS_HDR	"misc-ultrix.h"
111 #define	UFS_HDR	"misc-ultrix.h"
112 
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