1 /* 2 * $Id: misc-hpux.h,v 5.2.1.1 90/10/21 22:30:54 jsp Exp $ 3 * 4 * Copyright (c) 1989 Jan-Simon Pendry 5 * Copyright (c) 1989 Imperial College of Science, Technology & Medicine 6 * Copyright (c) 1989 The Regents of the University of California. 7 * All rights reserved. 8 * 9 * This code is derived from software contributed to Berkeley by 10 * Jan-Simon Pendry at Imperial College, London. 11 * 12 * %sccs.include.redist.c% 13 * 14 * @(#)misc-hpux.h 5.2 (Berkeley) 03/17/91 15 */ 16 17 /* 18 * These definitions are from <nfs/nfs.h> 19 * Unfortunately, that file cannot be included 20 * because it contains lots of structure definitions 21 * that are not wanted (they produce name clashes). 22 * Isn't HP-UX wonderful! 23 */ 24 25 /* 26 * HP-UX specific definitions 27 */ 28 struct nfs_args { 29 struct sockaddr_in *addr; /* file server address */ 30 fhandle_t *fh; /* File handle to be mounted */ 31 int flags; /* flags */ 32 int wsize; /* write size in bytes */ 33 int rsize; /* read size in bytes */ 34 int timeo; /* initial timeout in .1 secs */ 35 int retrans; /* times to retry send */ 36 char *hostname; /* server's name */ 37 }; 38 39 /* 40 * NFS mount option flags 41 */ 42 #define NFSMNT_SOFT 0x001 /* soft mount (hard is default) */ 43 #define NFSMNT_WSIZE 0x002 /* set write size */ 44 #define NFSMNT_RSIZE 0x004 /* set read size */ 45 #define NFSMNT_TIMEO 0x008 /* set initial timeout */ 46 #define NFSMNT_RETRANS 0x010 /* set number of request retrys */ 47 #define NFSMNT_HOSTNAME 0x020 /* set hostname for error printf */ 48 #define NFSMNT_INT 0x040 /* set option to have interruptable mounts */ 49 #define NFSMNT_NODEVS 0x080 /* turn off device file access (default on) */ 50