···2020#include <linux/vmalloc.h>2121#include <linux/sched.h>22222323-#include <linux/ncp_fs.h>2424-2523#include <asm/uaccess.h>26242727-#include "ncplib_kernel.h"2525+#include "ncp_fs.h"28262927/* maximum limit for ncp_objectname_ioctl */3028#define NCP_OBJECT_NAME_MAX_LEN 4096
+2-2
fs/ncpfs/mmap.c
···1616#include <linux/mman.h>1717#include <linux/string.h>1818#include <linux/fcntl.h>1919-#include <linux/ncp_fs.h>20192121-#include "ncplib_kernel.h"2220#include <asm/uaccess.h>2321#include <asm/system.h>2222+2323+#include "ncp_fs.h"24242525/*2626 * Fill in the supplied page for mmap
···25252626#include <linux/errno.h>2727#include <linux/fs.h>2828-#include <linux/ncp_fs.h>2928#include <linux/time.h>3029#include <linux/slab.h>3130#include <linux/mm.h>3231#include <linux/stat.h>3333-#include "ncplib_kernel.h"3434-3232+#include "ncp_fs.h"35333634/* these magic numbers must appear in the symlink file -- this makes it a bit3735 more resilient against the magic attributes being set on random files. */
···1313#include <linux/net.h>1414#include <linux/mutex.h>1515#include <linux/backing-dev.h>1616-1717-#ifdef __KERNEL__1818-1916#include <linux/workqueue.h>20172118#define NCP_DEFAULT_OPTIONS 0 /* 2 for packet signatures */22192320struct sock;2121+2222+struct ncp_mount_data_kernel {2323+ unsigned long flags; /* NCP_MOUNT_* flags */2424+ unsigned int int_flags; /* internal flags */2525+#define NCP_IMOUNT_LOGGEDIN_POSSIBLE 0x00012626+ __kernel_uid32_t mounted_uid; /* Who may umount() this filesystem? */2727+ struct pid *wdog_pid; /* Who cares for our watchdog packets? */2828+ unsigned int ncp_fd; /* The socket to the ncp port */2929+ unsigned int time_out; /* How long should I wait after3030+ sending a NCP request? */3131+ unsigned int retry_count; /* And how often should I retry? */3232+ unsigned char mounted_vol[NCP_VOLNAME_LEN + 1];3333+ __kernel_uid32_t uid;3434+ __kernel_gid32_t gid;3535+ __kernel_mode_t file_mode;3636+ __kernel_mode_t dir_mode;3737+ int info_fd;3838+};24392540struct ncp_server {2641···173158 server->conn_status |= 0x01;174159}175160176176-#endif /* __KERNEL__ */177177-178161#endif179179-
-22
include/linux/ncp_mount.h
···68686969#define NCP_MOUNT_VERSION_V5 (5) /* Text only */70707171-#ifdef __KERNEL__7272-7373-struct ncp_mount_data_kernel {7474- unsigned long flags; /* NCP_MOUNT_* flags */7575- unsigned int int_flags; /* internal flags */7676-#define NCP_IMOUNT_LOGGEDIN_POSSIBLE 0x00017777- __kernel_uid32_t mounted_uid; /* Who may umount() this filesystem? */7878- struct pid *wdog_pid; /* Who cares for our watchdog packets? */7979- unsigned int ncp_fd; /* The socket to the ncp port */8080- unsigned int time_out; /* How long should I wait after8181- sending a NCP request? */8282- unsigned int retry_count; /* And how often should I retry? */8383- unsigned char mounted_vol[NCP_VOLNAME_LEN + 1];8484- __kernel_uid32_t uid;8585- __kernel_gid32_t gid;8686- __kernel_mode_t file_mode;8787- __kernel_mode_t dir_mode;8888- int info_fd;8989-};9090-9191-#endif /* __KERNEL__ */9292-9371#endif