diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-02-24 10:52:26 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-02-24 10:52:26 -0500 |
commit | 561c6731978fa128f29342495f47fc3365898b3d (patch) | |
tree | 6adc3a961708c8ec2d8e3a52e80bf9421f866066 /fs/read_write.c | |
parent | aee41fe2b2468bd3276e8eecd36c3e75927e2c53 (diff) |
switch lseek to COMPAT_SYSCALL_DEFINE
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/read_write.c')
-rw-r--r-- | fs/read_write.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/fs/read_write.c b/fs/read_write.c index bb34af315280..e57796cb7b59 100644 --- a/fs/read_write.c +++ b/fs/read_write.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/syscalls.h> | 15 | #include <linux/syscalls.h> |
16 | #include <linux/pagemap.h> | 16 | #include <linux/pagemap.h> |
17 | #include <linux/splice.h> | 17 | #include <linux/splice.h> |
18 | #include <linux/compat.h> | ||
18 | #include "read_write.h" | 19 | #include "read_write.h" |
19 | 20 | ||
20 | #include <asm/uaccess.h> | 21 | #include <asm/uaccess.h> |
@@ -247,6 +248,13 @@ SYSCALL_DEFINE3(lseek, unsigned int, fd, off_t, offset, unsigned int, whence) | |||
247 | return retval; | 248 | return retval; |
248 | } | 249 | } |
249 | 250 | ||
251 | #ifdef CONFIG_COMPAT | ||
252 | COMPAT_SYSCALL_DEFINE3(lseek, unsigned int, fd, compat_off_t, offset, unsigned int, whence) | ||
253 | { | ||
254 | return sys_lseek(fd, offset, whence); | ||
255 | } | ||
256 | #endif | ||
257 | |||
250 | #ifdef __ARCH_WANT_SYS_LLSEEK | 258 | #ifdef __ARCH_WANT_SYS_LLSEEK |
251 | SYSCALL_DEFINE5(llseek, unsigned int, fd, unsigned long, offset_high, | 259 | SYSCALL_DEFINE5(llseek, unsigned int, fd, unsigned long, offset_high, |
252 | unsigned long, offset_low, loff_t __user *, result, | 260 | unsigned long, offset_low, loff_t __user *, result, |
@@ -278,7 +286,6 @@ out_putf: | |||
278 | } | 286 | } |
279 | #endif | 287 | #endif |
280 | 288 | ||
281 | |||
282 | /* | 289 | /* |
283 | * rw_verify_area doesn't like huge counts. We limit | 290 | * rw_verify_area doesn't like huge counts. We limit |
284 | * them to something that fits in "int" so that others | 291 | * them to something that fits in "int" so that others |