home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilss / sockets / include / sys / h / mount < prev    next >
Encoding:
Text File  |  1995-01-11  |  1.8 KB  |  70 lines

  1. /*
  2.  * $Header: /ax/networking:include/sys/mount.h:networking  1.1  $
  3.  * $Source: /ax/networking:include/sys/mount.h: $
  4.  *
  5.  * Copyright (c) 1988 Acorn Computers Ltd., Cambridge, England
  6.  *
  7.  * $Log:    mount.h,v $
  8.  * Revision 1.1  95/01/11  10:19:23  kwelton
  9.  * Initial revision
  10.  * 
  11.  * Revision 1.3  88/06/17  20:19:49  beta
  12.  * Acorn Unix initial beta version
  13.  * 
  14.  */
  15. /* @(#)mount.h    1.3 87/05/29 3.2/4.3NFSSRC */
  16. /*
  17.  * Copyright (c) 1982, 1986 Regents of the University of California.
  18.  * All rights reserved.  The Berkeley software License Agreement
  19.  * specifies the terms and conditions for redistribution.
  20.  *
  21.  *    @(#)mount.h    7.1 (Berkeley) 6/4/86
  22.  */
  23. #define M_RDONLY    0x01        /* mount fs read only */
  24. #define M_NOSUID    0x02        /* mount fs with setuid not allowed */
  25.  
  26. /*
  27.  * File system types, these corespond to entries in fsconf
  28.  */
  29. #define    MOUNT_UFS    0
  30. #define    MOUNT_NFS    1
  31. #define    MOUNT_MAXTYPE    1
  32.  
  33. struct ufs_args {
  34.     char    *fspec;
  35. };
  36.  
  37. #ifdef NFS
  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    /* allow interrupts on hard mount */
  60. #endif NFS
  61.  
  62. #ifdef KERNEL
  63. /*
  64.  * mount filesystem type switch table
  65.  */
  66. extern struct vfsops *vfssw[];
  67. #endif
  68.  
  69. /* EOF mount.h */
  70.