from amd5.3 alpha11
[unix-history] / usr / src / usr.sbin / amd / config / os-u2_2.h
CommitLineData
2f619045 1/* $Id: os-u2_2.h,v 5.2.1.2 90/11/04 23:17:43 jsp Exp $ */
e1a31032
KM
2
3/*
4 * Ultrix 2.2 definitions for Amd (automounter)
5 *
6 * Copyright (c) 1990 Jan-Simon Pendry
7 * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
8 * Copyright (c) 1990 The Regents of the University of California.
9 * All rights reserved.
10 *
11 * This code is derived from software contributed to Berkeley by
12 * Jan-Simon Pendry at Imperial College, London.
13 *
14 * %sccs.include.redist.c%
15 *
2f619045 16 * @(#)os-u2_2.h 5.2 (Berkeley) %G%
e1a31032
KM
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)
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 * No support for ndbm
63 */
64#undef HAS_NDBM_MAPS
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#ifndef MNTMAXSTR
89#define MNTMAXSTR 128
90#endif
91
92#define MNTTYPE_UFS "ufs" /* Un*x file system */
93#define MNTTYPE_NFS "nfs" /* network file system */
94#define MNTTYPE_IGNORE "ignore" /* No type specified, ignore this entry */
95
96#define MNTOPT_RO "ro" /* read only */
97#define MNTOPT_RW "rw" /* read/write */
98#define MNTOPT_QUOTA "quota" /* quotas */
99#define MNTOPT_NOQUOTA "noquota" /* no quotas */
100#define MNTOPT_HARD "hard" /* hard mount */
101#define MNTOPT_SOFT "soft" /* soft mount */
102#define MNTOPT_INTR "intr" /* interrupts allowed */
103
104#define MNTOPT_NOSUID "nosuid" /* no set uid allowed */
105
106struct mntent {
107 char *mnt_fsname; /* name of mounted file system */
108 char *mnt_dir; /* file system path prefix */
109 char *mnt_type; /* MNTTYPE_* */
110 char *mnt_opts; /* MNTOPT* */
111 int mnt_freq; /* dump frequency, in days */
112 int mnt_passno; /* pass number on parallel fsck */
113};
114#define MOUNTED "/etc/mtab"
115
116#define NFS_HDR "misc-ultrix.h"
117#define UFS_HDR "misc-ultrix.h"
118
2f619045
JSP
119#define NEED_XDR_POINTER
120#define NEED_CLNT_SPERRNO
e1a31032
KM
121
122#define nfs_args nfs_gfs_mount
123#define ULTRIX_HACK /* Should be handled better than this !! */
124#define NEED_MNTOPT_PARSER
125
126/*
127 * How to get a mount list
128 */
129#undef READ_MTAB_FROM_FILE
130#define READ_MTAB_ULTRIX_STYLE
131
132/*
133 * Need precise length links
134 */
135#define PRECISE_SYMLINKS