xref: /original-bsd/usr.sbin/amd/config/os-aux.h (revision 4da674f5)
1 /* $Id: os-aux.h,v 5.2.1.1 90/10/21 22:30:42 jsp Exp $ */
2 
3 /*
4  * A/UX macII definitions for Amd (automounter)
5  * Contributed by Julian Onions <jpo@cs.nott.ac.uk>
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-aux.h	5.2 (Berkeley) 03/17/91
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