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-aux.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-05-12  |  3.5 KB  |  118 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-aux.h    5.3 (Berkeley) 5/12/91
  39.  *
  40.  * $Id: os-aux.h,v 5.2.1.2 91/05/07 22:19:31 jsp Alpha $
  41.  *
  42.  * A/UX macII definitions for Amd (automounter)
  43.  * Contributed by Julian Onions <jpo@cs.nott.ac.uk>
  44.  */
  45.  
  46. /*
  47.  * Does the compiler grok void *
  48.  */
  49. #define    VOIDP
  50.  
  51. /*
  52.  * Which version of the Sun RPC library we are using
  53.  * This is the implementation release number, not
  54.  * the protocol revision number.
  55.  */
  56. #define    RPC_3
  57.  
  58. /*
  59.  * Which version of the NFS interface are we using.
  60.  * This is the implementation release number, not
  61.  * the protocol revision number.
  62.  */
  63. #define    NFS_3
  64.  
  65. /*
  66.  * Byte ordering
  67.  */
  68. #undef ARCH_ENDIAN
  69. #define    ARCH_ENDIAN    "big"
  70.  
  71. /*
  72.  * No support for ndbm
  73.  */
  74. #undef OS_HAS_NDBM
  75.  
  76. /*
  77.  * Name of filesystem types
  78.  */
  79. #define    MOUNT_TYPE_UFS    MOUNT_UFS
  80. #define MOUNT_TYPE_NFS MOUNT_NFS
  81.  
  82. #undef MTAB_TYPE_UFS
  83. #define    MTAB_TYPE_UFS    "5.2"
  84.  
  85. #define SIGCHLD    SIGCLD
  86. #define    SYS5_SIGNALS
  87.  
  88. /*
  89.  * Use <fcntl.h> rather than <sys/file.h>
  90.  */
  91. #define USE_FCNTL
  92.  
  93. /*
  94.  * Use fcntl() rather than flock()
  95.  */
  96. #define LOCK_FCNTL
  97.  
  98. #ifdef __GNUC__
  99. #define alloca(sz) __builtin_alloca(sz)
  100. #endif
  101.  
  102. #define    bzero(ptr, len)    memset(ptr, 0, len)
  103. #define bcopy(from, to, len) memcpy(to, from, len)
  104. #define getpagesize() (2048)
  105. #undef MOUNT_TRAP
  106. #define MOUNT_TRAP(type, mnt, flags, mnt_data) \
  107.     fsmount(type, mnt->mnt_dir, flags, mnt_data)
  108. #undef UNMOUNT_TRAP
  109. #define    UNMOUNT_TRAP(mnt)    unmount(mnt->mnt_dir)
  110. #define NFDS    30    /* conservative */
  111.  
  112. /* not included in sys/param.h */
  113. #include <sys/types.h>
  114. /* not part of sys/time.h */
  115. #include <time.h>
  116. /* for NMOUNT */
  117. #include <sys/config.h>
  118.