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-stellix.h	8.1 (Berkeley) 06/06/93
13  *
14  * Amd (automounter) definitions for Stellix.
15  * From Stephen C. Pope <scp@acl.lanl.gov>
16  *
17  * $Id: os-stellix.h,v 5.2.2.1 1992/02/09 15:10:43 jsp beta $
18  */
19 
20 #define RPC_3
21 
22 #define NFS_3
23 
24 /*
25  * Byte ordering
26  */
27 #undef ARCH_ENDIAN
28 #define	ARCH_ENDIAN	"big"
29 
30 #define HAS_SYSLOG
31 
32 #define OS_HAS_NDBM
33 
34 #define UPDATE_MTAB
35 
36 #define USE_FCNTL
37 
38 #define LOCK_FCNTL
39 
40 /*
41  * Name of filesystem types
42  */
43 #undef MTAB_TYPE_UFS
44 #define	MTAB_TYPE_UFS	"sfs"
45 
46 #define MOUNT_TYPE_UFS sysfs(GETFSIND, "SFS1")
47 #define MOUNT_TYPE_NFS sysfs(GETFSIND, "NFS")
48 
49 #define SYS5_SIGNALS
50 #define HAS_SVR3_SIGNALS
51 
52 #define MOUNT_HELPER_SOURCE "mount_stellix.c"
53 
54 /*
55  * Name of mount & unmount system calls
56  *
57  * NOTE:
58  *  UNMOUNT_TRAP takes a struct mntent *
59  */
60 #undef MOUNT_TRAP
61 #define	MOUNT_TRAP(type, mnt, flags, mnt_data) \
62 	stellix_mount(mnt->mnt_fsname, mnt->mnt_dir, flags, type, mnt_data)
63 #undef UNMOUNT_TRAP
64 #define	UNMOUNT_TRAP(mnt)	umount(mnt->mnt_dir)
65 
66 /*
67  * How to unmount filesystems.
68  * NEED_UMOUNT_FS includes code to scan the mount table
69  * to find the correct information for the unmount system
70  * call.  Some systems, such as 4.4bsd, do not require
71  * this - they can just do an unmount system call directly.
72  */
73 /* #define	NEED_UMOUNT_FS */
74 /* #define	UMOUNT_FS(dir)	umount_fs(dir) */
75 
76 #define NFS_HDR "misc-stellix.h"
77 #define UFS_HDR "misc-stellix.h"
78 
79 #define M_RDONLY        0x01            /* mount fs read only */
80 
81 #define bzero(ptr, len) memset(ptr, 0, len)
82 #define bcopy(from, to, len) memcpy(to, from, len)
83