155483Sbostic /* 255483Sbostic * Copyright (c) 1989 Jan-Simon Pendry 355483Sbostic * Copyright (c) 1989 Imperial College of Science, Technology & Medicine 4*61785Sbostic * Copyright (c) 1989, 1993 5*61785Sbostic * The Regents of the University of California. All rights reserved. 655483Sbostic * 755483Sbostic * This code is derived from software contributed to Berkeley by 855483Sbostic * Jan-Simon Pendry at Imperial College, London. 955483Sbostic * 1055484Sbostic * %sccs.include.redist.c% 1155483Sbostic * 12*61785Sbostic * @(#)os-stellix.h 8.1 (Berkeley) 06/06/93 1355483Sbostic * 1455484Sbostic * Amd (automounter) definitions for Stellix. 1555484Sbostic * From Stephen C. Pope <scp@acl.lanl.gov> 1655484Sbostic * 1755483Sbostic * $Id: os-stellix.h,v 5.2.2.1 1992/02/09 15:10:43 jsp beta $ 1855483Sbostic */ 1955483Sbostic 2055483Sbostic #define RPC_3 2155483Sbostic 2255483Sbostic #define NFS_3 2355483Sbostic 2455483Sbostic /* 2555483Sbostic * Byte ordering 2655483Sbostic */ 2755483Sbostic #undef ARCH_ENDIAN 2855483Sbostic #define ARCH_ENDIAN "big" 2955483Sbostic 3055483Sbostic #define HAS_SYSLOG 3155483Sbostic 3255483Sbostic #define OS_HAS_NDBM 3355483Sbostic 3455483Sbostic #define UPDATE_MTAB 3555483Sbostic 3655483Sbostic #define USE_FCNTL 3755483Sbostic 3855483Sbostic #define LOCK_FCNTL 3955483Sbostic 4055483Sbostic /* 4155483Sbostic * Name of filesystem types 4255483Sbostic */ 4355483Sbostic #undef MTAB_TYPE_UFS 4455483Sbostic #define MTAB_TYPE_UFS "sfs" 4555483Sbostic 4655483Sbostic #define MOUNT_TYPE_UFS sysfs(GETFSIND, "SFS1") 4755483Sbostic #define MOUNT_TYPE_NFS sysfs(GETFSIND, "NFS") 4855483Sbostic 4955483Sbostic #define SYS5_SIGNALS 5055483Sbostic #define HAS_SVR3_SIGNALS 5155483Sbostic 5255483Sbostic #define MOUNT_HELPER_SOURCE "mount_stellix.c" 5355483Sbostic 5455483Sbostic /* 5555483Sbostic * Name of mount & unmount system calls 5655483Sbostic * 5755483Sbostic * NOTE: 5855483Sbostic * UNMOUNT_TRAP takes a struct mntent * 5955483Sbostic */ 6055483Sbostic #undef MOUNT_TRAP 6155483Sbostic #define MOUNT_TRAP(type, mnt, flags, mnt_data) \ 6255483Sbostic stellix_mount(mnt->mnt_fsname, mnt->mnt_dir, flags, type, mnt_data) 6355483Sbostic #undef UNMOUNT_TRAP 6455483Sbostic #define UNMOUNT_TRAP(mnt) umount(mnt->mnt_dir) 6555483Sbostic 6655483Sbostic /* 6755483Sbostic * How to unmount filesystems. 6855483Sbostic * NEED_UMOUNT_FS includes code to scan the mount table 6955483Sbostic * to find the correct information for the unmount system 7055483Sbostic * call. Some systems, such as 4.4bsd, do not require 7155483Sbostic * this - they can just do an unmount system call directly. 7255483Sbostic */ 7355483Sbostic /* #define NEED_UMOUNT_FS */ 7455483Sbostic /* #define UMOUNT_FS(dir) umount_fs(dir) */ 7555483Sbostic 7655483Sbostic #define NFS_HDR "misc-stellix.h" 7755483Sbostic #define UFS_HDR "misc-stellix.h" 7855483Sbostic 7955483Sbostic #define M_RDONLY 0x01 /* mount fs read only */ 8055483Sbostic 8155483Sbostic #define bzero(ptr, len) memset(ptr, 0, len) 8255483Sbostic #define bcopy(from, to, len) memcpy(to, from, len) 83