diff options
Diffstat (limited to 'include/asm-generic/fcntl.h')
-rw-r--r-- | include/asm-generic/fcntl.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/asm-generic/fcntl.h b/include/asm-generic/fcntl.h index b001d7fe0384..b663520dcdc4 100644 --- a/include/asm-generic/fcntl.h +++ b/include/asm-generic/fcntl.h | |||
@@ -1,6 +1,7 @@ | |||
1 | #ifndef _ASM_GENERIC_FCNTL_H | 1 | #ifndef _ASM_GENERIC_FCNTL_H |
2 | #define _ASM_GENERIC_FCNTL_H | 2 | #define _ASM_GENERIC_FCNTL_H |
3 | 3 | ||
4 | #include <linux/config.h> | ||
4 | #include <linux/types.h> | 5 | #include <linux/types.h> |
5 | 6 | ||
6 | /* open/fcntl - O_SYNC is only implemented on blocks devices and on files | 7 | /* open/fcntl - O_SYNC is only implemented on blocks devices and on files |
@@ -121,4 +122,28 @@ struct flock { | |||
121 | }; | 122 | }; |
122 | #endif | 123 | #endif |
123 | 124 | ||
125 | #ifndef CONFIG_64BIT | ||
126 | |||
127 | #ifndef F_GETLK64 | ||
128 | #define F_GETLK64 12 /* using 'struct flock64' */ | ||
129 | #define F_SETLK64 13 | ||
130 | #define F_SETLKW64 14 | ||
131 | #endif | ||
132 | |||
133 | #ifndef HAVE_ARCH_STRUCT_FLOCK64 | ||
134 | #ifndef __ARCH_FLOCK64_PAD | ||
135 | #define __ARCH_FLOCK64_PAD | ||
136 | #endif | ||
137 | |||
138 | struct flock64 { | ||
139 | short l_type; | ||
140 | short l_whence; | ||
141 | loff_t l_start; | ||
142 | loff_t l_len; | ||
143 | pid_t l_pid; | ||
144 | __ARCH_FLOCK64_PAD | ||
145 | }; | ||
146 | #endif | ||
147 | #endif /* !CONFIG_64BIT */ | ||
148 | |||
124 | #endif /* _ASM_GENERIC_FCNTL_H */ | 149 | #endif /* _ASM_GENERIC_FCNTL_H */ |