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_NFS_MOUNT_H
20 #define _LINUX_NFS_MOUNT_H
21 #include <linux/in.h>
22 #include <linux/nfs.h>
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #include <linux/nfs2.h>
25 #include <linux/nfs3.h>
26 #define NFS_MOUNT_VERSION 6
27 #define NFS_MAX_CONTEXT_LEN 256
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 struct nfs_mount_data {
30   int version;
31   int fd;
32   struct nfs2_fh old_root;
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34   int flags;
35   int rsize;
36   int wsize;
37   int timeo;
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39   int retrans;
40   int acregmin;
41   int acregmax;
42   int acdirmin;
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44   int acdirmax;
45   struct sockaddr_in addr;
46   char hostname[NFS_MAXNAMLEN + 1];
47   int namlen;
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49   unsigned int bsize;
50   struct nfs3_fh root;
51   int pseudoflavor;
52   char context[NFS_MAX_CONTEXT_LEN + 1];
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 };
55 #define NFS_MOUNT_SOFT 0x0001
56 #define NFS_MOUNT_INTR 0x0002
57 #define NFS_MOUNT_SECURE 0x0004
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 #define NFS_MOUNT_POSIX 0x0008
60 #define NFS_MOUNT_NOCTO 0x0010
61 #define NFS_MOUNT_NOAC 0x0020
62 #define NFS_MOUNT_TCP 0x0040
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 #define NFS_MOUNT_VER3 0x0080
65 #define NFS_MOUNT_KERBEROS 0x0100
66 #define NFS_MOUNT_NONLM 0x0200
67 #define NFS_MOUNT_BROKEN_SUID 0x0400
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 #define NFS_MOUNT_NOACL 0x0800
70 #define NFS_MOUNT_STRICTLOCK 0x1000
71 #define NFS_MOUNT_SECFLAVOUR 0x2000
72 #define NFS_MOUNT_NORDIRPLUS 0x4000
73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 #define NFS_MOUNT_UNSHARED 0x8000
75 #define NFS_MOUNT_FLAGMASK 0xFFFF
76 #define NFS_MOUNT_LOOKUP_CACHE_NONEG 0x10000
77 #define NFS_MOUNT_LOOKUP_CACHE_NONE 0x20000
78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79 #define NFS_MOUNT_NORESVPORT 0x40000
80 #define NFS_MOUNT_LEGACY_INTERFACE 0x80000
81 #define NFS_MOUNT_LOCAL_FLOCK 0x100000
82 #define NFS_MOUNT_LOCAL_FCNTL 0x200000
83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84 #endif
85