1 /* 2 * Copyright (c) 1990 Jan-Simon Pendry 3 * Copyright (c) 1990 Imperial College of Science, Technology & Medicine 4 * Copyright (c) 1990, 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-dgux.h 8.1 (Berkeley) 06/06/93 13 * 14 * $Id: os-dgux.h,v 5.2.2.1 1992/02/09 15:10:18 jsp beta $ 15 * 16 * dg/ux definitions for Amd (automounter) 17 */ 18 19 /* 20 * Does the compiler grok void * 21 */ 22 #define VOIDP 23 24 /* 25 * Which version of the Sun RPC library we are using 26 * This is the implementation release number, not 27 * the protocol revision number. 28 */ 29 #define RPC_4 30 31 /* 32 * Which version of the NFS interface are we using. 33 * This is the implementation release number, not 34 * the protocol revision number. 35 */ 36 #define NFS_4 37 38 /* 39 * Name of filesystem types 40 */ 41 #define MOUNT_TYPE_NFS "nfs" 42 #define MOUNT_TYPE_UFS "dg/ux" 43 #undef MTAB_TYPE_UFS 44 #define MTAB_TYPE_UFS "dg/ux" 45 46 /* 47 * Need the following in more places than just NFS_HDR 48 */ 49 #include <sys/dg_mount.h> 50 /* 51 * This is braindead 52 * dg/ux has nfs 4.0 but doesn't have the following options 53 */ 54 #define NFSMNT_HOSTNAME 0x0 55 #define NFSMNT_INT 0x0 56 #define M_NEWTYPE 0 57 58 /* 59 * DG have their own filesystem. 60 */ 61 #define ufs_args dgux_args 62 63 /* 64 * Byte ordering 65 */ 66 67 #undef ARCH_ENDIAN 68 #define ARCH_ENDIAN "big" 69 70 #define _BSD_WAIT_FLAVOR 71 #define _BSD_TTY_FLAVOR 72 #define _BSD_SIGNAL_FLAVOR 73 #define _DGUX_SOURCE 74 75 /* 76 * Use fcntl() rather than flock() 77 */ 78 #define LOCK_FCNTL 79 80 #define bzero(ptr, len) memset(ptr, 0, len) 81 #define bcopy(from, to, len) memcpy(to, from, len) 82 #undef MOUNT_TRAP 83 #define MOUNT_TRAP(type, mnt, flags, mnt_data) \ 84 ((struct nfs_args *)mnt_data)->version = !strcmp(type, MOUNT_TYPE_UFS)?\ 85 DG_MOUNT_DGUX_VERSION:DG_MOUNT_NFS_VERSION, \ 86 dg_mount(type, mnt->mnt_dir, flags, mnt_data) 87 #undef UNMOUNT_TRAP 88 #define UNMOUNT_TRAP(mnt) umount(mnt->mnt_dir) 89