blob: ee3e84fd6c3ce5f97a5d03c5da0445c06d5aa818 [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/****************************************************************************
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 ***
Ben Cheng654325d2012-03-07 21:13:49 -080010 *** 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 ***
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080017 ****************************************************************************
18 ****************************************************************************/
19#ifndef _LINUX_NCP_MOUNT_H
20#define _LINUX_NCP_MOUNT_H
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080021#include <linux/types.h>
22#include <linux/ncp.h>
Ben Cheng654325d2012-03-07 21:13:49 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080024#define NCP_MOUNT_VERSION 3
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080025#define NCP_MOUNT_SOFT 0x0001
26#define NCP_MOUNT_INTR 0x0002
Elliott Hughesc95eb572013-01-29 18:15:55 -080027#define NCP_MOUNT_STRONG 0x0004
Ben Cheng654325d2012-03-07 21:13:49 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080029#define NCP_MOUNT_NO_OS2 0x0008
30#define NCP_MOUNT_NO_NFS 0x0010
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080031#define NCP_MOUNT_EXTRAS 0x0020
Elliott Hughesc95eb572013-01-29 18:15:55 -080032#define NCP_MOUNT_SYMLINKS 0x0040
Ben Cheng654325d2012-03-07 21:13:49 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080034#define NCP_MOUNT_NFS_EXTRAS 0x0080
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080035struct ncp_mount_data {
36 int version;
37 unsigned int ncp_fd;
Ben Cheng654325d2012-03-07 21:13:49 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080039 __kernel_uid_t mounted_uid;
40 __kernel_pid_t wdog_pid;
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080041 unsigned char mounted_vol[NCP_VOLNAME_LEN + 1];
42 unsigned int time_out;
Ben Cheng654325d2012-03-07 21:13:49 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080044 unsigned int retry_count;
45 unsigned int flags;
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080046 __kernel_uid_t uid;
47 __kernel_gid_t gid;
Ben Cheng654325d2012-03-07 21:13:49 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080049 __kernel_mode_t file_mode;
50 __kernel_mode_t dir_mode;
51};
Elliott Hughesc95eb572013-01-29 18:15:55 -080052#define NCP_MOUNT_VERSION_V4 (4)
Ben Cheng654325d2012-03-07 21:13:49 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080054struct ncp_mount_data_v4 {
55 int version;
56 unsigned long flags;
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080057 unsigned long mounted_uid;
Ben Cheng654325d2012-03-07 21:13:49 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080059 long wdog_pid;
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080060 unsigned int ncp_fd;
61 unsigned int time_out;
62 unsigned int retry_count;
Ben Cheng654325d2012-03-07 21:13:49 -080063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080064 unsigned long uid;
65 unsigned long gid;
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080066 unsigned long file_mode;
67 unsigned long dir_mode;
Ben Cheng654325d2012-03-07 21:13:49 -080068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080069};
Elliott Hughesc95eb572013-01-29 18:15:55 -080070#define NCP_MOUNT_VERSION_V5 (5)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080071#endif