Home | History | Annotate | Download | only in linux
      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  ****************************************************************************
     11  ****************************************************************************/
     12 #ifndef _LINUX_NCP_MOUNT_H
     13 #define _LINUX_NCP_MOUNT_H
     14 
     15 #include <linux/types.h>
     16 #include <linux/ncp.h>
     17 
     18 #define NCP_MOUNT_VERSION 3
     19 
     20 #define NCP_MOUNT_SOFT 0x0001
     21 #define NCP_MOUNT_INTR 0x0002
     22 #define NCP_MOUNT_STRONG 0x0004
     23 #define NCP_MOUNT_NO_OS2 0x0008
     24 #define NCP_MOUNT_NO_NFS 0x0010
     25 #define NCP_MOUNT_EXTRAS 0x0020
     26 #define NCP_MOUNT_SYMLINKS 0x0040
     27 #define NCP_MOUNT_NFS_EXTRAS 0x0080
     28 
     29 struct ncp_mount_data {
     30  int version;
     31  unsigned int ncp_fd;
     32  __kernel_uid_t mounted_uid;
     33  __kernel_pid_t wdog_pid;
     34 
     35  unsigned char mounted_vol[NCP_VOLNAME_LEN + 1];
     36  unsigned int time_out;
     37  unsigned int retry_count;
     38  unsigned int flags;
     39 
     40  __kernel_uid_t uid;
     41  __kernel_gid_t gid;
     42  __kernel_mode_t file_mode;
     43  __kernel_mode_t dir_mode;
     44 };
     45 
     46 #define NCP_MOUNT_VERSION_V4 (4)
     47 
     48 struct ncp_mount_data_v4 {
     49  int version;
     50  unsigned long flags;
     51 
     52  unsigned long mounted_uid;
     53 
     54  long wdog_pid;
     55 
     56  unsigned int ncp_fd;
     57  unsigned int time_out;
     58  unsigned int retry_count;
     59 
     60  unsigned long uid;
     61  unsigned long gid;
     62 
     63  unsigned long file_mode;
     64  unsigned long dir_mode;
     65 };
     66 
     67 #define NCP_MOUNT_VERSION_V5 (5)
     68 
     69 #endif
     70