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  ***   To edit the content of this header, modify the corresponding
     11  ***   source file (e.g. under external/kernel-headers/original/) then
     12  ***   run bionic/libc/kernel/tools/update_all.py
     13  ***
     14  ***   Any manual change here will be lost the next time this script will
     15  ***   be run. You've been warned!
     16  ***
     17  ****************************************************************************
     18  ****************************************************************************/
     19 #ifndef _LINUX_NFS2_H
     20 #define _LINUX_NFS2_H
     21 #define NFS2_PORT 2049
     22 #define NFS2_MAXDATA 8192
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 #define NFS2_MAXPATHLEN 1024
     25 #define NFS2_MAXNAMLEN 255
     26 #define NFS2_MAXGROUPS 16
     27 #define NFS2_FHSIZE 32
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29 #define NFS2_COOKIESIZE 4
     30 #define NFS2_FIFO_DEV (-1)
     31 #define NFS2MODE_FMT 0170000
     32 #define NFS2MODE_DIR 0040000
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34 #define NFS2MODE_CHR 0020000
     35 #define NFS2MODE_BLK 0060000
     36 #define NFS2MODE_REG 0100000
     37 #define NFS2MODE_LNK 0120000
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39 #define NFS2MODE_SOCK 0140000
     40 #define NFS2MODE_FIFO 0010000
     41 enum nfs2_ftype {
     42  NF2NON = 0,
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44  NF2REG = 1,
     45  NF2DIR = 2,
     46  NF2BLK = 3,
     47  NF2CHR = 4,
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49  NF2LNK = 5,
     50  NF2SOCK = 6,
     51  NF2BAD = 7,
     52  NF2FIFO = 8
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54 };
     55 struct nfs2_fh {
     56  char data[NFS2_FHSIZE];
     57 };
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59 #define NFS2_VERSION 2
     60 #define NFSPROC_NULL 0
     61 #define NFSPROC_GETATTR 1
     62 #define NFSPROC_SETATTR 2
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64 #define NFSPROC_ROOT 3
     65 #define NFSPROC_LOOKUP 4
     66 #define NFSPROC_READLINK 5
     67 #define NFSPROC_READ 6
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69 #define NFSPROC_WRITECACHE 7
     70 #define NFSPROC_WRITE 8
     71 #define NFSPROC_CREATE 9
     72 #define NFSPROC_REMOVE 10
     73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     74 #define NFSPROC_RENAME 11
     75 #define NFSPROC_LINK 12
     76 #define NFSPROC_SYMLINK 13
     77 #define NFSPROC_MKDIR 14
     78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     79 #define NFSPROC_RMDIR 15
     80 #define NFSPROC_READDIR 16
     81 #define NFSPROC_STATFS 17
     82 #endif
     83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     84