aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/syscalls.h
diff options
context:
space:
mode:
authorDeepa Dinamani <deepa.kernel@gmail.com>2018-07-03 01:44:22 -0400
committerArnd Bergmann <arnd@arndb.de>2019-02-06 18:13:27 -0500
commit3876ced476c8ec17265d1739467e726ada88b660 (patch)
tree222617f692589b6362731cb248831db89c75f1cf /include/linux/syscalls.h
parentead25417f82ed7f8a21da4dcefc768169f7da884 (diff)
timex: change syscalls to use struct __kernel_timex
struct timex is not y2038 safe. Switch all the syscall apis to use y2038 safe __kernel_timex. Note that sys_adjtimex() does not have a y2038 safe solution. C libraries can implement it by calling clock_adjtime(CLOCK_REALTIME, ...). 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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h
index baa4b70b02d3..09330d5bda0c 100644
--- a/include/linux/syscalls.h
+++ b/include/linux/syscalls.h
@@ -54,7 +54,7 @@ struct __sysctl_args;
54struct sysinfo; 54struct sysinfo;
55struct timespec; 55struct timespec;
56struct timeval; 56struct timeval;
57struct timex; 57struct __kernel_timex;
58struct timezone; 58struct timezone;
59struct tms; 59struct tms;
60struct utimbuf; 60struct utimbuf;
@@ -695,7 +695,7 @@ asmlinkage long sys_gettimeofday(struct timeval __user *tv,
695 struct timezone __user *tz); 695 struct timezone __user *tz);
696asmlinkage long sys_settimeofday(struct timeval __user *tv, 696asmlinkage long sys_settimeofday(struct timeval __user *tv,
697 struct timezone __user *tz); 697 struct timezone __user *tz);
698asmlinkage long sys_adjtimex(struct timex __user *txc_p); 698asmlinkage long sys_adjtimex(struct __kernel_timex __user *txc_p);
699 699
700/* kernel/timer.c */ 700/* kernel/timer.c */
701asmlinkage long sys_getpid(void); 701asmlinkage long sys_getpid(void);
@@ -870,7 +870,7 @@ asmlinkage long sys_open_by_handle_at(int mountdirfd,
870 struct file_handle __user *handle, 870 struct file_handle __user *handle,
871 int flags); 871 int flags);
872asmlinkage long sys_clock_adjtime(clockid_t which_clock, 872asmlinkage long sys_clock_adjtime(clockid_t which_clock,
873 struct timex __user *tx); 873 struct __kernel_timex __user *tx);
874asmlinkage long sys_syncfs(int fd); 874asmlinkage long sys_syncfs(int fd);
875asmlinkage long sys_setns(int fd, int nstype); 875asmlinkage long sys_setns(int fd, int nstype);
876asmlinkage long sys_sendmmsg(int fd, struct mmsghdr __user *msg, 876asmlinkage long sys_sendmmsg(int fd, struct mmsghdr __user *msg,