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