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