summaryrefslogtreecommitdiffstats
path: root/include/linux/syscalls.h
diff options
context:
space:
mode:
authorDeepa Dinamani <deepa.kernel@gmail.com>2018-03-14 00:03:33 -0400
committerArnd Bergmann <arnd@arndb.de>2018-04-19 07:32:03 -0400
commit01909974b41036a6a8d3907c66cc7b41c9a73da9 (patch)
treea9152cca85ea79870dbd06c7717196f8981745f7 /include/linux/syscalls.h
parent6d5b84132459c644cf4ee8de090382bad44b8ebd (diff)
time: Change nanosleep to safe __kernel_* types
Change over clock_nanosleep syscalls to use y2038 safe __kernel_timespec times. This will enable changing over of these syscalls to use new y2038 safe syscalls when the architectures define the CONFIG_64BIT_TIME. Note that nanosleep syscall is deprecated and does not have a plan for making it y2038 safe. But, the syscall should work as before on 64 bit machines and on 32 bit machines, the syscall works correctly until y2038 as before using the existing compat syscall version. There is no new syscall for supporting 64 bit time_t on 32 bit architectures. Cc: linux-api@vger.kernel.org Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'include/linux/syscalls.h')
-rw-r--r--include/linux/syscalls.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h
index 40bb40d1741b..c9a2a2601852 100644
--- a/include/linux/syscalls.h
+++ b/include/linux/syscalls.h
@@ -536,7 +536,8 @@ asmlinkage long sys_set_robust_list(struct robust_list_head __user *head,
536 size_t len); 536 size_t len);
537 537
538/* kernel/hrtimer.c */ 538/* kernel/hrtimer.c */
539asmlinkage long sys_nanosleep(struct timespec __user *rqtp, struct timespec __user *rmtp); 539asmlinkage long sys_nanosleep(struct __kernel_timespec __user *rqtp,
540 struct __kernel_timespec __user *rmtp);
540 541
541/* kernel/itimer.c */ 542/* kernel/itimer.c */
542asmlinkage long sys_getitimer(int which, struct itimerval __user *value); 543asmlinkage long sys_getitimer(int which, struct itimerval __user *value);
@@ -573,8 +574,8 @@ asmlinkage long sys_clock_gettime(clockid_t which_clock,
573asmlinkage long sys_clock_getres(clockid_t which_clock, 574asmlinkage long sys_clock_getres(clockid_t which_clock,
574 struct __kernel_timespec __user *tp); 575 struct __kernel_timespec __user *tp);
575asmlinkage long sys_clock_nanosleep(clockid_t which_clock, int flags, 576asmlinkage long sys_clock_nanosleep(clockid_t which_clock, int flags,
576 const struct timespec __user *rqtp, 577 const struct __kernel_timespec __user *rqtp,
577 struct timespec __user *rmtp); 578 struct __kernel_timespec __user *rmtp);
578 579
579/* kernel/printk.c */ 580/* kernel/printk.c */
580asmlinkage long sys_syslog(int type, char __user *buf, int len); 581asmlinkage long sys_syslog(int type, char __user *buf, int len);