1 /* $Id: os-sos4.h,v 5.2 90/06/23 22:20:52 jsp Rel $ */ 2 3 /* 4 * SunOS 4.0 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 * %sccs.include.redist.c% 15 * 16 * @(#)os-sos4.h 5.1 (Berkeley) 06/29/90 17 */ 18 19 /* 20 * Does the compiler grok void * 21 */ 22 #define VOIDP 23 24 /* 25 * What type is free(void*) returning? 26 */ 27 #undef FREE_RETURN_TYPE 28 #define FREE_RETURN_TYPE int 29 30 /* 31 * Which version of the Sun RPC library we are using 32 * This is the implementation release number, not 33 * the protocol revision number. 34 */ 35 #define RPC_4 36 37 /* 38 * Which version of the NFS interface are we using. 39 * This is the implementation release number, not 40 * the protocol revision number. 41 */ 42 #define NFS_4 43 44 /* 45 * Does this OS have NDBM support? 46 */ 47 #define OS_HAS_NDBM 48 49 /* 50 * Byte ordering 51 */ 52 #undef ARCH_ENDIAN 53 #if defined(mc68010) || defined(mc68020) || defined(sparc) 54 #define ARCH_ENDIAN "big" 55 #endif 56 #if defined(i386) 57 #define ARCH_ENDIAN "little" 58 #endif 59 60 /* 61 * Name of filesystem types 62 */ 63 #define MOUNT_TYPE_NFS "nfs" 64 #define MOUNT_TYPE_UFS "4.2" 65 66 /* 67 * Type of a file handle 68 */ 69 #undef NFS_FH_TYPE 70 #define NFS_FH_TYPE caddr_t 71 72 /* 73 * Type of filesystem type 74 */ 75 #undef MTYPE_TYPE 76 #define MTYPE_TYPE char * 77 78 /* 79 * Add support for SunOS 4 automounter files 80 */ 81 #define SUNOS4_COMPAT 82