1*44630Smckusick /* $Id: os-hpux.h,v 5.2 90/06/23 22:20:47 jsp Rel $ */ 2*44630Smckusick 3*44630Smckusick /* 4*44630Smckusick * HP/9000 HP-UX definitions for Amd (automounter) 5*44630Smckusick * 6*44630Smckusick * Copyright (c) 1989 Jan-Simon Pendry 7*44630Smckusick * Copyright (c) 1989 Imperial College of Science, Technology & Medicine 8*44630Smckusick * Copyright (c) 1989 The Regents of the University of California. 9*44630Smckusick * All rights reserved. 10*44630Smckusick * 11*44630Smckusick * This code is derived from software contributed to Berkeley by 12*44630Smckusick * Jan-Simon Pendry at Imperial College, London. 13*44630Smckusick * 14*44630Smckusick * %sccs.include.redist.c% 15*44630Smckusick * 16*44630Smckusick * @(#)os-hpux.h 5.1 (Berkeley) 06/29/90 17*44630Smckusick */ 18*44630Smckusick 19*44630Smckusick /* 20*44630Smckusick * Does the compiler grok void * 21*44630Smckusick */ 22*44630Smckusick #ifdef __GNUC__ 23*44630Smckusick #define VOIDP 24*44630Smckusick #endif 25*44630Smckusick 26*44630Smckusick /* 27*44630Smckusick * Which version of the Sun RPC library we are using 28*44630Smckusick * This is the implementation release number, not 29*44630Smckusick * the protocol revision number. 30*44630Smckusick */ 31*44630Smckusick #define RPC_3 32*44630Smckusick 33*44630Smckusick /* 34*44630Smckusick * Which version of the NFS interface are we using. 35*44630Smckusick * This is the implementation release number, not 36*44630Smckusick * the protocol revision number. 37*44630Smckusick */ 38*44630Smckusick #define NFS_3 39*44630Smckusick 40*44630Smckusick /* 41*44630Smckusick * Byte ordering 42*44630Smckusick */ 43*44630Smckusick #undef ARCH_ENDIAN 44*44630Smckusick #if defined(hp9000s200) || defined(hp9000s300) 45*44630Smckusick #define ARCH_ENDIAN "big" 46*44630Smckusick #endif 47*44630Smckusick /* 48*44630Smckusick #if defined(hp9000s800) 49*44630Smckusick #define ARCH_ENDIAN "unknown" 50*44630Smckusick #endif 51*44630Smckusick */ 52*44630Smckusick 53*44630Smckusick /* 54*44630Smckusick * No support for syslog() 55*44630Smckusick */ 56*44630Smckusick #undef HAS_SYSLOG 57*44630Smckusick 58*44630Smckusick /* 59*44630Smckusick * No support for ndbm 60*44630Smckusick */ 61*44630Smckusick #undef OS_HAS_NDBM 62*44630Smckusick 63*44630Smckusick /* 64*44630Smckusick * Name of filesystem types 65*44630Smckusick */ 66*44630Smckusick #define MOUNT_TYPE_UFS MOUNT_UFS 67*44630Smckusick #define MOUNT_TYPE_NFS MOUNT_NFS 68*44630Smckusick #undef MTAB_TYPE_UFS 69*44630Smckusick #define MTAB_TYPE_UFS "hfs" 70*44630Smckusick 71*44630Smckusick /* 72*44630Smckusick * Where to get NFS definitions 73*44630Smckusick */ 74*44630Smckusick #define NFS_HDR "misc-hpux.h" 75*44630Smckusick 76*44630Smckusick /* 77*44630Smckusick * Where to get union wait 78*44630Smckusick */ 79*44630Smckusick #undef WAIT 80*44630Smckusick #define WAIT "uwait.h" 81*44630Smckusick #ifndef SIGCHLD 82*44630Smckusick #define SIGCHLD SIGCLD 83*44630Smckusick #endif 84*44630Smckusick #define SYS5_SIGNALS 85*44630Smckusick 86*44630Smckusick /* 87*44630Smckusick * Miscellaneous HP-UX definitions 88*44630Smckusick */ 89*44630Smckusick 90*44630Smckusick #define MISC_RPC 91*44630Smckusick 92*44630Smckusick /* 93*44630Smckusick * Use <fcntl.h> rather than <sys/file.h> 94*44630Smckusick */ 95*44630Smckusick #define USE_FCNTL 96*44630Smckusick 97*44630Smckusick /* 98*44630Smckusick * Use fcntl() rather than flock() 99*44630Smckusick */ 100*44630Smckusick #define LOCK_FCNTL 101*44630Smckusick 102*44630Smckusick #ifdef __GNUC__ 103*44630Smckusick #define alloca(sz) __builtin_alloca(sz) 104*44630Smckusick #endif 105*44630Smckusick #define bzero(ptr, len) memset(ptr, 0, len) 106*44630Smckusick #define bcopy(from, to, len) memcpy(to, from, len) 107*44630Smckusick #define getpagesize() (2048) 108*44630Smckusick #undef MOUNT_TRAP 109*44630Smckusick #define MOUNT_TRAP(type, mnt, flags, mnt_data) \ 110*44630Smckusick vfsmount(type, mnt->mnt_dir, flags, mnt_data) 111*44630Smckusick #undef UNMOUNT_TRAP 112*44630Smckusick #define UNMOUNT_TRAP(mnt) umount(mnt->mnt_dir) 113*44630Smckusick #define NFDS 30 /* conservative */ 114*44630Smckusick #define MOUNTED MNT_MNTTAB 115