xref: /csrg-svn/usr.sbin/amd/config/os-u3_0.h (revision 61789)
144630Smckusick /*
244630Smckusick  * Copyright (c) 1989 Jan-Simon Pendry
344630Smckusick  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
4*61789Sbostic  * Copyright (c) 1989, 1993
5*61789Sbostic  *	The Regents of the University of California.  All rights reserved.
644630Smckusick  *
744630Smckusick  * This code is derived from software contributed to Berkeley by
844630Smckusick  * Jan-Simon Pendry at Imperial College, London.
944630Smckusick  *
1044630Smckusick  * %sccs.include.redist.c%
1144630Smckusick  *
12*61789Sbostic  *	@(#)os-u3_0.h	8.1 (Berkeley) 06/06/93
1349685Spendry  *
1452452Spendry  * $Id: os-u3_0.h,v 5.2.2.1 1992/02/09 15:10:52 jsp beta $
1549685Spendry  *
1649685Spendry  * Ultrix 3.0 definitions for Amd (automounter)
1744630Smckusick  */
1844630Smckusick 
1944630Smckusick /*
2044630Smckusick  * Does the compiler grok void *
2144630Smckusick  */
2244630Smckusick #undef	VOIDP
2344630Smckusick 
2444630Smckusick /*
2544630Smckusick  * Which version of the Sun RPC library we are using
2644630Smckusick  * This is the implementation release number, not
2744630Smckusick  * the protocol revision number.
2844630Smckusick  */
2944630Smckusick #define	RPC_3
3044630Smckusick 
3144630Smckusick /*
3244630Smckusick  * Which version of the NFS interface are we using.
3344630Smckusick  * This is the implementation release number, not
3444630Smckusick  * the protocol revision number.
3544630Smckusick  */
3644630Smckusick #define	NFS_3
3744630Smckusick 
3844630Smckusick /*
3944630Smckusick  * Byte ordering
4044630Smckusick  */
4144630Smckusick #undef ARCH_ENDIAN
4244630Smckusick #if defined(vax) || defined(mips)
4344630Smckusick #define	ARCH_ENDIAN "little"
4444630Smckusick #endif
4544630Smckusick 
4644630Smckusick /*
4744630Smckusick  * The mount table is obtained from the kernel
4844630Smckusick  */
4944630Smckusick #undef	UPDATE_MTAB
5044630Smckusick 
5144630Smckusick /*
5244630Smckusick  * No mntent info on Ultrix
5344630Smckusick   */
5444630Smckusick #undef	MNTENT_HDR
5544630Smckusick 
5644630Smckusick /*
5744630Smckusick  * No support for syslog()
5844630Smckusick  */
5944630Smckusick #undef	HAS_SYSLOG
6044630Smckusick 
6144630Smckusick /*
6244630Smckusick  * Name of filesystem types
6344630Smckusick  */
6444630Smckusick #define	MOUNT_TYPE_NFS	GT_NFS
6544630Smckusick #define	MOUNT_TYPE_UFS	GT_ULTRIX
6644630Smckusick #undef	MTAB_TYPE_UFS
6744630Smckusick #define	MTAB_TYPE_UFS	"ufs"
6844630Smckusick 
6944630Smckusick /*
7044630Smckusick  * Name of mount & unmount system calls
7144630Smckusick  */
7244630Smckusick #undef	MOUNT_TRAP
7344630Smckusick #define	MOUNT_TRAP(type, mnt, flag, mnt_data) \
7444630Smckusick 	mount(mnt->mnt_fsname, mnt->mnt_dir, flag, type, mnt_data)
7544630Smckusick #undef	UNMOUNT_TRAP
7644630Smckusick #define	UNMOUNT_TRAP(mnt)	umount(mnt->mnt_passno)
7744630Smckusick 
7844630Smckusick /*
7944630Smckusick  * Miscellaneous Ultrix bits
8044630Smckusick  */
8144630Smckusick #define	M_RDONLY	M_RONLY
8244630Smckusick 
8344630Smckusick #define	MNTMAXSTR	128
8444630Smckusick 
8544630Smckusick #define	MNTTYPE_UFS	"ufs"		/* Un*x file system */
8644630Smckusick #define	MNTTYPE_NFS	"nfs"		/* network file system */
8744630Smckusick #define	MNTTYPE_IGNORE	"ignore"	/* No type specified, ignore this entry */
8844630Smckusick 
8944630Smckusick #define	MNTOPT_RO	"ro"		/* read only */
9044630Smckusick #define	MNTOPT_RW	"rw"		/* read/write */
9144630Smckusick #define	MNTOPT_QUOTA	"quota"		/* quotas */
9244630Smckusick #define	MNTOPT_NOQUOTA	"noquota"	/* no quotas */
9344630Smckusick #define	MNTOPT_HARD	"hard"		/* hard mount */
9444630Smckusick #define	MNTOPT_SOFT	"soft"		/* soft mount */
9544630Smckusick #define	MNTOPT_INTR	"intr"		/* interrupts allowed */
9644630Smckusick 
9744630Smckusick #define	MNTOPT_NOSUID	"nosuid"	/* no set uid allowed */
9844630Smckusick 
9944630Smckusick struct mntent {
10044630Smckusick 	char	*mnt_fsname;	/* name of mounted file system */
10144630Smckusick 	char	*mnt_dir;	/* file system path prefix */
10244630Smckusick 	char	*mnt_type;	/* MNTTYPE_* */
10344630Smckusick 	char	*mnt_opts;	/* MNTOPT* */
10444630Smckusick 	int	mnt_freq;	/* dump frequency, in days */
10544630Smckusick 	int	mnt_passno;	/* pass number on parallel fsck */
10644630Smckusick };
10744630Smckusick #define	MOUNTED		"/etc/mtab"
10844630Smckusick 
10944630Smckusick #define	NFS_HDR	"misc-ultrix.h"
11044630Smckusick #define	UFS_HDR	"misc-ultrix.h"
11144630Smckusick 
11247534Spendry #define NEED_XDR_POINTER
11347534Spendry #define	NEED_CLNT_SPERRNO
11444630Smckusick 
11544630Smckusick #define	nfs_args	nfs_gfs_mount
11644630Smckusick #define	ULTRIX_HACK	/* Should be handled better than this !! */
11744630Smckusick #define	NEED_MNTOPT_PARSER
11844630Smckusick 
11944630Smckusick /*
12044630Smckusick  * How to get a mount list
12144630Smckusick  */
12244630Smckusick #undef	READ_MTAB_FROM_FILE
12344630Smckusick #define	READ_MTAB_ULTRIX_STYLE
12444630Smckusick 
12544630Smckusick /*
12644630Smckusick  * Need precise length links
12744630Smckusick  */
12844630Smckusick #define	PRECISE_SYMLINKS
129