• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_NFS3_H
20 #define _LINUX_NFS3_H
21 #define NFS3_PORT 2049
22 #define NFS3_MAXDATA 32768
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #define NFS3_MAXPATHLEN PATH_MAX
25 #define NFS3_MAXNAMLEN NAME_MAX
26 #define NFS3_MAXGROUPS 16
27 #define NFS3_FHSIZE 64
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 #define NFS3_COOKIESIZE 4
30 #define NFS3_FIFO_DEV (-1)
31 #define NFS3MODE_FMT 0170000
32 #define NFS3MODE_DIR 0040000
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 #define NFS3MODE_CHR 0020000
35 #define NFS3MODE_BLK 0060000
36 #define NFS3MODE_REG 0100000
37 #define NFS3MODE_LNK 0120000
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 #define NFS3MODE_SOCK 0140000
40 #define NFS3MODE_FIFO 0010000
41 #define NFS3_ACCESS_READ 0x0001
42 #define NFS3_ACCESS_LOOKUP 0x0002
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 #define NFS3_ACCESS_MODIFY 0x0004
45 #define NFS3_ACCESS_EXTEND 0x0008
46 #define NFS3_ACCESS_DELETE 0x0010
47 #define NFS3_ACCESS_EXECUTE 0x0020
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 #define NFS3_ACCESS_FULL 0x003f
50 enum nfs3_createmode {
51  NFS3_CREATE_UNCHECKED = 0,
52  NFS3_CREATE_GUARDED = 1,
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54  NFS3_CREATE_EXCLUSIVE = 2
55 };
56 #define NFS3_FSF_LINK 0x0001
57 #define NFS3_FSF_SYMLINK 0x0002
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 #define NFS3_FSF_HOMOGENEOUS 0x0008
60 #define NFS3_FSF_CANSETTIME 0x0010
61 #define NFS3_FSF_DEFAULT 0x001B
62 #define NFS3_FSF_BILLYBOY 0x0018
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 #define NFS3_FSF_READONLY 0x0008
65 enum nfs3_ftype {
66  NF3NON = 0,
67  NF3REG = 1,
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69  NF3DIR = 2,
70  NF3BLK = 3,
71  NF3CHR = 4,
72  NF3LNK = 5,
73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74  NF3SOCK = 6,
75  NF3FIFO = 7,
76  NF3BAD = 8
77 };
78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79 struct nfs3_fh {
80  unsigned short size;
81  unsigned char data[NFS3_FHSIZE];
82 };
83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84 #define NFS3_VERSION 3
85 #define NFS3PROC_NULL 0
86 #define NFS3PROC_GETATTR 1
87 #define NFS3PROC_SETATTR 2
88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89 #define NFS3PROC_LOOKUP 3
90 #define NFS3PROC_ACCESS 4
91 #define NFS3PROC_READLINK 5
92 #define NFS3PROC_READ 6
93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94 #define NFS3PROC_WRITE 7
95 #define NFS3PROC_CREATE 8
96 #define NFS3PROC_MKDIR 9
97 #define NFS3PROC_SYMLINK 10
98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99 #define NFS3PROC_MKNOD 11
100 #define NFS3PROC_REMOVE 12
101 #define NFS3PROC_RMDIR 13
102 #define NFS3PROC_RENAME 14
103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104 #define NFS3PROC_LINK 15
105 #define NFS3PROC_READDIR 16
106 #define NFS3PROC_READDIRPLUS 17
107 #define NFS3PROC_FSSTAT 18
108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109 #define NFS3PROC_FSINFO 19
110 #define NFS3PROC_PATHCONF 20
111 #define NFS3PROC_COMMIT 21
112 #define NFS_MNT3_PROGRAM 100005
113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114 #define NFS_MNT3_VERSION 3
115 #define MOUNTPROC3_NULL 0
116 #define MOUNTPROC3_MNT 1
117 #define MOUNTPROC3_UMNT 3
118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119 #define MOUNTPROC3_UMNTALL 4
120 #ifdef NFS_NEED_KERNEL_TYPES
121 #define NFS3_POST_OP_ATTR_WORDS 22
122 #endif
123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124 #endif
125