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