home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / bsd_srcs / usr.sbin / amd / config / os-defaults.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-05-12  |  4.0 KB  |  144 lines

  1. /*
  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.  *
  10.  * Redistribution and use in source and binary forms, with or without
  11.  * modification, are permitted provided that the following conditions
  12.  * are met:
  13.  * 1. Redistributions of source code must retain the above copyright
  14.  *    notice, this list of conditions and the following disclaimer.
  15.  * 2. Redistributions in binary form must reproduce the above copyright
  16.  *    notice, this list of conditions and the following disclaimer in the
  17.  *    documentation and/or other materials provided with the distribution.
  18.  * 3. All advertising materials mentioning features or use of this software
  19.  *    must display the following acknowledgement:
  20.  *    This product includes software developed by the University of
  21.  *    California, Berkeley and its contributors.
  22.  * 4. Neither the name of the University nor the names of its contributors
  23.  *    may be used to endorse or promote products derived from this software
  24.  *    without specific prior written permission.
  25.  *
  26.  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  27.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  28.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  29.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  30.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  31.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  32.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  33.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  34.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  35.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  36.  * SUCH DAMAGE.
  37.  *
  38.  *    @(#)os-defaults.h    5.3 (Berkeley) 5/12/91
  39.  *
  40.  * $Id: os-defaults.h,v 5.2.1.4 91/05/07 22:19:38 jsp Alpha $
  41.  *
  42.  * Common OS definitions.  These may be overridden in
  43.  * the OS specific files ("os-foo.h").
  44.  */
  45.  
  46. /*
  47.  * What level of AMD are we backward compatible with?
  48.  * This only applies to externally visible characteristics.
  49.  * Rev.Minor.Branch.Patch (2 digits each)
  50.  */
  51. #define    AMD_COMPAT    5000000        /* 5.0 */
  52.  
  53. /*
  54.  * What type is free(void*) returning?
  55.  */
  56. #define FREE_RETURN_TYPE    void
  57.  
  58. /*
  59.  * Is the mount table mirrored in software
  60.  */
  61. #define    UPDATE_MTAB
  62.  
  63. /*
  64.  * Where to get union wait
  65.  */
  66. #define    WAIT    <sys/wait.h>
  67.  
  68. /*
  69.  * Where to get mount entry info
  70.  */
  71. #define    MNTENT_HDR    <mntent.h>
  72.  
  73. /*
  74.  * Include support for syslog()
  75.  */
  76. #define    HAS_SYSLOG
  77.  
  78. /*
  79.  * Byte ordering
  80.  */
  81. #define    ARCH_ENDIAN    "unknown"
  82.  
  83. /*
  84.  * Name of filesystem types
  85.  */
  86. #define    MTAB_TYPE_NFS    "nfs"
  87. #define    MTAB_TYPE_UFS    "4.2"
  88.  
  89. /*
  90.  * Name of mount & unmount system calls
  91.  *
  92.  * NOTE:
  93.  *  UNMOUNT_TRAP takes a struct mntent *
  94.  */
  95. #define    MOUNT_TRAP(type, mnt, flags, mnt_data) \
  96.     mount(type, mnt->mnt_dir, flags, mnt_data)
  97. #define    UNMOUNT_TRAP(mnt)    unmount(mnt->mnt_dir)
  98.  
  99. /*
  100.  * How to unmount filesystems.
  101.  * NEED_UMOUNT_FS includes code to scan the mount table
  102.  * to find the correct information for the unmount system
  103.  * call.  Some systems, such as 4.4bsd, do not require
  104.  * this - they can just do an unmount system call directly.
  105.  */
  106. #define    NEED_UMOUNT_FS
  107. #define    UMOUNT_FS(dir)    umount_fs(dir)
  108.  
  109. /*
  110.  * Type of a file handle
  111.  */
  112. #define    NFS_FH_TYPE    fhandle_t *
  113. #define    NFS_FH_DREF(dst, src) { (dst) = (src); }
  114.  
  115. /*
  116.  * How to copy an address into an NFS filehandle
  117.  */
  118. #define    NFS_SA_DREF(dst, src) { (dst).addr = (src); }
  119.  
  120. /*
  121.  * Type of filesystem type
  122.  */
  123. #define    MTYPE_TYPE    int
  124.  
  125. /*
  126.  * How to get a mount list
  127.  */
  128. #define    READ_MTAB_FROM_FILE
  129.  
  130. /*
  131.  * Make Amd automount points appear
  132.  * to be zero sized.  undef this
  133.  * if the O/S has a divide by zero
  134.  * problem in df et al.
  135.  */
  136. #define    HAS_EMPTY_AUTOMOUNTS
  137.  
  138. /*
  139.  * For the RE matcher
  140.  */
  141. #define    CHARBITS 0377
  142. #define STRCSPN
  143. #define RE_HDR "re.h"
  144.