ncp_mount.h
01:
02:
03:
04:
05:
06:
07:
08: #ifndef _LINUX_NCP_MOUNT_H
09: #define _LINUX_NCP_MOUNT_H
10:
11: #include <linux/types.h>
12: #include <linux/ncp.h>
13:
14: #define NCP_MOUNT_VERSION 3
15:
16:
17: #define NCP_MOUNT_SOFT 0x0001
18: #define NCP_MOUNT_INTR 0x0002
19: #define NCP_MOUNT_STRONG 0x0004
20: #define NCP_MOUNT_NO_OS2 0x0008
21: #define NCP_MOUNT_NO_NFS 0x0010
22: #define NCP_MOUNT_EXTRAS 0x0020
23: #define NCP_MOUNT_SYMLINKS 0x0040
24: #define NCP_MOUNT_NFS_EXTRAS 0x0080
25:
26: struct ncp_mount_data {
27: int version;
28: unsigned int ncp_fd;
29: __kernel_uid_t mounted_uid;
30: __kernel_pid_t wdog_pid;
31:
32: unsigned char mounted_vol[NCP_VOLNAME_LEN + 1];
33: unsigned int time_out;
34:
35: unsigned int retry_count;
36: unsigned int flags;
37:
38: __kernel_uid_t uid;
39: __kernel_gid_t gid;
40: __kernel_mode_t file_mode;
41: __kernel_mode_t dir_mode;
42: };
43:
44: #define NCP_MOUNT_VERSION_V4 (4)
45:
46: struct ncp_mount_data_v4 {
47: int version;
48: unsigned long flags;
49:
50:
51: unsigned long mounted_uid;
52:
53: long wdog_pid;
54:
55: unsigned int ncp_fd;
56: unsigned int time_out;
57:
58: unsigned int retry_count;
59:
60:
61:
62: unsigned long uid;
63: unsigned long gid;
64:
65: unsigned long file_mode;
66: unsigned long dir_mode;
67: };
68:
69: #define NCP_MOUNT_VERSION_V5 (5)
70:
71: #endif
72:
© Andrew Scott 2006 -
2025,
All Rights Reserved