home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume21 / amd / part02 / hpux.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-04-10  |  2.3 KB  |  61 lines

  1. /*
  2.  * $Id: hpux.h,v 5.1 89/11/17 18:23:04 jsp Exp Locker: jsp $
  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.  * Redistribution and use in source and binary forms are permitted
  13.  * provided that the above copyright notice and this paragraph are
  14.  * duplicated in all such forms and that any documentation,
  15.  * advertising materials, and other materials related to such
  16.  * distribution and use acknowledge that the software was developed
  17.  * by Imperial College of Science, Technology and Medicine, London, UK.
  18.  * The names of the College and University may not be used to endorse
  19.  * or promote products derived from this software without specific
  20.  * prior written permission.
  21.  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  22.  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  23.  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  24.  *
  25.  *    %W% (Berkeley) %G%
  26.  */
  27.  
  28. /*
  29.  * These definitions are from <nfs/nfs.h>
  30.  * Unfortunately, that file cannot be included
  31.  * because it contains lots of structure definitions
  32.  * that are not wanted (they produce name clashes).
  33.  * Isn't HP-UX wonderful!
  34.  */
  35.  
  36. /*
  37.  * HP-UX specific definitions
  38.  */
  39. struct nfs_args {
  40.     struct sockaddr_in    *addr;        /* file server address */
  41.     fhandle_t        *fh;        /* File handle to be mounted */
  42.     int            flags;        /* flags */
  43.     int            wsize;        /* write size in bytes */
  44.     int            rsize;        /* read size in bytes */
  45.     int            timeo;        /* initial timeout in .1 secs */
  46.     int            retrans;    /* times to retry send */
  47.     char            *hostname;    /* server's name */
  48. };
  49.  
  50. /*
  51.  * NFS mount option flags
  52.  */
  53. #define    NFSMNT_SOFT    0x001    /* soft mount (hard is default) */
  54. #define    NFSMNT_WSIZE    0x002    /* set write size */
  55. #define    NFSMNT_RSIZE    0x004    /* set read size */
  56. #define    NFSMNT_TIMEO    0x008    /* set initial timeout */
  57. #define    NFSMNT_RETRANS    0x010    /* set number of request retrys */
  58. #define    NFSMNT_HOSTNAME    0x020    /* set hostname for error printf */
  59. #define    NFSMNT_INT    0x040    /* set option to have interruptable mounts */
  60. #define    NFSMNT_NODEVS   0x080   /* turn off device file access (default on) */
  61.