~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/fcntl.h

Version: ~ [ linux-5.2-rc1 ] ~ [ linux-5.1.2 ] ~ [ linux-5.0.16 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.43 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.119 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.176 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.179 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.139 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.67 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-3.9.11 ] ~ [ linux-3.8.13 ] ~ [ linux-3.7.10 ] ~ [ linux-3.6.11 ] ~ [ linux-3.5.7 ] ~ [ linux-3.4.113 ] ~ [ linux-3.3.8 ] ~ [ linux-3.2.102 ] ~ [ linux-3.1.10 ] ~ [ linux-3.0.101 ] ~ [ linux-2.6.39.4 ] ~ [ linux-2.6.38.8 ] ~ [ linux-2.6.37.6 ] ~ [ linux-2.6.36.4 ] ~ [ linux-2.6.35.14 ] ~ [ linux-2.6.34.15 ] ~ [ linux-2.6.33.20 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #ifndef _LINUX_FCNTL_H
  2 #define _LINUX_FCNTL_H
  3 
  4 #include <asm/fcntl.h>
  5 
  6 #define F_SETLEASE      (F_LINUX_SPECIFIC_BASE + 0)
  7 #define F_GETLEASE      (F_LINUX_SPECIFIC_BASE + 1)
  8 
  9 /*
 10  * Cancel a blocking posix lock; internal use only until we expose an
 11  * asynchronous lock api to userspace:
 12  */
 13 #define F_CANCELLK      (F_LINUX_SPECIFIC_BASE + 5)
 14 
 15 /* Create a file descriptor with FD_CLOEXEC set. */
 16 #define F_DUPFD_CLOEXEC (F_LINUX_SPECIFIC_BASE + 6)
 17 
 18 /*
 19  * Request nofications on a directory.
 20  * See below for events that may be notified.
 21  */
 22 #define F_NOTIFY        (F_LINUX_SPECIFIC_BASE+2)
 23 
 24 /*
 25  * Set and get of pipe page size array
 26  */
 27 #define F_SETPIPE_SZ    (F_LINUX_SPECIFIC_BASE + 7)
 28 #define F_GETPIPE_SZ    (F_LINUX_SPECIFIC_BASE + 8)
 29 
 30 /*
 31  * Types of directory notifications that may be requested.
 32  */
 33 #define DN_ACCESS       0x00000001      /* File accessed */
 34 #define DN_MODIFY       0x00000002      /* File modified */
 35 #define DN_CREATE       0x00000004      /* File created */
 36 #define DN_DELETE       0x00000008      /* File removed */
 37 #define DN_RENAME       0x00000010      /* File renamed */
 38 #define DN_ATTRIB       0x00000020      /* File changed attibutes */
 39 #define DN_MULTISHOT    0x80000000      /* Don't remove notifier */
 40 
 41 #define AT_FDCWD                -100    /* Special value used to indicate
 42                                            openat should use the current
 43                                            working directory. */
 44 #define AT_SYMLINK_NOFOLLOW     0x100   /* Do not follow symbolic links.  */
 45 #define AT_REMOVEDIR            0x200   /* Remove directory instead of
 46                                            unlinking file.  */
 47 #define AT_SYMLINK_FOLLOW       0x400   /* Follow symbolic links.  */
 48 #define AT_NO_AUTOMOUNT         0x800   /* Suppress terminal automount traversal */
 49 #define AT_EMPTY_PATH           0x1000  /* Allow empty relative pathname */
 50 
 51 #ifdef __KERNEL__
 52 
 53 #ifndef force_o_largefile
 54 #define force_o_largefile() (BITS_PER_LONG != 32)
 55 #endif
 56 
 57 #if BITS_PER_LONG == 32
 58 #define IS_GETLK32(cmd)         ((cmd) == F_GETLK)
 59 #define IS_SETLK32(cmd)         ((cmd) == F_SETLK)
 60 #define IS_SETLKW32(cmd)        ((cmd) == F_SETLKW)
 61 #define IS_GETLK64(cmd)         ((cmd) == F_GETLK64)
 62 #define IS_SETLK64(cmd)         ((cmd) == F_SETLK64)
 63 #define IS_SETLKW64(cmd)        ((cmd) == F_SETLKW64)
 64 #else
 65 #define IS_GETLK32(cmd)         (0)
 66 #define IS_SETLK32(cmd)         (0)
 67 #define IS_SETLKW32(cmd)        (0)
 68 #define IS_GETLK64(cmd)         ((cmd) == F_GETLK)
 69 #define IS_SETLK64(cmd)         ((cmd) == F_SETLK)
 70 #define IS_SETLKW64(cmd)        ((cmd) == F_SETLKW)
 71 #endif /* BITS_PER_LONG == 32 */
 72 
 73 #define IS_GETLK(cmd)   (IS_GETLK32(cmd)  || IS_GETLK64(cmd))
 74 #define IS_SETLK(cmd)   (IS_SETLK32(cmd)  || IS_SETLK64(cmd))
 75 #define IS_SETLKW(cmd)  (IS_SETLKW32(cmd) || IS_SETLKW64(cmd))
 76 
 77 #endif /* __KERNEL__ */
 78 
 79 #endif
 80 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp