Root/
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 | |
49 | #ifdef __KERNEL__ |
50 | |
51 | #ifndef force_o_largefile |
52 | #define force_o_largefile() (BITS_PER_LONG != 32) |
53 | #endif |
54 | |
55 | #if BITS_PER_LONG == 32 |
56 | #define IS_GETLK32(cmd) ((cmd) == F_GETLK) |
57 | #define IS_SETLK32(cmd) ((cmd) == F_SETLK) |
58 | #define IS_SETLKW32(cmd) ((cmd) == F_SETLKW) |
59 | #define IS_GETLK64(cmd) ((cmd) == F_GETLK64) |
60 | #define IS_SETLK64(cmd) ((cmd) == F_SETLK64) |
61 | #define IS_SETLKW64(cmd) ((cmd) == F_SETLKW64) |
62 | #else |
63 | #define IS_GETLK32(cmd) (0) |
64 | #define IS_SETLK32(cmd) (0) |
65 | #define IS_SETLKW32(cmd) (0) |
66 | #define IS_GETLK64(cmd) ((cmd) == F_GETLK) |
67 | #define IS_SETLK64(cmd) ((cmd) == F_SETLK) |
68 | #define IS_SETLKW64(cmd) ((cmd) == F_SETLKW) |
69 | #endif /* BITS_PER_LONG == 32 */ |
70 | |
71 | #define IS_GETLK(cmd) (IS_GETLK32(cmd) || IS_GETLK64(cmd)) |
72 | #define IS_SETLK(cmd) (IS_SETLK32(cmd) || IS_SETLK64(cmd)) |
73 | #define IS_SETLKW(cmd) (IS_SETLKW32(cmd) || IS_SETLKW64(cmd)) |
74 | |
75 | #endif /* __KERNEL__ */ |
76 | |
77 | #endif |
78 |
Branches:
ben-wpan
ben-wpan-stefan
javiroman/ks7010
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9