summaryrefslogtreecommitdiffstats
path: root/include/linux/syscalls.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-04-17 03:11:58 -0400
committerArnd Bergmann <arnd@arndb.de>2018-08-29 09:42:22 -0400
commita4f7a3004630f1a0fb130ab1824942a49ce33140 (patch)
treea0012351b8ea2637c78e0e0e2fc0a914a6a9bac0 /include/linux/syscalls.h
parentc5ba7e6c9ba545c3f67188de510d4cab2e3223b2 (diff)
y2038: Change sys_utimensat() to use __kernel_timespec
When 32-bit architectures get changed to support 64-bit time_t, utimensat() needs to use the new __kernel_timespec structure as its argument. The older utime(), utimes() and futimesat() system calls don't need a corresponding change as they are no longer used on C libraries that have 64-bit time support. As we do for the other syscalls that have timespec arguments, we reuse the 'compat' syscall entry points to implement the traditional four interfaces, and only leave the new utimensat() as a native handler, so that the same code gets used on both 32-bit and 64-bit kernels on each syscall. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'include/linux/syscalls.h')
-rw-r--r--include/linux/syscalls.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h
index b3e27e5ee322..420ac881a610 100644
--- a/include/linux/syscalls.h
+++ b/include/linux/syscalls.h
@@ -513,7 +513,8 @@ asmlinkage long sys_timerfd_gettime(int ufd, struct __kernel_itimerspec __user *
513 513
514/* fs/utimes.c */ 514/* fs/utimes.c */
515asmlinkage long sys_utimensat(int dfd, const char __user *filename, 515asmlinkage long sys_utimensat(int dfd, const char __user *filename,
516 struct timespec __user *utimes, int flags); 516 struct __kernel_timespec __user *utimes,
517 int flags);
517 518
518/* kernel/acct.c */ 519/* kernel/acct.c */
519asmlinkage long sys_acct(const char __user *name); 520asmlinkage long sys_acct(const char __user *name);