aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/syscalls.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h
index 331da76f66e2..78b79e3a1279 100644
--- a/include/linux/syscalls.h
+++ b/include/linux/syscalls.h
@@ -1078,4 +1078,11 @@ static inline long ksys_open(const char __user *filename, int flags,
1078 return do_sys_open(AT_FDCWD, filename, flags, mode); 1078 return do_sys_open(AT_FDCWD, filename, flags, mode);
1079} 1079}
1080 1080
1081extern long do_sys_truncate(const char __user *pathname, loff_t length);
1082
1083static inline long ksys_truncate(const char __user *pathname, loff_t length)
1084{
1085 return do_sys_truncate(pathname, length);
1086}
1087
1081#endif 1088#endif