Commit b1b988a6 authored by Linus Torvalds's avatar Linus Torvalds

Merge branch 'timers-2038-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull year 2038 updates from Thomas Gleixner:
 "Another round of changes to make the kernel ready for 2038. After lots
  of preparatory work this is the first set of syscalls which are 2038
  safe:

    403 clock_gettime64
    404 clock_settime64
    405 clock_adjtime64
    406 clock_getres_time64
    407 clock_nanosleep_time64
    408 timer_gettime64
    409 timer_settime64
    410 timerfd_gettime64
    411 timerfd_settime64
    412 utimensat_time64
    413 pselect6_time64
    414 ppoll_time64
    416 io_pgetevents_time64
    417 recvmmsg_time64
    418 mq_timedsend_time64
    419 mq_timedreceiv_time64
    420 semtimedop_time64
    421 rt_sigtimedwait_time64
    422 futex_time64
    423 sched_rr_get_interval_time64

  The syscall numbers are identical all over the architectures"

* 'timers-2038-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (36 commits)
  riscv: Use latest system call ABI
  checksyscalls: fix up mq_timedreceive and stat exceptions
  unicore32: Fix __ARCH_WANT_STAT64 definition
  asm-generic: Make time32 syscall numbers optional
  asm-generic: Drop getrlimit and setrlimit syscalls from default list
  32-bit userspace ABI: introduce ARCH_32BIT_OFF_T config option
  compat ABI: use non-compat openat and open_by_handle_at variants
  y2038: add 64-bit time_t syscalls to all 32-bit architectures
  y2038: rename old time and utime syscalls
  y2038: remove struct definition redirects
  y2038: use time32 syscall names on 32-bit
  syscalls: remove obsolete __IGNORE_ macros
  y2038: syscalls: rename y2038 compat syscalls
  x86/x32: use time64 versions of sigtimedwait and recvmmsg
  timex: change syscalls to use struct __kernel_timex
  timex: use __kernel_timex internally
  sparc64: add custom adjtimex/clock_adjtime functions
  time: fix sys_timer_settime prototype
  time: Add struct __kernel_timex
  time: make adjtime compat handling available for 32 bit
  ...
parents edaed168 cfbe2716
...@@ -276,6 +276,16 @@ config ARCH_THREAD_STACK_ALLOCATOR ...@@ -276,6 +276,16 @@ config ARCH_THREAD_STACK_ALLOCATOR
config ARCH_WANTS_DYNAMIC_TASK_STRUCT config ARCH_WANTS_DYNAMIC_TASK_STRUCT
bool bool
config ARCH_32BIT_OFF_T
bool
depends on !64BIT
help
All new 32-bit architectures should have 64-bit off_t type on
userspace side which corresponds to the loff_t kernel type. This
is the requirement for modern ABIs. Some existing architectures
still support 32-bit off_t. This option is enabled for all such
architectures explicitly.
config HAVE_REGS_AND_STACK_ACCESS_API config HAVE_REGS_AND_STACK_ACCESS_API
bool bool
help help
...@@ -759,7 +769,7 @@ config 64BIT_TIME ...@@ -759,7 +769,7 @@ config 64BIT_TIME
handling. handling.
config COMPAT_32BIT_TIME config COMPAT_32BIT_TIME
def_bool (!64BIT && 64BIT_TIME) || COMPAT def_bool !64BIT || COMPAT
help help
This enables 32 bit time_t support in addition to 64 bit time_t support. This enables 32 bit time_t support in addition to 64 bit time_t support.
This is relevant on all 32-bit architectures, and 64-bit architectures This is relevant on all 32-bit architectures, and 64-bit architectures
......
...@@ -19,25 +19,4 @@ ...@@ -19,25 +19,4 @@
#define __ARCH_WANT_SYS_VFORK #define __ARCH_WANT_SYS_VFORK
#define __ARCH_WANT_SYS_CLONE #define __ARCH_WANT_SYS_CLONE
/*
* Ignore legacy syscalls that we don't use.
*/
#define __IGNORE_alarm
#define __IGNORE_creat
#define __IGNORE_getegid
#define __IGNORE_geteuid
#define __IGNORE_getgid
#define __IGNORE_getpid
#define __IGNORE_getppid
#define __IGNORE_getuid
#define __IGNORE_pause
#define __IGNORE_time
#define __IGNORE_utime
#define __IGNORE_umount2
/* Alpha doesn't have protection keys. */
#define __IGNORE_pkey_mprotect
#define __IGNORE_pkey_alloc
#define __IGNORE_pkey_free
#endif /* _ALPHA_UNISTD_H */ #endif /* _ALPHA_UNISTD_H */
...@@ -2,6 +2,16 @@ ...@@ -2,6 +2,16 @@
#ifndef _UAPI_ALPHA_UNISTD_H #ifndef _UAPI_ALPHA_UNISTD_H
#define _UAPI_ALPHA_UNISTD_H #define _UAPI_ALPHA_UNISTD_H
/* These are traditionally the names linux-alpha uses for
* the two otherwise generic system calls */
#define __NR_umount __NR_umount2
#define __NR_osf_shmat __NR_shmat
/* These return an extra value but can be used as aliases */
#define __NR_getpid __NR_getxpid
#define __NR_getuid __NR_getxuid
#define __NR_getgid __NR_getxgid
#include <asm/unistd_32.h> #include <asm/unistd_32.h>
#endif /* _UAPI_ALPHA_UNISTD_H */ #endif /* _UAPI_ALPHA_UNISTD_H */
...@@ -1253,7 +1253,7 @@ struct timex32 { ...@@ -1253,7 +1253,7 @@ struct timex32 {
SYSCALL_DEFINE1(old_adjtimex, struct timex32 __user *, txc_p) SYSCALL_DEFINE1(old_adjtimex, struct timex32 __user *, txc_p)
{ {
struct timex txc; struct __kernel_timex txc;
int ret; int ret;
/* copy relevant bits of struct timex. */ /* copy relevant bits of struct timex. */
...@@ -1270,7 +1270,8 @@ SYSCALL_DEFINE1(old_adjtimex, struct timex32 __user *, txc_p) ...@@ -1270,7 +1270,8 @@ SYSCALL_DEFINE1(old_adjtimex, struct timex32 __user *, txc_p)
if (copy_to_user(txc_p, &txc, offsetof(struct timex32, time)) || if (copy_to_user(txc_p, &txc, offsetof(struct timex32, time)) ||
(copy_to_user(&txc_p->tick, &txc.tick, sizeof(struct timex32) - (copy_to_user(&txc_p->tick, &txc.tick, sizeof(struct timex32) -
offsetof(struct timex32, tick))) || offsetof(struct timex32, tick))) ||
(put_tv_to_tv32(&txc_p->time, &txc.time))) (put_user(txc.time.tv_sec, &txc_p->time.tv_sec)) ||
(put_user(txc.time.tv_usec, &txc_p->time.tv_usec)))
return -EFAULT; return -EFAULT;
return ret; return ret;
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
19 common lseek sys_lseek 19 common lseek sys_lseek
20 common getxpid sys_getxpid 20 common getxpid sys_getxpid
21 common osf_mount sys_osf_mount 21 common osf_mount sys_osf_mount
22 common umount sys_umount 22 common umount2 sys_umount
23 common setuid sys_setuid 23 common setuid sys_setuid
24 common getxuid sys_getxuid 24 common getxuid sys_getxuid
25 common exec_with_loader sys_ni_syscall 25 common exec_with_loader sys_ni_syscall
...@@ -174,17 +174,17 @@ ...@@ -174,17 +174,17 @@
187 common osf_alt_sigpending sys_ni_syscall 187 common osf_alt_sigpending sys_ni_syscall
188 common osf_alt_setsid sys_ni_syscall 188 common osf_alt_setsid sys_ni_syscall
199 common osf_swapon sys_swapon 199 common osf_swapon sys_swapon
200 common msgctl sys_msgctl 200 common msgctl sys_old_msgctl
201 common msgget sys_msgget 201 common msgget sys_msgget
202 common msgrcv sys_msgrcv 202 common msgrcv sys_msgrcv
203 common msgsnd sys_msgsnd 203 common msgsnd sys_msgsnd
204 common semctl sys_semctl 204 common semctl sys_old_semctl
205 common semget sys_semget 205 common semget sys_semget
206 common semop sys_semop 206 common semop sys_semop
207 common osf_utsname sys_osf_utsname 207 common osf_utsname sys_osf_utsname
208 common lchown sys_lchown 208 common lchown sys_lchown
209 common osf_shmat sys_shmat 209 common shmat sys_shmat
210 common shmctl sys_shmctl 210 common shmctl sys_old_shmctl
211 common shmdt sys_shmdt 211 common shmdt sys_shmdt
212 common shmget sys_shmget 212 common shmget sys_shmget
213 common osf_mvalid sys_ni_syscall 213 common osf_mvalid sys_ni_syscall
...@@ -451,3 +451,15 @@ ...@@ -451,3 +451,15 @@
520 common preadv2 sys_preadv2 520 common preadv2 sys_preadv2
521 common pwritev2 sys_pwritev2 521 common pwritev2 sys_pwritev2
522 common statx sys_statx 522 common statx sys_statx
523 common io_pgetevents sys_io_pgetevents
524 common pkey_mprotect sys_pkey_mprotect
525 common pkey_alloc sys_pkey_alloc
526 common pkey_free sys_pkey_free
527 common rseq sys_rseq
528 common statfs64 sys_statfs64
529 common fstatfs64 sys_fstatfs64
530 common getegid sys_getegid
531 common geteuid sys_geteuid
532 common getppid sys_getppid
# all other architectures have common numbers for new syscall, alpha
# is the exception.
...@@ -14,6 +14,7 @@ config ARC ...@@ -14,6 +14,7 @@ config ARC
select ARCH_HAS_SYNC_DMA_FOR_CPU select ARCH_HAS_SYNC_DMA_FOR_CPU
select ARCH_HAS_SYNC_DMA_FOR_DEVICE select ARCH_HAS_SYNC_DMA_FOR_DEVICE
select ARCH_SUPPORTS_ATOMIC_RMW if ARC_HAS_LLSC select ARCH_SUPPORTS_ATOMIC_RMW if ARC_HAS_LLSC
select ARCH_32BIT_OFF_T
select BUILDTIME_EXTABLE_SORT select BUILDTIME_EXTABLE_SORT
select CLONE_BACKWARDS select CLONE_BACKWARDS
select COMMON_CLK select COMMON_CLK
......
...@@ -18,10 +18,12 @@ ...@@ -18,10 +18,12 @@
#define __ARCH_WANT_RENAMEAT #define __ARCH_WANT_RENAMEAT
#define __ARCH_WANT_STAT64 #define __ARCH_WANT_STAT64
#define __ARCH_WANT_SET_GET_RLIMIT
#define __ARCH_WANT_SYS_EXECVE #define __ARCH_WANT_SYS_EXECVE
#define __ARCH_WANT_SYS_CLONE #define __ARCH_WANT_SYS_CLONE
#define __ARCH_WANT_SYS_VFORK #define __ARCH_WANT_SYS_VFORK
#define __ARCH_WANT_SYS_FORK #define __ARCH_WANT_SYS_FORK
#define __ARCH_WANT_TIME32_SYSCALLS
#define sys_mmap2 sys_mmap_pgoff #define sys_mmap2 sys_mmap_pgoff
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
config ARM config ARM
bool bool
default y default y
select ARCH_32BIT_OFF_T
select ARCH_CLOCKSOURCE_DATA select ARCH_CLOCKSOURCE_DATA
select ARCH_DISCARD_MEMBLOCK if !HAVE_ARCH_PFN_VALID && !KEXEC select ARCH_DISCARD_MEMBLOCK if !HAVE_ARCH_PFN_VALID && !KEXEC
select ARCH_HAS_DEBUG_VIRTUAL if MMU select ARCH_HAS_DEBUG_VIRTUAL if MMU
......
...@@ -26,10 +26,10 @@ ...@@ -26,10 +26,10 @@
#define __ARCH_WANT_SYS_SIGPROCMASK #define __ARCH_WANT_SYS_SIGPROCMASK
#define __ARCH_WANT_SYS_OLD_MMAP #define __ARCH_WANT_SYS_OLD_MMAP
#define __ARCH_WANT_SYS_OLD_SELECT #define __ARCH_WANT_SYS_OLD_SELECT
#define __ARCH_WANT_SYS_UTIME #define __ARCH_WANT_SYS_UTIME32
#if !defined(CONFIG_AEABI) || defined(CONFIG_OABI_COMPAT) #if !defined(CONFIG_AEABI) || defined(CONFIG_OABI_COMPAT)
#define __ARCH_WANT_SYS_TIME #define __ARCH_WANT_SYS_TIME32
#define __ARCH_WANT_SYS_IPC #define __ARCH_WANT_SYS_IPC
#define __ARCH_WANT_SYS_OLDUMOUNT #define __ARCH_WANT_SYS_OLDUMOUNT
#define __ARCH_WANT_SYS_ALARM #define __ARCH_WANT_SYS_ALARM
...@@ -45,7 +45,6 @@ ...@@ -45,7 +45,6 @@
* Unimplemented (or alternatively implemented) syscalls * Unimplemented (or alternatively implemented) syscalls
*/ */
#define __IGNORE_fadvise64_64 #define __IGNORE_fadvise64_64
#define __IGNORE_migrate_pages
#ifdef __ARM_EABI__ #ifdef __ARM_EABI__
/* /*
......
...@@ -317,10 +317,10 @@ struct oabi_sembuf { ...@@ -317,10 +317,10 @@ struct oabi_sembuf {
asmlinkage long sys_oabi_semtimedop(int semid, asmlinkage long sys_oabi_semtimedop(int semid,
struct oabi_sembuf __user *tsops, struct oabi_sembuf __user *tsops,
unsigned nsops, unsigned nsops,
const struct timespec __user *timeout) const struct old_timespec32 __user *timeout)
{ {
struct sembuf *sops; struct sembuf *sops;
struct timespec local_timeout; struct old_timespec32 local_timeout;
long err; long err;
int i; int i;
...@@ -350,7 +350,7 @@ asmlinkage long sys_oabi_semtimedop(int semid, ...@@ -350,7 +350,7 @@ asmlinkage long sys_oabi_semtimedop(int semid,
} else { } else {
mm_segment_t fs = get_fs(); mm_segment_t fs = get_fs();
set_fs(KERNEL_DS); set_fs(KERNEL_DS);
err = sys_semtimedop(semid, sops, nsops, timeout); err = sys_semtimedop_time32(semid, sops, nsops, timeout);
set_fs(fs); set_fs(fs);
} }
kfree(sops); kfree(sops);
...@@ -375,7 +375,7 @@ asmlinkage int sys_oabi_ipc(uint call, int first, int second, int third, ...@@ -375,7 +375,7 @@ asmlinkage int sys_oabi_ipc(uint call, int first, int second, int third,
return sys_oabi_semtimedop(first, return sys_oabi_semtimedop(first,
(struct oabi_sembuf __user *)ptr, (struct oabi_sembuf __user *)ptr,
second, second,
(const struct timespec __user *)fifth); (const struct old_timespec32 __user *)fifth);
default: default:
return sys_ipc(call, first, second, third, ptr, fifth); return sys_ipc(call, first, second, third, ptr, fifth);
} }
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
10 common unlink sys_unlink 10 common unlink sys_unlink
11 common execve sys_execve 11 common execve sys_execve
12 common chdir sys_chdir 12 common chdir sys_chdir
13 oabi time sys_time 13 oabi time sys_time32
14 common mknod sys_mknod 14 common mknod sys_mknod
15 common chmod sys_chmod 15 common chmod sys_chmod
16 common lchown sys_lchown16 16 common lchown sys_lchown16
...@@ -36,12 +36,12 @@ ...@@ -36,12 +36,12 @@
22 oabi umount sys_oldumount 22 oabi umount sys_oldumount
23 common setuid sys_setuid16 23 common setuid sys_setuid16
24 common getuid sys_getuid16 24 common getuid sys_getuid16
25 oabi stime sys_stime 25 oabi stime sys_stime32
26 common ptrace sys_ptrace 26 common ptrace sys_ptrace
27 oabi alarm sys_alarm 27 oabi alarm sys_alarm
# 28 was sys_fstat # 28 was sys_fstat
29 common pause sys_pause 29 common pause sys_pause
30 oabi utime sys_utime 30 oabi utime sys_utime32
# 31 was sys_stty # 31 was sys_stty
# 32 was sys_gtty # 32 was sys_gtty
33 common access sys_access 33 common access sys_access
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
121 common setdomainname sys_setdomainname 121 common setdomainname sys_setdomainname
122 common uname sys_newuname 122 common uname sys_newuname
# 123 was sys_modify_ldt # 123 was sys_modify_ldt
124 common adjtimex sys_adjtimex 124 common adjtimex sys_adjtimex_time32
125 common mprotect sys_mprotect 125 common mprotect sys_mprotect
126 common sigprocmask sys_sigprocmask 126 common sigprocmask sys_sigprocmask
# 127 was sys_create_module # 127 was sys_create_module
...@@ -174,8 +174,8 @@ ...@@ -174,8 +174,8 @@
158 common sched_yield sys_sched_yield 158 common sched_yield sys_sched_yield
159 common sched_get_priority_max sys_sched_get_priority_max 159 common sched_get_priority_max sys_sched_get_priority_max
160 common sched_get_priority_min sys_sched_get_priority_min 160 common sched_get_priority_min sys_sched_get_priority_min
161 common sched_rr_get_interval sys_sched_rr_get_interval 161 common sched_rr_get_interval sys_sched_rr_get_interval_time32
162 common nanosleep sys_nanosleep 162 common nanosleep sys_nanosleep_time32
163 common mremap sys_mremap 163 common mremap sys_mremap
164 common setresuid sys_setresuid16 164 common setresuid sys_setresuid16
165 common getresuid sys_getresuid16 165 common getresuid sys_getresuid16
...@@ -190,7 +190,7 @@ ...@@ -190,7 +190,7 @@
174 common rt_sigaction sys_rt_sigaction 174 common rt_sigaction sys_rt_sigaction
175 common rt_sigprocmask sys_rt_sigprocmask 175 common rt_sigprocmask sys_rt_sigprocmask
176 common rt_sigpending sys_rt_sigpending 176 common rt_sigpending sys_rt_sigpending
177 common rt_sigtimedwait sys_rt_sigtimedwait 177 common rt_sigtimedwait sys_rt_sigtimedwait_time32
178 common rt_sigqueueinfo sys_rt_sigqueueinfo 178 common rt_sigqueueinfo sys_rt_sigqueueinfo
179 common rt_sigsuspend sys_rt_sigsuspend 179 common rt_sigsuspend sys_rt_sigsuspend
180 common pread64 sys_pread64 sys_oabi_pread64 180 common pread64 sys_pread64 sys_oabi_pread64
...@@ -254,12 +254,12 @@ ...@@ -254,12 +254,12 @@
237 common fremovexattr sys_fremovexattr 237 common fremovexattr sys_fremovexattr
238 common tkill sys_tkill 238 common tkill sys_tkill
239 common sendfile64 sys_sendfile64 239 common sendfile64 sys_sendfile64
240 common futex sys_futex 240 common futex sys_futex_time32
241 common sched_setaffinity sys_sched_setaffinity 241 common sched_setaffinity sys_sched_setaffinity
242 common sched_getaffinity sys_sched_getaffinity 242 common sched_getaffinity sys_sched_getaffinity
243 common io_setup sys_io_setup 243 common io_setup sys_io_setup
244 common io_destroy sys_io_destroy 244 common io_destroy sys_io_destroy
245 common io_getevents sys_io_getevents 245 common io_getevents sys_io_getevents_time32
246 common io_submit sys_io_submit 246 common io_submit sys_io_submit
247 common io_cancel sys_io_cancel 247 common io_cancel sys_io_cancel
248 common exit_group sys_exit_group 248 common exit_group sys_exit_group
...@@ -272,26 +272,26 @@ ...@@ -272,26 +272,26 @@
# 255 for get_thread_area # 255 for get_thread_area
256 common set_tid_address sys_set_tid_address 256 common set_tid_address sys_set_tid_address
257 common timer_create sys_timer_create 257 common timer_create sys_timer_create
258 common timer_settime sys_timer_settime 258 common timer_settime sys_timer_settime32
259 common timer_gettime sys_timer_gettime 259 common timer_gettime sys_timer_gettime32
260 common timer_getoverrun sys_timer_getoverrun 260 common timer_getoverrun sys_timer_getoverrun
261 common timer_delete sys_timer_delete 261 common timer_delete sys_timer_delete
262 common clock_settime sys_clock_settime 262 common clock_settime sys_clock_settime32
263 common clock_gettime sys_clock_gettime 263 common clock_gettime sys_clock_gettime32
264 common clock_getres sys_clock_getres 264 common clock_getres sys_clock_getres_time32
265 common clock_nanosleep sys_clock_nanosleep 265 common clock_nanosleep sys_clock_nanosleep_time32
266 common statfs64 sys_statfs64_wrapper 266 common statfs64 sys_statfs64_wrapper
267 common fstatfs64 sys_fstatfs64_wrapper 267 common fstatfs64 sys_fstatfs64_wrapper
268 common tgkill sys_tgkill 268 common tgkill sys_tgkill
269 common utimes sys_utimes 269 common utimes sys_utimes_time32
270 common arm_fadvise64_64 sys_arm_fadvise64_64 270 common arm_fadvise64_64 sys_arm_fadvise64_64
271 common pciconfig_iobase sys_pciconfig_iobase 271 common pciconfig_iobase sys_pciconfig_iobase
272 common pciconfig_read sys_pciconfig_read 272 common pciconfig_read sys_pciconfig_read
273 common pciconfig_write sys_pciconfig_write 273 common pciconfig_write sys_pciconfig_write
274 common mq_open sys_mq_open 274 common mq_open sys_mq_open
275 common mq_unlink sys_mq_unlink 275 common mq_unlink sys_mq_unlink
276 common mq_timedsend sys_mq_timedsend 276 common mq_timedsend sys_mq_timedsend_time32
277 common mq_timedreceive sys_mq_timedreceive 277 common mq_timedreceive sys_mq_timedreceive_time32
278 common mq_notify sys_mq_notify 278 common mq_notify sys_mq_notify
279 common mq_getsetattr sys_mq_getsetattr 279 common mq_getsetattr sys_mq_getsetattr
280 common waitid sys_waitid 280 common waitid sys_waitid
...@@ -314,19 +314,19 @@ ...@@ -314,19 +314,19 @@
297 common recvmsg sys_recvmsg 297 common recvmsg sys_recvmsg
298 common semop sys_semop sys_oabi_semop 298 common semop sys_semop sys_oabi_semop
299 common semget sys_semget 299 common semget sys_semget
300 common semctl sys_semctl 300 common semctl sys_old_semctl
301 common msgsnd sys_msgsnd 301 common msgsnd sys_msgsnd
302 common msgrcv sys_msgrcv 302 common msgrcv sys_msgrcv
303 common msgget sys_msgget 303 common msgget sys_msgget
304 common msgctl sys_msgctl 304 common msgctl sys_old_msgctl
305 common shmat sys_shmat 305 common shmat sys_shmat
306 common shmdt sys_shmdt 306 common shmdt sys_shmdt
307 common shmget sys_shmget 307 common shmget sys_shmget
308 common shmctl sys_shmctl 308 common shmctl sys_old_shmctl
309 common add_key sys_add_key 309 common add_key sys_add_key
310 common request_key sys_request_key 310 common request_key sys_request_key
311 common keyctl sys_keyctl 311 common keyctl sys_keyctl
312 common semtimedop sys_semtimedop sys_oabi_semtimedop 312 common semtimedop sys_semtimedop_time32 sys_oabi_semtimedop
313 common vserver 313 common vserver
314 common ioprio_set sys_ioprio_set 314 common ioprio_set sys_ioprio_set
315 common ioprio_get sys_ioprio_get 315 common ioprio_get sys_ioprio_get
...@@ -340,7 +340,7 @@ ...@@ -340,7 +340,7 @@
323 common mkdirat sys_mkdirat 323 common mkdirat sys_mkdirat
324 common mknodat sys_mknodat 324 common mknodat sys_mknodat
325 common fchownat sys_fchownat 325 common fchownat sys_fchownat
326 common futimesat sys_futimesat 326 common futimesat sys_futimesat_time32
327 common fstatat64 sys_fstatat64 sys_oabi_fstatat64 327 common fstatat64 sys_fstatat64 sys_oabi_fstatat64
328 common unlinkat sys_unlinkat 328 common unlinkat sys_unlinkat
329 common renameat sys_renameat 329 common renameat sys_renameat
...@@ -349,8 +349,8 @@ ...@@ -349,8 +349,8 @@
332 common readlinkat sys_readlinkat 332 common readlinkat sys_readlinkat
333 common fchmodat sys_fchmodat 333 common fchmodat sys_fchmodat
334 common faccessat sys_faccessat 334 common faccessat sys_faccessat
335 common pselect6 sys_pselect6 335 common pselect6 sys_pselect6_time32
336 common ppoll sys_ppoll 336 common ppoll sys_ppoll_time32
337 common unshare sys_unshare 337 common unshare sys_unshare
338 common set_robust_list sys_set_robust_list 338 common set_robust_list sys_set_robust_list
339 common get_robust_list sys_get_robust_list 339 common get_robust_list sys_get_robust_list
...@@ -362,13 +362,13 @@ ...@@ -362,13 +362,13 @@
345 common getcpu sys_getcpu 345 common getcpu sys_getcpu
346 common epoll_pwait sys_epoll_pwait 346 common epoll_pwait sys_epoll_pwait
347 common kexec_load sys_kexec_load 347 common kexec_load sys_kexec_load
348 common utimensat sys_utimensat 348 common utimensat sys_utimensat_time32
349 common signalfd sys_signalfd 349 common signalfd sys_signalfd
350 common timerfd_create sys_timerfd_create 350 common timerfd_create sys_timerfd_create
351 common eventfd sys_eventfd 351 common eventfd sys_eventfd
352 common fallocate sys_fallocate 352 common fallocate sys_fallocate
353 common timerfd_settime sys_timerfd_settime 353 common timerfd_settime sys_timerfd_settime32
354 common timerfd_gettime sys_timerfd_gettime 354 common timerfd_gettime sys_timerfd_gettime32
355 common signalfd4 sys_signalfd4 355 common signalfd4 sys_signalfd4
356 common eventfd2 sys_eventfd2 356 common eventfd2 sys_eventfd2
357 common epoll_create1 sys_epoll_create1 357 common epoll_create1 sys_epoll_create1
...@@ -379,14 +379,14 @@ ...@@ -379,14 +379,14 @@
362 common pwritev sys_pwritev 362 common pwritev sys_pwritev
363 common rt_tgsigqueueinfo sys_rt_tgsigqueueinfo 363 common rt_tgsigqueueinfo sys_rt_tgsigqueueinfo
364 common perf_event_open sys_perf_event_open 364 common perf_event_open sys_perf_event_open
365 common recvmmsg sys_recvmmsg 365 common recvmmsg sys_recvmmsg_time32
366 common accept4 sys_accept4 366 common accept4 sys_accept4
367 common fanotify_init sys_fanotify_init 367 common fanotify_init sys_fanotify_init
368 common fanotify_mark sys_fanotify_mark 368 common fanotify_mark sys_fanotify_mark
369 common prlimit64 sys_prlimit64 369 common prlimit64 sys_prlimit64
370 common name_to_handle_at sys_name_to_handle_at 370 common name_to_handle_at sys_name_to_handle_at
371 common open_by_handle_at sys_open_by_handle_at 371 common open_by_handle_at sys_open_by_handle_at
372 common clock_adjtime sys_clock_adjtime 372 common clock_adjtime sys_clock_adjtime32
373 common syncfs sys_syncfs 373 common syncfs sys_syncfs
374 common sendmmsg sys_sendmmsg 374 common sendmmsg sys_sendmmsg
375 common setns sys_setns 375 common setns sys_setns
...@@ -413,4 +413,27 @@ ...@@ -413,4 +413,27 @@
396 common pkey_free sys_pkey_free 396 common pkey_free sys_pkey_free
397 common statx sys_statx 397 common statx sys_statx
398 common rseq sys_rseq 398 common rseq sys_rseq
399 common io_pgetevents sys_io_pgetevents 399 common io_pgetevents sys_io_pgetevents_time32
400 common migrate_pages sys_migrate_pages
401 common kexec_file_load sys_kexec_file_load
# 402 is unused
403 common clock_gettime64 sys_clock_gettime
404 common clock_settime64 sys_clock_settime
405 common clock_adjtime64 sys_clock_adjtime
406 common clock_getres_time64 sys_clock_getres
407 common clock_nanosleep_time64 sys_clock_nanosleep
408 common timer_gettime64 sys_timer_gettime
409 common timer_settime64 sys_timer_settime
410 common timerfd_gettime64 sys_timerfd_gettime
411 common timerfd_settime64 sys_timerfd_settime
412 common utimensat_time64 sys_utimensat
413 common pselect6_time64 sys_pselect6
414 common ppoll_time64 sys_ppoll
416 common io_pgetevents_time64 sys_io_pgetevents
417 common recvmmsg_time64 sys_recvmmsg
418 common mq_timedsend_time64 sys_mq_timedsend
419 common mq_timedreceive_time64 sys_mq_timedreceive
420 common semtimedop_time64 sys_semtimedop
421 common rt_sigtimedwait_time64 sys_rt_sigtimedwait
422 common futex_time64 sys_futex
423 common sched_rr_get_interval_time64 sys_sched_rr_get_interval
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
#define __ARM_NR_compat_set_tls (__ARM_NR_COMPAT_BASE + 5) #define __ARM_NR_compat_set_tls (__ARM_NR_COMPAT_BASE + 5)
#define __ARM_NR_COMPAT_END (__ARM_NR_COMPAT_BASE + 0x800) #define __ARM_NR_COMPAT_END (__ARM_NR_COMPAT_BASE + 0x800)
#define __NR_compat_syscalls 400 #define __NR_compat_syscalls 424
#endif #endif
#define __ARCH_WANT_SYS_CLONE #define __ARCH_WANT_SYS_CLONE
......
This diff is collapsed.
...@@ -17,5 +17,7 @@ ...@@ -17,5 +17,7 @@
#define __ARCH_WANT_RENAMEAT #define __ARCH_WANT_RENAMEAT
#define __ARCH_WANT_NEW_STAT #define __ARCH_WANT_NEW_STAT
#define __ARCH_WANT_SET_GET_RLIMIT
#define __ARCH_WANT_TIME32_SYSCALLS
#include <asm-generic/unistd.h> #include <asm-generic/unistd.h>
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
config C6X config C6X
def_bool y def_bool y
select ARCH_32BIT_OFF_T
select ARCH_HAS_SYNC_DMA_FOR_CPU select ARCH_HAS_SYNC_DMA_FOR_CPU
select ARCH_HAS_SYNC_DMA_FOR_DEVICE select ARCH_HAS_SYNC_DMA_FOR_DEVICE
select CLKDEV_LOOKUP select CLKDEV_LOOKUP
......
...@@ -17,7 +17,9 @@ ...@@ -17,7 +17,9 @@
#define __ARCH_WANT_RENAMEAT #define __ARCH_WANT_RENAMEAT
#define __ARCH_WANT_STAT64 #define __ARCH_WANT_STAT64
#define __ARCH_WANT_SET_GET_RLIMIT
#define __ARCH_WANT_SYS_CLONE #define __ARCH_WANT_SYS_CLONE
#define __ARCH_WANT_TIME32_SYSCALLS
/* Use the standard ABI for syscalls. */ /* Use the standard ABI for syscalls. */
#include <asm-generic/unistd.h> #include <asm-generic/unistd.h>
......
config CSKY config CSKY
def_bool y def_bool y
select ARCH_32BIT_OFF_T
select ARCH_HAS_SYNC_DMA_FOR_CPU select ARCH_HAS_SYNC_DMA_FOR_CPU
select ARCH_HAS_SYNC_DMA_FOR_DEVICE select ARCH_HAS_SYNC_DMA_FOR_DEVICE
select ARCH_USE_BUILTIN_BSWAP select ARCH_USE_BUILTIN_BSWAP
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
#define __ARCH_WANT_SYS_CLONE #define __ARCH_WANT_SYS_CLONE
#define __ARCH_WANT_SET_GET_RLIMIT
#define __ARCH_WANT_TIME32_SYSCALLS
#include <asm-generic/unistd.h> #include <asm-generic/unistd.h>
#define __NR_set_thread_area (__NR_arch_specific_syscall + 0) #define __NR_set_thread_area (__NR_arch_specific_syscall + 0)
......
# SPDX-License-Identifier: GPL-2.0 # SPDX-License-Identifier: GPL-2.0
config H8300 config H8300
def_bool y def_bool y
select ARCH_32BIT_OFF_T
select GENERIC_ATOMIC64 select GENERIC_ATOMIC64
select HAVE_UID16 select HAVE_UID16
select VIRT_TO_BUS select VIRT_TO_BUS
......
...@@ -2,5 +2,7 @@ ...@@ -2,5 +2,7 @@
#define __ARCH_WANT_RENAMEAT #define __ARCH_WANT_RENAMEAT
#define __ARCH_WANT_STAT64 #define __ARCH_WANT_STAT64
#define __ARCH_WANT_SET_GET_RLIMIT
#define __ARCH_WANT_TIME32_SYSCALLS
#include <asm-generic/unistd.h> #include <asm-generic/unistd.h>
...@@ -4,6 +4,7 @@ comment "Linux Kernel Configuration for Hexagon" ...@@ -4,6 +4,7 @@ comment "Linux Kernel Configuration for Hexagon"
config HEXAGON config HEXAGON
def_bool y def_bool y
select ARCH_32BIT_OFF_T
select ARCH_HAS_SYNC_DMA_FOR_DEVICE select ARCH_HAS_SYNC_DMA_FOR_DEVICE
select ARCH_NO_PREEMPT select ARCH_NO_PREEMPT
select HAVE_OPROFILE select HAVE_OPROFILE
......
...@@ -30,9 +30,11 @@ ...@@ -30,9 +30,11 @@
#define sys_mmap2 sys_mmap_pgoff #define sys_mmap2 sys_mmap_pgoff
#define __ARCH_WANT_RENAMEAT #define __ARCH_WANT_RENAMEAT
#define __ARCH_WANT_STAT64 #define __ARCH_WANT_STAT64
#define __ARCH_WANT_SET_GET_RLIMIT
#define __ARCH_WANT_SYS_EXECVE #define __ARCH_WANT_SYS_EXECVE
#define __ARCH_WANT_SYS_CLONE #define __ARCH_WANT_SYS_CLONE
#define __ARCH_WANT_SYS_VFORK #define __ARCH_WANT_SYS_VFORK
#define __ARCH_WANT_SYS_FORK #define __ARCH_WANT_SYS_FORK
#define __ARCH_WANT_TIME32_SYSCALLS
#include <asm-generic/unistd.h> #include <asm-generic/unistd.h>
...@@ -12,20 +12,6 @@ ...@@ -12,20 +12,6 @@
#define NR_syscalls __NR_syscalls /* length of syscall table */ #define NR_syscalls __NR_syscalls /* length of syscall table */
/*
* The following defines stop scripts/checksyscalls.sh from complaining about
* unimplemented system calls. Glibc provides for each of these by using
* more modern equivalent system calls.
*/
#define __IGNORE_fork /* clone() */
#define __IGNORE_time /* gettimeofday() */
#define __IGNORE_alarm /* setitimer(ITIMER_REAL, ... */
#define __IGNORE_pause /* rt_sigprocmask(), rt_sigsuspend() */
#define __IGNORE_utime /* utimes() */
#define __IGNORE_getpgrp /* getpgid() */
#define __IGNORE_vfork /* clone() */
#define __IGNORE_umount2 /* umount() */
#define __ARCH_WANT_NEW_STAT #define __ARCH_WANT_NEW_STAT
#define __ARCH_WANT_SYS_UTIME #define __ARCH_WANT_SYS_UTIME
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
#define __NR_Linux 1024 #define __NR_Linux 1024
#define __NR_umount __NR_umount2
#include <asm/unistd_64.h> #include <asm/unistd_64.h>
#endif /* _UAPI_ASM_IA64_UNISTD_H */ #endif /* _UAPI_ASM_IA64_UNISTD_H */
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
17 common getpid sys_getpid 17 common getpid sys_getpid
18 common getppid sys_getppid 18 common getppid sys_getppid
19 common mount sys_mount 19 common mount sys_mount
20 common umount sys_umount 20 common umount2 sys_umount
21 common setuid sys_setuid 21 common setuid sys_setuid
22 common getuid sys_getuid 22 common getuid sys_getuid
23 common geteuid sys_geteuid 23 common geteuid sys_geteuid
...@@ -335,3 +335,12 @@ ...@@ -335,3 +335,12 @@
323 common copy_file_range sys_copy_file_range 323 common copy_file_range sys_copy_file_range
324 common preadv2 sys_preadv2 324 common preadv2 sys_preadv2
325 common pwritev2 sys_pwritev2 325 common pwritev2 sys_pwritev2
326 common statx sys_statx
327 common io_pgetevents sys_io_pgetevents
328 common perf_event_open sys_perf_event_open
329 common seccomp sys_seccomp
330 common pkey_mprotect sys_pkey_mprotect
331 common pkey_alloc sys_pkey_alloc
332 common pkey_free sys_pkey_free
333 common rseq sys_rseq
# 334 through 423 are reserved to sync up with other architectures
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
config M68K config M68K
bool bool
default y default y
select ARCH_32BIT_OFF_T
select ARCH_HAS_SYNC_DMA_FOR_DEVICE if HAS_DMA select ARCH_HAS_SYNC_DMA_FOR_DEVICE if HAS_DMA
select ARCH_MIGHT_HAVE_PC_PARPORT if ISA select ARCH_MIGHT_HAVE_PC_PARPORT if ISA
select ARCH_NO_COHERENT_DMA_MMAP if !MMU select ARCH_NO_COHERENT_DMA_MMAP if !MMU
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
#define __ARCH_WANT_SYS_IPC #define __ARCH_WANT_SYS_IPC
#define __ARCH_WANT_SYS_PAUSE #define __ARCH_WANT_SYS_PAUSE
#define __ARCH_WANT_SYS_SIGNAL #define __ARCH_WANT_SYS_SIGNAL
#define __ARCH_WANT_SYS_TIME #define __ARCH_WANT_SYS_TIME32
#define __ARCH_WANT_SYS_UTIME #define __ARCH_WANT_SYS_UTIME32
#define __ARCH_WANT_SYS_WAITPID #define __ARCH_WANT_SYS_WAITPID
#define __ARCH_WANT_SYS_SOCKETCALL #define __ARCH_WANT_SYS_SOCKETCALL
#define __ARCH_WANT_SYS_FADVISE64 #define __ARCH_WANT_SYS_FADVISE64
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
10 common unlink sys_unlink 10 common unlink sys_unlink
11 common execve sys_execve 11 common execve sys_execve
12 common chdir sys_chdir 12 common chdir sys_chdir
13 common time sys_time 13 common time sys_time32
14 common mknod sys_mknod 14 common mknod sys_mknod
15 common chmod sys_chmod 15 common chmod sys_chmod
16 common chown sys_chown16 16 common chown sys_chown16
...@@ -32,12 +32,12 @@ ...@@ -32,12 +32,12 @@
22 common umount sys_oldumount 22 common umount sys_oldumount
23 common setuid sys_setuid16 23 common setuid sys_setuid16
24 common getuid sys_getuid16 24 common getuid sys_getuid16
25 common stime sys_stime 25 common stime sys_stime32
26 common ptrace sys_ptrace 26 common ptrace sys_ptrace
27 common alarm sys_alarm 27 common alarm sys_alarm
28 common oldfstat sys_fstat 28 common oldfstat sys_fstat
29 common pause sys_pause 29 common pause sys_pause
30 common utime sys_utime 30 common utime sys_utime32
# 31 was stty # 31 was stty
# 32 was gtty # 32 was gtty
33 common access sys_access 33 common access sys_access
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
121 common setdomainname sys_setdomainname 121 common setdomainname sys_setdomainname
122 common uname sys_newuname 122 common uname sys_newuname
123 common cacheflush sys_cacheflush 123 common cacheflush sys_cacheflush
124 common adjtimex sys_adjtimex 124 common adjtimex sys_adjtimex_time32
125 common mprotect sys_mprotect 125 common mprotect sys_mprotect
126 common sigprocmask sys_sigprocmask 126 common sigprocmask sys_sigprocmask
127 common create_module sys_ni_syscall 127 common create_module sys_ni_syscall
...@@ -168,8 +168,8 @@ ...@@ -168,8 +168,8 @@
158 common sched_yield sys_sched_yield 158 common sched_yield sys_sched_yield
159 common sched_get_priority_max sys_sched_get_priority_max 159 common sched_get_priority_max sys_sched_get_priority_max
160 common sched_get_priority_min sys_sched_get_priority_min 160 common sched_get_priority_min sys_sched_get_priority_min
161 common sched_rr_get_interval sys_sched_rr_get_interval 161 common sched_rr_get_interval sys_sched_rr_get_interval_time32
162 common nanosleep sys_nanosleep 162 common nanosleep sys_nanosleep_time32
163 common mremap sys_mremap 163 common mremap sys_mremap
164 common setresuid sys_setresuid16 164 common setresuid sys_setresuid16
165 common getresuid sys_getresuid16 165 common getresuid sys_getresuid16
...@@ -184,7 +184,7 @@ ...@@ -184,7 +184,7 @@
174 common rt_sigaction sys_rt_sigaction 174 common rt_sigaction sys_rt_sigaction
175 common rt_sigprocmask sys_rt_sigprocmask 175 common rt_sigprocmask sys_rt_sigprocmask
176 common rt_sigpending sys_rt_sigpending 176 common rt_sigpending sys_rt_sigpending
177 common rt_sigtimedwait sys_rt_sigtimedwait 177 common rt_sigtimedwait sys_rt_sigtimedwait_time32
178 common rt_sigqueueinfo sys_rt_sigqueueinfo 178 common rt_sigqueueinfo sys_rt_sigqueueinfo
179 common rt_sigsuspend sys_rt_sigsuspend 179 common rt_sigsuspend sys_rt_sigsuspend
180 common pread64 sys_pread64 180 common pread64 sys_pread64
...@@ -242,7 +242,7 @@ ...@@ -242,7 +242,7 @@
232 common removexattr sys_removexattr 232 common removexattr sys_removexattr
233 common lremovexattr sys_lremovexattr 233 common lremovexattr sys_lremovexattr
234 common fremovexattr sys_fremovexattr 234 common fremovexattr sys_fremovexattr
235 common futex sys_futex 235 common futex sys_futex_time32
236 common sendfile64 sys_sendfile64 236 common sendfile64 sys_sendfile64
237 common mincore sys_mincore 237 common mincore sys_mincore
238 common madvise sys_madvise 238 common madvise sys_madvise
...@@ -250,7 +250,7 @@ ...@@ -250,7 +250,7 @@
240 common readahead sys_readahead 240 common readahead sys_readahead
241 common io_setup sys_io_setup 241 common io_setup sys_io_setup
242 common io_destroy sys_io_destroy 242 common io_destroy sys_io_destroy
243 common io_getevents sys_io_getevents 243 common io_getevents sys_io_getevents_time32
244 common io_submit sys_io_submit 244 common io_submit sys_io_submit
245 common io_cancel sys_io_cancel 245 common io_cancel sys_io_cancel
246 common fadvise64 sys_fadvise64 246 common fadvise64 sys_fadvise64
...@@ -262,26 +262,26 @@ ...@@ -262,26 +262,26 @@
252 common remap_file_pages sys_remap_file_pages 252 common remap_file_pages sys_remap_file_pages
253 common set_tid_address sys_set_tid_address 253 common set_tid_address sys_set_tid_address
254 common timer_create sys_timer_create 254 common timer_create sys_timer_create
255 common timer_settime sys_timer_settime 255 common timer_settime sys_timer_settime32
256 common timer_gettime sys_timer_gettime 256 common timer_gettime sys_timer_gettime32
257 common timer_getoverrun sys_timer_getoverrun 257 common timer_getoverrun sys_timer_getoverrun
258 common timer_delete sys_timer_delete 258 common timer_delete sys_timer_delete
259 common clock_settime sys_clock_settime 259 common clock_settime sys_clock_settime32
260 common clock_gettime sys_clock_gettime 260 common clock_gettime sys_clock_gettime32
261 common clock_getres sys_clock_getres 261 common clock_getres sys_clock_getres_time32
262 common clock_nanosleep sys_clock_nanosleep 262 common clock_nanosleep sys_clock_nanosleep_time32
263 common statfs64 sys_statfs64 263 common statfs64 sys_statfs64
264 common fstatfs64 sys_fstatfs64 264 common fstatfs64 sys_fstatfs64
265 common tgkill sys_tgkill 265 common tgkill sys_tgkill
266 common utimes sys_utimes 266 common utimes sys_utimes_time32
267 common fadvise64_64 sys_fadvise64_64 267 common fadvise64_64 sys_fadvise64_64
268 common mbind sys_mbind 268 common mbind sys_mbind
269 common get_mempolicy sys_get_mempolicy 269 common get_mempolicy sys_get_mempolicy
270 common set_mempolicy sys_set_mempolicy 270 common set_mempolicy sys_set_mempolicy
271 common mq_open sys_mq_open 271 common mq_open sys_mq_open
272 common mq_unlink sys_mq_unlink 272 common mq_unlink sys_mq_unlink
273 common mq_timedsend sys_mq_timedsend 273 common mq_timedsend sys_mq_timedsend_time32
274 common mq_timedreceive sys_mq_timedreceive 274 common mq_timedreceive sys_mq_timedreceive_time32
275 common mq_notify sys_mq_notify 275 common mq_notify sys_mq_notify
276 common mq_getsetattr sys_mq_getsetattr 276 common mq_getsetattr sys_mq_getsetattr
277 common waitid sys_waitid 277 common waitid sys_waitid
...@@ -299,7 +299,7 @@ ...@@ -299,7 +299,7 @@
289 common mkdirat sys_mkdirat 289 common mkdirat sys_mkdirat
290 common mknodat sys_mknodat 290 common mknodat sys_mknodat
291 common fchownat sys_fchownat 291 common fchownat sys_fchownat
292 common futimesat sys_futimesat 292 common futimesat sys_futimesat_time32
293 common fstatat64 sys_fstatat64 293 common fstatat64 sys_fstatat64
294 common unlinkat sys_unlinkat 294 common unlinkat sys_unlinkat
295 common renameat sys_renameat 295 common renameat sys_renameat
...@@ -308,8 +308,8 @@ ...@@ -308,8 +308,8 @@
298 common readlinkat sys_readlinkat 298 common readlinkat sys_readlinkat
299 common fchmodat sys_fchmodat 299 common fchmodat sys_fchmodat
300 common faccessat sys_faccessat 300 common faccessat sys_faccessat
301 common pselect6 sys_pselect6 301 common pselect6 sys_pselect6_time32
302 common ppoll sys_ppoll 302 common ppoll sys_ppoll_time32
303 common unshare sys_unshare 303 common unshare sys_unshare
304 common set_robust_list sys_set_robust_list 304 common set_robust_list sys_set_robust_list
305 common get_robust_list sys_get_robust_list 305 common get_robust_list sys_get_robust_list
...@@ -323,13 +323,13 @@ ...@@ -323,13 +323,13 @@
313 common kexec_load sys_kexec_load 313 common kexec_load sys_kexec_load
314 common getcpu sys_getcpu 314 common getcpu sys_getcpu
315 common epoll_pwait sys_epoll_pwait 315 common epoll_pwait sys_epoll_pwait
316 common utimensat sys_utimensat 316 common utimensat sys_utimensat_time32
317 common signalfd sys_signalfd 317 common signalfd sys_signalfd
318 common timerfd_create sys_timerfd_create 318 common timerfd_create sys_timerfd_create
319 common eventfd sys_eventfd 319 common eventfd sys_eventfd
320 common fallocate sys_fallocate 320 common fallocate sys_fallocate
321 common timerfd_settime sys_timerfd_settime 321 common timerfd_settime sys_timerfd_settime32
322 common timerfd_gettime sys_timerfd_gettime 322 common timerfd_gettime sys_timerfd_gettime32
323 common signalfd4 sys_signalfd4 323 common signalfd4 sys_signalfd4
324 common eventfd2 sys_eventfd2 324 common eventfd2 sys_eventfd2
325 common epoll_create1 sys_epoll_create1 325 common epoll_create1 sys_epoll_create1
...@@ -349,7 +349,7 @@ ...@@ -349,7 +349,7 @@
339 common prlimit64 sys_prlimit64 339 common prlimit64 sys_prlimit64
340 common name_to_handle_at sys_name_to_handle_at 340 common name_to_handle_at sys_name_to_handle_at
341 common open_by_handle_at sys_open_by_handle_at 341 common open_by_handle_at sys_open_by_handle_at
342 common clock_adjtime sys_clock_adjtime 342 common clock_adjtime sys_clock_adjtime32
343 common syncfs sys_syncfs 343 common syncfs sys_syncfs
344 common setns sys_setns 344 common setns sys_setns
345 common process_vm_readv sys_process_vm_readv 345 common process_vm_readv sys_process_vm_readv
...@@ -378,7 +378,7 @@ ...@@ -378,7 +378,7 @@
368 common recvfrom sys_recvfrom 368 common recvfrom sys_recvfrom
369 common recvmsg sys_recvmsg 369 common recvmsg sys_recvmsg
370 common shutdown sys_shutdown 370 common shutdown sys_shutdown
371 common recvmmsg sys_recvmmsg 371 common recvmmsg sys_recvmmsg_time32
372 common sendmmsg sys_sendmmsg 372 common sendmmsg sys_sendmmsg
373 common userfaultfd sys_userfaultfd 373 common userfaultfd sys_userfaultfd
374 common membarrier sys_membarrier 374 common membarrier sys_membarrier
...@@ -387,3 +387,39 @@ ...@@ -387,3 +387,39 @@
377 common preadv2 sys_preadv2 377 common preadv2 sys_preadv2
378 common pwritev2 sys_pwritev2 378 common pwritev2 sys_pwritev2
379 common statx sys_statx 379 common statx sys_statx
380 common seccomp sys_seccomp
381 common pkey_mprotect sys_pkey_mprotect
382 common pkey_alloc sys_pkey_alloc
383 common pkey_free sys_pkey_free
384 common rseq sys_rseq
# room for arch specific calls
393 common semget sys_semget
394 common semctl sys_semctl
395 common shmget sys_shmget
396 common shmctl sys_shmctl
397 common shmat sys_shmat
398 common shmdt sys_shmdt
399 common msgget sys_msgget
400 common msgsnd sys_msgsnd
401 common msgrcv sys_msgrcv
402 common msgctl sys_msgctl
403 common clock_gettime64 sys_clock_gettime
404 common clock_settime64 sys_clock_settime
405 common clock_adjtime64 sys_clock_adjtime
406 common clock_getres_time64 sys_clock_getres
407 common clock_nanosleep_time64 sys_clock_nanosleep
408 common timer_gettime64 sys_timer_gettime
409 common timer_settime64 sys_timer_settime
410 common timerfd_gettime64 sys_timerfd_gettime
411 common timerfd_settime64 sys_timerfd_settime
412 common utimensat_time64 sys_utimensat
413 common pselect6_time64 sys_pselect6
414 common ppoll_time64 sys_ppoll
416 common io_pgetevents_time64 sys_io_pgetevents
417 common recvmmsg_time64 sys_recvmmsg
418 common mq_timedsend_time64 sys_mq_timedsend
419 common mq_timedreceive_time64 sys_mq_timedreceive
420 common semtimedop_time64 sys_semtimedop
421 common rt_sigtimedwait_time64 sys_rt_sigtimedwait
422 common futex_time64 sys_futex
423 common sched_rr_get_interval_time64 sys_sched_rr_get_interval
config MICROBLAZE config MICROBLAZE
def_bool y def_bool y
select ARCH_32BIT_OFF_T
select ARCH_NO_SWAP select ARCH_NO_SWAP
select ARCH_HAS_DMA_COHERENT_TO_PFN if MMU select ARCH_HAS_DMA_COHERENT_TO_PFN if MMU
select ARCH_HAS_GCOV_PROFILE_ALL select ARCH_HAS_GCOV_PROFILE_ALL
......
...@@ -21,8 +21,8 @@ ...@@ -21,8 +21,8 @@
#define __ARCH_WANT_SYS_GETHOSTNAME #define __ARCH_WANT_SYS_GETHOSTNAME
#define __ARCH_WANT_SYS_PAUSE #define __ARCH_WANT_SYS_PAUSE
#define __ARCH_WANT_SYS_SIGNAL #define __ARCH_WANT_SYS_SIGNAL
#define __ARCH_WANT_SYS_TIME #define __ARCH_WANT_SYS_TIME32
#define __ARCH_WANT_SYS_UTIME #define __ARCH_WANT_SYS_UTIME32
#define __ARCH_WANT_SYS_WAITPID #define __ARCH_WANT_SYS_WAITPID
#define __ARCH_WANT_SYS_SOCKETCALL #define __ARCH_WANT_SYS_SOCKETCALL
#define __ARCH_WANT_SYS_FADVISE64 #define __ARCH_WANT_SYS_FADVISE64
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
10 common unlink sys_unlink 10 common unlink sys_unlink
11 common execve sys_execve 11 common execve sys_execve
12 common chdir sys_chdir 12 common chdir sys_chdir
13 common time sys_time 13 common time sys_time32
14 common mknod sys_mknod 14 common mknod sys_mknod
15 common chmod sys_chmod 15 common chmod sys_chmod
16 common lchown sys_lchown 16 common lchown sys_lchown
...@@ -32,12 +32,12 @@ ...@@ -32,12 +32,12 @@
22 common umount sys_oldumount 22 common umount sys_oldumount
23 common setuid sys_setuid 23 common setuid sys_setuid
24 common getuid sys_getuid 24 common getuid sys_getuid
25 common stime sys_stime 25 common stime sys_stime32
26 common ptrace sys_ptrace 26 common ptrace sys_ptrace
27 common alarm sys_alarm 27 common alarm sys_alarm
28 common oldfstat sys_ni_syscall 28 common oldfstat sys_ni_syscall
29 common pause sys_pause 29 common pause sys_pause
30 common utime sys_utime 30 common utime sys_utime32
31 common stty sys_ni_syscall 31 common stty sys_ni_syscall
32 common gtty sys_ni_syscall 32 common gtty sys_ni_syscall
33 common access sys_access 33 common access sys_access
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
121 common setdomainname sys_setdomainname 121 common setdomainname sys_setdomainname
122 common uname sys_newuname 122 common uname sys_newuname
123 common modify_ldt sys_ni_syscall 123 common modify_ldt sys_ni_syscall
124 common adjtimex sys_adjtimex 124 common adjtimex sys_adjtimex_time32
125 common mprotect sys_mprotect 125 common mprotect sys_mprotect
126 common sigprocmask sys_sigprocmask 126 common sigprocmask sys_sigprocmask
127 common create_module sys_ni_syscall 127 common create_module sys_ni_syscall
...@@ -168,8 +168,8 @@ ...@@ -168,8 +168,8 @@
158 common sched_yield sys_sched_yield 158 common sched_yield sys_sched_yield
159 common sched_get_priority_max sys_sched_get_priority_max 159 common sched_get_priority_max sys_sched_get_priority_max
160 common sched_get_priority_min sys_sched_get_priority_min 160 common sched_get_priority_min sys_sched_get_priority_min
161 common sched_rr_get_interval sys_sched_rr_get_interval 161 common sched_rr_get_interval sys_sched_rr_get_interval_time32
162 common nanosleep sys_nanosleep 162 common nanosleep sys_nanosleep_time32
163 common mremap sys_mremap 163 common mremap sys_mremap
164 common setresuid sys_setresuid 164 common setresuid sys_setresuid
165 common getresuid sys_getresuid 165 common getresuid sys_getresuid
...@@ -184,7 +184,7 @@ ...@@ -184,7 +184,7 @@
174 common rt_sigaction sys_rt_sigaction 174 common rt_sigaction sys_rt_sigaction
175 common rt_sigprocmask sys_rt_sigprocmask 175 common rt_sigprocmask sys_rt_sigprocmask
176 common rt_sigpending sys_rt_sigpending 176 common rt_sigpending sys_rt_sigpending
177 common rt_sigtimedwait sys_rt_sigtimedwait 177 common rt_sigtimedwait sys_rt_sigtimedwait_time32
178 common rt_sigqueueinfo sys_rt_sigqueueinfo 178 common rt_sigqueueinfo sys_rt_sigqueueinfo
179 common rt_sigsuspend sys_rt_sigsuspend 179 common rt_sigsuspend sys_rt_sigsuspend
180 common pread64 sys_pread64 180 common pread64 sys_pread64
...@@ -247,14 +247,14 @@ ...@@ -247,14 +247,14 @@
237 common fremovexattr sys_fremovexattr 237 common fremovexattr sys_fremovexattr
238 common tkill sys_tkill 238 common tkill sys_tkill
239 common sendfile64 sys_sendfile64 239 common sendfile64 sys_sendfile64
240 common futex sys_futex 240 common futex sys_futex_time32
241 common sched_setaffinity sys_sched_setaffinity 241 common sched_setaffinity sys_sched_setaffinity
242 common sched_getaffinity sys_sched_getaffinity 242 common sched_getaffinity sys_sched_getaffinity
243 common set_thread_area sys_ni_syscall 243 common set_thread_area sys_ni_syscall
244 common get_thread_area sys_ni_syscall 244 common get_thread_area sys_ni_syscall
245 common io_setup sys_io_setup 245 common io_setup sys_io_setup
246 common io_destroy sys_io_destroy 246 common io_destroy sys_io_destroy
247 common io_getevents sys_io_getevents 247 common io_getevents sys_io_getevents_time32
248 common io_submit sys_io_submit 248 common io_submit sys_io_submit
249 common io_cancel sys_io_cancel 249 common io_cancel sys_io_cancel
250 common fadvise64 sys_fadvise64 250 common fadvise64 sys_fadvise64
...@@ -267,18 +267,18 @@ ...@@ -267,18 +267,18 @@
257 common remap_file_pages sys_remap_file_pages 257 common remap_file_pages sys_remap_file_pages
258 common set_tid_address sys_set_tid_address 258 common set_tid_address sys_set_tid_address
259 common timer_create sys_timer_create 259 common timer_create sys_timer_create
260 common timer_settime sys_timer_settime 260 common timer_settime sys_timer_settime32
261 common timer_gettime sys_timer_gettime 261 common timer_gettime sys_timer_gettime32
262 common timer_getoverrun sys_timer_getoverrun 262 common timer_getoverrun sys_timer_getoverrun
263 common timer_delete sys_timer_delete 263 common timer_delete sys_timer_delete
264 common clock_settime sys_clock_settime 264 common clock_settime sys_clock_settime32
265 common clock_gettime sys_clock_gettime 265 common clock_gettime sys_clock_gettime32
266 common clock_getres sys_clock_getres 266 common clock_getres sys_clock_getres_time32
267 common clock_nanosleep sys_clock_nanosleep 267 common clock_nanosleep sys_clock_nanosleep_time32
268 common statfs64 sys_statfs64 268 common statfs64 sys_statfs64
269 common fstatfs64 sys_fstatfs64 269 common fstatfs64 sys_fstatfs64
270 common tgkill sys_tgkill 270 common tgkill sys_tgkill
271 common utimes sys_utimes 271 common utimes sys_utimes_time32
272 common fadvise64_64 sys_fadvise64_64 272 common fadvise64_64 sys_fadvise64_64
273 common vserver sys_ni_syscall 273 common vserver sys_ni_syscall
274 common mbind sys_mbind 274 common mbind sys_mbind
...@@ -286,8 +286,8 @@ ...@@ -286,8 +286,8 @@
276 common set_mempolicy sys_set_mempolicy 276 common set_mempolicy sys_set_mempolicy
277 common mq_open sys_mq_open 277 common mq_open sys_mq_open
278 common mq_unlink sys_mq_unlink 278 common mq_unlink sys_mq_unlink
279 common mq_timedsend sys_mq_timedsend 279 common mq_timedsend sys_mq_timedsend_time32
280 common mq_timedreceive sys_mq_timedreceive 280 common mq_timedreceive sys_mq_timedreceive_time32
281 common mq_notify sys_mq_notify 281 common mq_notify sys_mq_notify
282 common mq_getsetattr sys_mq_getsetattr 282 common mq_getsetattr sys_mq_getsetattr
283 common kexec_load sys_kexec_load 283 common kexec_load sys_kexec_load
...@@ -306,7 +306,7 @@ ...@@ -306,7 +306,7 @@
296 common mkdirat sys_mkdirat 296 common mkdirat sys_mkdirat
297 common mknodat sys_mknodat 297 common mknodat sys_mknodat
298 common fchownat sys_fchownat 298 common fchownat sys_fchownat
299 common futimesat sys_futimesat 299 common futimesat sys_futimesat_time32
300 common fstatat64 sys_fstatat64 300 common fstatat64 sys_fstatat64
301 common unlinkat sys_unlinkat 301 common unlinkat sys_unlinkat
302 common renameat sys_renameat 302 common renameat sys_renameat
...@@ -315,8 +315,8 @@ ...@@ -315,8 +315,8 @@
305 common readlinkat sys_readlinkat 305 common readlinkat sys_readlinkat
306 common fchmodat sys_fchmodat 306 common fchmodat sys_fchmodat
307 common faccessat sys_faccessat 307 common faccessat sys_faccessat
308 common pselect6 sys_pselect6 308 common pselect6 sys_pselect6_time32
309 common ppoll sys_ppoll 309 common ppoll sys_ppoll_time32
310 common unshare sys_unshare 310 common unshare sys_unshare
311 common set_robust_list sys_set_robust_list 311 common set_robust_list sys_set_robust_list
312 common get_robust_list sys_get_robust_list 312 common get_robust_list sys_get_robust_list
...@@ -327,23 +327,23 @@ ...@@ -327,23 +327,23 @@
317 common move_pages sys_move_pages 317 common move_pages sys_move_pages
318 common getcpu sys_getcpu 318 common getcpu sys_getcpu
319 common epoll_pwait sys_epoll_pwait 319 common epoll_pwait sys_epoll_pwait
320 common utimensat sys_utimensat 320 common utimensat sys_utimensat_time32
321 common signalfd sys_signalfd 321 common signalfd sys_signalfd
322 common timerfd_create sys_timerfd_create 322 common timerfd_create sys_timerfd_create
323 common eventfd sys_eventfd 323 common eventfd sys_eventfd
324 common fallocate sys_fallocate 324 common fallocate sys_fallocate
325 common semtimedop sys_semtimedop 325 common semtimedop sys_semtimedop_time32
326 common timerfd_settime sys_timerfd_settime 326 common timerfd_settime sys_timerfd_settime32
327 common timerfd_gettime sys_timerfd_gettime 327 common timerfd_gettime sys_timerfd_gettime32
328 common semctl sys_semctl 328 common semctl sys_old_semctl
329 common semget sys_semget 329 common semget sys_semget
330 common semop sys_semop 330 common semop sys_semop
331 common msgctl sys_msgctl 331 common msgctl sys_old_msgctl
332 common msgget sys_msgget 332 common msgget sys_msgget
333 common msgrcv sys_msgrcv 333 common msgrcv sys_msgrcv
334 common msgsnd sys_msgsnd 334 common msgsnd sys_msgsnd
335 common shmat sys_shmat 335 common shmat sys_shmat
336 common shmctl sys_shmctl 336 common shmctl sys_old_shmctl
337 common shmdt sys_shmdt 337 common shmdt sys_shmdt
338 common shmget sys_shmget 338 common shmget sys_shmget
339 common signalfd4 sys_signalfd4 339 common signalfd4 sys_signalfd4
...@@ -374,13 +374,13 @@ ...@@ -374,13 +374,13 @@
364 common pwritev sys_pwritev 364 common pwritev sys_pwritev
365 common rt_tgsigqueueinfo sys_rt_tgsigqueueinfo 365 common rt_tgsigqueueinfo sys_rt_tgsigqueueinfo
366 common perf_event_open sys_perf_event_open 366 common perf_event_open sys_perf_event_open
367 common recvmmsg sys_recvmmsg 367 common recvmmsg sys_recvmmsg_time32
368 common fanotify_init sys_fanotify_init 368 common fanotify_init sys_fanotify_init
369 common fanotify_mark sys_fanotify_mark 369 common fanotify_mark sys_fanotify_mark
370 common prlimit64 sys_prlimit64 370 common prlimit64 sys_prlimit64
371 common name_to_handle_at sys_name_to_handle_at 371 common name_to_handle_at sys_name_to_handle_at
372 common open_by_handle_at sys_open_by_handle_at 372 common open_by_handle_at sys_open_by_handle_at
373 common clock_adjtime sys_clock_adjtime 373 common clock_adjtime sys_clock_adjtime32
374 common syncfs sys_syncfs 374 common syncfs sys_syncfs
375 common setns sys_setns 375 common setns sys_setns
376 common sendmmsg sys_sendmmsg 376 common sendmmsg sys_sendmmsg
...@@ -406,5 +406,26 @@ ...@@ -406,5 +406,26 @@
396 common pkey_alloc sys_pkey_alloc 396 common pkey_alloc sys_pkey_alloc
397 common pkey_free sys_pkey_free 397 common pkey_free sys_pkey_free
398 common statx sys_statx 398 common statx sys_statx
399 common io_pgetevents sys_io_pgetevents 399 common io_pgetevents sys_io_pgetevents_time32
400 common rseq sys_rseq 400 common rseq sys_rseq
# 401 and 402 are unused
403 common clock_gettime64 sys_clock_gettime
404 common clock_settime64 sys_clock_settime
405 common clock_adjtime64 sys_clock_adjtime
406 common clock_getres_time64 sys_clock_getres
407 common clock_nanosleep_time64 sys_clock_nanosleep
408 common timer_gettime64 sys_timer_gettime
409 common timer_settime64 sys_timer_settime
410 common timerfd_gettime64 sys_timerfd_gettime
411 common timerfd_settime64 sys_timerfd_settime
412 common utimensat_time64 sys_utimensat
413 common pselect6_time64 sys_pselect6
414 common ppoll_time64 sys_ppoll
416 common io_pgetevents_time64 sys_io_pgetevents
417 common recvmmsg_time64 sys_recvmmsg
418 common mq_timedsend_time64 sys_mq_timedsend
419 common mq_timedreceive_time64 sys_mq_timedreceive
420 common semtimedop_time64 sys_semtimedop
421 common rt_sigtimedwait_time64 sys_rt_sigtimedwait
422 common futex_time64 sys_futex
423 common sched_rr_get_interval_time64 sys_sched_rr_get_interval
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
config MIPS config MIPS
bool bool
default y default y
select ARCH_32BIT_OFF_T if !64BIT
select ARCH_BINFMT_ELF_STATE if MIPS_FP_SUPPORT select ARCH_BINFMT_ELF_STATE if MIPS_FP_SUPPORT
select ARCH_CLOCKSOURCE_DATA select ARCH_CLOCKSOURCE_DATA
select ARCH_DISCARD_MEMBLOCK select ARCH_DISCARD_MEMBLOCK
......
...@@ -45,29 +45,16 @@ ...@@ -45,29 +45,16 @@
#define __ARCH_WANT_SYS_SIGPROCMASK #define __ARCH_WANT_SYS_SIGPROCMASK
# ifdef CONFIG_32BIT # ifdef CONFIG_32BIT
# define __ARCH_WANT_STAT64 # define __ARCH_WANT_STAT64
# define __ARCH_WANT_SYS_TIME # define __ARCH_WANT_SYS_TIME32
# endif # endif
# ifdef CONFIG_MIPS32_O32 # ifdef CONFIG_MIPS32_O32
# define __ARCH_WANT_COMPAT_SYS_TIME # define __ARCH_WANT_SYS_TIME32
# endif # endif
#define __ARCH_WANT_SYS_FORK #define __ARCH_WANT_SYS_FORK
#define __ARCH_WANT_SYS_CLONE #define __ARCH_WANT_SYS_CLONE
/* whitelists for checksyscalls */ /* whitelists for checksyscalls */
#define __IGNORE_select
#define __IGNORE_vfork
#define __IGNORE_time
#define __IGNORE_uselib
#define __IGNORE_fadvise64_64 #define __IGNORE_fadvise64_64
#define __IGNORE_getdents64
#if _MIPS_SIM == _MIPS_SIM_NABI32
#define __IGNORE_truncate64
#define __IGNORE_ftruncate64
#define __IGNORE_stat64
#define __IGNORE_lstat64
#define __IGNORE_fstat64
#define __IGNORE_fstatat64
#endif
#endif /* !__ASSEMBLY__ */ #endif /* !__ASSEMBLY__ */
......
...@@ -37,11 +37,11 @@ ...@@ -37,11 +37,11 @@
27 n32 madvise sys_madvise 27 n32 madvise sys_madvise
28 n32 shmget sys_shmget 28 n32 shmget sys_shmget
29 n32 shmat sys_shmat 29 n32 shmat sys_shmat
30 n32 shmctl compat_sys_shmctl 30 n32 shmctl compat_sys_old_shmctl
31 n32 dup sys_dup 31 n32 dup sys_dup
32 n32 dup2 sys_dup2 32 n32 dup2 sys_dup2
33 n32 pause sys_pause 33 n32 pause sys_pause
34 n32 nanosleep compat_sys_nanosleep 34 n32 nanosleep sys_nanosleep_time32
35 n32 getitimer compat_sys_getitimer 35 n32 getitimer compat_sys_getitimer
36 n32 setitimer compat_sys_setitimer 36 n32 setitimer compat_sys_setitimer
37 n32 alarm sys_alarm 37 n32 alarm sys_alarm
...@@ -71,12 +71,12 @@ ...@@ -71,12 +71,12 @@
61 n32 uname sys_newuname 61 n32 uname sys_newuname
62 n32 semget sys_semget 62 n32 semget sys_semget
63 n32 semop sys_semop 63 n32 semop sys_semop
64 n32 semctl compat_sys_semctl 64 n32 semctl compat_sys_old_semctl
65 n32 shmdt sys_shmdt 65 n32 shmdt sys_shmdt
66 n32 msgget sys_msgget 66 n32 msgget sys_msgget
67 n32 msgsnd compat_sys_msgsnd 67 n32 msgsnd compat_sys_msgsnd
68 n32 msgrcv compat_sys_msgrcv 68 n32 msgrcv compat_sys_msgrcv
69 n32 msgctl compat_sys_msgctl 69 n32 msgctl compat_sys_old_msgctl
70 n32 fcntl compat_sys_fcntl 70 n32 fcntl compat_sys_fcntl
71 n32 flock sys_flock 71 n32 flock sys_flock
72 n32 fsync sys_fsync 72 n32 fsync sys_fsync
...@@ -133,11 +133,11 @@ ...@@ -133,11 +133,11 @@
123 n32 capget sys_capget 123 n32 capget sys_capget
124 n32 capset sys_capset 124 n32 capset sys_capset
125 n32 rt_sigpending compat_sys_rt_sigpending 125 n32 rt_sigpending compat_sys_rt_sigpending
126 n32 rt_sigtimedwait compat_sys_rt_sigtimedwait 126 n32 rt_sigtimedwait compat_sys_rt_sigtimedwait_time32
127 n32 rt_sigqueueinfo compat_sys_rt_sigqueueinfo 127 n32 rt_sigqueueinfo compat_sys_rt_sigqueueinfo
128 n32 rt_sigsuspend compat_sys_rt_sigsuspend 128 n32 rt_sigsuspend compat_sys_rt_sigsuspend
129 n32 sigaltstack compat_sys_sigaltstack 129 n32 sigaltstack compat_sys_sigaltstack
130 n32 utime compat_sys_utime 130 n32 utime sys_utime32
131 n32 mknod sys_mknod 131 n32 mknod sys_mknod
132 n32 personality sys_32_personality 132 n32 personality sys_32_personality
133 n32 ustat compat_sys_ustat 133 n32 ustat compat_sys_ustat
...@@ -152,7 +152,7 @@ ...@@ -152,7 +152,7 @@
142 n32 sched_getscheduler sys_sched_getscheduler 142 n32 sched_getscheduler sys_sched_getscheduler
143 n32 sched_get_priority_max sys_sched_get_priority_max 143 n32 sched_get_priority_max sys_sched_get_priority_max
144 n32 sched_get_priority_min sys_sched_get_priority_min 144 n32 sched_get_priority_min sys_sched_get_priority_min
145 n32 sched_rr_get_interval compat_sys_sched_rr_get_interval 145 n32 sched_rr_get_interval sys_sched_rr_get_interval_time32
146 n32 mlock sys_mlock 146 n32 mlock sys_mlock
147 n32 munlock sys_munlock 147 n32 munlock sys_munlock
148 n32 mlockall sys_mlockall 148 n32 mlockall sys_mlockall
...@@ -161,7 +161,7 @@ ...@@ -161,7 +161,7 @@
151 n32 pivot_root sys_pivot_root 151 n32 pivot_root sys_pivot_root
152 n32 _sysctl compat_sys_sysctl 152 n32 _sysctl compat_sys_sysctl
153 n32 prctl sys_prctl 153 n32 prctl sys_prctl
154 n32 adjtimex compat_sys_adjtimex 154 n32 adjtimex sys_adjtimex_time32
155 n32 setrlimit compat_sys_setrlimit 155 n32 setrlimit compat_sys_setrlimit
156 n32 chroot sys_chroot 156 n32 chroot sys_chroot
157 n32 sync sys_sync 157 n32 sync sys_sync
...@@ -202,7 +202,7 @@ ...@@ -202,7 +202,7 @@
191 n32 fremovexattr sys_fremovexattr 191 n32 fremovexattr sys_fremovexattr
192 n32 tkill sys_tkill 192 n32 tkill sys_tkill
193 n32 reserved193 sys_ni_syscall 193 n32 reserved193 sys_ni_syscall
194 n32 futex compat_sys_futex 194 n32 futex sys_futex_time32
195 n32 sched_setaffinity compat_sys_sched_setaffinity 195 n32 sched_setaffinity compat_sys_sched_setaffinity
196 n32 sched_getaffinity compat_sys_sched_getaffinity 196 n32 sched_getaffinity compat_sys_sched_getaffinity
197 n32 cacheflush sys_cacheflush 197 n32 cacheflush sys_cacheflush
...@@ -210,7 +210,7 @@ ...@@ -210,7 +210,7 @@
199 n32 sysmips __sys_sysmips 199 n32 sysmips __sys_sysmips
200 n32 io_setup compat_sys_io_setup 200 n32 io_setup compat_sys_io_setup
201 n32 io_destroy sys_io_destroy 201 n32 io_destroy sys_io_destroy
202 n32 io_getevents compat_sys_io_getevents 202 n32 io_getevents sys_io_getevents_time32
203 n32 io_submit compat_sys_io_submit 203 n32 io_submit compat_sys_io_submit
204 n32 io_cancel sys_io_cancel 204 n32 io_cancel sys_io_cancel
205 n32 exit_group sys_exit_group 205 n32 exit_group sys_exit_group
...@@ -223,29 +223,29 @@ ...@@ -223,29 +223,29 @@
212 n32 fcntl64 compat_sys_fcntl64 212 n32 fcntl64 compat_sys_fcntl64
213 n32 set_tid_address sys_set_tid_address 213 n32 set_tid_address sys_set_tid_address
214 n32 restart_syscall sys_restart_syscall 214 n32 restart_syscall sys_restart_syscall
215 n32 semtimedop compat_sys_semtimedop 215 n32 semtimedop sys_semtimedop_time32
216 n32 fadvise64 sys_fadvise64_64 216 n32 fadvise64 sys_fadvise64_64
217 n32 statfs64 compat_sys_statfs64 217 n32 statfs64 compat_sys_statfs64
218 n32 fstatfs64 compat_sys_fstatfs64 218 n32 fstatfs64 compat_sys_fstatfs64
219 n32 sendfile64 sys_sendfile64 219 n32 sendfile64 sys_sendfile64
220 n32 timer_create compat_sys_timer_create 220 n32 timer_create compat_sys_timer_create
221 n32 timer_settime compat_sys_timer_settime 221 n32 timer_settime sys_timer_settime32
222 n32 timer_gettime compat_sys_timer_gettime 222 n32 timer_gettime sys_timer_gettime32
223 n32 timer_getoverrun sys_timer_getoverrun 223 n32 timer_getoverrun sys_timer_getoverrun
224 n32 timer_delete sys_timer_delete 224 n32 timer_delete sys_timer_delete
225 n32 clock_settime compat_sys_clock_settime 225 n32 clock_settime sys_clock_settime32
226 n32 clock_gettime compat_sys_clock_gettime 226 n32 clock_gettime sys_clock_gettime32
227 n32 clock_getres compat_sys_clock_getres 227 n32 clock_getres sys_clock_getres_time32
228 n32 clock_nanosleep compat_sys_clock_nanosleep 228 n32 clock_nanosleep sys_clock_nanosleep_time32
229 n32 tgkill sys_tgkill 229 n32 tgkill sys_tgkill
230 n32 utimes compat_sys_utimes 230 n32 utimes sys_utimes_time32
231 n32 mbind compat_sys_mbind 231 n32 mbind compat_sys_mbind
232 n32 get_mempolicy compat_sys_get_mempolicy 232 n32 get_mempolicy compat_sys_get_mempolicy
233 n32 set_mempolicy compat_sys_set_mempolicy 233 n32 set_mempolicy compat_sys_set_mempolicy
234 n32 mq_open compat_sys_mq_open 234 n32 mq_open compat_sys_mq_open
235 n32 mq_unlink sys_mq_unlink 235 n32 mq_unlink sys_mq_unlink
236 n32 mq_timedsend compat_sys_mq_timedsend 236 n32 mq_timedsend sys_mq_timedsend_time32
237 n32 mq_timedreceive compat_sys_mq_timedreceive 237 n32 mq_timedreceive sys_mq_timedreceive_time32
238 n32 mq_notify compat_sys_mq_notify 238 n32 mq_notify compat_sys_mq_notify
239 n32 mq_getsetattr compat_sys_mq_getsetattr 239 n32 mq_getsetattr compat_sys_mq_getsetattr
240 n32 vserver sys_ni_syscall 240 n32 vserver sys_ni_syscall
...@@ -263,7 +263,7 @@ ...@@ -263,7 +263,7 @@
252 n32 mkdirat sys_mkdirat 252 n32 mkdirat sys_mkdirat
253 n32 mknodat sys_mknodat 253 n32 mknodat sys_mknodat
254 n32 fchownat sys_fchownat 254 n32 fchownat sys_fchownat
255 n32 futimesat compat_sys_futimesat 255 n32 futimesat sys_futimesat_time32
256 n32 newfstatat sys_newfstatat 256 n32 newfstatat sys_newfstatat
257 n32 unlinkat sys_unlinkat 257 n32 unlinkat sys_unlinkat
258 n32 renameat sys_renameat 258 n32 renameat sys_renameat
...@@ -272,8 +272,8 @@ ...@@ -272,8 +272,8 @@
261 n32 readlinkat sys_readlinkat 261 n32 readlinkat sys_readlinkat
262 n32 fchmodat sys_fchmodat 262 n32 fchmodat sys_fchmodat
263 n32 faccessat sys_faccessat 263 n32 faccessat sys_faccessat
264 n32 pselect6 compat_sys_pselect6 264 n32 pselect6 compat_sys_pselect6_time32
265 n32 ppoll compat_sys_ppoll 265 n32 ppoll compat_sys_ppoll_time32
266 n32 unshare sys_unshare 266 n32 unshare sys_unshare
267 n32 splice sys_splice 267 n32 splice sys_splice
268 n32 sync_file_range sys_sync_file_range 268 n32 sync_file_range sys_sync_file_range
...@@ -287,14 +287,14 @@ ...@@ -287,14 +287,14 @@
276 n32 epoll_pwait compat_sys_epoll_pwait 276 n32 epoll_pwait compat_sys_epoll_pwait
277 n32 ioprio_set sys_ioprio_set 277 n32 ioprio_set sys_ioprio_set
278 n32 ioprio_get sys_ioprio_get 278 n32 ioprio_get sys_ioprio_get
279 n32 utimensat compat_sys_utimensat 279 n32 utimensat sys_utimensat_time32
280 n32 signalfd compat_sys_signalfd 280 n32 signalfd compat_sys_signalfd
281 n32 timerfd sys_ni_syscall 281 n32 timerfd sys_ni_syscall
282 n32 eventfd sys_eventfd 282 n32 eventfd sys_eventfd
283 n32 fallocate sys_fallocate 283 n32 fallocate sys_fallocate
284 n32 timerfd_create sys_timerfd_create 284 n32 timerfd_create sys_timerfd_create
285 n32 timerfd_gettime compat_sys_timerfd_gettime 285 n32 timerfd_gettime sys_timerfd_gettime32
286 n32 timerfd_settime compat_sys_timerfd_settime 286 n32 timerfd_settime sys_timerfd_settime32
287 n32 signalfd4 compat_sys_signalfd4 287 n32 signalfd4 compat_sys_signalfd4
288 n32 eventfd2 sys_eventfd2 288 n32 eventfd2 sys_eventfd2
289 n32 epoll_create1 sys_epoll_create1 289 n32 epoll_create1 sys_epoll_create1
...@@ -306,14 +306,14 @@ ...@@ -306,14 +306,14 @@
295 n32 rt_tgsigqueueinfo compat_sys_rt_tgsigqueueinfo 295 n32 rt_tgsigqueueinfo compat_sys_rt_tgsigqueueinfo
296 n32 perf_event_open sys_perf_event_open 296 n32 perf_event_open sys_perf_event_open
297 n32 accept4 sys_accept4 297 n32 accept4 sys_accept4
298 n32 recvmmsg compat_sys_recvmmsg 298 n32 recvmmsg compat_sys_recvmmsg_time32
299 n32 getdents64 sys_getdents64 299 n32 getdents64 sys_getdents64
300 n32 fanotify_init sys_fanotify_init 300 n32 fanotify_init sys_fanotify_init
301 n32 fanotify_mark sys_fanotify_mark 301 n32 fanotify_mark sys_fanotify_mark
302 n32 prlimit64 sys_prlimit64 302 n32 prlimit64 sys_prlimit64
303 n32 name_to_handle_at sys_name_to_handle_at 303 n32 name_to_handle_at sys_name_to_handle_at
304 n32 open_by_handle_at sys_open_by_handle_at 304 n32 open_by_handle_at sys_open_by_handle_at
305 n32 clock_adjtime compat_sys_clock_adjtime 305 n32 clock_adjtime sys_clock_adjtime32
306 n32 syncfs sys_syncfs 306 n32 syncfs sys_syncfs
307 n32 sendmmsg compat_sys_sendmmsg 307 n32 sendmmsg compat_sys_sendmmsg
308 n32 setns sys_setns 308 n32 setns sys_setns
...@@ -341,3 +341,24 @@ ...@@ -341,3 +341,24 @@
330 n32 statx sys_statx 330 n32 statx sys_statx
331 n32 rseq sys_rseq 331 n32 rseq sys_rseq
332 n32 io_pgetevents compat_sys_io_pgetevents 332 n32 io_pgetevents compat_sys_io_pgetevents
# 333 through 402 are unassigned to sync up with generic numbers
403 n32 clock_gettime64 sys_clock_gettime
404 n32 clock_settime64 sys_clock_settime
405 n32 clock_adjtime64 sys_clock_adjtime
406 n32 clock_getres_time64 sys_clock_getres
407 n32 clock_nanosleep_time64 sys_clock_nanosleep
408 n32 timer_gettime64 sys_timer_gettime
409 n32 timer_settime64 sys_timer_settime
410 n32 timerfd_gettime64 sys_timerfd_gettime
411 n32 timerfd_settime64 sys_timerfd_settime
412 n32 utimensat_time64 sys_utimensat
413 n32 pselect6_time64 compat_sys_pselect6_time64
414 n32 ppoll_time64 compat_sys_ppoll_time64
416 n32 io_pgetevents_time64 sys_io_pgetevents
417 n32 recvmmsg_time64 compat_sys_recvmmsg_time64
418 n32 mq_timedsend_time64 sys_mq_timedsend
419 n32 mq_timedreceive_time64 sys_mq_timedreceive
420 n32 semtimedop_time64 sys_semtimedop
421 n32 rt_sigtimedwait_time64 compat_sys_rt_sigtimedwait_time64
422 n32 futex_time64 sys_futex
423 n32 sched_rr_get_interval_time64 sys_sched_rr_get_interval
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
27 n64 madvise sys_madvise 27 n64 madvise sys_madvise
28 n64 shmget sys_shmget 28 n64 shmget sys_shmget
29 n64 shmat sys_shmat 29 n64 shmat sys_shmat
30 n64 shmctl sys_shmctl 30 n64 shmctl sys_old_shmctl
31 n64 dup sys_dup 31 n64 dup sys_dup
32 n64 dup2 sys_dup2 32 n64 dup2 sys_dup2
33 n64 pause sys_pause 33 n64 pause sys_pause
...@@ -71,12 +71,12 @@ ...@@ -71,12 +71,12 @@
61 n64 uname sys_newuname 61 n64 uname sys_newuname
62 n64 semget sys_semget 62 n64 semget sys_semget
63 n64 semop sys_semop 63 n64 semop sys_semop
64 n64 semctl sys_semctl 64 n64 semctl sys_old_semctl
65 n64 shmdt sys_shmdt 65 n64 shmdt sys_shmdt
66 n64 msgget sys_msgget 66 n64 msgget sys_msgget
67 n64 msgsnd sys_msgsnd 67 n64 msgsnd sys_msgsnd
68 n64 msgrcv sys_msgrcv 68 n64 msgrcv sys_msgrcv
69 n64 msgctl sys_msgctl 69 n64 msgctl sys_old_msgctl
70 n64 fcntl sys_fcntl 70 n64 fcntl sys_fcntl
71 n64 flock sys_flock 71 n64 flock sys_flock
72 n64 fsync sys_fsync 72 n64 fsync sys_fsync
...@@ -337,3 +337,4 @@ ...@@ -337,3 +337,4 @@
326 n64 statx sys_statx 326 n64 statx sys_statx
327 n64 rseq sys_rseq 327 n64 rseq sys_rseq
328 n64 io_pgetevents sys_io_pgetevents 328 n64 io_pgetevents sys_io_pgetevents
# 329 through 423 are reserved to sync up with other architectures
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
10 o32 unlink sys_unlink 10 o32 unlink sys_unlink
11 o32 execve sys_execve compat_sys_execve 11 o32 execve sys_execve compat_sys_execve
12 o32 chdir sys_chdir 12 o32 chdir sys_chdir
13 o32 time sys_time compat_sys_time 13 o32 time sys_time32
14 o32 mknod sys_mknod 14 o32 mknod sys_mknod
15 o32 chmod sys_chmod 15 o32 chmod sys_chmod
16 o32 lchown sys_lchown 16 o32 lchown sys_lchown
...@@ -33,13 +33,13 @@ ...@@ -33,13 +33,13 @@
22 o32 umount sys_oldumount 22 o32 umount sys_oldumount
23 o32 setuid sys_setuid 23 o32 setuid sys_setuid
24 o32 getuid sys_getuid 24 o32 getuid sys_getuid
25 o32 stime sys_stime compat_sys_stime 25 o32 stime sys_stime32
26 o32 ptrace sys_ptrace compat_sys_ptrace 26 o32 ptrace sys_ptrace compat_sys_ptrace
27 o32 alarm sys_alarm 27 o32 alarm sys_alarm
# 28 was sys_fstat # 28 was sys_fstat
28 o32 unused28 sys_ni_syscall 28 o32 unused28 sys_ni_syscall
29 o32 pause sys_pause 29 o32 pause sys_pause
30 o32 utime sys_utime compat_sys_utime 30 o32 utime sys_utime32
31 o32 stty sys_ni_syscall 31 o32 stty sys_ni_syscall
32 o32 gtty sys_ni_syscall 32 o32 gtty sys_ni_syscall
33 o32 access sys_access 33 o32 access sys_access
...@@ -135,7 +135,7 @@ ...@@ -135,7 +135,7 @@
121 o32 setdomainname sys_setdomainname 121 o32 setdomainname sys_setdomainname
122 o32 uname sys_newuname 122 o32 uname sys_newuname
123 o32 modify_ldt sys_ni_syscall 123 o32 modify_ldt sys_ni_syscall
124 o32 adjtimex sys_adjtimex compat_sys_adjtimex 124 o32 adjtimex sys_adjtimex_time32
125 o32 mprotect sys_mprotect 125 o32 mprotect sys_mprotect
126 o32 sigprocmask sys_sigprocmask compat_sys_sigprocmask 126 o32 sigprocmask sys_sigprocmask compat_sys_sigprocmask
127 o32 create_module sys_ni_syscall 127 o32 create_module sys_ni_syscall
...@@ -176,8 +176,8 @@ ...@@ -176,8 +176,8 @@
162 o32 sched_yield sys_sched_yield 162 o32 sched_yield sys_sched_yield
163 o32 sched_get_priority_max sys_sched_get_priority_max 163 o32 sched_get_priority_max sys_sched_get_priority_max
164 o32 sched_get_priority_min sys_sched_get_priority_min 164 o32 sched_get_priority_min sys_sched_get_priority_min
165 o32 sched_rr_get_interval sys_sched_rr_get_interval compat_sys_sched_rr_get_interval 165 o32 sched_rr_get_interval sys_sched_rr_get_interval_time32
166 o32 nanosleep sys_nanosleep compat_sys_nanosleep 166 o32 nanosleep sys_nanosleep_time32
167 o32 mremap sys_mremap 167 o32 mremap sys_mremap
168 o32 accept sys_accept 168 o32 accept sys_accept
169 o32 bind sys_bind 169 o32 bind sys_bind
...@@ -208,7 +208,7 @@ ...@@ -208,7 +208,7 @@
194 o32 rt_sigaction sys_rt_sigaction compat_sys_rt_sigaction 194 o32 rt_sigaction sys_rt_sigaction compat_sys_rt_sigaction
195 o32 rt_sigprocmask sys_rt_sigprocmask compat_sys_rt_sigprocmask 195 o32 rt_sigprocmask sys_rt_sigprocmask compat_sys_rt_sigprocmask
196 o32 rt_sigpending sys_rt_sigpending compat_sys_rt_sigpending 196 o32 rt_sigpending sys_rt_sigpending compat_sys_rt_sigpending
197 o32 rt_sigtimedwait sys_rt_sigtimedwait compat_sys_rt_sigtimedwait 197 o32 rt_sigtimedwait sys_rt_sigtimedwait_time32 compat_sys_rt_sigtimedwait_time32
198 o32 rt_sigqueueinfo sys_rt_sigqueueinfo compat_sys_rt_sigqueueinfo 198 o32 rt_sigqueueinfo sys_rt_sigqueueinfo compat_sys_rt_sigqueueinfo
199 o32 rt_sigsuspend sys_rt_sigsuspend compat_sys_rt_sigsuspend 199 o32 rt_sigsuspend sys_rt_sigsuspend compat_sys_rt_sigsuspend
200 o32 pread64 sys_pread64 sys_32_pread 200 o32 pread64 sys_pread64 sys_32_pread
...@@ -249,12 +249,12 @@ ...@@ -249,12 +249,12 @@
235 o32 fremovexattr sys_fremovexattr 235 o32 fremovexattr sys_fremovexattr
236 o32 tkill sys_tkill 236 o32 tkill sys_tkill
237 o32 sendfile64 sys_sendfile64 237 o32 sendfile64 sys_sendfile64
238 o32 futex sys_futex compat_sys_futex 238 o32 futex sys_futex_time32
239 o32 sched_setaffinity sys_sched_setaffinity compat_sys_sched_setaffinity 239 o32 sched_setaffinity sys_sched_setaffinity compat_sys_sched_setaffinity
240 o32 sched_getaffinity sys_sched_getaffinity compat_sys_sched_getaffinity 240 o32 sched_getaffinity sys_sched_getaffinity compat_sys_sched_getaffinity
241 o32 io_setup sys_io_setup compat_sys_io_setup 241 o32 io_setup sys_io_setup compat_sys_io_setup
242 o32 io_destroy sys_io_destroy 242 o32 io_destroy sys_io_destroy
243 o32 io_getevents sys_io_getevents compat_sys_io_getevents 243 o32 io_getevents sys_io_getevents_time32
244 o32 io_submit sys_io_submit compat_sys_io_submit 244 o32 io_submit sys_io_submit compat_sys_io_submit
245 o32 io_cancel sys_io_cancel 245 o32 io_cancel sys_io_cancel
246 o32 exit_group sys_exit_group 246 o32 exit_group sys_exit_group
...@@ -269,23 +269,23 @@ ...@@ -269,23 +269,23 @@
255 o32 statfs64 sys_statfs64 compat_sys_statfs64 255 o32 statfs64 sys_statfs64 compat_sys_statfs64
256 o32 fstatfs64 sys_fstatfs64 compat_sys_fstatfs64 256 o32 fstatfs64 sys_fstatfs64 compat_sys_fstatfs64
257 o32 timer_create sys_timer_create compat_sys_timer_create 257 o32 timer_create sys_timer_create compat_sys_timer_create
258 o32 timer_settime sys_timer_settime compat_sys_timer_settime 258 o32 timer_settime sys_timer_settime32
259 o32 timer_gettime sys_timer_gettime compat_sys_timer_gettime 259 o32 timer_gettime sys_timer_gettime32
260 o32 timer_getoverrun sys_timer_getoverrun 260 o32 timer_getoverrun sys_timer_getoverrun
261 o32 timer_delete sys_timer_delete 261 o32 timer_delete sys_timer_delete
262 o32 clock_settime sys_clock_settime compat_sys_clock_settime 262 o32 clock_settime sys_clock_settime32
263 o32 clock_gettime sys_clock_gettime compat_sys_clock_gettime 263 o32 clock_gettime sys_clock_gettime32
264 o32 clock_getres sys_clock_getres compat_sys_clock_getres 264 o32 clock_getres sys_clock_getres_time32
265 o32 clock_nanosleep sys_clock_nanosleep compat_sys_clock_nanosleep 265 o32 clock_nanosleep sys_clock_nanosleep_time32
266 o32 tgkill sys_tgkill 266 o32 tgkill sys_tgkill
267 o32 utimes sys_utimes compat_sys_utimes 267 o32 utimes sys_utimes_time32
268 o32 mbind sys_mbind compat_sys_mbind 268 o32 mbind sys_mbind compat_sys_mbind
269 o32 get_mempolicy sys_get_mempolicy compat_sys_get_mempolicy 269 o32 get_mempolicy sys_get_mempolicy compat_sys_get_mempolicy
270 o32 set_mempolicy sys_set_mempolicy compat_sys_set_mempolicy 270 o32 set_mempolicy sys_set_mempolicy compat_sys_set_mempolicy
271 o32 mq_open sys_mq_open compat_sys_mq_open 271 o32 mq_open sys_mq_open compat_sys_mq_open
272 o32 mq_unlink sys_mq_unlink 272 o32 mq_unlink sys_mq_unlink
273 o32 mq_timedsend sys_mq_timedsend compat_sys_mq_timedsend 273 o32 mq_timedsend sys_mq_timedsend_time32
274 o32 mq_timedreceive sys_mq_timedreceive compat_sys_mq_timedreceive 274 o32 mq_timedreceive sys_mq_timedreceive_time32
275 o32 mq_notify sys_mq_notify compat_sys_mq_notify 275 o32 mq_notify sys_mq_notify compat_sys_mq_notify
276 o32 mq_getsetattr sys_mq_getsetattr compat_sys_mq_getsetattr 276 o32 mq_getsetattr sys_mq_getsetattr compat_sys_mq_getsetattr
277 o32 vserver sys_ni_syscall 277 o32 vserver sys_ni_syscall
...@@ -303,7 +303,7 @@ ...@@ -303,7 +303,7 @@
289 o32 mkdirat sys_mkdirat 289 o32 mkdirat sys_mkdirat
290 o32 mknodat sys_mknodat 290 o32 mknodat sys_mknodat
291 o32 fchownat sys_fchownat 291 o32 fchownat sys_fchownat
292 o32 futimesat sys_futimesat compat_sys_futimesat 292 o32 futimesat sys_futimesat_time32
293 o32 fstatat64 sys_fstatat64 sys_newfstatat 293 o32 fstatat64 sys_fstatat64 sys_newfstatat
294 o32 unlinkat sys_unlinkat 294 o32 unlinkat sys_unlinkat
295 o32 renameat sys_renameat 295 o32 renameat sys_renameat
...@@ -312,8 +312,8 @@ ...@@ -312,8 +312,8 @@
298 o32 readlinkat sys_readlinkat 298 o32 readlinkat sys_readlinkat
299 o32 fchmodat sys_fchmodat 299 o32 fchmodat sys_fchmodat
300 o32 faccessat sys_faccessat 300 o32 faccessat sys_faccessat
301 o32 pselect6 sys_pselect6 compat_sys_pselect6 301 o32 pselect6 sys_pselect6_time32 compat_sys_pselect6_time32
302 o32 ppoll sys_ppoll compat_sys_ppoll 302 o32 ppoll sys_ppoll_time32 compat_sys_ppoll_time32
303 o32 unshare sys_unshare 303 o32 unshare sys_unshare
304 o32 splice sys_splice 304 o32 splice sys_splice
305 o32 sync_file_range sys_sync_file_range sys32_sync_file_range 305 o32 sync_file_range sys_sync_file_range sys32_sync_file_range
...@@ -327,14 +327,14 @@ ...@@ -327,14 +327,14 @@
313 o32 epoll_pwait sys_epoll_pwait compat_sys_epoll_pwait 313 o32 epoll_pwait sys_epoll_pwait compat_sys_epoll_pwait
314 o32 ioprio_set sys_ioprio_set 314 o32 ioprio_set sys_ioprio_set
315 o32 ioprio_get sys_ioprio_get 315 o32 ioprio_get sys_ioprio_get
316 o32 utimensat sys_utimensat compat_sys_utimensat 316 o32 utimensat sys_utimensat_time32
317 o32 signalfd sys_signalfd compat_sys_signalfd 317 o32 signalfd sys_signalfd compat_sys_signalfd
318 o32 timerfd sys_ni_syscall 318 o32 timerfd sys_ni_syscall
319 o32 eventfd sys_eventfd 319 o32 eventfd sys_eventfd
320 o32 fallocate sys_fallocate sys32_fallocate 320 o32 fallocate sys_fallocate sys32_fallocate
321 o32 timerfd_create sys_timerfd_create 321 o32 timerfd_create sys_timerfd_create
322 o32 timerfd_gettime sys_timerfd_gettime compat_sys_timerfd_gettime 322 o32 timerfd_gettime sys_timerfd_gettime32
323 o32 timerfd_settime sys_timerfd_settime compat_sys_timerfd_settime 323 o32 timerfd_settime sys_timerfd_settime32
324 o32 signalfd4 sys_signalfd4 compat_sys_signalfd4 324 o32 signalfd4 sys_signalfd4 compat_sys_signalfd4
325 o32 eventfd2 sys_eventfd2 325 o32 eventfd2 sys_eventfd2
326 o32 epoll_create1 sys_epoll_create1 326 o32 epoll_create1 sys_epoll_create1
...@@ -346,13 +346,13 @@ ...@@ -346,13 +346,13 @@
332 o32 rt_tgsigqueueinfo sys_rt_tgsigqueueinfo compat_sys_rt_tgsigqueueinfo 332 o32 rt_tgsigqueueinfo sys_rt_tgsigqueueinfo compat_sys_rt_tgsigqueueinfo
333 o32 perf_event_open sys_perf_event_open 333 o32 perf_event_open sys_perf_event_open
334 o32 accept4 sys_accept4 334 o32 accept4 sys_accept4
335 o32 recvmmsg sys_recvmmsg compat_sys_recvmmsg 335 o32 recvmmsg sys_recvmmsg_time32 compat_sys_recvmmsg_time32
336 o32 fanotify_init sys_fanotify_init 336 o32 fanotify_init sys_fanotify_init
337 o32 fanotify_mark sys_fanotify_mark compat_sys_fanotify_mark 337 o32 fanotify_mark sys_fanotify_mark compat_sys_fanotify_mark
338 o32 prlimit64 sys_prlimit64 338 o32 prlimit64 sys_prlimit64
339 o32 name_to_handle_at sys_name_to_handle_at 339 o32 name_to_handle_at sys_name_to_handle_at
340 o32 open_by_handle_at sys_open_by_handle_at compat_sys_open_by_handle_at 340 o32 open_by_handle_at sys_open_by_handle_at compat_sys_open_by_handle_at
341 o32 clock_adjtime sys_clock_adjtime compat_sys_clock_adjtime 341 o32 clock_adjtime sys_clock_adjtime32
342 o32 syncfs sys_syncfs 342 o32 syncfs sys_syncfs
343 o32 sendmmsg sys_sendmmsg compat_sys_sendmmsg 343 o32 sendmmsg sys_sendmmsg compat_sys_sendmmsg
344 o32 setns sys_setns 344 o32 setns sys_setns
...@@ -379,4 +379,35 @@ ...@@ -379,4 +379,35 @@
365 o32 pkey_free sys_pkey_free 365 o32 pkey_free sys_pkey_free
366 o32 statx sys_statx 366 o32 statx sys_statx
367 o32 rseq sys_rseq 367 o32 rseq sys_rseq
368 o32 io_pgetevents sys_io_pgetevents compat_sys_io_pgetevents 368 o32 io_pgetevents sys_io_pgetevents_time32 compat_sys_io_pgetevents
# room for arch specific calls
393 o32 semget sys_semget
394 o32 semctl sys_semctl compat_sys_semctl
395 o32 shmget sys_shmget
396 o32 shmctl sys_shmctl compat_sys_shmctl
397 o32 shmat sys_shmat compat_sys_shmat
398 o32 shmdt sys_shmdt
399 o32 msgget sys_msgget
400 o32 msgsnd sys_msgsnd compat_sys_msgsnd
401 o32 msgrcv sys_msgrcv compat_sys_msgrcv
402 o32 msgctl sys_msgctl compat_sys_msgctl
403 o32 clock_gettime64 sys_clock_gettime sys_clock_gettime
404 o32 clock_settime64 sys_clock_settime sys_clock_settime
405 o32 clock_adjtime64 sys_clock_adjtime sys_clock_adjtime
406 o32 clock_getres_time64 sys_clock_getres sys_clock_getres
407 o32 clock_nanosleep_time64 sys_clock_nanosleep sys_clock_nanosleep
408 o32 timer_gettime64 sys_timer_gettime sys_timer_gettime
409 o32 timer_settime64 sys_timer_settime sys_timer_settime
410 o32 timerfd_gettime64 sys_timerfd_gettime sys_timerfd_gettime
411 o32 timerfd_settime64 sys_timerfd_settime sys_timerfd_settime
412 o32 utimensat_time64 sys_utimensat sys_utimensat
413 o32 pselect6_time64 sys_pselect6 compat_sys_pselect6_time64
414 o32 ppoll_time64 sys_ppoll compat_sys_ppoll_time64
416 o32 io_pgetevents_time64 sys_io_pgetevents sys_io_pgetevents
417 o32 recvmmsg_time64 sys_recvmmsg compat_sys_recvmmsg_time64
418 o32 mq_timedsend_time64 sys_mq_timedsend sys_mq_timedsend
419 o32 mq_timedreceive_time64 sys_mq_timedreceive sys_mq_timedreceive
420 o32 semtimedop_time64 sys_semtimedop sys_semtimedop
421 o32 rt_sigtimedwait_time64 sys_rt_sigtimedwait compat_sys_rt_sigtimedwait_time64
422 o32 futex_time64 sys_futex sys_futex
423 o32 sched_rr_get_interval_time64 sys_sched_rr_get_interval sys_sched_rr_get_interval
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
config NDS32 config NDS32
def_bool y def_bool y
select ARCH_32BIT_OFF_T
select ARCH_HAS_SYNC_DMA_FOR_CPU select ARCH_HAS_SYNC_DMA_FOR_CPU
select ARCH_HAS_SYNC_DMA_FOR_DEVICE select ARCH_HAS_SYNC_DMA_FOR_DEVICE
select ARCH_WANT_FRAME_POINTERS if FTRACE select ARCH_WANT_FRAME_POINTERS if FTRACE
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
#define __ARCH_WANT_STAT64 #define __ARCH_WANT_STAT64
#define __ARCH_WANT_SYNC_FILE_RANGE2 #define __ARCH_WANT_SYNC_FILE_RANGE2
#define __ARCH_WANT_SET_GET_RLIMIT
#define __ARCH_WANT_TIME32_SYSCALLS
/* Use the standard ABI for syscalls */ /* Use the standard ABI for syscalls */
#include <asm-generic/unistd.h> #include <asm-generic/unistd.h>
......
# SPDX-License-Identifier: GPL-2.0 # SPDX-License-Identifier: GPL-2.0
config NIOS2 config NIOS2
def_bool y def_bool y
select ARCH_32BIT_OFF_T
select ARCH_HAS_SYNC_DMA_FOR_CPU select ARCH_HAS_SYNC_DMA_FOR_CPU
select ARCH_HAS_SYNC_DMA_FOR_DEVICE select ARCH_HAS_SYNC_DMA_FOR_DEVICE
select ARCH_NO_SWAP select ARCH_NO_SWAP
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
#define __ARCH_WANT_RENAMEAT #define __ARCH_WANT_RENAMEAT
#define __ARCH_WANT_STAT64 #define __ARCH_WANT_STAT64
#define __ARCH_WANT_SET_GET_RLIMIT
#define __ARCH_WANT_TIME32_SYSCALLS
/* Use the standard ABI for syscalls */ /* Use the standard ABI for syscalls */
#include <asm-generic/unistd.h> #include <asm-generic/unistd.h>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
config OPENRISC config OPENRISC
def_bool y def_bool y
select ARCH_32BIT_OFF_T
select ARCH_HAS_SYNC_DMA_FOR_DEVICE select ARCH_HAS_SYNC_DMA_FOR_DEVICE
select OF select OF
select OF_EARLY_FLATTREE select OF_EARLY_FLATTREE
......
...@@ -21,8 +21,10 @@ ...@@ -21,8 +21,10 @@
#define __ARCH_WANT_RENAMEAT #define __ARCH_WANT_RENAMEAT
#define __ARCH_WANT_STAT64 #define __ARCH_WANT_STAT64
#define __ARCH_WANT_SET_GET_RLIMIT
#define __ARCH_WANT_SYS_FORK #define __ARCH_WANT_SYS_FORK
#define __ARCH_WANT_SYS_CLONE #define __ARCH_WANT_SYS_CLONE
#define __ARCH_WANT_TIME32_SYSCALLS
#include <asm-generic/unistd.h> #include <asm-generic/unistd.h>
......
# SPDX-License-Identifier: GPL-2.0 # SPDX-License-Identifier: GPL-2.0
config PARISC config PARISC
def_bool y def_bool y
select ARCH_32BIT_OFF_T if !64BIT
select ARCH_MIGHT_HAVE_PC_PARPORT select ARCH_MIGHT_HAVE_PC_PARPORT
select HAVE_IDE select HAVE_IDE
select HAVE_OPROFILE select HAVE_OPROFILE
......
...@@ -10,11 +10,7 @@ ...@@ -10,11 +10,7 @@
#define SYS_ify(syscall_name) __NR_##syscall_name #define SYS_ify(syscall_name) __NR_##syscall_name
#define __IGNORE_select /* newselect */
#define __IGNORE_fadvise64 /* fadvise64_64 */ #define __IGNORE_fadvise64 /* fadvise64_64 */
#define __IGNORE_pkey_mprotect
#define __IGNORE_pkey_alloc
#define __IGNORE_pkey_free
#ifndef ASM_LINE_SEP #ifndef ASM_LINE_SEP
# define ASM_LINE_SEP ; # define ASM_LINE_SEP ;
...@@ -156,10 +152,8 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5) \ ...@@ -156,10 +152,8 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5) \
#define __ARCH_WANT_SYS_GETHOSTNAME #define __ARCH_WANT_SYS_GETHOSTNAME
#define __ARCH_WANT_SYS_PAUSE #define __ARCH_WANT_SYS_PAUSE
#define __ARCH_WANT_SYS_SIGNAL #define __ARCH_WANT_SYS_SIGNAL
#define __ARCH_WANT_SYS_TIME #define __ARCH_WANT_SYS_TIME32
#define __ARCH_WANT_COMPAT_SYS_TIME
#define __ARCH_WANT_COMPAT_SYS_SCHED_RR_GET_INTERVAL #define __ARCH_WANT_COMPAT_SYS_SCHED_RR_GET_INTERVAL
#define __ARCH_WANT_SYS_UTIME
#define __ARCH_WANT_SYS_UTIME32 #define __ARCH_WANT_SYS_UTIME32
#define __ARCH_WANT_SYS_WAITPID #define __ARCH_WANT_SYS_WAITPID
#define __ARCH_WANT_SYS_SOCKETCALL #define __ARCH_WANT_SYS_SOCKETCALL
...@@ -174,6 +168,11 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5) \ ...@@ -174,6 +168,11 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5) \
#define __ARCH_WANT_SYS_CLONE #define __ARCH_WANT_SYS_CLONE
#define __ARCH_WANT_COMPAT_SYS_SENDFILE #define __ARCH_WANT_COMPAT_SYS_SENDFILE
#ifdef CONFIG_64BIT
#define __ARCH_WANT_SYS_TIME
#define __ARCH_WANT_SYS_UTIME
#endif
#endif /* __ASSEMBLY__ */ #endif /* __ASSEMBLY__ */
#undef STR #undef STR
......
This diff is collapsed.
...@@ -128,6 +128,7 @@ config PPC ...@@ -128,6 +128,7 @@ config PPC
# #
# Please keep this list sorted alphabetically. # Please keep this list sorted alphabetically.
# #
select ARCH_32BIT_OFF_T if PPC32
select ARCH_HAS_DEBUG_VIRTUAL select ARCH_HAS_DEBUG_VIRTUAL
select ARCH_HAS_DEVMEM_IS_ALLOWED select ARCH_HAS_DEVMEM_IS_ALLOWED
select ARCH_HAS_DMA_SET_COHERENT_MASK select ARCH_HAS_DMA_SET_COHERENT_MASK
......
...@@ -29,8 +29,8 @@ ...@@ -29,8 +29,8 @@
#define __ARCH_WANT_SYS_IPC #define __ARCH_WANT_SYS_IPC
#define __ARCH_WANT_SYS_PAUSE #define __ARCH_WANT_SYS_PAUSE
#define __ARCH_WANT_SYS_SIGNAL #define __ARCH_WANT_SYS_SIGNAL
#define __ARCH_WANT_SYS_TIME #define __ARCH_WANT_SYS_TIME32
#define __ARCH_WANT_SYS_UTIME #define __ARCH_WANT_SYS_UTIME32
#define __ARCH_WANT_SYS_WAITPID #define __ARCH_WANT_SYS_WAITPID
#define __ARCH_WANT_SYS_SOCKETCALL #define __ARCH_WANT_SYS_SOCKETCALL
#define __ARCH_WANT_SYS_FADVISE64 #define __ARCH_WANT_SYS_FADVISE64
...@@ -45,8 +45,8 @@ ...@@ -45,8 +45,8 @@
#define __ARCH_WANT_OLD_STAT #define __ARCH_WANT_OLD_STAT
#endif #endif
#ifdef CONFIG_PPC64 #ifdef CONFIG_PPC64
#define __ARCH_WANT_COMPAT_SYS_TIME #define __ARCH_WANT_SYS_TIME
#define __ARCH_WANT_SYS_UTIME32 #define __ARCH_WANT_SYS_UTIME
#define __ARCH_WANT_SYS_NEWFSTATAT #define __ARCH_WANT_SYS_NEWFSTATAT
#define __ARCH_WANT_COMPAT_SYS_SENDFILE #define __ARCH_WANT_COMPAT_SYS_SENDFILE
#endif #endif
......
This diff is collapsed.
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#ifdef __LP64__ #ifdef __LP64__
#define __ARCH_WANT_NEW_STAT #define __ARCH_WANT_NEW_STAT
#define __ARCH_WANT_SET_GET_RLIMIT
#endif /* __LP64__ */ #endif /* __LP64__ */
#include <asm-generic/unistd.h> #include <asm-generic/unistd.h>
......
...@@ -2,9 +2,11 @@ ...@@ -2,9 +2,11 @@
# Symbols present in the vdso # Symbols present in the vdso
vdso-syms = rt_sigreturn vdso-syms = rt_sigreturn
ifdef CONFIG_64BIT
vdso-syms += gettimeofday vdso-syms += gettimeofday
vdso-syms += clock_gettime vdso-syms += clock_gettime
vdso-syms += clock_getres vdso-syms += clock_getres
endif
vdso-syms += getcpu vdso-syms += getcpu
vdso-syms += flush_icache vdso-syms += flush_icache
......
...@@ -10,11 +10,6 @@ ...@@ -10,11 +10,6 @@
#include <uapi/asm/unistd.h> #include <uapi/asm/unistd.h>
#include <asm/unistd_nr.h> #include <asm/unistd_nr.h>
#define __IGNORE_time
#define __IGNORE_pkey_mprotect
#define __IGNORE_pkey_alloc
#define __IGNORE_pkey_free
#define __ARCH_WANT_NEW_STAT #define __ARCH_WANT_NEW_STAT
#define __ARCH_WANT_OLD_READDIR #define __ARCH_WANT_OLD_READDIR
#define __ARCH_WANT_SYS_ALARM #define __ARCH_WANT_SYS_ALARM
...@@ -33,7 +28,7 @@ ...@@ -33,7 +28,7 @@
#define __ARCH_WANT_SYS_SIGPENDING #define __ARCH_WANT_SYS_SIGPENDING
#define __ARCH_WANT_SYS_SIGPROCMASK #define __ARCH_WANT_SYS_SIGPROCMASK
# ifdef CONFIG_COMPAT # ifdef CONFIG_COMPAT
# define __ARCH_WANT_COMPAT_SYS_TIME # define __ARCH_WANT_SYS_TIME32
# define __ARCH_WANT_SYS_UTIME32 # define __ARCH_WANT_SYS_UTIME32
# endif # endif
#define __ARCH_WANT_SYS_FORK #define __ARCH_WANT_SYS_FORK
......
This diff is collapsed.
...@@ -62,6 +62,7 @@ config SUPERH ...@@ -62,6 +62,7 @@ config SUPERH
config SUPERH32 config SUPERH32
def_bool "$(ARCH)" = "sh" def_bool "$(ARCH)" = "sh"
select ARCH_32BIT_OFF_T
select HAVE_KPROBES select HAVE_KPROBES
select HAVE_KRETPROBES select HAVE_KRETPROBES
select HAVE_IOREMAP_PROT if MMU && !X2TLB select HAVE_IOREMAP_PROT if MMU && !X2TLB
......
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
# define __ARCH_WANT_SYS_IPC # define __ARCH_WANT_SYS_IPC
# define __ARCH_WANT_SYS_PAUSE # define __ARCH_WANT_SYS_PAUSE
# define __ARCH_WANT_SYS_SIGNAL # define __ARCH_WANT_SYS_SIGNAL
# define __ARCH_WANT_SYS_TIME # define __ARCH_WANT_SYS_TIME32
# define __ARCH_WANT_SYS_UTIME # define __ARCH_WANT_SYS_UTIME32
# define __ARCH_WANT_SYS_WAITPID # define __ARCH_WANT_SYS_WAITPID
# define __ARCH_WANT_SYS_SOCKETCALL # define __ARCH_WANT_SYS_SOCKETCALL
# define __ARCH_WANT_SYS_FADVISE64 # define __ARCH_WANT_SYS_FADVISE64
......
This diff is collapsed.
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
10 common unlink sys_unlink 10 common unlink sys_unlink
11 common execve sys_execve 11 common execve sys_execve
12 common chdir sys_chdir 12 common chdir sys_chdir
13 common time sys_time 13 common time sys_time32
14 common mknod sys_mknod 14 common mknod sys_mknod
15 common chmod sys_chmod 15 common chmod sys_chmod
16 common lchown sys_lchown16 16 common lchown sys_lchown16
...@@ -32,12 +32,12 @@ ...@@ -32,12 +32,12 @@
22 common umount sys_oldumount 22 common umount sys_oldumount
23 common setuid sys_setuid16 23 common setuid sys_setuid16
24 common getuid sys_getuid16 24 common getuid sys_getuid16
25 common stime sys_stime 25 common stime sys_stime32
26 common ptrace sys_ptrace 26 common ptrace sys_ptrace
27 common alarm sys_alarm 27 common alarm sys_alarm
28 common oldfstat sys_fstat 28 common oldfstat sys_fstat
29 common pause sys_pause 29 common pause sys_pause
30 common utime sys_utime 30 common utime sys_utime32
# 31 was stty # 31 was stty
# 32 was gtty # 32 was gtty
33 common access sys_access 33 common access sys_access
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
121 common setdomainname sys_setdomainname 121 common setdomainname sys_setdomainname
122 common uname sys_newuname 122 common uname sys_newuname
123 common cacheflush sys_cacheflush 123 common cacheflush sys_cacheflush
124 common adjtimex sys_adjtimex 124 common adjtimex sys_adjtimex_time32
125 common mprotect sys_mprotect 125 common mprotect sys_mprotect
126 common sigprocmask sys_sigprocmask 126 common sigprocmask sys_sigprocmask
# 127 was create_module # 127 was create_module
...@@ -168,8 +168,8 @@ ...@@ -168,8 +168,8 @@
158 common sched_yield sys_sched_yield 158 common sched_yield sys_sched_yield
159 common sched_get_priority_max sys_sched_get_priority_max 159 common sched_get_priority_max sys_sched_get_priority_max
160 common sched_get_priority_min sys_sched_get_priority_min 160 common sched_get_priority_min sys_sched_get_priority_min
161 common sched_rr_get_interval sys_sched_rr_get_interval 161 common sched_rr_get_interval sys_sched_rr_get_interval_time32
162 common nanosleep sys_nanosleep 162 common nanosleep sys_nanosleep_time32
163 common mremap sys_mremap 163 common mremap sys_mremap
164 common setresuid sys_setresuid16 164 common setresuid sys_setresuid16
165 common getresuid sys_getresuid16 165 common getresuid sys_getresuid16
...@@ -184,7 +184,7 @@ ...@@ -184,7 +184,7 @@
174 common rt_sigaction sys_rt_sigaction 174 common rt_sigaction sys_rt_sigaction
175 common rt_sigprocmask sys_rt_sigprocmask 175 common rt_sigprocmask sys_rt_sigprocmask
176 common rt_sigpending sys_rt_sigpending 176 common rt_sigpending sys_rt_sigpending
177 common rt_sigtimedwait sys_rt_sigtimedwait 177 common rt_sigtimedwait sys_rt_sigtimedwait_time32
178 common rt_sigqueueinfo sys_rt_sigqueueinfo 178 common rt_sigqueueinfo sys_rt_sigqueueinfo
179 common rt_sigsuspend sys_rt_sigsuspend 179 common rt_sigsuspend sys_rt_sigsuspend
180 common pread64 sys_pread_wrapper 180 common pread64 sys_pread_wrapper
...@@ -247,14 +247,14 @@ ...@@ -247,14 +247,14 @@
237 common fremovexattr sys_fremovexattr 237 common fremovexattr sys_fremovexattr
238 common tkill sys_tkill 238 common tkill sys_tkill
239 common sendfile64 sys_sendfile64 239 common sendfile64 sys_sendfile64
240 common futex sys_futex 240 common futex sys_futex_time32
241 common sched_setaffinity sys_sched_setaffinity 241 common sched_setaffinity sys_sched_setaffinity
242 common sched_getaffinity sys_sched_getaffinity 242 common sched_getaffinity sys_sched_getaffinity
# 243 is reserved for set_thread_area # 243 is reserved for set_thread_area
# 244 is reserved for get_thread_area # 244 is reserved for get_thread_area
245 common io_setup sys_io_setup 245 common io_setup sys_io_setup
246 common io_destroy sys_io_destroy 246 common io_destroy sys_io_destroy
247 common io_getevents sys_io_getevents 247 common io_getevents sys_io_getevents_time32
248 common io_submit sys_io_submit 248 common io_submit sys_io_submit
249 common io_cancel sys_io_cancel 249 common io_cancel sys_io_cancel
250 common fadvise64 sys_fadvise64 250 common fadvise64 sys_fadvise64
...@@ -267,18 +267,18 @@ ...@@ -267,18 +267,18 @@
257 common remap_file_pages sys_remap_file_pages 257 common remap_file_pages sys_remap_file_pages
258 common set_tid_address sys_set_tid_address 258 common set_tid_address sys_set_tid_address
259 common timer_create sys_timer_create 259 common timer_create sys_timer_create
260 common timer_settime sys_timer_settime 260 common timer_settime sys_timer_settime32
261 common timer_gettime sys_timer_gettime 261 common timer_gettime sys_timer_gettime32
262 common timer_getoverrun sys_timer_getoverrun 262 common timer_getoverrun sys_timer_getoverrun
263 common timer_delete sys_timer_delete 263 common timer_delete sys_timer_delete
264 common clock_settime sys_clock_settime 264 common clock_settime sys_clock_settime32
265 common clock_gettime sys_clock_gettime 265 common clock_gettime sys_clock_gettime32
266 common clock_getres sys_clock_getres 266 common clock_getres sys_clock_getres_time32
267 common clock_nanosleep sys_clock_nanosleep 267 common clock_nanosleep sys_clock_nanosleep_time32
268 common statfs64 sys_statfs64 268 common statfs64 sys_statfs64
269 common fstatfs64 sys_fstatfs64 269 common fstatfs64 sys_fstatfs64
270 common tgkill sys_tgkill 270 common tgkill sys_tgkill
271 common utimes sys_utimes 271 common utimes sys_utimes_time32
272 common fadvise64_64 sys_fadvise64_64_wrapper 272 common fadvise64_64 sys_fadvise64_64_wrapper
# 273 is reserved for vserver # 273 is reserved for vserver
274 common mbind sys_mbind 274 common mbind sys_mbind
...@@ -286,8 +286,8 @@ ...@@ -286,8 +286,8 @@
276 common set_mempolicy sys_set_mempolicy 276 common set_mempolicy sys_set_mempolicy
277 common mq_open sys_mq_open 277 common mq_open sys_mq_open
278 common mq_unlink sys_mq_unlink 278 common mq_unlink sys_mq_unlink
279 common mq_timedsend sys_mq_timedsend 279 common mq_timedsend sys_mq_timedsend_time32
280 common mq_timedreceive sys_mq_timedreceive 280 common mq_timedreceive sys_mq_timedreceive_time32
281 common mq_notify sys_mq_notify 281 common mq_notify sys_mq_notify
282 common mq_getsetattr sys_mq_getsetattr 282 common mq_getsetattr sys_mq_getsetattr
283 common kexec_load sys_kexec_load 283 common kexec_load sys_kexec_load
...@@ -306,7 +306,7 @@ ...@@ -306,7 +306,7 @@
296 common mkdirat sys_mkdirat 296 common mkdirat sys_mkdirat
297 common mknodat sys_mknodat 297 common mknodat sys_mknodat
298 common fchownat sys_fchownat 298 common fchownat sys_fchownat
299 common futimesat sys_futimesat 299 common futimesat sys_futimesat_time32
300 common fstatat64 sys_fstatat64 300 common fstatat64 sys_fstatat64
301 common unlinkat sys_unlinkat 301 common unlinkat sys_unlinkat
302 common renameat sys_renameat 302 common renameat sys_renameat
...@@ -315,8 +315,8 @@ ...@@ -315,8 +315,8 @@
305 common readlinkat sys_readlinkat 305 common readlinkat sys_readlinkat
306 common fchmodat sys_fchmodat 306 common fchmodat sys_fchmodat
307 common faccessat sys_faccessat 307 common faccessat sys_faccessat
308 common pselect6 sys_pselect6 308 common pselect6 sys_pselect6_time32
309 common ppoll sys_ppoll 309 common ppoll sys_ppoll_time32
310 common unshare sys_unshare 310 common unshare sys_unshare
311 common set_robust_list sys_set_robust_list 311 common set_robust_list sys_set_robust_list
312 common get_robust_list sys_get_robust_list 312 common get_robust_list sys_get_robust_list
...@@ -327,13 +327,13 @@ ...@@ -327,13 +327,13 @@
317 common move_pages sys_move_pages 317 common move_pages sys_move_pages
318 common getcpu sys_getcpu 318 common getcpu sys_getcpu
319 common epoll_pwait sys_epoll_pwait 319 common epoll_pwait sys_epoll_pwait
320 common utimensat sys_utimensat 320 common utimensat sys_utimensat_time32
321 common signalfd sys_signalfd 321 common signalfd sys_signalfd
322 common timerfd_create sys_timerfd_create 322 common timerfd_create sys_timerfd_create
323 common eventfd sys_eventfd 323 common eventfd sys_eventfd
324 common fallocate sys_fallocate 324 common fallocate sys_fallocate
325 common timerfd_settime sys_timerfd_settime 325 common timerfd_settime sys_timerfd_settime32
326 common timerfd_gettime sys_timerfd_gettime 326 common timerfd_gettime sys_timerfd_gettime32
327 common signalfd4 sys_signalfd4 327 common signalfd4 sys_signalfd4
328 common eventfd2 sys_eventfd2 328 common eventfd2 sys_eventfd2
329 common epoll_create1 sys_epoll_create1 329 common epoll_create1 sys_epoll_create1
...@@ -364,11 +364,11 @@ ...@@ -364,11 +364,11 @@
354 common getsockopt sys_getsockopt 354 common getsockopt sys_getsockopt
355 common sendmsg sys_sendmsg 355 common sendmsg sys_sendmsg
356 common recvmsg sys_recvmsg 356 common recvmsg sys_recvmsg
357 common recvmmsg sys_recvmmsg 357 common recvmmsg sys_recvmmsg_time32
358 common accept4 sys_accept4 358 common accept4 sys_accept4
359 common name_to_handle_at sys_name_to_handle_at 359 common name_to_handle_at sys_name_to_handle_at
360 common open_by_handle_at sys_open_by_handle_at 360 common open_by_handle_at sys_open_by_handle_at
361 common clock_adjtime sys_clock_adjtime 361 common clock_adjtime sys_clock_adjtime32
362 common syncfs sys_syncfs 362 common syncfs sys_syncfs
363 common sendmmsg sys_sendmmsg 363 common sendmmsg sys_sendmmsg
364 common setns sys_setns 364 common setns sys_setns
...@@ -390,3 +390,39 @@ ...@@ -390,3 +390,39 @@
380 common copy_file_range sys_copy_file_range 380 common copy_file_range sys_copy_file_range
381 common preadv2 sys_preadv2 381 common preadv2 sys_preadv2
382 common pwritev2 sys_pwritev2 382 common pwritev2 sys_pwritev2
383 common statx sys_statx
384 common pkey_mprotect sys_pkey_mprotect
385 common pkey_alloc sys_pkey_alloc
386 common pkey_free sys_pkey_free
387 common rseq sys_rseq
# room for arch specific syscalls
393 common semget sys_semget
394 common semctl sys_semctl
395 common shmget sys_shmget
396 common shmctl sys_shmctl
397 common shmat sys_shmat
398 common shmdt sys_shmdt
399 common msgget sys_msgget
400 common msgsnd sys_msgsnd
401 common msgrcv sys_msgrcv
402 common msgctl sys_msgctl
403 common clock_gettime64 sys_clock_gettime
404 common clock_settime64 sys_clock_settime
405 common clock_adjtime64 sys_clock_adjtime
406 common clock_getres_time64 sys_clock_getres
407 common clock_nanosleep_time64 sys_clock_nanosleep
408 common timer_gettime64 sys_timer_gettime
409 common timer_settime64 sys_timer_settime
410 common timerfd_gettime64 sys_timerfd_gettime
411 common timerfd_settime64 sys_timerfd_settime
412 common utimensat_time64 sys_utimensat
413 common pselect6_time64 sys_pselect6
414 common ppoll_time64 sys_ppoll
416 common io_pgetevents_time64 sys_io_pgetevents
417 common recvmmsg_time64 sys_recvmmsg
418 common mq_timedsend_time64 sys_mq_timedsend
419 common mq_timedreceive_time64 sys_mq_timedreceive
420 common semtimedop_time64 sys_semtimedop
421 common rt_sigtimedwait_time64 sys_rt_sigtimedwait
422 common futex_time64 sys_futex
423 common sched_rr_get_interval_time64 sys_sched_rr_get_interval
...@@ -49,6 +49,7 @@ config SPARC ...@@ -49,6 +49,7 @@ config SPARC
config SPARC32 config SPARC32
def_bool !64BIT def_bool !64BIT
select ARCH_32BIT_OFF_T
select ARCH_HAS_SYNC_DMA_FOR_CPU select ARCH_HAS_SYNC_DMA_FOR_CPU
select GENERIC_ATOMIC64 select GENERIC_ATOMIC64
select CLZ_TAB select CLZ_TAB
......
...@@ -30,8 +30,8 @@ ...@@ -30,8 +30,8 @@
#define __ARCH_WANT_SYS_GETHOSTNAME #define __ARCH_WANT_SYS_GETHOSTNAME
#define __ARCH_WANT_SYS_PAUSE #define __ARCH_WANT_SYS_PAUSE
#define __ARCH_WANT_SYS_SIGNAL #define __ARCH_WANT_SYS_SIGNAL
#define __ARCH_WANT_SYS_TIME #define __ARCH_WANT_SYS_TIME32
#define __ARCH_WANT_SYS_UTIME #define __ARCH_WANT_SYS_UTIME32
#define __ARCH_WANT_SYS_WAITPID #define __ARCH_WANT_SYS_WAITPID
#define __ARCH_WANT_SYS_SOCKETCALL #define __ARCH_WANT_SYS_SOCKETCALL
#define __ARCH_WANT_SYS_FADVISE64 #define __ARCH_WANT_SYS_FADVISE64
...@@ -43,8 +43,8 @@ ...@@ -43,8 +43,8 @@
#ifdef __32bit_syscall_numbers__ #ifdef __32bit_syscall_numbers__
#define __ARCH_WANT_SYS_IPC #define __ARCH_WANT_SYS_IPC
#else #else
#define __ARCH_WANT_COMPAT_SYS_TIME #define __ARCH_WANT_SYS_TIME
#define __ARCH_WANT_SYS_UTIME32 #define __ARCH_WANT_SYS_UTIME
#define __ARCH_WANT_COMPAT_SYS_SENDFILE #define __ARCH_WANT_COMPAT_SYS_SENDFILE
#endif #endif
...@@ -59,9 +59,4 @@ ...@@ -59,9 +59,4 @@
#define __IGNORE_getresgid #define __IGNORE_getresgid
#endif #endif
/* Sparc doesn't have protection keys. */
#define __IGNORE_pkey_mprotect
#define __IGNORE_pkey_alloc
#define __IGNORE_pkey_free
#endif /* _SPARC_UNISTD_H */ #endif /* _SPARC_UNISTD_H */
...@@ -28,8 +28,9 @@ ...@@ -28,8 +28,9 @@
#include <linux/random.h> #include <linux/random.h>
#include <linux/export.h> #include <linux/export.h>
#include <linux/context_tracking.h> #include <linux/context_tracking.h>
#include <linux/timex.h>
#include <linux/uaccess.h> #include <linux/uaccess.h>
#include <asm/utrap.h> #include <asm/utrap.h>
#include <asm/unistd.h> #include <asm/unistd.h>
...@@ -344,7 +345,7 @@ SYSCALL_DEFINE6(sparc_ipc, unsigned int, call, int, first, unsigned long, second ...@@ -344,7 +345,7 @@ SYSCALL_DEFINE6(sparc_ipc, unsigned int, call, int, first, unsigned long, second
goto out; goto out;
case SEMTIMEDOP: case SEMTIMEDOP:
err = sys_semtimedop(first, ptr, (unsigned int)second, err = sys_semtimedop(first, ptr, (unsigned int)second,
(const struct timespec __user *) (const struct __kernel_timespec __user *)
(unsigned long) fifth); (unsigned long) fifth);
goto out; goto out;
case SEMGET: case SEMGET:
...@@ -544,6 +545,62 @@ SYSCALL_DEFINE2(getdomainname, char __user *, name, int, len) ...@@ -544,6 +545,62 @@ SYSCALL_DEFINE2(getdomainname, char __user *, name, int, len)
return err; return err;
} }
SYSCALL_DEFINE1(sparc_adjtimex, struct timex __user *, txc_p)
{
struct timex txc; /* Local copy of parameter */
struct __kernel_timex *kt = (void *)&txc;
int ret;
/* Copy the user data space into the kernel copy
* structure. But bear in mind that the structures
* may change
*/
if (copy_from_user(&txc, txc_p, sizeof(struct timex)))
return -EFAULT;
/*
* override for sparc64 specific timeval type: tv_usec
* is 32 bit wide instead of 64-bit in __kernel_timex
*/
kt->time.tv_usec = txc.time.tv_usec;
ret = do_adjtimex(kt);
txc.time.tv_usec = kt->time.tv_usec;
return copy_to_user(txc_p, &txc, sizeof(struct timex)) ? -EFAULT : ret;
}
SYSCALL_DEFINE2(sparc_clock_adjtime, const clockid_t, which_clock,struct timex __user *, txc_p)
{
struct timex txc; /* Local copy of parameter */
struct __kernel_timex *kt = (void *)&txc;
int ret;
if (!IS_ENABLED(CONFIG_POSIX_TIMERS)) {
pr_err_once("process %d (%s) attempted a POSIX timer syscall "
"while CONFIG_POSIX_TIMERS is not set\n",
current->pid, current->comm);
return -ENOSYS;
}
/* Copy the user data space into the kernel copy
* structure. But bear in mind that the structures
* may change
*/
if (copy_from_user(&txc, txc_p, sizeof(struct timex)))
return -EFAULT;
/*
* override for sparc64 specific timeval type: tv_usec
* is 32 bit wide instead of 64-bit in __kernel_timex
*/
kt->time.tv_usec = txc.time.tv_usec;
ret = do_clock_adjtime(which_clock, kt);
txc.time.tv_usec = kt->time.tv_usec;
return copy_to_user(txc_p, &txc, sizeof(struct timex)) ? -EFAULT : ret;
}
SYSCALL_DEFINE5(utrap_install, utrap_entry_t, type, SYSCALL_DEFINE5(utrap_install, utrap_entry_t, type,
utrap_handler_t, new_p, utrap_handler_t, new_d, utrap_handler_t, new_p, utrap_handler_t, new_d,
utrap_handler_t __user *, old_p, utrap_handler_t __user *, old_p,
......
This diff is collapsed.
# SPDX-License-Identifier: GPL-2.0 # SPDX-License-Identifier: GPL-2.0
config UNICORE32 config UNICORE32
def_bool y def_bool y
select ARCH_32BIT_OFF_T
select ARCH_HAS_DEVMEM_IS_ALLOWED select ARCH_HAS_DEVMEM_IS_ALLOWED
select ARCH_MIGHT_HAVE_PC_PARPORT select ARCH_MIGHT_HAVE_PC_PARPORT
select ARCH_MIGHT_HAVE_PC_SERIO select ARCH_MIGHT_HAVE_PC_SERIO
......
...@@ -12,8 +12,10 @@ ...@@ -12,8 +12,10 @@
*/ */
#define __ARCH_WANT_RENAMEAT #define __ARCH_WANT_RENAMEAT
#define __ARCH_WANT_SET_GET_RLIMIT
#define __ARCH_WANT_STAT64
#define __ARCH_WANT_TIME32_SYSCALLS
/* Use the standard ABI for syscalls. */ /* Use the standard ABI for syscalls. */
#include <asm-generic/unistd.h> #include <asm-generic/unistd.h>
#define __ARCH_WANT_STAT64
#define __ARCH_WANT_SYS_CLONE #define __ARCH_WANT_SYS_CLONE
...@@ -46,6 +46,7 @@ config X86 ...@@ -46,6 +46,7 @@ config X86
select ACPI_LEGACY_TABLES_LOOKUP if ACPI select ACPI_LEGACY_TABLES_LOOKUP if ACPI
select ACPI_SYSTEM_POWER_STATES_SUPPORT if ACPI select ACPI_SYSTEM_POWER_STATES_SUPPORT if ACPI
select ANON_INODES select ANON_INODES
select ARCH_32BIT_OFF_T if X86_32
select ARCH_CLOCKSOURCE_DATA select ARCH_CLOCKSOURCE_DATA
select ARCH_CLOCKSOURCE_INIT select ARCH_CLOCKSOURCE_INIT
select ARCH_DISCARD_MEMBLOCK select ARCH_DISCARD_MEMBLOCK
......
This diff is collapsed.
...@@ -343,6 +343,8 @@ ...@@ -343,6 +343,8 @@
332 common statx __x64_sys_statx 332 common statx __x64_sys_statx
333 common io_pgetevents __x64_sys_io_pgetevents 333 common io_pgetevents __x64_sys_io_pgetevents
334 common rseq __x64_sys_rseq 334 common rseq __x64_sys_rseq
# don't use numbers 387 through 423, add new calls after the last
# 'common' entry
# #
# x32-specific system call numbers start at 512 to avoid cache impact # x32-specific system call numbers start at 512 to avoid cache impact
...@@ -361,7 +363,7 @@ ...@@ -361,7 +363,7 @@
520 x32 execve __x32_compat_sys_execve/ptregs 520 x32 execve __x32_compat_sys_execve/ptregs
521 x32 ptrace __x32_compat_sys_ptrace 521 x32 ptrace __x32_compat_sys_ptrace
522 x32 rt_sigpending __x32_compat_sys_rt_sigpending 522 x32 rt_sigpending __x32_compat_sys_rt_sigpending
523 x32 rt_sigtimedwait __x32_compat_sys_rt_sigtimedwait 523 x32 rt_sigtimedwait __x32_compat_sys_rt_sigtimedwait_time64
524 x32 rt_sigqueueinfo __x32_compat_sys_rt_sigqueueinfo 524 x32 rt_sigqueueinfo __x32_compat_sys_rt_sigqueueinfo
525 x32 sigaltstack __x32_compat_sys_sigaltstack 525 x32 sigaltstack __x32_compat_sys_sigaltstack
526 x32 timer_create __x32_compat_sys_timer_create 526 x32 timer_create __x32_compat_sys_timer_create
...@@ -375,7 +377,7 @@ ...@@ -375,7 +377,7 @@
534 x32 preadv __x32_compat_sys_preadv64 534 x32 preadv __x32_compat_sys_preadv64
535 x32 pwritev __x32_compat_sys_pwritev64 535 x32 pwritev __x32_compat_sys_pwritev64
536 x32 rt_tgsigqueueinfo __x32_compat_sys_rt_tgsigqueueinfo 536 x32 rt_tgsigqueueinfo __x32_compat_sys_rt_tgsigqueueinfo
537 x32 recvmmsg __x32_compat_sys_recvmmsg 537 x32 recvmmsg __x32_compat_sys_recvmmsg_time64
538 x32 sendmmsg __x32_compat_sys_sendmmsg 538 x32 sendmmsg __x32_compat_sys_sendmmsg
539 x32 process_vm_readv __x32_compat_sys_process_vm_readv 539 x32 process_vm_readv __x32_compat_sys_process_vm_readv
540 x32 process_vm_writev __x32_compat_sys_process_vm_writev 540 x32 process_vm_writev __x32_compat_sys_process_vm_writev
......
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
# include <asm/unistd_64.h> # include <asm/unistd_64.h>
# include <asm/unistd_64_x32.h> # include <asm/unistd_64_x32.h>
# define __ARCH_WANT_COMPAT_SYS_TIME # define __ARCH_WANT_SYS_TIME
# define __ARCH_WANT_SYS_UTIME32 # define __ARCH_WANT_SYS_UTIME
# define __ARCH_WANT_COMPAT_SYS_PREADV64 # define __ARCH_WANT_COMPAT_SYS_PREADV64
# define __ARCH_WANT_COMPAT_SYS_PWRITEV64 # define __ARCH_WANT_COMPAT_SYS_PWRITEV64
# define __ARCH_WANT_COMPAT_SYS_PREADV64V2 # define __ARCH_WANT_COMPAT_SYS_PREADV64V2
...@@ -48,8 +48,8 @@ ...@@ -48,8 +48,8 @@
# define __ARCH_WANT_SYS_SIGPENDING # define __ARCH_WANT_SYS_SIGPENDING
# define __ARCH_WANT_SYS_SIGPROCMASK # define __ARCH_WANT_SYS_SIGPROCMASK
# define __ARCH_WANT_SYS_SOCKETCALL # define __ARCH_WANT_SYS_SOCKETCALL
# define __ARCH_WANT_SYS_TIME # define __ARCH_WANT_SYS_TIME32
# define __ARCH_WANT_SYS_UTIME # define __ARCH_WANT_SYS_UTIME32
# define __ARCH_WANT_SYS_WAITPID # define __ARCH_WANT_SYS_WAITPID
# define __ARCH_WANT_SYS_FORK # define __ARCH_WANT_SYS_FORK
# define __ARCH_WANT_SYS_VFORK # define __ARCH_WANT_SYS_VFORK
......
...@@ -16,6 +16,7 @@ config 64BIT ...@@ -16,6 +16,7 @@ config 64BIT
config X86_32 config X86_32
def_bool !64BIT def_bool !64BIT
select ARCH_32BIT_OFF_T
select ARCH_WANT_IPC_PARSE_VERSION select ARCH_WANT_IPC_PARSE_VERSION
select MODULES_USE_ELF_REL select MODULES_USE_ELF_REL
select CLONE_BACKWARDS select CLONE_BACKWARDS
......
# SPDX-License-Identifier: GPL-2.0 # SPDX-License-Identifier: GPL-2.0
config XTENSA config XTENSA
def_bool y def_bool y
select ARCH_32BIT_OFF_T
select ARCH_HAS_SYNC_DMA_FOR_CPU select ARCH_HAS_SYNC_DMA_FOR_CPU
select ARCH_HAS_SYNC_DMA_FOR_DEVICE select ARCH_HAS_SYNC_DMA_FOR_DEVICE
select ARCH_NO_COHERENT_DMA_MMAP if !MMU select ARCH_NO_COHERENT_DMA_MMAP if !MMU
......
...@@ -7,21 +7,9 @@ ...@@ -7,21 +7,9 @@
#define __ARCH_WANT_NEW_STAT #define __ARCH_WANT_NEW_STAT
#define __ARCH_WANT_STAT64 #define __ARCH_WANT_STAT64
#define __ARCH_WANT_SYS_UTIME #define __ARCH_WANT_SYS_UTIME32
#define __ARCH_WANT_SYS_GETPGRP #define __ARCH_WANT_SYS_GETPGRP
/*
* Ignore legacy system calls in the checksyscalls.sh script
*/
#define __IGNORE_fork /* use clone */
#define __IGNORE_time
#define __IGNORE_alarm /* use setitimer */
#define __IGNORE_pause
#define __IGNORE_mmap /* use mmap2 */
#define __IGNORE_vfork /* use clone */
#define __IGNORE_fadvise64 /* use fadvise64_64 */
#define NR_syscalls __NR_syscalls #define NR_syscalls __NR_syscalls
#endif /* _XTENSA_UNISTD_H */ #endif /* _XTENSA_UNISTD_H */
...@@ -72,8 +72,8 @@ ...@@ -72,8 +72,8 @@
61 common fcntl64 sys_fcntl64 61 common fcntl64 sys_fcntl64
62 common fallocate sys_fallocate 62 common fallocate sys_fallocate
63 common fadvise64_64 xtensa_fadvise64_64 63 common fadvise64_64 xtensa_fadvise64_64
64 common utime sys_utime 64 common utime sys_utime32
65 common utimes sys_utimes 65 common utimes sys_utimes_time32
66 common ioctl sys_ioctl 66 common ioctl sys_ioctl
67 common fcntl sys_fcntl 67 common fcntl sys_fcntl
68 common setxattr sys_setxattr 68 common setxattr sys_setxattr
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
91 common madvise sys_madvise 91 common madvise sys_madvise
92 common shmget sys_shmget 92 common shmget sys_shmget
93 common shmat xtensa_shmat 93 common shmat xtensa_shmat
94 common shmctl sys_shmctl 94 common shmctl sys_old_shmctl
95 common shmdt sys_shmdt 95 common shmdt sys_shmdt
# Socket Operations # Socket Operations
96 common socket sys_socket 96 common socket sys_socket
...@@ -174,15 +174,15 @@ ...@@ -174,15 +174,15 @@
158 common capget sys_capget 158 common capget sys_capget
159 common capset sys_capset 159 common capset sys_capset
160 common ptrace sys_ptrace 160 common ptrace sys_ptrace
161 common semtimedop sys_semtimedop 161 common semtimedop sys_semtimedop_time32
162 common semget sys_semget 162 common semget sys_semget
163 common semop sys_semop 163 common semop sys_semop
164 common semctl sys_semctl 164 common semctl sys_old_semctl
165 common available165 sys_ni_syscall 165 common available165 sys_ni_syscall
166 common msgget sys_msgget 166 common msgget sys_msgget
167 common msgsnd sys_msgsnd 167 common msgsnd sys_msgsnd
168 common msgrcv sys_msgrcv 168 common msgrcv sys_msgrcv
169 common msgctl sys_msgctl 169 common msgctl sys_old_msgctl
170 common available170 sys_ni_syscall 170 common available170 sys_ni_syscall
# File System # File System
171 common umount2 sys_umount 171 common umount2 sys_umount
...@@ -206,11 +206,11 @@ ...@@ -206,11 +206,11 @@
188 common setrlimit sys_setrlimit 188 common setrlimit sys_setrlimit
189 common getrlimit sys_getrlimit 189 common getrlimit sys_getrlimit
190 common getrusage sys_getrusage 190 common getrusage sys_getrusage
191 common futex sys_futex 191 common futex sys_futex_time32
192 common gettimeofday sys_gettimeofday 192 common gettimeofday sys_gettimeofday
193 common settimeofday sys_settimeofday 193 common settimeofday sys_settimeofday
194 common adjtimex sys_adjtimex 194 common adjtimex sys_adjtimex_time32
195 common nanosleep sys_nanosleep 195 common nanosleep sys_nanosleep_time32
196 common getgroups sys_getgroups 196 common getgroups sys_getgroups
197 common setgroups sys_setgroups 197 common setgroups sys_setgroups
198 common sethostname sys_sethostname 198 common sethostname sys_sethostname
...@@ -234,7 +234,7 @@ ...@@ -234,7 +234,7 @@
215 common sched_getscheduler sys_sched_getscheduler 215 common sched_getscheduler sys_sched_getscheduler
216 common sched_get_priority_max sys_sched_get_priority_max 216 common sched_get_priority_max sys_sched_get_priority_max
217 common sched_get_priority_min sys_sched_get_priority_min 217 common sched_get_priority_min sys_sched_get_priority_min
218 common sched_rr_get_interval sys_sched_rr_get_interval 218 common sched_rr_get_interval sys_sched_rr_get_interval_time32
219 common sched_yield sys_sched_yield 219 common sched_yield sys_sched_yield
222 common available222 sys_ni_syscall 222 common available222 sys_ni_syscall
# Signal Handling # Signal Handling
...@@ -244,14 +244,14 @@ ...@@ -244,14 +244,14 @@
226 common rt_sigaction sys_rt_sigaction 226 common rt_sigaction sys_rt_sigaction
227 common rt_sigprocmask sys_rt_sigprocmask 227 common rt_sigprocmask sys_rt_sigprocmask
228 common rt_sigpending sys_rt_sigpending 228 common rt_sigpending sys_rt_sigpending
229 common rt_sigtimedwait sys_rt_sigtimedwait 229 common rt_sigtimedwait sys_rt_sigtimedwait_time32
230 common rt_sigqueueinfo sys_rt_sigqueueinfo 230 common rt_sigqueueinfo sys_rt_sigqueueinfo
231 common rt_sigsuspend sys_rt_sigsuspend 231 common rt_sigsuspend sys_rt_sigsuspend
# Message # Message
232 common mq_open sys_mq_open 232 common mq_open sys_mq_open
233 common mq_unlink sys_mq_unlink 233 common mq_unlink sys_mq_unlink
234 common mq_timedsend sys_mq_timedsend 234 common mq_timedsend sys_mq_timedsend_time32
235 common mq_timedreceive sys_mq_timedreceive 235 common mq_timedreceive sys_mq_timedreceive_time32
236 common mq_notify sys_mq_notify 236 common mq_notify sys_mq_notify
237 common mq_getsetattr sys_mq_getsetattr 237 common mq_getsetattr sys_mq_getsetattr
238 common available238 sys_ni_syscall 238 common available238 sys_ni_syscall
...@@ -259,17 +259,17 @@ ...@@ -259,17 +259,17 @@
# IO # IO
240 common io_destroy sys_io_destroy 240 common io_destroy sys_io_destroy
241 common io_submit sys_io_submit 241 common io_submit sys_io_submit
242 common io_getevents sys_io_getevents 242 common io_getevents sys_io_getevents_time32
243 common io_cancel sys_io_cancel 243 common io_cancel sys_io_cancel
244 common clock_settime sys_clock_settime 244 common clock_settime sys_clock_settime32
245 common clock_gettime sys_clock_gettime 245 common clock_gettime sys_clock_gettime32
246 common clock_getres sys_clock_getres 246 common clock_getres sys_clock_getres_time32
247 common clock_nanosleep sys_clock_nanosleep 247 common clock_nanosleep sys_clock_nanosleep_time32
# Timer # Timer
248 common timer_create sys_timer_create 248 common timer_create sys_timer_create
249 common timer_delete sys_timer_delete 249 common timer_delete sys_timer_delete
250 common timer_settime sys_timer_settime 250 common timer_settime sys_timer_settime32
251 common timer_gettime sys_timer_gettime 251 common timer_gettime sys_timer_gettime32
252 common timer_getoverrun sys_timer_getoverrun 252 common timer_getoverrun sys_timer_getoverrun
# System # System
253 common reserved253 sys_ni_syscall 253 common reserved253 sys_ni_syscall
...@@ -291,8 +291,8 @@ ...@@ -291,8 +291,8 @@
269 common tee sys_tee 269 common tee sys_tee
270 common vmsplice sys_vmsplice 270 common vmsplice sys_vmsplice
271 common available271 sys_ni_syscall 271 common available271 sys_ni_syscall
272 common pselect6 sys_pselect6 272 common pselect6 sys_pselect6_time32
273 common ppoll sys_ppoll 273 common ppoll sys_ppoll_time32
274 common epoll_pwait sys_epoll_pwait 274 common epoll_pwait sys_epoll_pwait
275 common epoll_create1 sys_epoll_create1 275 common epoll_create1 sys_epoll_create1
276 common inotify_init sys_inotify_init 276 common inotify_init sys_inotify_init
...@@ -316,9 +316,9 @@ ...@@ -316,9 +316,9 @@
293 common linkat sys_linkat 293 common linkat sys_linkat
294 common symlinkat sys_symlinkat 294 common symlinkat sys_symlinkat
295 common readlinkat sys_readlinkat 295 common readlinkat sys_readlinkat
296 common utimensat sys_utimensat 296 common utimensat sys_utimensat_time32
297 common fchownat sys_fchownat 297 common fchownat sys_fchownat
298 common futimesat sys_futimesat 298 common futimesat sys_futimesat_time32
299 common fstatat64 sys_fstatat64 299 common fstatat64 sys_fstatat64
300 common fchmodat sys_fchmodat 300 common fchmodat sys_fchmodat
301 common faccessat sys_faccessat 301 common faccessat sys_faccessat
...@@ -327,14 +327,14 @@ ...@@ -327,14 +327,14 @@
304 common signalfd sys_signalfd 304 common signalfd sys_signalfd
# 305 was timerfd # 305 was timerfd
306 common eventfd sys_eventfd 306 common eventfd sys_eventfd
307 common recvmmsg sys_recvmmsg 307 common recvmmsg sys_recvmmsg_time32
308 common setns sys_setns 308 common setns sys_setns
309 common signalfd4 sys_signalfd4 309 common signalfd4 sys_signalfd4
310 common dup3 sys_dup3 310 common dup3 sys_dup3
311 common pipe2 sys_pipe2 311 common pipe2 sys_pipe2
312 common timerfd_create sys_timerfd_create 312 common timerfd_create sys_timerfd_create
313 common timerfd_settime sys_timerfd_settime 313 common timerfd_settime sys_timerfd_settime32
314 common timerfd_gettime sys_timerfd_gettime 314 common timerfd_gettime sys_timerfd_gettime32
315 common available315 sys_ni_syscall 315 common available315 sys_ni_syscall
316 common eventfd2 sys_eventfd2 316 common eventfd2 sys_eventfd2
317 common preadv sys_preadv 317 common preadv sys_preadv
...@@ -349,7 +349,7 @@ ...@@ -349,7 +349,7 @@
326 common sync_file_range2 sys_sync_file_range2 326 common sync_file_range2 sys_sync_file_range2
327 common perf_event_open sys_perf_event_open 327 common perf_event_open sys_perf_event_open
328 common rt_tgsigqueueinfo sys_rt_tgsigqueueinfo 328 common rt_tgsigqueueinfo sys_rt_tgsigqueueinfo
329 common clock_adjtime sys_clock_adjtime 329 common clock_adjtime sys_clock_adjtime32
330 common prlimit64 sys_prlimit64 330 common prlimit64 sys_prlimit64
331 common kcmp sys_kcmp 331 common kcmp sys_kcmp
332 common finit_module sys_finit_module 332 common finit_module sys_finit_module
...@@ -372,3 +372,25 @@ ...@@ -372,3 +372,25 @@
349 common pkey_alloc sys_pkey_alloc 349 common pkey_alloc sys_pkey_alloc
350 common pkey_free sys_pkey_free 350 common pkey_free sys_pkey_free
351 common statx sys_statx 351 common statx sys_statx
352 common rseq sys_rseq
# 353 through 402 are unassigned to sync up with generic numbers
403 common clock_gettime64 sys_clock_gettime
404 common clock_settime64 sys_clock_settime
405 common clock_adjtime64 sys_clock_adjtime
406 common clock_getres_time64 sys_clock_getres
407 common clock_nanosleep_time64 sys_clock_nanosleep
408 common timer_gettime64 sys_timer_gettime
409 common timer_settime64 sys_timer_settime
410 common timerfd_gettime64 sys_timerfd_gettime
411 common timerfd_settime64 sys_timerfd_settime
412 common utimensat_time64 sys_utimensat
413 common pselect6_time64 sys_pselect6
414 common ppoll_time64 sys_ppoll
416 common io_pgetevents_time64 sys_io_pgetevents
417 common recvmmsg_time64 sys_recvmmsg
418 common mq_timedsend_time64 sys_mq_timedsend
419 common mq_timedreceive_time64 sys_mq_timedreceive
420 common semtimedop_time64 sys_semtimedop
421 common rt_sigtimedwait_time64 sys_rt_sigtimedwait
422 common futex_time64 sys_futex
423 common sched_rr_get_interval_time64 sys_sched_rr_get_interval
...@@ -124,7 +124,7 @@ static int ptp_clock_gettime(struct posix_clock *pc, struct timespec64 *tp) ...@@ -124,7 +124,7 @@ static int ptp_clock_gettime(struct posix_clock *pc, struct timespec64 *tp)
return err; return err;
} }
static int ptp_clock_adjtime(struct posix_clock *pc, struct timex *tx) static int ptp_clock_adjtime(struct posix_clock *pc, struct __kernel_timex *tx)
{ {
struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock); struct ptp_clock *ptp = container_of(pc, struct ptp_clock, clock);
struct ptp_clock_info *ops; struct ptp_clock_info *ops;
......
...@@ -2191,11 +2191,11 @@ SYSCALL_DEFINE6(io_pgetevents_time32, ...@@ -2191,11 +2191,11 @@ SYSCALL_DEFINE6(io_pgetevents_time32,
#if defined(CONFIG_COMPAT_32BIT_TIME) #if defined(CONFIG_COMPAT_32BIT_TIME)
COMPAT_SYSCALL_DEFINE5(io_getevents, compat_aio_context_t, ctx_id, SYSCALL_DEFINE5(io_getevents_time32, __u32, ctx_id,
compat_long_t, min_nr, __s32, min_nr,
compat_long_t, nr, __s32, nr,
struct io_event __user *, events, struct io_event __user *, events,
struct old_timespec32 __user *, timeout) struct old_timespec32 __user *, timeout)
{ {
struct timespec64 t; struct timespec64 t;
int ret; int ret;
......
...@@ -1379,7 +1379,7 @@ COMPAT_SYSCALL_DEFINE6(pselect6_time64, int, n, compat_ulong_t __user *, inp, ...@@ -1379,7 +1379,7 @@ COMPAT_SYSCALL_DEFINE6(pselect6_time64, int, n, compat_ulong_t __user *, inp,
#if defined(CONFIG_COMPAT_32BIT_TIME) #if defined(CONFIG_COMPAT_32BIT_TIME)
COMPAT_SYSCALL_DEFINE6(pselect6, int, n, compat_ulong_t __user *, inp, COMPAT_SYSCALL_DEFINE6(pselect6_time32, int, n, compat_ulong_t __user *, inp,
compat_ulong_t __user *, outp, compat_ulong_t __user *, exp, compat_ulong_t __user *, outp, compat_ulong_t __user *, exp,
struct old_timespec32 __user *, tsp, void __user *, sig) struct old_timespec32 __user *, tsp, void __user *, sig)
{ {
...@@ -1402,7 +1402,7 @@ COMPAT_SYSCALL_DEFINE6(pselect6, int, n, compat_ulong_t __user *, inp, ...@@ -1402,7 +1402,7 @@ COMPAT_SYSCALL_DEFINE6(pselect6, int, n, compat_ulong_t __user *, inp,
#endif #endif
#if defined(CONFIG_COMPAT_32BIT_TIME) #if defined(CONFIG_COMPAT_32BIT_TIME)
COMPAT_SYSCALL_DEFINE5(ppoll, struct pollfd __user *, ufds, COMPAT_SYSCALL_DEFINE5(ppoll_time32, struct pollfd __user *, ufds,
unsigned int, nfds, struct old_timespec32 __user *, tsp, unsigned int, nfds, struct old_timespec32 __user *, tsp,
const compat_sigset_t __user *, sigmask, compat_size_t, sigsetsize) const compat_sigset_t __user *, sigmask, compat_size_t, sigsetsize)
{ {
......
...@@ -560,7 +560,7 @@ SYSCALL_DEFINE2(timerfd_gettime, int, ufd, struct __kernel_itimerspec __user *, ...@@ -560,7 +560,7 @@ SYSCALL_DEFINE2(timerfd_gettime, int, ufd, struct __kernel_itimerspec __user *,
} }
#ifdef CONFIG_COMPAT_32BIT_TIME #ifdef CONFIG_COMPAT_32BIT_TIME
COMPAT_SYSCALL_DEFINE4(timerfd_settime, int, ufd, int, flags, SYSCALL_DEFINE4(timerfd_settime32, int, ufd, int, flags,
const struct old_itimerspec32 __user *, utmr, const struct old_itimerspec32 __user *, utmr,
struct old_itimerspec32 __user *, otmr) struct old_itimerspec32 __user *, otmr)
{ {
...@@ -577,7 +577,7 @@ COMPAT_SYSCALL_DEFINE4(timerfd_settime, int, ufd, int, flags, ...@@ -577,7 +577,7 @@ COMPAT_SYSCALL_DEFINE4(timerfd_settime, int, ufd, int, flags,
return ret; return ret;
} }
COMPAT_SYSCALL_DEFINE2(timerfd_gettime, int, ufd, SYSCALL_DEFINE2(timerfd_gettime32, int, ufd,
struct old_itimerspec32 __user *, otmr) struct old_itimerspec32 __user *, otmr)
{ {
struct itimerspec64 kotmr; struct itimerspec64 kotmr;
......
...@@ -224,8 +224,8 @@ SYSCALL_DEFINE2(utime, char __user *, filename, struct utimbuf __user *, times) ...@@ -224,8 +224,8 @@ SYSCALL_DEFINE2(utime, char __user *, filename, struct utimbuf __user *, times)
* of sys_utimes. * of sys_utimes.
*/ */
#ifdef __ARCH_WANT_SYS_UTIME32 #ifdef __ARCH_WANT_SYS_UTIME32
COMPAT_SYSCALL_DEFINE2(utime, const char __user *, filename, SYSCALL_DEFINE2(utime32, const char __user *, filename,
struct old_utimbuf32 __user *, t) struct old_utimbuf32 __user *, t)
{ {
struct timespec64 tv[2]; struct timespec64 tv[2];
...@@ -240,7 +240,7 @@ COMPAT_SYSCALL_DEFINE2(utime, const char __user *, filename, ...@@ -240,7 +240,7 @@ COMPAT_SYSCALL_DEFINE2(utime, const char __user *, filename,
} }
#endif #endif
COMPAT_SYSCALL_DEFINE4(utimensat, unsigned int, dfd, const char __user *, filename, struct old_timespec32 __user *, t, int, flags) SYSCALL_DEFINE4(utimensat_time32, unsigned int, dfd, const char __user *, filename, struct old_timespec32 __user *, t, int, flags)
{ {
struct timespec64 tv[2]; struct timespec64 tv[2];
...@@ -276,14 +276,14 @@ static long do_compat_futimesat(unsigned int dfd, const char __user *filename, ...@@ -276,14 +276,14 @@ static long do_compat_futimesat(unsigned int dfd, const char __user *filename,
return do_utimes(dfd, filename, t ? tv : NULL, 0); return do_utimes(dfd, filename, t ? tv : NULL, 0);
} }
COMPAT_SYSCALL_DEFINE3(futimesat, unsigned int, dfd, SYSCALL_DEFINE3(futimesat_time32, unsigned int, dfd,
const char __user *, filename, const char __user *, filename,
struct old_timeval32 __user *, t) struct old_timeval32 __user *, t)
{ {
return do_compat_futimesat(dfd, filename, t); return do_compat_futimesat(dfd, filename, t);
} }
COMPAT_SYSCALL_DEFINE2(utimes, const char __user *, filename, struct old_timeval32 __user *, t) SYSCALL_DEFINE2(utimes_time32, const char __user *, filename, struct old_timeval32 __user *, t)
{ {
return do_compat_futimesat(AT_FDCWD, filename, t); return do_compat_futimesat(AT_FDCWD, filename, t);
} }
......
This diff is collapsed.
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
O_NOATIME | O_CLOEXEC | O_PATH | __O_TMPFILE) O_NOATIME | O_CLOEXEC | O_PATH | __O_TMPFILE)
#ifndef force_o_largefile #ifndef force_o_largefile
#define force_o_largefile() (BITS_PER_LONG != 32) #define force_o_largefile() (!IS_ENABLED(CONFIG_ARCH_32BIT_OFF_T))
#endif #endif
#if BITS_PER_LONG == 32 #if BITS_PER_LONG == 32
......
...@@ -51,7 +51,7 @@ struct posix_clock; ...@@ -51,7 +51,7 @@ struct posix_clock;
struct posix_clock_operations { struct posix_clock_operations {
struct module *owner; struct module *owner;
int (*clock_adjtime)(struct posix_clock *pc, struct timex *tx); int (*clock_adjtime)(struct posix_clock *pc, struct __kernel_timex *tx);
int (*clock_gettime)(struct posix_clock *pc, struct timespec64 *ts); int (*clock_gettime)(struct posix_clock *pc, struct timespec64 *ts);
......
...@@ -54,7 +54,7 @@ struct __sysctl_args; ...@@ -54,7 +54,7 @@ struct __sysctl_args;
struct sysinfo; struct sysinfo;
struct timespec; struct timespec;
struct timeval; struct timeval;
struct timex; struct __kernel_timex;
struct timezone; struct timezone;
struct tms; struct tms;
struct utimbuf; struct utimbuf;
...@@ -297,6 +297,11 @@ asmlinkage long sys_io_getevents(aio_context_t ctx_id, ...@@ -297,6 +297,11 @@ asmlinkage long sys_io_getevents(aio_context_t ctx_id,
long nr, long nr,
struct io_event __user *events, struct io_event __user *events,
struct __kernel_timespec __user *timeout); struct __kernel_timespec __user *timeout);
asmlinkage long sys_io_getevents_time32(__u32 ctx_id,
__s32 min_nr,
__s32 nr,
struct io_event __user *events,
struct old_timespec32 __user *timeout);
asmlinkage long sys_io_pgetevents(aio_context_t ctx_id, asmlinkage long sys_io_pgetevents(aio_context_t ctx_id,
long min_nr, long min_nr,
long nr, long nr,
...@@ -522,11 +527,19 @@ asmlinkage long sys_timerfd_settime(int ufd, int flags, ...@@ -522,11 +527,19 @@ asmlinkage long sys_timerfd_settime(int ufd, int flags,
const struct __kernel_itimerspec __user *utmr, const struct __kernel_itimerspec __user *utmr,
struct __kernel_itimerspec __user *otmr); struct __kernel_itimerspec __user *otmr);
asmlinkage long sys_timerfd_gettime(int ufd, struct __kernel_itimerspec __user *otmr); asmlinkage long sys_timerfd_gettime(int ufd, struct __kernel_itimerspec __user *otmr);
asmlinkage long sys_timerfd_gettime32(int ufd,
struct old_itimerspec32 __user *otmr);
asmlinkage long sys_timerfd_settime32(int ufd, int flags,
const struct old_itimerspec32 __user *utmr,
struct old_itimerspec32 __user *otmr);
/* fs/utimes.c */ /* fs/utimes.c */
asmlinkage long sys_utimensat(int dfd, const char __user *filename, asmlinkage long sys_utimensat(int dfd, const char __user *filename,
struct __kernel_timespec __user *utimes, struct __kernel_timespec __user *utimes,
int flags); int flags);
asmlinkage long sys_utimensat_time32(unsigned int dfd,
const char __user *filename,
struct old_timespec32 __user *t, int flags);
/* kernel/acct.c */ /* kernel/acct.c */
asmlinkage long sys_acct(const char __user *name); asmlinkage long sys_acct(const char __user *name);
...@@ -555,6 +568,9 @@ asmlinkage long sys_unshare(unsigned long unshare_flags); ...@@ -555,6 +568,9 @@ asmlinkage long sys_unshare(unsigned long unshare_flags);
asmlinkage long sys_futex(u32 __user *uaddr, int op, u32 val, asmlinkage long sys_futex(u32 __user *uaddr, int op, u32 val,
struct __kernel_timespec __user *utime, u32 __user *uaddr2, struct __kernel_timespec __user *utime, u32 __user *uaddr2,
u32 val3); u32 val3);
asmlinkage long sys_futex_time32(u32 __user *uaddr, int op, u32 val,
struct old_timespec32 __user *utime, u32 __user *uaddr2,
u32 val3);
asmlinkage long sys_get_robust_list(int pid, asmlinkage long sys_get_robust_list(int pid,
struct robust_list_head __user * __user *head_ptr, struct robust_list_head __user * __user *head_ptr,
size_t __user *len_ptr); size_t __user *len_ptr);
...@@ -564,6 +580,8 @@ asmlinkage long sys_set_robust_list(struct robust_list_head __user *head, ...@@ -564,6 +580,8 @@ asmlinkage long sys_set_robust_list(struct robust_list_head __user *head,
/* kernel/hrtimer.c */ /* kernel/hrtimer.c */
asmlinkage long sys_nanosleep(struct __kernel_timespec __user *rqtp, asmlinkage long sys_nanosleep(struct __kernel_timespec __user *rqtp,
struct __kernel_timespec __user *rmtp); struct __kernel_timespec __user *rmtp);
asmlinkage long sys_nanosleep_time32(struct old_timespec32 __user *rqtp,
struct old_timespec32 __user *rmtp);
/* kernel/itimer.c */ /* kernel/itimer.c */
asmlinkage long sys_getitimer(int which, struct itimerval __user *value); asmlinkage long sys_getitimer(int which, struct itimerval __user *value);
...@@ -591,7 +609,7 @@ asmlinkage long sys_timer_gettime(timer_t timer_id, ...@@ -591,7 +609,7 @@ asmlinkage long sys_timer_gettime(timer_t timer_id,
asmlinkage long sys_timer_getoverrun(timer_t timer_id); asmlinkage long sys_timer_getoverrun(timer_t timer_id);
asmlinkage long sys_timer_settime(timer_t timer_id, int flags, asmlinkage long sys_timer_settime(timer_t timer_id, int flags,
const struct __kernel_itimerspec __user *new_setting, const struct __kernel_itimerspec __user *new_setting,
struct itimerspec __user *old_setting); struct __kernel_itimerspec __user *old_setting);
asmlinkage long sys_timer_delete(timer_t timer_id); asmlinkage long sys_timer_delete(timer_t timer_id);
asmlinkage long sys_clock_settime(clockid_t which_clock, asmlinkage long sys_clock_settime(clockid_t which_clock,
const struct __kernel_timespec __user *tp); const struct __kernel_timespec __user *tp);
...@@ -602,6 +620,20 @@ asmlinkage long sys_clock_getres(clockid_t which_clock, ...@@ -602,6 +620,20 @@ asmlinkage long sys_clock_getres(clockid_t which_clock,
asmlinkage long sys_clock_nanosleep(clockid_t which_clock, int flags, asmlinkage long sys_clock_nanosleep(clockid_t which_clock, int flags,
const struct __kernel_timespec __user *rqtp, const struct __kernel_timespec __user *rqtp,
struct __kernel_timespec __user *rmtp); struct __kernel_timespec __user *rmtp);
asmlinkage long sys_timer_gettime32(timer_t timer_id,
struct old_itimerspec32 __user *setting);
asmlinkage long sys_timer_settime32(timer_t timer_id, int flags,
struct old_itimerspec32 __user *new,
struct old_itimerspec32 __user *old);
asmlinkage long sys_clock_settime32(clockid_t which_clock,
struct old_timespec32 __user *tp);
asmlinkage long sys_clock_gettime32(clockid_t which_clock,
struct old_timespec32 __user *tp);
asmlinkage long sys_clock_getres_time32(clockid_t which_clock,
struct old_timespec32 __user *tp);
asmlinkage long sys_clock_nanosleep_time32(clockid_t which_clock, int flags,
struct old_timespec32 __user *rqtp,
struct old_timespec32 __user *rmtp);
/* kernel/printk.c */ /* kernel/printk.c */
asmlinkage long sys_syslog(int type, char __user *buf, int len); asmlinkage long sys_syslog(int type, char __user *buf, int len);
...@@ -627,6 +659,8 @@ asmlinkage long sys_sched_get_priority_max(int policy); ...@@ -627,6 +659,8 @@ asmlinkage long sys_sched_get_priority_max(int policy);
asmlinkage long sys_sched_get_priority_min(int policy); asmlinkage long sys_sched_get_priority_min(int policy);
asmlinkage long sys_sched_rr_get_interval(pid_t pid, asmlinkage long sys_sched_rr_get_interval(pid_t pid,
struct __kernel_timespec __user *interval); struct __kernel_timespec __user *interval);
asmlinkage long sys_sched_rr_get_interval_time32(pid_t pid,
struct old_timespec32 __user *interval);
/* kernel/signal.c */ /* kernel/signal.c */
asmlinkage long sys_restart_syscall(void); asmlinkage long sys_restart_syscall(void);
...@@ -695,7 +729,8 @@ asmlinkage long sys_gettimeofday(struct timeval __user *tv, ...@@ -695,7 +729,8 @@ asmlinkage long sys_gettimeofday(struct timeval __user *tv,
struct timezone __user *tz); struct timezone __user *tz);
asmlinkage long sys_settimeofday(struct timeval __user *tv, asmlinkage long sys_settimeofday(struct timeval __user *tv,
struct timezone __user *tz); struct timezone __user *tz);
asmlinkage long sys_adjtimex(struct timex __user *txc_p); asmlinkage long sys_adjtimex(struct __kernel_timex __user *txc_p);
asmlinkage long sys_adjtimex_time32(struct old_timex32 __user *txc_p);
/* kernel/timer.c */ /* kernel/timer.c */
asmlinkage long sys_getpid(void); asmlinkage long sys_getpid(void);
...@@ -714,9 +749,18 @@ asmlinkage long sys_mq_timedsend(mqd_t mqdes, const char __user *msg_ptr, size_t ...@@ -714,9 +749,18 @@ asmlinkage long sys_mq_timedsend(mqd_t mqdes, const char __user *msg_ptr, size_t
asmlinkage long sys_mq_timedreceive(mqd_t mqdes, char __user *msg_ptr, size_t msg_len, unsigned int __user *msg_prio, const struct __kernel_timespec __user *abs_timeout); asmlinkage long sys_mq_timedreceive(mqd_t mqdes, char __user *msg_ptr, size_t msg_len, unsigned int __user *msg_prio, const struct __kernel_timespec __user *abs_timeout);
asmlinkage long sys_mq_notify(mqd_t mqdes, const struct sigevent __user *notification); asmlinkage long sys_mq_notify(mqd_t mqdes, const struct sigevent __user *notification);
asmlinkage long sys_mq_getsetattr(mqd_t mqdes, const struct mq_attr __user *mqstat, struct mq_attr __user *omqstat); asmlinkage long sys_mq_getsetattr(mqd_t mqdes, const struct mq_attr __user *mqstat, struct mq_attr __user *omqstat);
asmlinkage long sys_mq_timedreceive_time32(mqd_t mqdes,
char __user *u_msg_ptr,
unsigned int msg_len, unsigned int __user *u_msg_prio,
const struct old_timespec32 __user *u_abs_timeout);
asmlinkage long sys_mq_timedsend_time32(mqd_t mqdes,
const char __user *u_msg_ptr,
unsigned int msg_len, unsigned int msg_prio,
const struct old_timespec32 __user *u_abs_timeout);
/* ipc/msg.c */ /* ipc/msg.c */
asmlinkage long sys_msgget(key_t key, int msgflg); asmlinkage long sys_msgget(key_t key, int msgflg);
asmlinkage long sys_old_msgctl(int msqid, int cmd, struct msqid_ds __user *buf);
asmlinkage long sys_msgctl(int msqid, int cmd, struct msqid_ds __user *buf); asmlinkage long sys_msgctl(int msqid, int cmd, struct msqid_ds __user *buf);
asmlinkage long sys_msgrcv(int msqid, struct msgbuf __user *msgp, asmlinkage long sys_msgrcv(int msqid, struct msgbuf __user *msgp,
size_t msgsz, long msgtyp, int msgflg); size_t msgsz, long msgtyp, int msgflg);
...@@ -726,14 +770,19 @@ asmlinkage long sys_msgsnd(int msqid, struct msgbuf __user *msgp, ...@@ -726,14 +770,19 @@ asmlinkage long sys_msgsnd(int msqid, struct msgbuf __user *msgp,
/* ipc/sem.c */ /* ipc/sem.c */
asmlinkage long sys_semget(key_t key, int nsems, int semflg); asmlinkage long sys_semget(key_t key, int nsems, int semflg);
asmlinkage long sys_semctl(int semid, int semnum, int cmd, unsigned long arg); asmlinkage long sys_semctl(int semid, int semnum, int cmd, unsigned long arg);
asmlinkage long sys_old_semctl(int semid, int semnum, int cmd, unsigned long arg);
asmlinkage long sys_semtimedop(int semid, struct sembuf __user *sops, asmlinkage long sys_semtimedop(int semid, struct sembuf __user *sops,
unsigned nsops, unsigned nsops,
const struct __kernel_timespec __user *timeout); const struct __kernel_timespec __user *timeout);
asmlinkage long sys_semtimedop_time32(int semid, struct sembuf __user *sops,
unsigned nsops,
const struct old_timespec32 __user *timeout);
asmlinkage long sys_semop(int semid, struct sembuf __user *sops, asmlinkage long sys_semop(int semid, struct sembuf __user *sops,
unsigned nsops); unsigned nsops);
/* ipc/shm.c */ /* ipc/shm.c */
asmlinkage long sys_shmget(key_t key, size_t size, int flag); asmlinkage long sys_shmget(key_t key, size_t size, int flag);
asmlinkage long sys_old_shmctl(int shmid, int cmd, struct shmid_ds __user *buf);
asmlinkage long sys_shmctl(int shmid, int cmd, struct shmid_ds __user *buf); asmlinkage long sys_shmctl(int shmid, int cmd, struct shmid_ds __user *buf);
asmlinkage long sys_shmat(int shmid, char __user *shmaddr, int shmflg); asmlinkage long sys_shmat(int shmid, char __user *shmaddr, int shmflg);
asmlinkage long sys_shmdt(char __user *shmaddr); asmlinkage long sys_shmdt(char __user *shmaddr);
...@@ -867,7 +916,9 @@ asmlinkage long sys_open_by_handle_at(int mountdirfd, ...@@ -867,7 +916,9 @@ asmlinkage long sys_open_by_handle_at(int mountdirfd,
struct file_handle __user *handle, struct file_handle __user *handle,
int flags); int flags);
asmlinkage long sys_clock_adjtime(clockid_t which_clock, asmlinkage long sys_clock_adjtime(clockid_t which_clock,
struct timex __user *tx); struct __kernel_timex __user *tx);
asmlinkage long sys_clock_adjtime32(clockid_t which_clock,
struct old_timex32 __user *tx);
asmlinkage long sys_syncfs(int fd); asmlinkage long sys_syncfs(int fd);
asmlinkage long sys_setns(int fd, int nstype); asmlinkage long sys_setns(int fd, int nstype);
asmlinkage long sys_sendmmsg(int fd, struct mmsghdr __user *msg, asmlinkage long sys_sendmmsg(int fd, struct mmsghdr __user *msg,
...@@ -1003,6 +1054,7 @@ asmlinkage long sys_alarm(unsigned int seconds); ...@@ -1003,6 +1054,7 @@ asmlinkage long sys_alarm(unsigned int seconds);
asmlinkage long sys_getpgrp(void); asmlinkage long sys_getpgrp(void);
asmlinkage long sys_pause(void); asmlinkage long sys_pause(void);
asmlinkage long sys_time(time_t __user *tloc); asmlinkage long sys_time(time_t __user *tloc);
asmlinkage long sys_time32(old_time32_t __user *tloc);
#ifdef __ARCH_WANT_SYS_UTIME #ifdef __ARCH_WANT_SYS_UTIME
asmlinkage long sys_utime(char __user *filename, asmlinkage long sys_utime(char __user *filename,
struct utimbuf __user *times); struct utimbuf __user *times);
...@@ -1011,6 +1063,13 @@ asmlinkage long sys_utimes(char __user *filename, ...@@ -1011,6 +1063,13 @@ asmlinkage long sys_utimes(char __user *filename,
asmlinkage long sys_futimesat(int dfd, const char __user *filename, asmlinkage long sys_futimesat(int dfd, const char __user *filename,
struct timeval __user *utimes); struct timeval __user *utimes);
#endif #endif
asmlinkage long sys_futimesat_time32(unsigned int dfd,
const char __user *filename,
struct old_timeval32 __user *t);
asmlinkage long sys_utime32(const char __user *filename,
struct old_utimbuf32 __user *t);
asmlinkage long sys_utimes_time32(const char __user *filename,
struct old_timeval32 __user *t);
asmlinkage long sys_creat(const char __user *pathname, umode_t mode); asmlinkage long sys_creat(const char __user *pathname, umode_t mode);
asmlinkage long sys_getdents(unsigned int fd, asmlinkage long sys_getdents(unsigned int fd,
struct linux_dirent __user *dirent, struct linux_dirent __user *dirent,
...@@ -1035,6 +1094,7 @@ asmlinkage long sys_fork(void); ...@@ -1035,6 +1094,7 @@ asmlinkage long sys_fork(void);
/* obsolete: kernel/time/time.c */ /* obsolete: kernel/time/time.c */
asmlinkage long sys_stime(time_t __user *tptr); asmlinkage long sys_stime(time_t __user *tptr);
asmlinkage long sys_stime32(old_time32_t __user *tptr);
/* obsolete: kernel/signal.c */ /* obsolete: kernel/signal.c */
asmlinkage long sys_sigpending(old_sigset_t __user *uset); asmlinkage long sys_sigpending(old_sigset_t __user *uset);
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
*/ */
#include <linux/time64.h> #include <linux/time64.h>
#include <linux/timex.h>
#define TIME_T_MAX (time_t)((1UL << ((sizeof(time_t) << 3) - 1)) - 1) #define TIME_T_MAX (time_t)((1UL << ((sizeof(time_t) << 3) - 1)) - 1)
...@@ -35,13 +36,42 @@ struct old_utimbuf32 { ...@@ -35,13 +36,42 @@ struct old_utimbuf32 {
old_time32_t modtime; old_time32_t modtime;
}; };
struct old_timex32 {
u32 modes;
s32 offset;
s32 freq;
s32 maxerror;
s32 esterror;
s32 status;
s32 constant;
s32 precision;
s32 tolerance;
struct old_timeval32 time;
s32 tick;
s32 ppsfreq;
s32 jitter;
s32 shift;
s32 stabil;
s32 jitcnt;
s32 calcnt;
s32 errcnt;
s32 stbcnt;
s32 tai;
s32:32; s32:32; s32:32; s32:32;
s32:32; s32:32; s32:32; s32:32;
s32:32; s32:32; s32:32;
};
extern int get_old_timespec32(struct timespec64 *, const void __user *); extern int get_old_timespec32(struct timespec64 *, const void __user *);
extern int put_old_timespec32(const struct timespec64 *, void __user *); extern int put_old_timespec32(const struct timespec64 *, void __user *);
extern int get_old_itimerspec32(struct itimerspec64 *its, extern int get_old_itimerspec32(struct itimerspec64 *its,
const struct old_itimerspec32 __user *uits); const struct old_itimerspec32 __user *uits);
extern int put_old_itimerspec32(const struct itimerspec64 *its, extern int put_old_itimerspec32(const struct itimerspec64 *its,
struct old_itimerspec32 __user *uits); struct old_itimerspec32 __user *uits);
struct __kernel_timex;
int get_old_timex32(struct __kernel_timex *, const struct old_timex32 __user *);
int put_old_timex32(struct old_timex32 __user *, const struct __kernel_timex *);
#if __BITS_PER_LONG == 64 #if __BITS_PER_LONG == 64
......
...@@ -7,14 +7,6 @@ ...@@ -7,14 +7,6 @@
typedef __s64 time64_t; typedef __s64 time64_t;
typedef __u64 timeu64_t; typedef __u64 timeu64_t;
/* CONFIG_64BIT_TIME enables new 64 bit time_t syscalls in the compat path
* and 32-bit emulation.
*/
#ifndef CONFIG_64BIT_TIME
#define __kernel_timespec timespec
#define __kernel_itimerspec itimerspec
#endif
#include <uapi/linux/time.h> #include <uapi/linux/time.h>
struct timespec64 { struct timespec64 {
......
...@@ -151,7 +151,9 @@ extern unsigned long tick_nsec; /* SHIFTED_HZ period (nsec) */ ...@@ -151,7 +151,9 @@ extern unsigned long tick_nsec; /* SHIFTED_HZ period (nsec) */
#define NTP_INTERVAL_FREQ (HZ) #define NTP_INTERVAL_FREQ (HZ)
#define NTP_INTERVAL_LENGTH (NSEC_PER_SEC/NTP_INTERVAL_FREQ) #define NTP_INTERVAL_LENGTH (NSEC_PER_SEC/NTP_INTERVAL_FREQ)
extern int do_adjtimex(struct timex *); extern int do_adjtimex(struct __kernel_timex *);
extern int do_clock_adjtime(const clockid_t which_clock, struct __kernel_timex * ktx);
extern void hardpps(const struct timespec64 *, const struct timespec64 *); extern void hardpps(const struct timespec64 *, const struct timespec64 *);
int read_current_timer(unsigned long *timer_val); int read_current_timer(unsigned long *timer_val);
......
This diff is collapsed.
...@@ -4,19 +4,15 @@ ...@@ -4,19 +4,15 @@
#include <linux/types.h> #include <linux/types.h>
#ifndef __kernel_timespec
struct __kernel_timespec { struct __kernel_timespec {
__kernel_time64_t tv_sec; /* seconds */ __kernel_time64_t tv_sec; /* seconds */
long long tv_nsec; /* nanoseconds */ long long tv_nsec; /* nanoseconds */
}; };
#endif
#ifndef __kernel_itimerspec
struct __kernel_itimerspec { struct __kernel_itimerspec {
struct __kernel_timespec it_interval; /* timer period */ struct __kernel_timespec it_interval; /* timer period */
struct __kernel_timespec it_value; /* timer expiration */ struct __kernel_timespec it_value; /* timer expiration */
}; };
#endif
/* /*
* legacy timeval structure, only embedded in structures that * legacy timeval structure, only embedded in structures that
......
...@@ -92,6 +92,45 @@ struct timex { ...@@ -92,6 +92,45 @@ struct timex {
int :32; int :32; int :32; int :32; int :32; int :32;
}; };
struct __kernel_timex_timeval {
__kernel_time64_t tv_sec;
long long tv_usec;
};
struct __kernel_timex {
unsigned int modes; /* mode selector */
int :32; /* pad */
long long offset; /* time offset (usec) */
long long freq; /* frequency offset (scaled ppm) */
long long maxerror;/* maximum error (usec) */
long long esterror;/* estimated error (usec) */
int status; /* clock command/status */
int :32; /* pad */
long long constant;/* pll time constant */
long long precision;/* clock precision (usec) (read only) */
long long tolerance;/* clock frequency tolerance (ppm)
* (read only)
*/
struct __kernel_timex_timeval time; /* (read only, except for ADJ_SETOFFSET) */
long long tick; /* (modified) usecs between clock ticks */
long long ppsfreq;/* pps frequency (scaled ppm) (ro) */
long long jitter; /* pps jitter (us) (ro) */
int shift; /* interval duration (s) (shift) (ro) */
int :32; /* pad */
long long stabil; /* pps stability (scaled ppm) (ro) */
long long jitcnt; /* jitter limit exceeded (ro) */
long long calcnt; /* calibration intervals (ro) */
long long errcnt; /* calibration errors (ro) */
long long stbcnt; /* stability limit exceeded (ro) */
int tai; /* TAI offset (ro) */
int :32; int :32; int :32; int :32;
int :32; int :32; int :32; int :32;
int :32; int :32; int :32;
};
/* /*
* Mode codes (timex.mode) * Mode codes (timex.mode)
*/ */
......
...@@ -1471,10 +1471,10 @@ static int compat_prepare_timeout(const struct old_timespec32 __user *p, ...@@ -1471,10 +1471,10 @@ static int compat_prepare_timeout(const struct old_timespec32 __user *p,
return 0; return 0;
} }
COMPAT_SYSCALL_DEFINE5(mq_timedsend, mqd_t, mqdes, SYSCALL_DEFINE5(mq_timedsend_time32, mqd_t, mqdes,
const char __user *, u_msg_ptr, const char __user *, u_msg_ptr,
compat_size_t, msg_len, unsigned int, msg_prio, unsigned int, msg_len, unsigned int, msg_prio,
const struct old_timespec32 __user *, u_abs_timeout) const struct old_timespec32 __user *, u_abs_timeout)
{ {
struct timespec64 ts, *p = NULL; struct timespec64 ts, *p = NULL;
if (u_abs_timeout) { if (u_abs_timeout) {
...@@ -1486,10 +1486,10 @@ COMPAT_SYSCALL_DEFINE5(mq_timedsend, mqd_t, mqdes, ...@@ -1486,10 +1486,10 @@ COMPAT_SYSCALL_DEFINE5(mq_timedsend, mqd_t, mqdes,
return do_mq_timedsend(mqdes, u_msg_ptr, msg_len, msg_prio, p); return do_mq_timedsend(mqdes, u_msg_ptr, msg_len, msg_prio, p);
} }
COMPAT_SYSCALL_DEFINE5(mq_timedreceive, mqd_t, mqdes, SYSCALL_DEFINE5(mq_timedreceive_time32, mqd_t, mqdes,
char __user *, u_msg_ptr, char __user *, u_msg_ptr,
compat_size_t, msg_len, unsigned int __user *, u_msg_prio, unsigned int, msg_len, unsigned int __user *, u_msg_prio,
const struct old_timespec32 __user *, u_abs_timeout) const struct old_timespec32 __user *, u_abs_timeout)
{ {
struct timespec64 ts, *p = NULL; struct timespec64 ts, *p = NULL;
if (u_abs_timeout) { if (u_abs_timeout) {
......
...@@ -567,9 +567,8 @@ static int msgctl_stat(struct ipc_namespace *ns, int msqid, ...@@ -567,9 +567,8 @@ static int msgctl_stat(struct ipc_namespace *ns, int msqid,
return err; return err;
} }
long ksys_msgctl(int msqid, int cmd, struct msqid_ds __user *buf) static long ksys_msgctl(int msqid, int cmd, struct msqid_ds __user *buf, int version)
{ {
int version;
struct ipc_namespace *ns; struct ipc_namespace *ns;
struct msqid64_ds msqid64; struct msqid64_ds msqid64;
int err; int err;
...@@ -577,7 +576,6 @@ long ksys_msgctl(int msqid, int cmd, struct msqid_ds __user *buf) ...@@ -577,7 +576,6 @@ long ksys_msgctl(int msqid, int cmd, struct msqid_ds __user *buf)
if (msqid < 0 || cmd < 0) if (msqid < 0 || cmd < 0)
return -EINVAL; return -EINVAL;
version = ipc_parse_version(&cmd);
ns = current->nsproxy->ipc_ns; ns = current->nsproxy->ipc_ns;
switch (cmd) { switch (cmd) {
...@@ -613,9 +611,23 @@ long ksys_msgctl(int msqid, int cmd, struct msqid_ds __user *buf) ...@@ -613,9 +611,23 @@ long ksys_msgctl(int msqid, int cmd, struct msqid_ds __user *buf)
SYSCALL_DEFINE3(msgctl, int, msqid, int, cmd, struct msqid_ds __user *, buf) SYSCALL_DEFINE3(msgctl, int, msqid, int, cmd, struct msqid_ds __user *, buf)
{ {
return ksys_msgctl(msqid, cmd, buf); return ksys_msgctl(msqid, cmd, buf, IPC_64);
} }
#ifdef CONFIG_ARCH_WANT_IPC_PARSE_VERSION
long ksys_old_msgctl(int msqid, int cmd, struct msqid_ds __user *buf)
{
int version = ipc_parse_version(&cmd);
return ksys_msgctl(msqid, cmd, buf, version);
}
SYSCALL_DEFINE3(old_msgctl, int, msqid, int, cmd, struct msqid_ds __user *, buf)
{
return ksys_old_msgctl(msqid, cmd, buf);
}
#endif
#ifdef CONFIG_COMPAT #ifdef CONFIG_COMPAT
struct compat_msqid_ds { struct compat_msqid_ds {
...@@ -689,12 +701,11 @@ static int copy_compat_msqid_to_user(void __user *buf, struct msqid64_ds *in, ...@@ -689,12 +701,11 @@ static int copy_compat_msqid_to_user(void __user *buf, struct msqid64_ds *in,
} }
} }
long compat_ksys_msgctl(int msqid, int cmd, void __user *uptr) static long compat_ksys_msgctl(int msqid, int cmd, void __user *uptr, int version)
{ {
struct ipc_namespace *ns; struct ipc_namespace *ns;
int err; int err;
struct msqid64_ds msqid64; struct msqid64_ds msqid64;
int version = compat_ipc_parse_version(&cmd);
ns = current->nsproxy->ipc_ns; ns = current->nsproxy->ipc_ns;
...@@ -734,8 +745,22 @@ long compat_ksys_msgctl(int msqid, int cmd, void __user *uptr) ...@@ -734,8 +745,22 @@ long compat_ksys_msgctl(int msqid, int cmd, void __user *uptr)
COMPAT_SYSCALL_DEFINE3(msgctl, int, msqid, int, cmd, void __user *, uptr) COMPAT_SYSCALL_DEFINE3(msgctl, int, msqid, int, cmd, void __user *, uptr)
{ {
return compat_ksys_msgctl(msqid, cmd, uptr); return compat_ksys_msgctl(msqid, cmd, uptr, IPC_64);
} }
#ifdef CONFIG_ARCH_WANT_COMPAT_IPC_PARSE_VERSION
long compat_ksys_old_msgctl(int msqid, int cmd, void __user *uptr)
{
int version = compat_ipc_parse_version(&cmd);
return compat_ksys_msgctl(msqid, cmd, uptr, version);
}
COMPAT_SYSCALL_DEFINE3(old_msgctl, int, msqid, int, cmd, void __user *, uptr)
{
return compat_ksys_old_msgctl(msqid, cmd, uptr);
}
#endif
#endif #endif
static int testmsg(struct msg_msg *msg, long type, int mode) static int testmsg(struct msg_msg *msg, long type, int mode)
......
...@@ -1634,9 +1634,8 @@ static int semctl_down(struct ipc_namespace *ns, int semid, ...@@ -1634,9 +1634,8 @@ static int semctl_down(struct ipc_namespace *ns, int semid,
return err; return err;
} }
long ksys_semctl(int semid, int semnum, int cmd, unsigned long arg) static long ksys_semctl(int semid, int semnum, int cmd, unsigned long arg, int version)
{ {
int version;
struct ipc_namespace *ns; struct ipc_namespace *ns;
void __user *p = (void __user *)arg; void __user *p = (void __user *)arg;
struct semid64_ds semid64; struct semid64_ds semid64;
...@@ -1645,7 +1644,6 @@ long ksys_semctl(int semid, int semnum, int cmd, unsigned long arg) ...@@ -1645,7 +1644,6 @@ long ksys_semctl(int semid, int semnum, int cmd, unsigned long arg)
if (semid < 0) if (semid < 0)
return -EINVAL; return -EINVAL;
version = ipc_parse_version(&cmd);
ns = current->nsproxy->ipc_ns; ns = current->nsproxy->ipc_ns;
switch (cmd) { switch (cmd) {
...@@ -1691,9 +1689,23 @@ long ksys_semctl(int semid, int semnum, int cmd, unsigned long arg) ...@@ -1691,9 +1689,23 @@ long ksys_semctl(int semid, int semnum, int cmd, unsigned long arg)
SYSCALL_DEFINE4(semctl, int, semid, int, semnum, int, cmd, unsigned long, arg) SYSCALL_DEFINE4(semctl, int, semid, int, semnum, int, cmd, unsigned long, arg)
{ {
return ksys_semctl(semid, semnum, cmd, arg); return ksys_semctl(semid, semnum, cmd, arg, IPC_64);
} }
#ifdef CONFIG_ARCH_WANT_IPC_PARSE_VERSION
long ksys_old_semctl(int semid, int semnum, int cmd, unsigned long arg)
{
int version = ipc_parse_version(&cmd);
return ksys_semctl(semid, semnum, cmd, arg, version);
}
SYSCALL_DEFINE4(old_semctl, int, semid, int, semnum, int, cmd, unsigned long, arg)
{
return ksys_old_semctl(semid, semnum, cmd, arg);
}
#endif
#ifdef CONFIG_COMPAT #ifdef CONFIG_COMPAT
struct compat_semid_ds { struct compat_semid_ds {
...@@ -1744,12 +1756,11 @@ static int copy_compat_semid_to_user(void __user *buf, struct semid64_ds *in, ...@@ -1744,12 +1756,11 @@ static int copy_compat_semid_to_user(void __user *buf, struct semid64_ds *in,
} }
} }
long compat_ksys_semctl(int semid, int semnum, int cmd, int arg) static long compat_ksys_semctl(int semid, int semnum, int cmd, int arg, int version)
{ {
void __user *p = compat_ptr(arg); void __user *p = compat_ptr(arg);
struct ipc_namespace *ns; struct ipc_namespace *ns;
struct semid64_ds semid64; struct semid64_ds semid64;
int version = compat_ipc_parse_version(&cmd);
int err; int err;
ns = current->nsproxy->ipc_ns; ns = current->nsproxy->ipc_ns;
...@@ -1792,8 +1803,22 @@ long compat_ksys_semctl(int semid, int semnum, int cmd, int arg) ...@@ -1792,8 +1803,22 @@ long compat_ksys_semctl(int semid, int semnum, int cmd, int arg)
COMPAT_SYSCALL_DEFINE4(semctl, int, semid, int, semnum, int, cmd, int, arg) COMPAT_SYSCALL_DEFINE4(semctl, int, semid, int, semnum, int, cmd, int, arg)
{ {
return compat_ksys_semctl(semid, semnum, cmd, arg); return compat_ksys_semctl(semid, semnum, cmd, arg, IPC_64);
} }
#ifdef CONFIG_ARCH_WANT_COMPAT_IPC_PARSE_VERSION
long compat_ksys_old_semctl(int semid, int semnum, int cmd, int arg)
{
int version = compat_ipc_parse_version(&cmd);
return compat_ksys_semctl(semid, semnum, cmd, arg, version);
}
COMPAT_SYSCALL_DEFINE4(old_semctl, int, semid, int, semnum, int, cmd, int, arg)
{
return compat_ksys_old_semctl(semid, semnum, cmd, arg);
}
#endif
#endif #endif
/* If the task doesn't already have a undo_list, then allocate one /* If the task doesn't already have a undo_list, then allocate one
...@@ -2225,7 +2250,7 @@ long compat_ksys_semtimedop(int semid, struct sembuf __user *tsems, ...@@ -2225,7 +2250,7 @@ long compat_ksys_semtimedop(int semid, struct sembuf __user *tsems,
return do_semtimedop(semid, tsems, nsops, NULL); return do_semtimedop(semid, tsems, nsops, NULL);
} }
COMPAT_SYSCALL_DEFINE4(semtimedop, int, semid, struct sembuf __user *, tsems, SYSCALL_DEFINE4(semtimedop_time32, int, semid, struct sembuf __user *, tsems,
unsigned int, nsops, unsigned int, nsops,
const struct old_timespec32 __user *, timeout) const struct old_timespec32 __user *, timeout)
{ {
......
...@@ -1137,16 +1137,15 @@ static int shmctl_do_lock(struct ipc_namespace *ns, int shmid, int cmd) ...@@ -1137,16 +1137,15 @@ static int shmctl_do_lock(struct ipc_namespace *ns, int shmid, int cmd)
return err; return err;
} }
long ksys_shmctl(int shmid, int cmd, struct shmid_ds __user *buf) static long ksys_shmctl(int shmid, int cmd, struct shmid_ds __user *buf, int version)
{ {
int err, version; int err;
struct ipc_namespace *ns; struct ipc_namespace *ns;
struct shmid64_ds sem64; struct shmid64_ds sem64;
if (cmd < 0 || shmid < 0) if (cmd < 0 || shmid < 0)
return -EINVAL; return -EINVAL;
version = ipc_parse_version(&cmd);
ns = current->nsproxy->ipc_ns; ns = current->nsproxy->ipc_ns;
switch (cmd) { switch (cmd) {
...@@ -1194,8 +1193,22 @@ long ksys_shmctl(int shmid, int cmd, struct shmid_ds __user *buf) ...@@ -1194,8 +1193,22 @@ long ksys_shmctl(int shmid, int cmd, struct shmid_ds __user *buf)
SYSCALL_DEFINE3(shmctl, int, shmid, int, cmd, struct shmid_ds __user *, buf) SYSCALL_DEFINE3(shmctl, int, shmid, int, cmd, struct shmid_ds __user *, buf)
{ {
return ksys_shmctl(shmid, cmd, buf); return ksys_shmctl(shmid, cmd, buf, IPC_64);
}
#ifdef CONFIG_ARCH_WANT_IPC_PARSE_VERSION
long ksys_old_shmctl(int shmid, int cmd, struct shmid_ds __user *buf)
{
int version = ipc_parse_version(&cmd);
return ksys_shmctl(shmid, cmd, buf, version);
}
SYSCALL_DEFINE3(old_shmctl, int, shmid, int, cmd, struct shmid_ds __user *, buf)
{
return ksys_old_shmctl(shmid, cmd, buf);
} }
#endif
#ifdef CONFIG_COMPAT #ifdef CONFIG_COMPAT
...@@ -1319,11 +1332,10 @@ static int copy_compat_shmid_from_user(struct shmid64_ds *out, void __user *buf, ...@@ -1319,11 +1332,10 @@ static int copy_compat_shmid_from_user(struct shmid64_ds *out, void __user *buf,
} }
} }
long compat_ksys_shmctl(int shmid, int cmd, void __user *uptr) long compat_ksys_shmctl(int shmid, int cmd, void __user *uptr, int version)
{ {
struct ipc_namespace *ns; struct ipc_namespace *ns;
struct shmid64_ds sem64; struct shmid64_ds sem64;
int version = compat_ipc_parse_version(&cmd);
int err; int err;
ns = current->nsproxy->ipc_ns; ns = current->nsproxy->ipc_ns;
...@@ -1378,8 +1390,22 @@ long compat_ksys_shmctl(int shmid, int cmd, void __user *uptr) ...@@ -1378,8 +1390,22 @@ long compat_ksys_shmctl(int shmid, int cmd, void __user *uptr)
COMPAT_SYSCALL_DEFINE3(shmctl, int, shmid, int, cmd, void __user *, uptr) COMPAT_SYSCALL_DEFINE3(shmctl, int, shmid, int, cmd, void __user *, uptr)
{ {
return compat_ksys_shmctl(shmid, cmd, uptr); return compat_ksys_shmctl(shmid, cmd, uptr, IPC_64);
} }
#ifdef CONFIG_ARCH_WANT_COMPAT_IPC_PARSE_VERSION
long compat_ksys_old_shmctl(int shmid, int cmd, void __user *uptr)
{
int version = compat_ipc_parse_version(&cmd);
return compat_ksys_shmctl(shmid, cmd, uptr, version);
}
COMPAT_SYSCALL_DEFINE3(old_shmctl, int, shmid, int, cmd, void __user *, uptr)
{
return compat_ksys_old_shmctl(shmid, cmd, uptr);
}
#endif
#endif #endif
/* /*
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -3823,7 +3823,7 @@ COMPAT_SYSCALL_DEFINE3(get_robust_list, int, pid, ...@@ -3823,7 +3823,7 @@ COMPAT_SYSCALL_DEFINE3(get_robust_list, int, pid,
#endif /* CONFIG_COMPAT */ #endif /* CONFIG_COMPAT */
#ifdef CONFIG_COMPAT_32BIT_TIME #ifdef CONFIG_COMPAT_32BIT_TIME
COMPAT_SYSCALL_DEFINE6(futex, u32 __user *, uaddr, int, op, u32, val, SYSCALL_DEFINE6(futex_time32, u32 __user *, uaddr, int, op, u32, val,
struct old_timespec32 __user *, utime, u32 __user *, uaddr2, struct old_timespec32 __user *, utime, u32 __user *, uaddr2,
u32, val3) u32, val3)
{ {
......
...@@ -5265,9 +5265,8 @@ SYSCALL_DEFINE2(sched_rr_get_interval, pid_t, pid, ...@@ -5265,9 +5265,8 @@ SYSCALL_DEFINE2(sched_rr_get_interval, pid_t, pid,
} }
#ifdef CONFIG_COMPAT_32BIT_TIME #ifdef CONFIG_COMPAT_32BIT_TIME
COMPAT_SYSCALL_DEFINE2(sched_rr_get_interval, SYSCALL_DEFINE2(sched_rr_get_interval_time32, pid_t, pid,
compat_pid_t, pid, struct old_timespec32 __user *, interval)
struct old_timespec32 __user *, interval)
{ {
struct timespec64 t; struct timespec64 t;
int retval = sched_rr_get_interval(pid, &t); int retval = sched_rr_get_interval(pid, &t);
......
...@@ -3455,7 +3455,7 @@ COMPAT_SYSCALL_DEFINE4(rt_sigtimedwait_time64, compat_sigset_t __user *, uthese, ...@@ -3455,7 +3455,7 @@ COMPAT_SYSCALL_DEFINE4(rt_sigtimedwait_time64, compat_sigset_t __user *, uthese,
} }
#ifdef CONFIG_COMPAT_32BIT_TIME #ifdef CONFIG_COMPAT_32BIT_TIME
COMPAT_SYSCALL_DEFINE4(rt_sigtimedwait, compat_sigset_t __user *, uthese, COMPAT_SYSCALL_DEFINE4(rt_sigtimedwait_time32, compat_sigset_t __user *, uthese,
struct compat_siginfo __user *, uinfo, struct compat_siginfo __user *, uinfo,
struct old_timespec32 __user *, uts, compat_size_t, sigsetsize) struct old_timespec32 __user *, uts, compat_size_t, sigsetsize)
{ {
......
This diff is collapsed.
...@@ -1771,7 +1771,7 @@ SYSCALL_DEFINE2(nanosleep, struct __kernel_timespec __user *, rqtp, ...@@ -1771,7 +1771,7 @@ SYSCALL_DEFINE2(nanosleep, struct __kernel_timespec __user *, rqtp,
#ifdef CONFIG_COMPAT_32BIT_TIME #ifdef CONFIG_COMPAT_32BIT_TIME
COMPAT_SYSCALL_DEFINE2(nanosleep, struct old_timespec32 __user *, rqtp, SYSCALL_DEFINE2(nanosleep_time32, struct old_timespec32 __user *, rqtp,
struct old_timespec32 __user *, rmtp) struct old_timespec32 __user *, rmtp)
{ {
struct timespec64 tu; struct timespec64 tu;
......
This diff is collapsed.
...@@ -8,6 +8,6 @@ extern void ntp_clear(void); ...@@ -8,6 +8,6 @@ extern void ntp_clear(void);
extern u64 ntp_tick_length(void); extern u64 ntp_tick_length(void);
extern ktime_t ntp_get_next_leap(void); extern ktime_t ntp_get_next_leap(void);
extern int second_overflow(time64_t secs); extern int second_overflow(time64_t secs);
extern int __do_adjtimex(struct timex *txc, const struct timespec64 *ts, s32 *time_tai); extern int __do_adjtimex(struct __kernel_timex *txc, const struct timespec64 *ts, s32 *time_tai);
extern void __hardpps(const struct timespec64 *phase_ts, const struct timespec64 *raw_ts); extern void __hardpps(const struct timespec64 *phase_ts, const struct timespec64 *raw_ts);
#endif /* _LINUX_NTP_INTERNAL_H */ #endif /* _LINUX_NTP_INTERNAL_H */
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment