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 * %sccs.include.redist.c% 11 * 12 * @(#)os-aux.h 5.4 (Berkeley) 02/09/92 13 * 14 * $Id: os-aux.h,v 5.2.2.1 1992/02/09 15:10:10 jsp beta $ 15 * 16 * A/UX macII definitions for Amd (automounter) 17 * Contributed by Julian Onions <jpo@cs.nott.ac.uk> 18 */ 19 20 /* 21 * Does the compiler grok void * 22 */ 23 #define VOIDP 24 25 /* 26 * Which version of the Sun RPC library we are using 27 * This is the implementation release number, not 28 * the protocol revision number. 29 */ 30 #define RPC_3 31 32 /* 33 * Which version of the NFS interface are we using. 34 * This is the implementation release number, not 35 * the protocol revision number. 36 */ 37 #define NFS_3 38 39 /* 40 * Byte ordering 41 */ 42 #undef ARCH_ENDIAN 43 #define ARCH_ENDIAN "big" 44 45 /* 46 * No support for ndbm 47 */ 48 #undef OS_HAS_NDBM 49 50 /* 51 * Name of filesystem types 52 */ 53 #define MOUNT_TYPE_UFS MOUNT_UFS 54 #define MOUNT_TYPE_NFS MOUNT_NFS 55 56 #undef MTAB_TYPE_UFS 57 #define MTAB_TYPE_UFS "5.2" 58 59 #define SIGCHLD SIGCLD 60 #define SYS5_SIGNALS 61 62 /* 63 * Use <fcntl.h> rather than <sys/file.h> 64 */ 65 #define USE_FCNTL 66 67 /* 68 * Use fcntl() rather than flock() 69 */ 70 #define LOCK_FCNTL 71 72 #ifdef __GNUC__ 73 #define alloca(sz) __builtin_alloca(sz) 74 #endif 75 76 #define bzero(ptr, len) memset(ptr, 0, len) 77 #define bcopy(from, to, len) memcpy(to, from, len) 78 #define getpagesize() (2048) 79 #undef MOUNT_TRAP 80 #define MOUNT_TRAP(type, mnt, flags, mnt_data) \ 81 fsmount(type, mnt->mnt_dir, flags, mnt_data) 82 #undef UNMOUNT_TRAP 83 #define UNMOUNT_TRAP(mnt) unmount(mnt->mnt_dir) 84 #define NFDS 30 /* conservative */ 85 86 /* not included in sys/param.h */ 87 #include <sys/types.h> 88 /* not part of sys/time.h */ 89 #include <time.h> 90 /* for NMOUNT */ 91 #include <sys/config.h> 92