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-xinu43.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-05-12  |  3.5 KB  |  113 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-xinu43.h    5.3 (Berkeley) 5/12/91
  39.  *
  40.  * $Id: os-xinu43.h,v 5.2.1.3 91/05/07 22:20:07 jsp Alpha $
  41.  *
  42.  * mt Xinu 4.3 (MORE/bsd) definitions for Amd (automounter)
  43.  * Should work on both Vax and HP ...
  44.  */
  45.  
  46. /*
  47.  * Does the compiler grok void *
  48.  */
  49. #ifdef __GNUC__
  50. #define    VOIDP
  51. #endif
  52.  
  53. /*
  54.  * Which version of the Sun RPC library we are using
  55.  * This is the implementation release number, not
  56.  * the protocol revision number.
  57.  */
  58. #define    RPC_4
  59.  
  60. /*
  61.  * mt Xinu have a compatibility problem
  62.  * with getreq vs. getreqset.  On SunOS
  63.  * getreqset takes a pointer to an fd_set,
  64.  * whereas on MORE/bsd, getreq takes a
  65.  * fd_set directly (cf. an integer on SunOS).
  66.  */
  67. #define    svc_getreqset(p)    svc_getreq(*p)
  68.  
  69. /*
  70.  * Which version of the NFS interface are we using.
  71.  * This is the implementation release number, not
  72.  * the protocol revision number.
  73.  */
  74. #define    NFS_4
  75.  
  76. /*
  77.  * Name of filesystem types
  78.  */
  79. #define    MOUNT_TYPE_NFS    "nfs"
  80. #define    MOUNT_TYPE_UFS    "ufs"
  81. #undef MTAB_TYPE_UFS
  82. #define    MTAB_TYPE_UFS    "ufs"
  83.  
  84. /*
  85.  * Byte ordering
  86.  */
  87. #ifndef BYTE_ORDER
  88. #include <machine/endian.h>
  89. #endif /* BYTE_ORDER */
  90.  
  91. #undef ARCH_ENDIAN
  92. #if BYTE_ORDER == LITTLE_ENDIAN
  93. #define ARCH_ENDIAN "little"
  94. #else
  95. #if BYTE_ORDER == BIG_ENDIAN
  96. #define ARCH_ENDIAN "big"
  97. #else
  98. XXX - Probably no hope of running Amd on this machine!
  99. #endif /* BIG */
  100. #endif /* LITTLE */
  101.  
  102. /*
  103.  * Type of a file handle
  104.  */
  105. #undef NFS_FH_TYPE
  106. #define NFS_FH_TYPE     caddr_t
  107.  
  108. /*
  109.  * Type of filesystem type
  110.  */
  111. #undef MTYPE_TYPE
  112. #define    MTYPE_TYPE    char *
  113.