ncp_mount.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /*
  3. * ncp_mount.h
  4. *
  5. * Copyright (C) 1995, 1996 by Volker Lendecke
  6. *
  7. */
  8. #ifndef _LINUX_NCP_MOUNT_H
  9. #define _LINUX_NCP_MOUNT_H
  10. #include <linux/types.h>
  11. #include <linux/ncp.h>
  12. #define NCP_MOUNT_VERSION 3 /* Binary */
  13. /* Values for flags */
  14. #define NCP_MOUNT_SOFT 0x0001
  15. #define NCP_MOUNT_INTR 0x0002
  16. #define NCP_MOUNT_STRONG 0x0004 /* enable delete/rename of r/o files */
  17. #define NCP_MOUNT_NO_OS2 0x0008 /* do not use OS/2 (LONG) namespace */
  18. #define NCP_MOUNT_NO_NFS 0x0010 /* do not use NFS namespace */
  19. #define NCP_MOUNT_EXTRAS 0x0020
  20. #define NCP_MOUNT_SYMLINKS 0x0040 /* enable symlinks */
  21. #define NCP_MOUNT_NFS_EXTRAS 0x0080 /* Enable use of NFS NS meta-info */
  22. struct ncp_mount_data {
  23. int version;
  24. unsigned int ncp_fd; /* The socket to the ncp port */
  25. __kernel_uid_t mounted_uid; /* Who may umount() this filesystem? */
  26. __kernel_pid_t wdog_pid; /* Who cares for our watchdog packets? */
  27. unsigned char mounted_vol[NCP_VOLNAME_LEN + 1];
  28. unsigned int time_out; /* How long should I wait after
  29. sending a NCP request? */
  30. unsigned int retry_count; /* And how often should I retry? */
  31. unsigned int flags;
  32. __kernel_uid_t uid;
  33. __kernel_gid_t gid;
  34. __kernel_mode_t file_mode;
  35. __kernel_mode_t dir_mode;
  36. };
  37. #define NCP_MOUNT_VERSION_V4 (4) /* Binary or text */
  38. struct ncp_mount_data_v4 {
  39. int version;
  40. unsigned long flags; /* NCP_MOUNT_* flags */
  41. /* MIPS uses long __kernel_uid_t, but... */
  42. /* we neever pass -1, so it is safe */
  43. unsigned long mounted_uid; /* Who may umount() this filesystem? */
  44. /* MIPS uses long __kernel_pid_t */
  45. long wdog_pid; /* Who cares for our watchdog packets? */
  46. unsigned int ncp_fd; /* The socket to the ncp port */
  47. unsigned int time_out; /* How long should I wait after
  48. sending a NCP request? */
  49. unsigned int retry_count; /* And how often should I retry? */
  50. /* MIPS uses long __kernel_uid_t... */
  51. /* we never pass -1, so it is safe */
  52. unsigned long uid;
  53. unsigned long gid;
  54. /* MIPS uses unsigned long __kernel_mode_t */
  55. unsigned long file_mode;
  56. unsigned long dir_mode;
  57. };
  58. #define NCP_MOUNT_VERSION_V5 (5) /* Text only */
  59. #endif