cgroup, cpuset: remove cgroup_subsys->post_clone()
[linux-2.6/libata-dev.git] / include / linux / fcntl.h
blob76ce329e656d1eaca5a6d6792f97d3c067fa37c6
1 #ifndef _LINUX_FCNTL_H
2 #define _LINUX_FCNTL_H
4 #include <uapi/linux/fcntl.h>
7 #ifndef force_o_largefile
8 #define force_o_largefile() (BITS_PER_LONG != 32)
9 #endif
11 #if BITS_PER_LONG == 32
12 #define IS_GETLK32(cmd) ((cmd) == F_GETLK)
13 #define IS_SETLK32(cmd) ((cmd) == F_SETLK)
14 #define IS_SETLKW32(cmd) ((cmd) == F_SETLKW)
15 #define IS_GETLK64(cmd) ((cmd) == F_GETLK64)
16 #define IS_SETLK64(cmd) ((cmd) == F_SETLK64)
17 #define IS_SETLKW64(cmd) ((cmd) == F_SETLKW64)
18 #else
19 #define IS_GETLK32(cmd) (0)
20 #define IS_SETLK32(cmd) (0)
21 #define IS_SETLKW32(cmd) (0)
22 #define IS_GETLK64(cmd) ((cmd) == F_GETLK)
23 #define IS_SETLK64(cmd) ((cmd) == F_SETLK)
24 #define IS_SETLKW64(cmd) ((cmd) == F_SETLKW)
25 #endif /* BITS_PER_LONG == 32 */
27 #define IS_GETLK(cmd) (IS_GETLK32(cmd) || IS_GETLK64(cmd))
28 #define IS_SETLK(cmd) (IS_SETLK32(cmd) || IS_SETLK64(cmd))
29 #define IS_SETLKW(cmd) (IS_SETLKW32(cmd) || IS_SETLKW64(cmd))
31 #endif