aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fcntl.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/linux/fcntl.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'include/linux/fcntl.h')
-rw-r--r--include/linux/fcntl.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/include/linux/fcntl.h b/include/linux/fcntl.h
new file mode 100644
index 000000000000..704fb76b6334
--- /dev/null
+++ b/include/linux/fcntl.h
@@ -0,0 +1,50 @@
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 * Request nofications on a directory.
11 * See below for events that may be notified.
12 */
13#define F_NOTIFY (F_LINUX_SPECIFIC_BASE+2)
14
15/*
16 * Types of directory notifications that may be requested.
17 */
18#define DN_ACCESS 0x00000001 /* File accessed */
19#define DN_MODIFY 0x00000002 /* File modified */
20#define DN_CREATE 0x00000004 /* File created */
21#define DN_DELETE 0x00000008 /* File removed */
22#define DN_RENAME 0x00000010 /* File renamed */
23#define DN_ATTRIB 0x00000020 /* File changed attibutes */
24#define DN_MULTISHOT 0x80000000 /* Don't remove notifier */
25
26#ifdef __KERNEL__
27
28#if BITS_PER_LONG == 32
29#define IS_GETLK32(cmd) ((cmd) == F_GETLK)
30#define IS_SETLK32(cmd) ((cmd) == F_SETLK)
31#define IS_SETLKW32(cmd) ((cmd) == F_SETLKW)
32#define IS_GETLK64(cmd) ((cmd) == F_GETLK64)
33#define IS_SETLK64(cmd) ((cmd) == F_SETLK64)
34#define IS_SETLKW64(cmd) ((cmd) == F_SETLKW64)
35#else
36#define IS_GETLK32(cmd) (0)
37#define IS_SETLK32(cmd) (0)
38#define IS_SETLKW32(cmd) (0)
39#define IS_GETLK64(cmd) ((cmd) == F_GETLK)
40#define IS_SETLK64(cmd) ((cmd) == F_SETLK)
41#define IS_SETLKW64(cmd) ((cmd) == F_SETLKW)
42#endif /* BITS_PER_LONG == 32 */
43
44#define IS_GETLK(cmd) (IS_GETLK32(cmd) || IS_GETLK64(cmd))
45#define IS_SETLK(cmd) (IS_SETLK32(cmd) || IS_SETLK64(cmd))
46#define IS_SETLKW(cmd) (IS_SETLKW32(cmd) || IS_SETLKW64(cmd))
47
48#endif /* __KERNEL__ */
49
50#endif