fcntl.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef _LINUX_FCNTL_H
  2. #define _LINUX_FCNTL_H
  3. #include <asm/fcntl.h>
  4. #define F_SETLEASE (F_LINUX_SPECIFIC_BASE + 0)
  5. #define F_GETLEASE (F_LINUX_SPECIFIC_BASE + 1)
  6. /*
  7. * Cancel a blocking posix lock; internal use only until we expose an
  8. * asynchronous lock api to userspace:
  9. */
  10. #define F_CANCELLK (F_LINUX_SPECIFIC_BASE + 5)
  11. /* Create a file descriptor with FD_CLOEXEC set. */
  12. #define F_DUPFD_CLOEXEC (F_LINUX_SPECIFIC_BASE + 6)
  13. /*
  14. * Request nofications on a directory.
  15. * See below for events that may be notified.
  16. */
  17. #define F_NOTIFY (F_LINUX_SPECIFIC_BASE+2)
  18. /*
  19. * Types of directory notifications that may be requested.
  20. */
  21. #define DN_ACCESS 0x00000001 /* File accessed */
  22. #define DN_MODIFY 0x00000002 /* File modified */
  23. #define DN_CREATE 0x00000004 /* File created */
  24. #define DN_DELETE 0x00000008 /* File removed */
  25. #define DN_RENAME 0x00000010 /* File renamed */
  26. #define DN_ATTRIB 0x00000020 /* File changed attibutes */
  27. #define DN_MULTISHOT 0x80000000 /* Don't remove notifier */
  28. #define AT_FDCWD -100 /* Special value used to indicate
  29. openat should use the current
  30. working directory. */
  31. #define AT_SYMLINK_NOFOLLOW 0x100 /* Do not follow symbolic links. */
  32. #define AT_REMOVEDIR 0x200 /* Remove directory instead of
  33. unlinking file. */
  34. #define AT_SYMLINK_FOLLOW 0x400 /* Follow symbolic links. */
  35. #define AT_NO_AUTOMOUNT 0x800 /* Suppress terminal automount traversal */
  36. #endif