1 /* 2 * Copyright (c) 1989 Jan-Simon Pendry 3 * Copyright (c) 1989 Imperial College of Science, Technology & Medicine 4 * Copyright (c) 1989 The Regents of the University of California. 5 * 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 * @(#)misc-hpux.h 5.4 (Berkeley) 02/09/92 13 * 14 * $Id: misc-hpux.h,v 5.2.2.1 1992/02/09 15:10:24 jsp beta $ 15 * 16 */ 17 18 /* 19 * These definitions are from <nfs/nfs.h> 20 * Unfortunately, that file cannot be included 21 * because it contains lots of structure definitions 22 * that are not wanted (they produce name clashes). 23 * Isn't HP-UX wonderful! 24 */ 25 26 /* 27 * HP-UX specific definitions 28 */ 29 struct nfs_args { 30 struct sockaddr_in *addr; /* file server address */ 31 fhandle_t *fh; /* File handle to be mounted */ 32 int flags; /* flags */ 33 int wsize; /* write size in bytes */ 34 int rsize; /* read size in bytes */ 35 int timeo; /* initial timeout in .1 secs */ 36 int retrans; /* times to retry send */ 37 char *hostname; /* server's name */ 38 #ifdef __hp9000s700 /* XXX for HPUX 8.0 */ 39 char *fsname; /* server's filesystem name */ 40 #endif 41 }; 42 43 /* 44 * NFS mount option flags 45 */ 46 #define NFSMNT_SOFT 0x001 /* soft mount (hard is default) */ 47 #define NFSMNT_WSIZE 0x002 /* set write size */ 48 #define NFSMNT_RSIZE 0x004 /* set read size */ 49 #define NFSMNT_TIMEO 0x008 /* set initial timeout */ 50 #define NFSMNT_RETRANS 0x010 /* set number of request retrys */ 51 #define NFSMNT_HOSTNAME 0x020 /* set hostname for error printf */ 52 #define NFSMNT_INT 0x040 /* set option to have interruptable mounts */ 53 #define NFSMNT_NODEVS 0x080 /* turn off device file access (default on) */ 54