Home | History | Annotate | Download | only in linux
      1 /****************************************************************************
      2  ****************************************************************************
      3  ***
      4  ***   This header was automatically generated from a Linux kernel header
      5  ***   of the same name, to make information necessary for userspace to
      6  ***   call into the kernel available to libc.  It contains only constants,
      7  ***   structures, and macros generated from the original header, and thus,
      8  ***   contains no copyrightable information.
      9  ***
     10  ****************************************************************************
     11  ****************************************************************************/
     12 #ifndef _LINUX_NFS2_H
     13 #define _LINUX_NFS2_H
     14 
     15 #define NFS2_PORT 2049
     16 #define NFS2_MAXDATA 8192
     17 #define NFS2_MAXPATHLEN 1024
     18 #define NFS2_MAXNAMLEN 255
     19 #define NFS2_MAXGROUPS 16
     20 #define NFS2_FHSIZE 32
     21 #define NFS2_COOKIESIZE 4
     22 #define NFS2_FIFO_DEV (-1)
     23 #define NFS2MODE_FMT 0170000
     24 #define NFS2MODE_DIR 0040000
     25 #define NFS2MODE_CHR 0020000
     26 #define NFS2MODE_BLK 0060000
     27 #define NFS2MODE_REG 0100000
     28 #define NFS2MODE_LNK 0120000
     29 #define NFS2MODE_SOCK 0140000
     30 #define NFS2MODE_FIFO 0010000
     31 
     32 enum nfs2_ftype {
     33  NF2NON = 0,
     34  NF2REG = 1,
     35  NF2DIR = 2,
     36  NF2BLK = 3,
     37  NF2CHR = 4,
     38  NF2LNK = 5,
     39  NF2SOCK = 6,
     40  NF2BAD = 7,
     41  NF2FIFO = 8
     42 };
     43 
     44 struct nfs2_fh {
     45  char data[NFS2_FHSIZE];
     46 };
     47 
     48 #define NFS2_VERSION 2
     49 #define NFSPROC_NULL 0
     50 #define NFSPROC_GETATTR 1
     51 #define NFSPROC_SETATTR 2
     52 #define NFSPROC_ROOT 3
     53 #define NFSPROC_LOOKUP 4
     54 #define NFSPROC_READLINK 5
     55 #define NFSPROC_READ 6
     56 #define NFSPROC_WRITECACHE 7
     57 #define NFSPROC_WRITE 8
     58 #define NFSPROC_CREATE 9
     59 #define NFSPROC_REMOVE 10
     60 #define NFSPROC_RENAME 11
     61 #define NFSPROC_LINK 12
     62 #define NFSPROC_SYMLINK 13
     63 #define NFSPROC_MKDIR 14
     64 #define NFSPROC_RMDIR 15
     65 #define NFSPROC_READDIR 16
     66 #define NFSPROC_STATFS 17
     67 
     68 #define NFS_MNT_PROGRAM 100005
     69 #define NFS_MNT_VERSION 1
     70 #define MNTPROC_NULL 0
     71 #define MNTPROC_MNT 1
     72 #define MNTPROC_UMNT 3
     73 #define MNTPROC_UMNTALL 4
     74 
     75 #endif
     76