xref: /csrg-svn/usr.sbin/amd/config/os-irix.h (revision 61785)
147513Spendry /*
247513Spendry  * Copyright (c) 1990 Jan-Simon Pendry
347513Spendry  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
4*61785Sbostic  * Copyright (c) 1990, 1993
5*61785Sbostic  *	The Regents of the University of California.  All rights reserved.
647513Spendry  *
747513Spendry  * This code is derived from software contributed to Berkeley by
847513Spendry  * Jan-Simon Pendry at Imperial College, London.
947513Spendry  *
1047534Spendry  * %sccs.include.redist.c%
1147513Spendry  *
12*61785Sbostic  *	@(#)os-irix.h	8.1 (Berkeley) 06/06/93
1349685Spendry  *
1452452Spendry  * $Id: os-irix.h,v 5.2.2.1 1992/02/09 15:10:28 jsp beta $
1549685Spendry  *
1649685Spendry  * IRIX 3.3 definitions for Amd (automounter)
1749685Spendry  * Contributed by Scott R. Presnell <srp@cgl.ucsf.edu>
1847513Spendry  */
1947513Spendry 
2047513Spendry /*
2147513Spendry  * Does the compiler grok void *
2247513Spendry  */
2347513Spendry #define VOIDP
2447513Spendry 
2547513Spendry /*
2647513Spendry  * Which version of the Sun RPC library we are using
2747513Spendry  * This is the implementation release number, not
2847513Spendry  * the protocol revision number.
2947513Spendry  */
3047513Spendry #define RPC_3
3147513Spendry 
3247513Spendry /*
3347513Spendry  * Which version of the NFS interface are we using.
3447513Spendry  * This is the implementation release number, not
3547513Spendry  * the protocol revision number.
3647513Spendry  */
3747513Spendry #define NFS_3
3847513Spendry 
3947513Spendry /*
4047513Spendry  * Byte ordering
4147513Spendry  */
4247513Spendry #undef ARCH_ENDIAN
4347513Spendry #define ARCH_ENDIAN	"big"
4447513Spendry 
4547513Spendry /*
4647513Spendry  * Has support for syslog()
4747513Spendry  */
4847513Spendry #define HAS_SYSLOG
4947513Spendry 
5047513Spendry #define M_GRPID		MS_GRPID
5147513Spendry #define M_RDONLY	MS_RDONLY
5247513Spendry /*
5347513Spendry  * Support for ndbm
5447513Spendry  */
5547513Spendry #define OS_HAS_NDBM
5647513Spendry 
5747513Spendry #define UPDATE_MTAB
5847513Spendry 
5947513Spendry #undef	MTAB_TYPE_NFS
6047513Spendry #define MTAB_TYPE_NFS	"nfs"
6147513Spendry 
6247513Spendry #undef	MTAB_TYPE_UFS
6347513Spendry #define MTAB_TYPE_UFS	"efs"
6447513Spendry 
6547513Spendry #define NMOUNT	40	/* The std sun value */
6647513Spendry /*
6747513Spendry  * Name of filesystem types
6847513Spendry  */
6947513Spendry #define MOUNT_TYPE_UFS	sysfs(GETFSIND, FSID_EFS)
7047513Spendry #define MOUNT_TYPE_NFS	sysfs(GETFSIND, FSID_NFS)
7147513Spendry 
7247513Spendry #define SYS5_SIGNALS
7347513Spendry 
7447513Spendry /*
7547513Spendry  * Use <fcntl.h> rather than <sys/file.h>
7647513Spendry  */
7747513Spendry /*#define USE_FCNTL*/
7847513Spendry 
7947513Spendry /*
8047513Spendry  * Use fcntl() rather than flock()
8147513Spendry  */
8247513Spendry /*#define LOCK_FCNTL*/
8347513Spendry 
8447513Spendry #ifdef __GNUC__
8547513Spendry #define alloca(sz) __builtin_alloca(sz)
8647513Spendry #endif
8747513Spendry 
8847513Spendry #define bzero(ptr, len) memset(ptr, 0, len)
8947513Spendry #define bcopy(from, to, len) memcpy(to, from, len)
9047513Spendry 
9147513Spendry #undef MOUNT_TRAP
9247513Spendry #define MOUNT_TRAP(type, mnt, flags, mnt_data) \
9347513Spendry 	irix_mount(mnt->mnt_fsname, mnt->mnt_dir,flags, type, mnt_data)
9447513Spendry #undef UNMOUNT_TRAP
9547513Spendry #define UNMOUNT_TRAP(mnt)	umount(mnt->mnt_dir)
9647513Spendry #define NFDS	30	/* conservative */
9747513Spendry 
9847513Spendry #define NFS_HDR "misc-irix.h"
9947513Spendry #define UFS_HDR "misc-irix.h"
10047513Spendry 
10147513Spendry /* not included in sys/param.h */
10247513Spendry #include <sys/types.h>
10347513Spendry 
10447513Spendry #define MOUNT_HELPER_SOURCE "mount_irix.c"
10547513Spendry 
10647513Spendry #define	MNTINFO_DEV	"fsid"
10747513Spendry #define	MNTINFO_PREF	"0x"
108