Annotation of 43BSDReno/usr.sbin/amd/config/os-u3_0.h, revision 1.1.1.1

1.1       root        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:  * Redistribution and use in source and binary forms are permitted provided
                     15:  * that: (1) source distributions retain this entire copyright notice and
                     16:  * comment, and (2) distributions including binaries display the following
                     17:  * acknowledgement:  ``This product includes software developed by the
                     18:  * University of California, Berkeley and its contributors'' in the
                     19:  * documentation or other materials provided with the distribution and in
                     20:  * all advertising materials mentioning features or use of this software.
                     21:  * Neither the name of the University nor the names of its contributors may
                     22:  * be used to endorse or promote products derived from this software without
                     23:  * specific prior written permission.
                     24:  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
                     25:  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
                     26:  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
                     27:  *
                     28:  *     @(#)os-u3_0.h   5.1 (Berkeley) 6/29/90
                     29:  */
                     30: 
                     31: /*
                     32:  * Does the compiler grok void *
                     33:  */
                     34: #undef VOIDP
                     35: 
                     36: /*
                     37:  * Which version of the Sun RPC library we are using
                     38:  * This is the implementation release number, not
                     39:  * the protocol revision number.
                     40:  */
                     41: #define        RPC_3
                     42: 
                     43: /*
                     44:  * Which version of the NFS interface are we using.
                     45:  * This is the implementation release number, not
                     46:  * the protocol revision number.
                     47:  */
                     48: #define        NFS_3
                     49: 
                     50: /*
                     51:  * Byte ordering
                     52:  */
                     53: #undef ARCH_ENDIAN
                     54: #if defined(vax) || defined(mips)
                     55: #define        ARCH_ENDIAN "little"
                     56: #endif
                     57: 
                     58: /*
                     59:  * The mount table is obtained from the kernel
                     60:  */
                     61: #undef UPDATE_MTAB
                     62: 
                     63: /*
                     64:  * No mntent info on Ultrix
                     65:   */
                     66: #undef MNTENT_HDR
                     67: 
                     68: /*
                     69:  * No support for syslog()
                     70:  */
                     71: #undef HAS_SYSLOG
                     72: 
                     73: /*
                     74:  * Name of filesystem types
                     75:  */
                     76: #define        MOUNT_TYPE_NFS  GT_NFS
                     77: #define        MOUNT_TYPE_UFS  GT_ULTRIX
                     78: #undef MTAB_TYPE_UFS
                     79: #define        MTAB_TYPE_UFS   "ufs"
                     80: 
                     81: /*
                     82:  * Name of mount & unmount system calls
                     83:  */
                     84: #undef MOUNT_TRAP
                     85: #define        MOUNT_TRAP(type, mnt, flag, mnt_data) \
                     86:        mount(mnt->mnt_fsname, mnt->mnt_dir, flag, type, mnt_data)
                     87: #undef UNMOUNT_TRAP
                     88: #define        UNMOUNT_TRAP(mnt)       umount(mnt->mnt_passno)
                     89: 
                     90: /*
                     91:  * Miscellaneous Ultrix bits
                     92:  */
                     93: #define        M_RDONLY        M_RONLY
                     94: 
                     95: #define        MNTMAXSTR       128
                     96: 
                     97: #define        MNTTYPE_UFS     "ufs"           /* Un*x file system */
                     98: #define        MNTTYPE_NFS     "nfs"           /* network file system */
                     99: #define        MNTTYPE_IGNORE  "ignore"        /* No type specified, ignore this entry */
                    100: 
                    101: #define        MNTOPT_RO       "ro"            /* read only */
                    102: #define        MNTOPT_RW       "rw"            /* read/write */
                    103: #define        MNTOPT_QUOTA    "quota"         /* quotas */
                    104: #define        MNTOPT_NOQUOTA  "noquota"       /* no quotas */
                    105: #define        MNTOPT_HARD     "hard"          /* hard mount */
                    106: #define        MNTOPT_SOFT     "soft"          /* soft mount */
                    107: #define        MNTOPT_INTR     "intr"          /* interrupts allowed */
                    108: 
                    109: #define        MNTOPT_NOSUID   "nosuid"        /* no set uid allowed */
                    110: 
                    111: struct mntent {
                    112:        char    *mnt_fsname;    /* name of mounted file system */
                    113:        char    *mnt_dir;       /* file system path prefix */
                    114:        char    *mnt_type;      /* MNTTYPE_* */
                    115:        char    *mnt_opts;      /* MNTOPT* */
                    116:        int     mnt_freq;       /* dump frequency, in days */
                    117:        int     mnt_passno;     /* pass number on parallel fsck */
                    118: };
                    119: #define        MOUNTED         "/etc/mtab"
                    120: 
                    121: #define        NFS_HDR "misc-ultrix.h"
                    122: #define        UFS_HDR "misc-ultrix.h"
                    123: 
                    124: #define        MISC_RPC
                    125: 
                    126: #define        nfs_args        nfs_gfs_mount
                    127: #define        ULTRIX_HACK     /* Should be handled better than this !! */
                    128: #define        NEED_MNTOPT_PARSER
                    129: 
                    130: /*
                    131:  * How to get a mount list
                    132:  */
                    133: #undef READ_MTAB_FROM_FILE
                    134: #define        READ_MTAB_ULTRIX_STYLE
                    135: 
                    136: /*
                    137:  * Need precise length links
                    138:  */
                    139: #define        PRECISE_SYMLINKS

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.