diff options
Diffstat (limited to 'include/linux/syscalls.h')
-rw-r--r-- | include/linux/syscalls.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h index df0d1e818a6e..41023177c8ec 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h | |||
@@ -1038,4 +1038,11 @@ static inline long ksys_lchown(const char __user *filename, uid_t user, | |||
1038 | AT_SYMLINK_NOFOLLOW); | 1038 | AT_SYMLINK_NOFOLLOW); |
1039 | } | 1039 | } |
1040 | 1040 | ||
1041 | extern long do_sys_ftruncate(unsigned int fd, loff_t length, int small); | ||
1042 | |||
1043 | static inline long ksys_ftruncate(unsigned int fd, unsigned long length) | ||
1044 | { | ||
1045 | return do_sys_ftruncate(fd, length, 1); | ||
1046 | } | ||
1047 | |||
1041 | #endif | 1048 | #endif |