| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 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_NCP_MOUNT_H | 
 | 20 | #define _LINUX_NCP_MOUNT_H | 
 | 21 | #include <linux/types.h> | 
 | 22 | #include <linux/ncp.h> | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 23 | #define NCP_MOUNT_VERSION 3 | 
 | 24 | #define NCP_MOUNT_SOFT 0x0001 | 
 | 25 | #define NCP_MOUNT_INTR 0x0002 | 
 | 26 | #define NCP_MOUNT_STRONG 0x0004 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 27 | #define NCP_MOUNT_NO_OS2 0x0008 | 
 | 28 | #define NCP_MOUNT_NO_NFS 0x0010 | 
 | 29 | #define NCP_MOUNT_EXTRAS 0x0020 | 
 | 30 | #define NCP_MOUNT_SYMLINKS 0x0040 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 31 | #define NCP_MOUNT_NFS_EXTRAS 0x0080 | 
 | 32 | struct ncp_mount_data { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 33 |   int version; | 
 | 34 |   unsigned int ncp_fd; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 35 |   __kernel_uid_t mounted_uid; | 
 | 36 |   __kernel_pid_t wdog_pid; | 
 | 37 |   unsigned char mounted_vol[NCP_VOLNAME_LEN + 1]; | 
 | 38 |   unsigned int time_out; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 39 |   unsigned int retry_count; | 
 | 40 |   unsigned int flags; | 
 | 41 |   __kernel_uid_t uid; | 
 | 42 |   __kernel_gid_t gid; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 43 |   __kernel_mode_t file_mode; | 
 | 44 |   __kernel_mode_t dir_mode; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 45 | }; | 
 | 46 | #define NCP_MOUNT_VERSION_V4 (4) | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 47 | struct ncp_mount_data_v4 { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 48 |   int version; | 
 | 49 |   unsigned long flags; | 
 | 50 |   unsigned long mounted_uid; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 51 |   long wdog_pid; | 
 | 52 |   unsigned int ncp_fd; | 
 | 53 |   unsigned int time_out; | 
 | 54 |   unsigned int retry_count; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 55 |   unsigned long uid; | 
 | 56 |   unsigned long gid; | 
 | 57 |   unsigned long file_mode; | 
 | 58 |   unsigned long dir_mode; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 59 | }; | 
 | 60 | #define NCP_MOUNT_VERSION_V5 (5) | 
 | 61 | #endif |