1*55483Sbostic /*
2*55483Sbostic  * Amd (automounter) definitions for Stellix.
3*55483Sbostic  * From Stephen C. Pope <scp@acl.lanl.gov>
4*55483Sbostic  *
5*55483Sbostic  * Copyright (c) 1989 Jan-Simon Pendry
6*55483Sbostic  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
7*55483Sbostic  * Copyright (c) 1989 The Regents of the University of California.
8*55483Sbostic  * All rights reserved.
9*55483Sbostic  *
10*55483Sbostic  * This code is derived from software contributed to Berkeley by
11*55483Sbostic  * Jan-Simon Pendry at Imperial College, London.
12*55483Sbostic  *
13*55483Sbostic  * Redistribution and use in source and binary forms are permitted provided
14*55483Sbostic  * that: (1) source distributions retain this entire copyright notice and
15*55483Sbostic  * comment, and (2) distributions including binaries display the following
16*55483Sbostic  * acknowledgement:  ``This product includes software developed by the
17*55483Sbostic  * University of California, Berkeley and its contributors'' in the
18*55483Sbostic  * documentation or other materials provided with the distribution and in
19*55483Sbostic  * all advertising materials mentioning features or use of this software.
20*55483Sbostic  * Neither the name of the University nor the names of its contributors may
21*55483Sbostic  * be used to endorse or promote products derived from this software without
22*55483Sbostic  * specific prior written permission.
23*55483Sbostic  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
24*55483Sbostic  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
25*55483Sbostic  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
26*55483Sbostic  *
27*55483Sbostic  *	@(#)os-stellix.h	5.1 (Berkeley) 07/21/92
28*55483Sbostic  *
29*55483Sbostic  * $Id: os-stellix.h,v 5.2.2.1 1992/02/09 15:10:43 jsp beta $
30*55483Sbostic  */
31*55483Sbostic 
32*55483Sbostic #define RPC_3
33*55483Sbostic 
34*55483Sbostic #define NFS_3
35*55483Sbostic 
36*55483Sbostic /*
37*55483Sbostic  * Byte ordering
38*55483Sbostic  */
39*55483Sbostic #undef ARCH_ENDIAN
40*55483Sbostic #define	ARCH_ENDIAN	"big"
41*55483Sbostic 
42*55483Sbostic #define HAS_SYSLOG
43*55483Sbostic 
44*55483Sbostic #define OS_HAS_NDBM
45*55483Sbostic 
46*55483Sbostic #define UPDATE_MTAB
47*55483Sbostic 
48*55483Sbostic #define USE_FCNTL
49*55483Sbostic 
50*55483Sbostic #define LOCK_FCNTL
51*55483Sbostic 
52*55483Sbostic /*
53*55483Sbostic  * Name of filesystem types
54*55483Sbostic  */
55*55483Sbostic #undef MTAB_TYPE_UFS
56*55483Sbostic #define	MTAB_TYPE_UFS	"sfs"
57*55483Sbostic 
58*55483Sbostic #define MOUNT_TYPE_UFS sysfs(GETFSIND, "SFS1")
59*55483Sbostic #define MOUNT_TYPE_NFS sysfs(GETFSIND, "NFS")
60*55483Sbostic 
61*55483Sbostic #define SYS5_SIGNALS
62*55483Sbostic #define HAS_SVR3_SIGNALS
63*55483Sbostic 
64*55483Sbostic #define MOUNT_HELPER_SOURCE "mount_stellix.c"
65*55483Sbostic 
66*55483Sbostic /*
67*55483Sbostic  * Name of mount & unmount system calls
68*55483Sbostic  *
69*55483Sbostic  * NOTE:
70*55483Sbostic  *  UNMOUNT_TRAP takes a struct mntent *
71*55483Sbostic  */
72*55483Sbostic #undef MOUNT_TRAP
73*55483Sbostic #define	MOUNT_TRAP(type, mnt, flags, mnt_data) \
74*55483Sbostic 	stellix_mount(mnt->mnt_fsname, mnt->mnt_dir, flags, type, mnt_data)
75*55483Sbostic #undef UNMOUNT_TRAP
76*55483Sbostic #define	UNMOUNT_TRAP(mnt)	umount(mnt->mnt_dir)
77*55483Sbostic 
78*55483Sbostic /*
79*55483Sbostic  * How to unmount filesystems.
80*55483Sbostic  * NEED_UMOUNT_FS includes code to scan the mount table
81*55483Sbostic  * to find the correct information for the unmount system
82*55483Sbostic  * call.  Some systems, such as 4.4bsd, do not require
83*55483Sbostic  * this - they can just do an unmount system call directly.
84*55483Sbostic  */
85*55483Sbostic /* #define	NEED_UMOUNT_FS */
86*55483Sbostic /* #define	UMOUNT_FS(dir)	umount_fs(dir) */
87*55483Sbostic 
88*55483Sbostic #define NFS_HDR "misc-stellix.h"
89*55483Sbostic #define UFS_HDR "misc-stellix.h"
90*55483Sbostic 
91*55483Sbostic #define M_RDONLY        0x01            /* mount fs read only */
92*55483Sbostic 
93*55483Sbostic #define bzero(ptr, len) memset(ptr, 0, len)
94*55483Sbostic #define bcopy(from, to, len) memcpy(to, from, len)
95