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