File: /Users/paulross/dev/linux/linux-3.13/include/linux/fcntl.h

Green shading in the line number column means the source is part of the translation unit, red means it is conditionally excluded. Highlighted line numbers link to the translation unit page. Highlighted macros link to the macro page.

       1: #ifndef _LINUX_FCNTL_H
       2: #define _LINUX_FCNTL_H
       3: 
       4: #include <uapi/linux/fcntl.h>
       5: 
       6: 
       7: #ifndef force_o_largefile
       8: #define force_o_largefile() (BITS_PER_LONG != 32)
       9: #endif
      10: 
      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 */
      26: 
      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))
      30: 
      31: #endif
      32: