Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

y2038: rename old time and utime syscalls

The time, stime, utime, utimes, and futimesat system calls are only
used on older architectures, and we do not provide y2038 safe variants
of them, as they are replaced by clock_gettime64, clock_settime64,
and utimensat_time64.

However, for consistency it seems better to have the 32-bit architectures
that still use them call the "time32" entry points (leaving the
traditional handlers for the 64-bit architectures), like we do for system
calls that now require two versions.

Note: We used to always define __ARCH_WANT_SYS_TIME and
__ARCH_WANT_SYS_UTIME and only set __ARCH_WANT_COMPAT_SYS_TIME and
__ARCH_WANT_SYS_UTIME32 for compat mode on 64-bit kernels. Now this is
reversed: only 64-bit architectures set __ARCH_WANT_SYS_TIME/UTIME, while
we need __ARCH_WANT_SYS_TIME32/UTIME32 for 32-bit architectures and compat
mode. The resulting asm/unistd.h changes look a bit counterintuitive.

This is only a cleanup patch and it should not change any behavior.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com>

+98 -77
+2 -2
arch/arm/include/asm/unistd.h
··· 26 26 #define __ARCH_WANT_SYS_SIGPROCMASK 27 27 #define __ARCH_WANT_SYS_OLD_MMAP 28 28 #define __ARCH_WANT_SYS_OLD_SELECT 29 - #define __ARCH_WANT_SYS_UTIME 29 + #define __ARCH_WANT_SYS_UTIME32 30 30 31 31 #if !defined(CONFIG_AEABI) || defined(CONFIG_OABI_COMPAT) 32 - #define __ARCH_WANT_SYS_TIME 32 + #define __ARCH_WANT_SYS_TIME32 33 33 #define __ARCH_WANT_SYS_IPC 34 34 #define __ARCH_WANT_SYS_OLDUMOUNT 35 35 #define __ARCH_WANT_SYS_ALARM
+5 -5
arch/arm/tools/syscall.tbl
··· 24 24 10 common unlink sys_unlink 25 25 11 common execve sys_execve 26 26 12 common chdir sys_chdir 27 - 13 oabi time sys_time 27 + 13 oabi time sys_time32 28 28 14 common mknod sys_mknod 29 29 15 common chmod sys_chmod 30 30 16 common lchown sys_lchown16 ··· 36 36 22 oabi umount sys_oldumount 37 37 23 common setuid sys_setuid16 38 38 24 common getuid sys_getuid16 39 - 25 oabi stime sys_stime 39 + 25 oabi stime sys_stime32 40 40 26 common ptrace sys_ptrace 41 41 27 oabi alarm sys_alarm 42 42 # 28 was sys_fstat 43 43 29 common pause sys_pause 44 - 30 oabi utime sys_utime 44 + 30 oabi utime sys_utime32 45 45 # 31 was sys_stty 46 46 # 32 was sys_gtty 47 47 33 common access sys_access ··· 283 283 266 common statfs64 sys_statfs64_wrapper 284 284 267 common fstatfs64 sys_fstatfs64_wrapper 285 285 268 common tgkill sys_tgkill 286 - 269 common utimes sys_utimes 286 + 269 common utimes sys_utimes_time32 287 287 270 common arm_fadvise64_64 sys_arm_fadvise64_64 288 288 271 common pciconfig_iobase sys_pciconfig_iobase 289 289 272 common pciconfig_read sys_pciconfig_read ··· 340 340 323 common mkdirat sys_mkdirat 341 341 324 common mknodat sys_mknodat 342 342 325 common fchownat sys_fchownat 343 - 326 common futimesat sys_futimesat 343 + 326 common futimesat sys_futimesat_time32 344 344 327 common fstatat64 sys_fstatat64 sys_oabi_fstatat64 345 345 328 common unlinkat sys_unlinkat 346 346 329 common renameat sys_renameat
+2 -2
arch/m68k/include/asm/unistd.h
··· 15 15 #define __ARCH_WANT_SYS_IPC 16 16 #define __ARCH_WANT_SYS_PAUSE 17 17 #define __ARCH_WANT_SYS_SIGNAL 18 - #define __ARCH_WANT_SYS_TIME 19 - #define __ARCH_WANT_SYS_UTIME 18 + #define __ARCH_WANT_SYS_TIME32 19 + #define __ARCH_WANT_SYS_UTIME32 20 20 #define __ARCH_WANT_SYS_WAITPID 21 21 #define __ARCH_WANT_SYS_SOCKETCALL 22 22 #define __ARCH_WANT_SYS_FADVISE64
+5 -5
arch/m68k/kernel/syscalls/syscall.tbl
··· 20 20 10 common unlink sys_unlink 21 21 11 common execve sys_execve 22 22 12 common chdir sys_chdir 23 - 13 common time sys_time 23 + 13 common time sys_time32 24 24 14 common mknod sys_mknod 25 25 15 common chmod sys_chmod 26 26 16 common chown sys_chown16 ··· 32 32 22 common umount sys_oldumount 33 33 23 common setuid sys_setuid16 34 34 24 common getuid sys_getuid16 35 - 25 common stime sys_stime 35 + 25 common stime sys_stime32 36 36 26 common ptrace sys_ptrace 37 37 27 common alarm sys_alarm 38 38 28 common oldfstat sys_fstat 39 39 29 common pause sys_pause 40 - 30 common utime sys_utime 40 + 30 common utime sys_utime32 41 41 # 31 was stty 42 42 # 32 was gtty 43 43 33 common access sys_access ··· 273 273 263 common statfs64 sys_statfs64 274 274 264 common fstatfs64 sys_fstatfs64 275 275 265 common tgkill sys_tgkill 276 - 266 common utimes sys_utimes 276 + 266 common utimes sys_utimes_time32 277 277 267 common fadvise64_64 sys_fadvise64_64 278 278 268 common mbind sys_mbind 279 279 269 common get_mempolicy sys_get_mempolicy ··· 299 299 289 common mkdirat sys_mkdirat 300 300 290 common mknodat sys_mknodat 301 301 291 common fchownat sys_fchownat 302 - 292 common futimesat sys_futimesat 302 + 292 common futimesat sys_futimesat_time32 303 303 293 common fstatat64 sys_fstatat64 304 304 294 common unlinkat sys_unlinkat 305 305 295 common renameat sys_renameat
+2 -2
arch/microblaze/include/asm/unistd.h
··· 21 21 #define __ARCH_WANT_SYS_GETHOSTNAME 22 22 #define __ARCH_WANT_SYS_PAUSE 23 23 #define __ARCH_WANT_SYS_SIGNAL 24 - #define __ARCH_WANT_SYS_TIME 25 - #define __ARCH_WANT_SYS_UTIME 24 + #define __ARCH_WANT_SYS_TIME32 25 + #define __ARCH_WANT_SYS_UTIME32 26 26 #define __ARCH_WANT_SYS_WAITPID 27 27 #define __ARCH_WANT_SYS_SOCKETCALL 28 28 #define __ARCH_WANT_SYS_FADVISE64
+5 -5
arch/microblaze/kernel/syscalls/syscall.tbl
··· 20 20 10 common unlink sys_unlink 21 21 11 common execve sys_execve 22 22 12 common chdir sys_chdir 23 - 13 common time sys_time 23 + 13 common time sys_time32 24 24 14 common mknod sys_mknod 25 25 15 common chmod sys_chmod 26 26 16 common lchown sys_lchown ··· 32 32 22 common umount sys_oldumount 33 33 23 common setuid sys_setuid 34 34 24 common getuid sys_getuid 35 - 25 common stime sys_stime 35 + 25 common stime sys_stime32 36 36 26 common ptrace sys_ptrace 37 37 27 common alarm sys_alarm 38 38 28 common oldfstat sys_ni_syscall 39 39 29 common pause sys_pause 40 - 30 common utime sys_utime 40 + 30 common utime sys_utime32 41 41 31 common stty sys_ni_syscall 42 42 32 common gtty sys_ni_syscall 43 43 33 common access sys_access ··· 278 278 268 common statfs64 sys_statfs64 279 279 269 common fstatfs64 sys_fstatfs64 280 280 270 common tgkill sys_tgkill 281 - 271 common utimes sys_utimes 281 + 271 common utimes sys_utimes_time32 282 282 272 common fadvise64_64 sys_fadvise64_64 283 283 273 common vserver sys_ni_syscall 284 284 274 common mbind sys_mbind ··· 306 306 296 common mkdirat sys_mkdirat 307 307 297 common mknodat sys_mknodat 308 308 298 common fchownat sys_fchownat 309 - 299 common futimesat sys_futimesat 309 + 299 common futimesat sys_futimesat_time32 310 310 300 common fstatat64 sys_fstatat64 311 311 301 common unlinkat sys_unlinkat 312 312 302 common renameat sys_renameat
+2 -2
arch/mips/include/asm/unistd.h
··· 45 45 #define __ARCH_WANT_SYS_SIGPROCMASK 46 46 # ifdef CONFIG_32BIT 47 47 # define __ARCH_WANT_STAT64 48 - # define __ARCH_WANT_SYS_TIME 48 + # define __ARCH_WANT_SYS_TIME32 49 49 # endif 50 50 # ifdef CONFIG_MIPS32_O32 51 - # define __ARCH_WANT_COMPAT_SYS_TIME 51 + # define __ARCH_WANT_SYS_TIME32 52 52 # endif 53 53 #define __ARCH_WANT_SYS_FORK 54 54 #define __ARCH_WANT_SYS_CLONE
+5 -5
arch/mips/kernel/syscalls/syscall_o32.tbl
··· 20 20 10 o32 unlink sys_unlink 21 21 11 o32 execve sys_execve compat_sys_execve 22 22 12 o32 chdir sys_chdir 23 - 13 o32 time sys_time sys_time32 23 + 13 o32 time sys_time32 24 24 14 o32 mknod sys_mknod 25 25 15 o32 chmod sys_chmod 26 26 16 o32 lchown sys_lchown ··· 33 33 22 o32 umount sys_oldumount 34 34 23 o32 setuid sys_setuid 35 35 24 o32 getuid sys_getuid 36 - 25 o32 stime sys_stime sys_stime32 36 + 25 o32 stime sys_stime32 37 37 26 o32 ptrace sys_ptrace compat_sys_ptrace 38 38 27 o32 alarm sys_alarm 39 39 # 28 was sys_fstat 40 40 28 o32 unused28 sys_ni_syscall 41 41 29 o32 pause sys_pause 42 - 30 o32 utime sys_utime sys_utime32 42 + 30 o32 utime sys_utime32 43 43 31 o32 stty sys_ni_syscall 44 44 32 o32 gtty sys_ni_syscall 45 45 33 o32 access sys_access ··· 278 278 264 o32 clock_getres sys_clock_getres_time32 279 279 265 o32 clock_nanosleep sys_clock_nanosleep_time32 280 280 266 o32 tgkill sys_tgkill 281 - 267 o32 utimes sys_utimes sys_utimes_time32 281 + 267 o32 utimes sys_utimes_time32 282 282 268 o32 mbind sys_mbind compat_sys_mbind 283 283 269 o32 get_mempolicy sys_get_mempolicy compat_sys_get_mempolicy 284 284 270 o32 set_mempolicy sys_set_mempolicy compat_sys_set_mempolicy ··· 303 303 289 o32 mkdirat sys_mkdirat 304 304 290 o32 mknodat sys_mknodat 305 305 291 o32 fchownat sys_fchownat 306 - 292 o32 futimesat sys_futimesat sys_futimesat_time32 306 + 292 o32 futimesat sys_futimesat_time32 307 307 293 o32 fstatat64 sys_fstatat64 sys_newfstatat 308 308 294 o32 unlinkat sys_unlinkat 309 309 295 o32 renameat sys_renameat
+6 -3
arch/parisc/include/asm/unistd.h
··· 152 152 #define __ARCH_WANT_SYS_GETHOSTNAME 153 153 #define __ARCH_WANT_SYS_PAUSE 154 154 #define __ARCH_WANT_SYS_SIGNAL 155 - #define __ARCH_WANT_SYS_TIME 156 - #define __ARCH_WANT_COMPAT_SYS_TIME 155 + #define __ARCH_WANT_SYS_TIME32 157 156 #define __ARCH_WANT_COMPAT_SYS_SCHED_RR_GET_INTERVAL 158 - #define __ARCH_WANT_SYS_UTIME 159 157 #define __ARCH_WANT_SYS_UTIME32 160 158 #define __ARCH_WANT_SYS_WAITPID 161 159 #define __ARCH_WANT_SYS_SOCKETCALL ··· 167 169 #define __ARCH_WANT_SYS_VFORK 168 170 #define __ARCH_WANT_SYS_CLONE 169 171 #define __ARCH_WANT_COMPAT_SYS_SENDFILE 172 + 173 + #ifdef CONFIG_64BIT 174 + #define __ARCH_WANT_SYS_TIME 175 + #define __ARCH_WANT_SYS_UTIME 176 + #endif 170 177 171 178 #endif /* __ASSEMBLY__ */ 172 179
+10 -5
arch/parisc/kernel/syscalls/syscall.tbl
··· 20 20 10 common unlink sys_unlink 21 21 11 common execve sys_execve compat_sys_execve 22 22 12 common chdir sys_chdir 23 - 13 common time sys_time sys_time32 23 + 13 32 time sys_time32 24 + 13 64 time sys_time 24 25 14 common mknod sys_mknod 25 26 15 common chmod sys_chmod 26 27 16 common lchown sys_lchown ··· 33 32 22 common bind sys_bind 34 33 23 common setuid sys_setuid 35 34 24 common getuid sys_getuid 36 - 25 common stime sys_stime sys_stime32 35 + 25 32 stime sys_stime32 36 + 25 64 stime sys_stime 37 37 26 common ptrace sys_ptrace compat_sys_ptrace 38 38 27 common alarm sys_alarm 39 39 28 common fstat sys_newfstat compat_sys_newfstat 40 40 29 common pause sys_pause 41 - 30 common utime sys_utime sys_utime32 41 + 30 32 utime sys_utime32 42 + 30 64 utime sys_utime 42 43 31 common connect sys_connect 43 44 32 common listen sys_listen 44 45 33 common access sys_access ··· 313 310 276 common mkdirat sys_mkdirat 314 311 277 common mknodat sys_mknodat 315 312 278 common fchownat sys_fchownat 316 - 279 common futimesat sys_futimesat sys_futimesat_time32 313 + 279 32 futimesat sys_futimesat_time32 314 + 279 64 futimesat sys_futimesat 317 315 280 common fstatat64 sys_fstatat64 318 316 281 common unlinkat sys_unlinkat 319 317 282 common renameat sys_renameat ··· 378 374 333 common finit_module sys_finit_module 379 375 334 common sched_setattr sys_sched_setattr 380 376 335 common sched_getattr sys_sched_getattr 381 - 336 common utimes sys_utimes sys_utimes_time32 377 + 336 32 utimes sys_utimes_time32 378 + 336 64 utimes sys_utimes 382 379 337 common renameat2 sys_renameat2 383 380 338 common seccomp sys_seccomp 384 381 339 common getrandom sys_getrandom
+4 -4
arch/powerpc/include/asm/unistd.h
··· 29 29 #define __ARCH_WANT_SYS_IPC 30 30 #define __ARCH_WANT_SYS_PAUSE 31 31 #define __ARCH_WANT_SYS_SIGNAL 32 - #define __ARCH_WANT_SYS_TIME 33 - #define __ARCH_WANT_SYS_UTIME 32 + #define __ARCH_WANT_SYS_TIME32 33 + #define __ARCH_WANT_SYS_UTIME32 34 34 #define __ARCH_WANT_SYS_WAITPID 35 35 #define __ARCH_WANT_SYS_SOCKETCALL 36 36 #define __ARCH_WANT_SYS_FADVISE64 ··· 45 45 #define __ARCH_WANT_OLD_STAT 46 46 #endif 47 47 #ifdef CONFIG_PPC64 48 - #define __ARCH_WANT_COMPAT_SYS_TIME 49 - #define __ARCH_WANT_SYS_UTIME32 48 + #define __ARCH_WANT_SYS_TIME 49 + #define __ARCH_WANT_SYS_UTIME 50 50 #define __ARCH_WANT_SYS_NEWFSTATAT 51 51 #define __ARCH_WANT_COMPAT_SYS_SENDFILE 52 52 #endif
+14 -5
arch/powerpc/kernel/syscalls/syscall.tbl
··· 20 20 10 common unlink sys_unlink 21 21 11 nospu execve sys_execve compat_sys_execve 22 22 12 common chdir sys_chdir 23 - 13 common time sys_time sys_time32 23 + 13 32 time sys_time32 24 + 13 64 time sys_time 25 + 13 spu time sys_time 24 26 14 common mknod sys_mknod 25 27 15 common chmod sys_chmod 26 28 16 common lchown sys_lchown ··· 38 36 22 spu umount sys_ni_syscall 39 37 23 common setuid sys_setuid 40 38 24 common getuid sys_getuid 41 - 25 common stime sys_stime sys_stime32 39 + 25 32 stime sys_stime32 40 + 25 64 stime sys_stime 41 + 25 spu stime sys_stime 42 42 26 nospu ptrace sys_ptrace compat_sys_ptrace 43 43 27 common alarm sys_alarm 44 44 28 32 oldfstat sys_fstat sys_ni_syscall 45 45 28 64 oldfstat sys_ni_syscall 46 46 28 spu oldfstat sys_ni_syscall 47 47 29 nospu pause sys_pause 48 - 30 nospu utime sys_utime sys_utime32 48 + 30 32 utime sys_utime32 49 + 30 64 utime sys_utime 49 50 31 common stty sys_ni_syscall 50 51 32 common gtty sys_ni_syscall 51 52 33 common access sys_access ··· 320 315 249 64 swapcontext ppc64_swapcontext 321 316 249 spu swapcontext sys_ni_syscall 322 317 250 common tgkill sys_tgkill 323 - 251 common utimes sys_utimes sys_utimes_time32 318 + 251 32 utimes sys_utimes_time32 319 + 251 64 utimes sys_utimes 320 + 251 spu utimes sys_utimes 324 321 252 common statfs64 sys_statfs64 compat_sys_statfs64 325 322 253 common fstatfs64 sys_fstatfs64 compat_sys_fstatfs64 326 323 254 32 fadvise64_64 ppc_fadvise64_64 ··· 368 361 287 common mkdirat sys_mkdirat 369 362 288 common mknodat sys_mknodat 370 363 289 common fchownat sys_fchownat 371 - 290 common futimesat sys_futimesat sys_futimesat_time32 364 + 290 32 futimesat sys_futimesat_time32 365 + 290 64 futimesat sys_futimesat 366 + 290 spu utimesat sys_futimesat 372 367 291 32 fstatat64 sys_fstatat64 373 368 291 64 newfstatat sys_newfstatat 374 369 291 spu newfstatat sys_newfstatat
+1 -1
arch/s390/include/asm/unistd.h
··· 28 28 #define __ARCH_WANT_SYS_SIGPENDING 29 29 #define __ARCH_WANT_SYS_SIGPROCMASK 30 30 # ifdef CONFIG_COMPAT 31 - # define __ARCH_WANT_COMPAT_SYS_TIME 31 + # define __ARCH_WANT_SYS_TIME32 32 32 # define __ARCH_WANT_SYS_UTIME32 33 33 # endif 34 34 #define __ARCH_WANT_SYS_FORK
+2 -2
arch/sh/include/asm/unistd.h
··· 16 16 # define __ARCH_WANT_SYS_IPC 17 17 # define __ARCH_WANT_SYS_PAUSE 18 18 # define __ARCH_WANT_SYS_SIGNAL 19 - # define __ARCH_WANT_SYS_TIME 20 - # define __ARCH_WANT_SYS_UTIME 19 + # define __ARCH_WANT_SYS_TIME32 20 + # define __ARCH_WANT_SYS_UTIME32 21 21 # define __ARCH_WANT_SYS_WAITPID 22 22 # define __ARCH_WANT_SYS_SOCKETCALL 23 23 # define __ARCH_WANT_SYS_FADVISE64
+5 -5
arch/sh/kernel/syscalls/syscall.tbl
··· 20 20 10 common unlink sys_unlink 21 21 11 common execve sys_execve 22 22 12 common chdir sys_chdir 23 - 13 common time sys_time 23 + 13 common time sys_time32 24 24 14 common mknod sys_mknod 25 25 15 common chmod sys_chmod 26 26 16 common lchown sys_lchown16 ··· 32 32 22 common umount sys_oldumount 33 33 23 common setuid sys_setuid16 34 34 24 common getuid sys_getuid16 35 - 25 common stime sys_stime 35 + 25 common stime sys_stime32 36 36 26 common ptrace sys_ptrace 37 37 27 common alarm sys_alarm 38 38 28 common oldfstat sys_fstat 39 39 29 common pause sys_pause 40 - 30 common utime sys_utime 40 + 30 common utime sys_utime32 41 41 # 31 was stty 42 42 # 32 was gtty 43 43 33 common access sys_access ··· 278 278 268 common statfs64 sys_statfs64 279 279 269 common fstatfs64 sys_fstatfs64 280 280 270 common tgkill sys_tgkill 281 - 271 common utimes sys_utimes 281 + 271 common utimes sys_utimes_time32 282 282 272 common fadvise64_64 sys_fadvise64_64_wrapper 283 283 # 273 is reserved for vserver 284 284 274 common mbind sys_mbind ··· 306 306 296 common mkdirat sys_mkdirat 307 307 297 common mknodat sys_mknodat 308 308 298 common fchownat sys_fchownat 309 - 299 common futimesat sys_futimesat 309 + 299 common futimesat sys_futimesat_time32 310 310 300 common fstatat64 sys_fstatat64 311 311 301 common unlinkat sys_unlinkat 312 312 302 common renameat sys_renameat
+4 -4
arch/sparc/include/asm/unistd.h
··· 30 30 #define __ARCH_WANT_SYS_GETHOSTNAME 31 31 #define __ARCH_WANT_SYS_PAUSE 32 32 #define __ARCH_WANT_SYS_SIGNAL 33 - #define __ARCH_WANT_SYS_TIME 34 - #define __ARCH_WANT_SYS_UTIME 33 + #define __ARCH_WANT_SYS_TIME32 34 + #define __ARCH_WANT_SYS_UTIME32 35 35 #define __ARCH_WANT_SYS_WAITPID 36 36 #define __ARCH_WANT_SYS_SOCKETCALL 37 37 #define __ARCH_WANT_SYS_FADVISE64 ··· 43 43 #ifdef __32bit_syscall_numbers__ 44 44 #define __ARCH_WANT_SYS_IPC 45 45 #else 46 - #define __ARCH_WANT_COMPAT_SYS_TIME 47 - #define __ARCH_WANT_SYS_UTIME32 46 + #define __ARCH_WANT_SYS_TIME 47 + #define __ARCH_WANT_SYS_UTIME 48 48 #define __ARCH_WANT_COMPAT_SYS_SENDFILE 49 49 #endif 50 50
+9 -5
arch/sparc/kernel/syscalls/syscall.tbl
··· 44 44 28 common sigaltstack sys_sigaltstack compat_sys_sigaltstack 45 45 29 32 pause sys_pause 46 46 29 64 pause sys_nis_syscall 47 - 30 common utime sys_utime sys_utime32 47 + 30 32 utime sys_utime32 48 + 30 64 utime sys_utime 48 49 31 32 lchown32 sys_lchown 49 50 32 32 fchown32 sys_fchown 50 51 33 common access sys_access ··· 170 169 135 common socketpair sys_socketpair 171 170 136 common mkdir sys_mkdir 172 171 137 common rmdir sys_rmdir 173 - 138 common utimes sys_utimes sys_utimes_time32 172 + 138 32 utimes sys_utimes_time32 173 + 138 64 utimes sys_utimes 174 174 139 common stat64 sys_stat64 compat_sys_stat64 175 175 140 common sendfile64 sys_sendfile64 176 176 141 common getpeername sys_getpeername ··· 276 274 228 common setfsuid sys_setfsuid16 277 275 229 common setfsgid sys_setfsgid16 278 276 230 common _newselect sys_select compat_sys_select 279 - 231 32 time sys_time sys_time32 277 + 231 32 time sys_time32 280 278 232 common splice sys_splice 281 - 233 common stime sys_stime sys_stime32 279 + 233 32 stime sys_stime32 280 + 233 64 stime sys_stime 282 281 234 common statfs64 sys_statfs64 compat_sys_statfs64 283 282 235 common fstatfs64 sys_fstatfs64 compat_sys_fstatfs64 284 283 236 common _llseek sys_llseek ··· 348 345 285 common mkdirat sys_mkdirat 349 346 286 common mknodat sys_mknodat 350 347 287 common fchownat sys_fchownat 351 - 288 common futimesat sys_futimesat sys_futimesat_time32 348 + 288 32 futimesat sys_futimesat_time32 349 + 288 64 futimesat sys_futimesat 352 350 289 common fstatat64 sys_fstatat64 compat_sys_fstatat64 353 351 290 common unlinkat sys_unlinkat 354 352 291 common renameat sys_renameat
+5 -5
arch/x86/entry/syscalls/syscall_32.tbl
··· 24 24 10 i386 unlink sys_unlink __ia32_sys_unlink 25 25 11 i386 execve sys_execve __ia32_compat_sys_execve 26 26 12 i386 chdir sys_chdir __ia32_sys_chdir 27 - 13 i386 time sys_time __ia32_sys_time32 27 + 13 i386 time sys_time32 __ia32_sys_time32 28 28 14 i386 mknod sys_mknod __ia32_sys_mknod 29 29 15 i386 chmod sys_chmod __ia32_sys_chmod 30 30 16 i386 lchown sys_lchown16 __ia32_sys_lchown16 ··· 36 36 22 i386 umount sys_oldumount __ia32_sys_oldumount 37 37 23 i386 setuid sys_setuid16 __ia32_sys_setuid16 38 38 24 i386 getuid sys_getuid16 __ia32_sys_getuid16 39 - 25 i386 stime sys_stime __ia32_sys_stime32 39 + 25 i386 stime sys_stime32 __ia32_sys_stime32 40 40 26 i386 ptrace sys_ptrace __ia32_compat_sys_ptrace 41 41 27 i386 alarm sys_alarm __ia32_sys_alarm 42 42 28 i386 oldfstat sys_fstat __ia32_sys_fstat 43 43 29 i386 pause sys_pause __ia32_sys_pause 44 - 30 i386 utime sys_utime __ia32_sys_utime32 44 + 30 i386 utime sys_utime32 __ia32_sys_utime32 45 45 31 i386 stty 46 46 32 i386 gtty 47 47 33 i386 access sys_access __ia32_sys_access ··· 282 282 268 i386 statfs64 sys_statfs64 __ia32_compat_sys_statfs64 283 283 269 i386 fstatfs64 sys_fstatfs64 __ia32_compat_sys_fstatfs64 284 284 270 i386 tgkill sys_tgkill __ia32_sys_tgkill 285 - 271 i386 utimes sys_utimes __ia32_sys_utimes_time32 285 + 271 i386 utimes sys_utimes_time32 __ia32_sys_utimes_time32 286 286 272 i386 fadvise64_64 sys_fadvise64_64 __ia32_compat_sys_x86_fadvise64_64 287 287 273 i386 vserver 288 288 274 i386 mbind sys_mbind __ia32_sys_mbind ··· 310 310 296 i386 mkdirat sys_mkdirat __ia32_sys_mkdirat 311 311 297 i386 mknodat sys_mknodat __ia32_sys_mknodat 312 312 298 i386 fchownat sys_fchownat __ia32_sys_fchownat 313 - 299 i386 futimesat sys_futimesat __ia32_sys_futimesat_time32 313 + 299 i386 futimesat sys_futimesat_time32 __ia32_sys_futimesat_time32 314 314 300 i386 fstatat64 sys_fstatat64 __ia32_compat_sys_x86_fstatat 315 315 301 i386 unlinkat sys_unlinkat __ia32_sys_unlinkat 316 316 302 i386 renameat sys_renameat __ia32_sys_renameat
+4 -4
arch/x86/include/asm/unistd.h
··· 23 23 24 24 # include <asm/unistd_64.h> 25 25 # include <asm/unistd_64_x32.h> 26 - # define __ARCH_WANT_COMPAT_SYS_TIME 27 - # define __ARCH_WANT_SYS_UTIME32 26 + # define __ARCH_WANT_SYS_TIME 27 + # define __ARCH_WANT_SYS_UTIME 28 28 # define __ARCH_WANT_COMPAT_SYS_PREADV64 29 29 # define __ARCH_WANT_COMPAT_SYS_PWRITEV64 30 30 # define __ARCH_WANT_COMPAT_SYS_PREADV64V2 ··· 48 48 # define __ARCH_WANT_SYS_SIGPENDING 49 49 # define __ARCH_WANT_SYS_SIGPROCMASK 50 50 # define __ARCH_WANT_SYS_SOCKETCALL 51 - # define __ARCH_WANT_SYS_TIME 52 - # define __ARCH_WANT_SYS_UTIME 51 + # define __ARCH_WANT_SYS_TIME32 52 + # define __ARCH_WANT_SYS_UTIME32 53 53 # define __ARCH_WANT_SYS_WAITPID 54 54 # define __ARCH_WANT_SYS_FORK 55 55 # define __ARCH_WANT_SYS_VFORK
+1 -1
arch/xtensa/include/asm/unistd.h
··· 7 7 8 8 #define __ARCH_WANT_NEW_STAT 9 9 #define __ARCH_WANT_STAT64 10 - #define __ARCH_WANT_SYS_UTIME 10 + #define __ARCH_WANT_SYS_UTIME32 11 11 #define __ARCH_WANT_SYS_GETPGRP 12 12 13 13 #define NR_syscalls __NR_syscalls
+3 -3
arch/xtensa/kernel/syscalls/syscall.tbl
··· 72 72 61 common fcntl64 sys_fcntl64 73 73 62 common fallocate sys_fallocate 74 74 63 common fadvise64_64 xtensa_fadvise64_64 75 - 64 common utime sys_utime 76 - 65 common utimes sys_utimes 75 + 64 common utime sys_utime32 76 + 65 common utimes sys_utimes_time32 77 77 66 common ioctl sys_ioctl 78 78 67 common fcntl sys_fcntl 79 79 68 common setxattr sys_setxattr ··· 318 318 295 common readlinkat sys_readlinkat 319 319 296 common utimensat sys_utimensat_time32 320 320 297 common fchownat sys_fchownat 321 - 298 common futimesat sys_futimesat 321 + 298 common futimesat sys_futimesat_time32 322 322 299 common fstatat64 sys_fstatat64 323 323 300 common fchmodat sys_fchmodat 324 324 301 common faccessat sys_faccessat
+2 -2
kernel/time/time.c
··· 99 99 #endif /* __ARCH_WANT_SYS_TIME */ 100 100 101 101 #ifdef CONFIG_COMPAT_32BIT_TIME 102 - #ifdef __ARCH_WANT_COMPAT_SYS_TIME 102 + #ifdef __ARCH_WANT_SYS_TIME32 103 103 104 104 /* old_time32_t is a 32 bit "long" and needs to get converted. */ 105 105 SYSCALL_DEFINE1(time32, old_time32_t __user *, tloc) ··· 134 134 return 0; 135 135 } 136 136 137 - #endif /* __ARCH_WANT_COMPAT_SYS_TIME */ 137 + #endif /* __ARCH_WANT_SYS_TIME32 */ 138 138 #endif 139 139 140 140 SYSCALL_DEFINE2(gettimeofday, struct timeval __user *, tv,