1 /* $Id: os-xinu43.h,v 5.2.1.2 90/11/04 23:17:45 jsp Exp $ */ 2 3 /* 4 * mt Xinu 4.3 (MORE/bsd) definitions for Amd (automounter) 5 * Should work on both Vax and HP ... 6 * 7 * Copyright (c) 1989 Jan-Simon Pendry 8 * Copyright (c) 1989 Imperial College of Science, Technology & Medicine 9 * Copyright (c) 1989 The Regents of the University of California. 10 * All rights reserved. 11 * 12 * This code is derived from software contributed to Berkeley by 13 * Jan-Simon Pendry at Imperial College, London. 14 * 15 * %sccs.include.redist.c% 16 * 17 * @(#)os-xinu43.h 5.2 (Berkeley) 03/17/91 18 */ 19 20 /* 21 * Does the compiler grok void * 22 */ 23 #ifdef __GNUC__ 24 #define VOIDP 25 #endif 26 27 /* 28 * Which version of the Sun RPC library we are using 29 * This is the implementation release number, not 30 * the protocol revision number. 31 */ 32 #define RPC_4 33 34 /* 35 * mt Xinu have a compatibility problem 36 * with getreq vs. getreqset. On SunOS 37 * getreqset takes a pointer to an fd_set, 38 * whereas on MORE/bsd, getreq takes a 39 * fd_set directly (cf. an integer on SunOS). 40 */ 41 #define svc_getreqset(p) svc_getreq(*p) 42 43 /* 44 * Which version of the NFS interface are we using. 45 * This is the implementation release number, not 46 * the protocol revision number. 47 */ 48 #define NFS_4 49 50 /* 51 * Name of filesystem types 52 */ 53 #define MOUNT_TYPE_NFS "nfs" 54 #define MOUNT_TYPE_UFS "ufs" 55 #undef MTAB_TYPE_UFS 56 #define MTAB_TYPE_UFS "ufs" 57 58 /* 59 * Byte ordering 60 */ 61 #ifndef BYTE_ORDER 62 #include <machine/endian.h> 63 #endif /* BYTE_ORDER */ 64 65 #undef ARCH_ENDIAN 66 #if BYTE_ORDER == LITTLE_ENDIAN 67 #define ARCH_ENDIAN "little" 68 #else 69 #if BYTE_ORDER == BIG_ENDIAN 70 #define ARCH_ENDIAN "big" 71 #else 72 XXX - Probably no hope of running Amd on this machine! 73 #endif /* BIG */ 74 #endif /* LITTLE */ 75 76 /* 77 * Type of a file handle 78 */ 79 #undef NFS_FH_TYPE 80 #define NFS_FH_TYPE caddr_t 81 82 /* 83 * Type of filesystem type 84 */ 85 #undef MTYPE_TYPE 86 #define MTYPE_TYPE char * 87