home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume21 / amd / part02 / os-hpux.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-04-10  |  2.8 KB  |  124 lines

  1. /* $Id: os-hpux.h,v 5.1.1.1 89/11/28 18:04:01 jsp Exp Locker: jsp $ */
  2.  
  3. /*
  4.  * HP/9000 HP-UX 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
  15.  * provided that the above copyright notice and this paragraph are
  16.  * duplicated in all such forms and that any documentation,
  17.  * advertising materials, and other materials related to such
  18.  * distribution and use acknowledge that the software was developed
  19.  * by Imperial College of Science, Technology and Medicine, London, UK.
  20.  * The names of the College and University may not be used to endorse
  21.  * or promote products derived from this software without specific
  22.  * prior written permission.
  23.  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  24.  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  25.  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  26.  *
  27.  *    %W% (Berkeley) %G%
  28.  */
  29.  
  30. /*
  31.  * Does the compiler grok void *
  32.  */
  33. #ifdef __GNUC__
  34. #define    VOIDP
  35. #endif
  36.  
  37. /*
  38.  * Which version of the Sun RPC library we are using
  39.  * This is the implementation release number, not
  40.  * the protocol revision number.
  41.  */
  42. #define    RPC_3
  43.  
  44. /*
  45.  * Which version of the NFS interface are we using.
  46.  * This is the implementation release number, not
  47.  * the protocol revision number.
  48.  */
  49. #define    NFS_3
  50.  
  51. /*
  52.  * Byte ordering
  53.  */
  54. #undef ARCH_ENDIAN
  55. #if defined(hp9000s200) || defined(hp9000s300)
  56. #define    ARCH_ENDIAN    "big"
  57. #endif
  58. /*
  59. #if defined(hp9000s800)
  60. #define ARCH_ENDIAN    "unknown"
  61. #endif
  62. */
  63.  
  64. /*
  65.  * No support for syslog()
  66.  */
  67. #undef HAS_SYSLOG
  68.  
  69. /*
  70.  * No support for ndbm
  71.  */
  72. #undef OS_HAS_NDBM
  73.  
  74. /*
  75.  * Name of filesystem types
  76.  */
  77. #define    MOUNT_TYPE_UFS    MOUNT_UFS
  78. #define MOUNT_TYPE_NFS MOUNT_NFS
  79. #undef MTAB_TYPE_UFS
  80. #define    MTAB_TYPE_UFS    "hfs"
  81.  
  82. /*
  83.  * Where to get NFS definitions
  84.  */
  85. #define    NFS_HDR "hpux.h"
  86.  
  87. /*
  88.  * Where to get union wait
  89.  */
  90. #undef WAIT
  91. #define    WAIT    "uwait.h"
  92. #define SIGCHLD    SIGCLD
  93. #define    SYS5_SIGNALS
  94.  
  95. /*
  96.  * Miscellaneous HP-UX definitions
  97.  */
  98.  
  99. #define    MISC_RPC
  100.  
  101. /*
  102.  * Use <fcntl.h> rather than <sys/file.h>
  103.  */
  104. #define USE_FCNTL
  105.  
  106. /*
  107.  * Use fcntl() rather than flock()
  108.  */
  109. #define LOCK_FCNTL
  110.  
  111. #ifdef __GNUC__
  112. #define alloca(sz) __builtin_alloca(sz)
  113. #endif
  114. #define    bzero(ptr, len)    memset(ptr, 0, len)
  115. #define bcopy(from, to, len) memcpy(to, from, len)
  116. #define getpagesize() (2048)
  117. #undef MOUNT_TRAP
  118. #define MOUNT_TRAP(type, mnt, flags, mnt_data) \
  119.     vfsmount(type, mnt->mnt_dir, flags, mnt_data)
  120. #undef UNMOUNT_TRAP
  121. #define    UNMOUNT_TRAP(mnt)    umount(mnt->mnt_dir)
  122. #define NFDS    30    /* conservative */
  123. #define    MOUNTED MNT_MNTTAB
  124.