| 1 | /* $Id: os-u3_0.h,v 5.2 90/06/23 22:20:58 jsp Rel $ */ |
| 2 | |
| 3 | /* |
| 4 | * Ultrix 3.0 definitions for Amd (automounter) |
| 5 | * |
| 6 | * Copyright (c) 1989 Jan-Simon Pendry |
| 7 | * Copyright (c) 1989 Imperial College of Science, Technology & Medicine |
| 8 | * Copyright (c) 1989 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 | * |
| 16 | * @(#)os-u3_0.h 5.1 (Berkeley) %G% |
| 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 MISC_RPC |
| 113 | |
| 114 | #define nfs_args nfs_gfs_mount |
| 115 | #define ULTRIX_HACK /* Should be handled better than this !! */ |
| 116 | #define NEED_MNTOPT_PARSER |
| 117 | |
| 118 | /* |
| 119 | * How to get a mount list |
| 120 | */ |
| 121 | #undef READ_MTAB_FROM_FILE |
| 122 | #define READ_MTAB_ULTRIX_STYLE |
| 123 | |
| 124 | /* |
| 125 | * Need precise length links |
| 126 | */ |
| 127 | #define PRECISE_SYMLINKS |