1 /*
2  * Copyright (c) 1989 Jan-Simon Pendry
3  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
4  * Copyright (c) 1989, 1993
5  *	The Regents of the University of California.  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-xinu43.h	8.1 (Berkeley) 06/06/93
13  *
14  * $Id: os-xinu43.h,v 5.2.2.1 1992/02/09 15:10:58 jsp beta $
15  *
16  * mt Xinu 4.3 (MORE/bsd) definitions for Amd (automounter)
17  * Should work on both Vax and HP ...
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