xref: /csrg-svn/usr.sbin/amd/config/os-irix.h (revision 47513)
1*47513Spendry /* $Id: os-irix.h,v 5.2.1.2 91/03/03 20:50:27 jsp Alpha $ */
2*47513Spendry 
3*47513Spendry /*
4*47513Spendry  * IRIX 3.3 definitions for Amd (automounter)
5*47513Spendry  * Contributed by Scott R. Presnell <srp@cgl.ucsf.edu>
6*47513Spendry  *
7*47513Spendry  * Copyright (c) 1990 Jan-Simon Pendry
8*47513Spendry  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
9*47513Spendry  * Copyright (c) 1990 The Regents of the University of California.
10*47513Spendry  * All rights reserved.
11*47513Spendry  *
12*47513Spendry  * This code is derived from software contributed to Berkeley by
13*47513Spendry  * Jan-Simon Pendry at Imperial College, London.
14*47513Spendry  *
15*47513Spendry  * Redistribution and use in source and binary forms are permitted
16*47513Spendry  * provided that the above copyright notice and this paragraph are
17*47513Spendry  * duplicated in all such forms and that any documentation,
18*47513Spendry  * advertising materials, and other materials related to such
19*47513Spendry  * distribution and use acknowledge that the software was developed
20*47513Spendry  * by Imperial College of Science, Technology and Medicine, London, UK.
21*47513Spendry  * The names of the College and University may not be used to endorse
22*47513Spendry  * or promote products derived from this software without specific
23*47513Spendry  * prior written permission.
24*47513Spendry  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
25*47513Spendry  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
26*47513Spendry  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
27*47513Spendry  *
28*47513Spendry  *	@(#)os-irix.h	5.1 (Berkeley) 03/17/91
29*47513Spendry  */
30*47513Spendry 
31*47513Spendry /*
32*47513Spendry  * Does the compiler grok void *
33*47513Spendry  */
34*47513Spendry #define VOIDP
35*47513Spendry 
36*47513Spendry /*
37*47513Spendry  * Which version of the Sun RPC library we are using
38*47513Spendry  * This is the implementation release number, not
39*47513Spendry  * the protocol revision number.
40*47513Spendry  */
41*47513Spendry #define RPC_3
42*47513Spendry 
43*47513Spendry /*
44*47513Spendry  * Which version of the NFS interface are we using.
45*47513Spendry  * This is the implementation release number, not
46*47513Spendry  * the protocol revision number.
47*47513Spendry  */
48*47513Spendry #define NFS_3
49*47513Spendry 
50*47513Spendry /*
51*47513Spendry  * Byte ordering
52*47513Spendry  */
53*47513Spendry #undef ARCH_ENDIAN
54*47513Spendry #define ARCH_ENDIAN	"big"
55*47513Spendry 
56*47513Spendry /*
57*47513Spendry  * Has support for syslog()
58*47513Spendry  */
59*47513Spendry #define HAS_SYSLOG
60*47513Spendry 
61*47513Spendry #define M_GRPID		MS_GRPID
62*47513Spendry #define M_RDONLY	MS_RDONLY
63*47513Spendry /*
64*47513Spendry  * Support for ndbm
65*47513Spendry  */
66*47513Spendry #define OS_HAS_NDBM
67*47513Spendry 
68*47513Spendry #define UPDATE_MTAB
69*47513Spendry 
70*47513Spendry #undef	MTAB_TYPE_NFS
71*47513Spendry #define MTAB_TYPE_NFS	"nfs"
72*47513Spendry 
73*47513Spendry #undef	MTAB_TYPE_UFS
74*47513Spendry #define MTAB_TYPE_UFS	"efs"
75*47513Spendry 
76*47513Spendry #define NMOUNT	40	/* The std sun value */
77*47513Spendry /*
78*47513Spendry  * Name of filesystem types
79*47513Spendry  */
80*47513Spendry #define MOUNT_TYPE_UFS	sysfs(GETFSIND, FSID_EFS)
81*47513Spendry #define MOUNT_TYPE_NFS	sysfs(GETFSIND, FSID_NFS)
82*47513Spendry 
83*47513Spendry #define SYS5_SIGNALS
84*47513Spendry 
85*47513Spendry /*
86*47513Spendry  * Use <fcntl.h> rather than <sys/file.h>
87*47513Spendry  */
88*47513Spendry /*#define USE_FCNTL*/
89*47513Spendry 
90*47513Spendry /*
91*47513Spendry  * Use fcntl() rather than flock()
92*47513Spendry  */
93*47513Spendry /*#define LOCK_FCNTL*/
94*47513Spendry 
95*47513Spendry #ifdef __GNUC__
96*47513Spendry #define alloca(sz) __builtin_alloca(sz)
97*47513Spendry #endif
98*47513Spendry 
99*47513Spendry #define bzero(ptr, len) memset(ptr, 0, len)
100*47513Spendry #define bcopy(from, to, len) memcpy(to, from, len)
101*47513Spendry 
102*47513Spendry #undef MOUNT_TRAP
103*47513Spendry #define MOUNT_TRAP(type, mnt, flags, mnt_data) \
104*47513Spendry 	irix_mount(mnt->mnt_fsname, mnt->mnt_dir,flags, type, mnt_data)
105*47513Spendry #undef UNMOUNT_TRAP
106*47513Spendry #define UNMOUNT_TRAP(mnt)	umount(mnt->mnt_dir)
107*47513Spendry #define NFDS	30	/* conservative */
108*47513Spendry 
109*47513Spendry #define NFS_HDR "misc-irix.h"
110*47513Spendry #define UFS_HDR "misc-irix.h"
111*47513Spendry 
112*47513Spendry /* not included in sys/param.h */
113*47513Spendry #include <sys/types.h>
114*47513Spendry 
115*47513Spendry #define MOUNT_HELPER_SOURCE "mount_irix.c"
116*47513Spendry 
117*47513Spendry #define	MNTINFO_DEV	"fsid"
118*47513Spendry #define	MNTINFO_PREF	"0x"
119