diff options
author | David Howells <dhowells@redhat.com> | 2012-10-13 05:46:48 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2012-10-13 05:46:48 -0400 |
commit | 607ca46e97a1b6594b29647d98a32d545c24bdff (patch) | |
tree | 30f4c0784bfddb57332cdc0678bd06d1e77fa185 /include/linux/fcntl.h | |
parent | 08cce05c5a91f5017f4edc9866cf026908c73f9f (diff) |
UAPI: (Scripted) Disintegrate include/linux
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Michael Kerrisk <mtk.manpages@gmail.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Acked-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'include/linux/fcntl.h')
-rw-r--r-- | include/linux/fcntl.h | 50 |
1 files changed, 1 insertions, 49 deletions
diff --git a/include/linux/fcntl.h b/include/linux/fcntl.h index f550f894ba15..76ce329e656d 100644 --- a/include/linux/fcntl.h +++ b/include/linux/fcntl.h | |||
@@ -1,54 +1,8 @@ | |||
1 | #ifndef _LINUX_FCNTL_H | 1 | #ifndef _LINUX_FCNTL_H |
2 | #define _LINUX_FCNTL_H | 2 | #define _LINUX_FCNTL_H |
3 | 3 | ||
4 | #include <asm/fcntl.h> | 4 | #include <uapi/linux/fcntl.h> |
5 | 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 | 6 | ||
53 | #ifndef force_o_largefile | 7 | #ifndef force_o_largefile |
54 | #define force_o_largefile() (BITS_PER_LONG != 32) | 8 | #define force_o_largefile() (BITS_PER_LONG != 32) |
@@ -74,6 +28,4 @@ | |||
74 | #define IS_SETLK(cmd) (IS_SETLK32(cmd) || IS_SETLK64(cmd)) | 28 | #define IS_SETLK(cmd) (IS_SETLK32(cmd) || IS_SETLK64(cmd)) |
75 | #define IS_SETLKW(cmd) (IS_SETLKW32(cmd) || IS_SETLKW64(cmd)) | 29 | #define IS_SETLKW(cmd) (IS_SETLKW32(cmd) || IS_SETLKW64(cmd)) |
76 | 30 | ||
77 | #endif /* __KERNEL__ */ | ||
78 | |||
79 | #endif | 31 | #endif |