4 #include <uapi/linux/fcntl.h>
7 #ifndef force_o_largefile
8 #define force_o_largefile() (BITS_PER_LONG != 32)
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)
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))