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 _UAPI_LINUX_NFS_H
     20 #define _UAPI_LINUX_NFS_H
     21 #define NFS_PROGRAM 100003
     22 #define NFS_PORT 2049
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 #define NFS_MAXDATA 8192
     25 #define NFS_MAXPATHLEN 1024
     26 #define NFS_MAXNAMLEN 255
     27 #define NFS_MAXGROUPS 16
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29 #define NFS_FHSIZE 32
     30 #define NFS_COOKIESIZE 4
     31 #define NFS_FIFO_DEV (- 1)
     32 #define NFSMODE_FMT 0170000
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34 #define NFSMODE_DIR 0040000
     35 #define NFSMODE_CHR 0020000
     36 #define NFSMODE_BLK 0060000
     37 #define NFSMODE_REG 0100000
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39 #define NFSMODE_LNK 0120000
     40 #define NFSMODE_SOCK 0140000
     41 #define NFSMODE_FIFO 0010000
     42 #define NFS_MNT_PROGRAM 100005
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44 #define NFS_MNT_VERSION 1
     45 #define NFS_MNT3_VERSION 3
     46 #define NFS_PIPE_DIRNAME "nfs"
     47 enum nfs_stat {
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49   NFS_OK = 0,
     50   NFSERR_PERM = 1,
     51   NFSERR_NOENT = 2,
     52   NFSERR_IO = 5,
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54   NFSERR_NXIO = 6,
     55   NFSERR_EAGAIN = 11,
     56   NFSERR_ACCES = 13,
     57   NFSERR_EXIST = 17,
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59   NFSERR_XDEV = 18,
     60   NFSERR_NODEV = 19,
     61   NFSERR_NOTDIR = 20,
     62   NFSERR_ISDIR = 21,
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64   NFSERR_INVAL = 22,
     65   NFSERR_FBIG = 27,
     66   NFSERR_NOSPC = 28,
     67   NFSERR_ROFS = 30,
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69   NFSERR_MLINK = 31,
     70   NFSERR_OPNOTSUPP = 45,
     71   NFSERR_NAMETOOLONG = 63,
     72   NFSERR_NOTEMPTY = 66,
     73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     74   NFSERR_DQUOT = 69,
     75   NFSERR_STALE = 70,
     76   NFSERR_REMOTE = 71,
     77   NFSERR_WFLUSH = 99,
     78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     79   NFSERR_BADHANDLE = 10001,
     80   NFSERR_NOT_SYNC = 10002,
     81   NFSERR_BAD_COOKIE = 10003,
     82   NFSERR_NOTSUPP = 10004,
     83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     84   NFSERR_TOOSMALL = 10005,
     85   NFSERR_SERVERFAULT = 10006,
     86   NFSERR_BADTYPE = 10007,
     87   NFSERR_JUKEBOX = 10008,
     88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     89   NFSERR_SAME = 10009,
     90   NFSERR_DENIED = 10010,
     91   NFSERR_EXPIRED = 10011,
     92   NFSERR_LOCKED = 10012,
     93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     94   NFSERR_GRACE = 10013,
     95   NFSERR_FHEXPIRED = 10014,
     96   NFSERR_SHARE_DENIED = 10015,
     97   NFSERR_WRONGSEC = 10016,
     98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     99   NFSERR_CLID_INUSE = 10017,
    100   NFSERR_RESOURCE = 10018,
    101   NFSERR_MOVED = 10019,
    102   NFSERR_NOFILEHANDLE = 10020,
    103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    104   NFSERR_MINOR_VERS_MISMATCH = 10021,
    105   NFSERR_STALE_CLIENTID = 10022,
    106   NFSERR_STALE_STATEID = 10023,
    107   NFSERR_OLD_STATEID = 10024,
    108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    109   NFSERR_BAD_STATEID = 10025,
    110   NFSERR_BAD_SEQID = 10026,
    111   NFSERR_NOT_SAME = 10027,
    112   NFSERR_LOCK_RANGE = 10028,
    113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    114   NFSERR_SYMLINK = 10029,
    115   NFSERR_RESTOREFH = 10030,
    116   NFSERR_LEASE_MOVED = 10031,
    117   NFSERR_ATTRNOTSUPP = 10032,
    118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    119   NFSERR_NO_GRACE = 10033,
    120   NFSERR_RECLAIM_BAD = 10034,
    121   NFSERR_RECLAIM_CONFLICT = 10035,
    122   NFSERR_BAD_XDR = 10036,
    123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    124   NFSERR_LOCKS_HELD = 10037,
    125   NFSERR_OPENMODE = 10038,
    126   NFSERR_BADOWNER = 10039,
    127   NFSERR_BADCHAR = 10040,
    128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    129   NFSERR_BADNAME = 10041,
    130   NFSERR_BAD_RANGE = 10042,
    131   NFSERR_LOCK_NOTSUPP = 10043,
    132   NFSERR_OP_ILLEGAL = 10044,
    133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    134   NFSERR_DEADLOCK = 10045,
    135   NFSERR_FILE_OPEN = 10046,
    136   NFSERR_ADMIN_REVOKED = 10047,
    137   NFSERR_CB_PATH_DOWN = 10048,
    138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    139 };
    140 enum nfs_ftype {
    141   NFNON = 0,
    142   NFREG = 1,
    143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    144   NFDIR = 2,
    145   NFBLK = 3,
    146   NFCHR = 4,
    147   NFLNK = 5,
    148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    149   NFSOCK = 6,
    150   NFBAD = 7,
    151   NFFIFO = 8
    152 };
    153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    154 #endif
    155