1 # SPDX-License-Identifier: GPL-2.0-only 2 # 3 # AArch32 (compat) system call definitions. 4 # 5 # Copyright (C) 2001-2005 Russell King 6 # Copyright (C) 2012 ARM Ltd. 7 # 8 # This file corresponds to arch/arm/tools/syscall.tbl 9 # for the native EABI syscalls and should be kept in sync 10 # Instead of the OABI syscalls, it contains pointers to 11 # the compat entry points where they differ from the native 12 # syscalls. 13 # 14 0 common restart_syscall sys_restart_syscall 15 1 common exit sys_exit 16 2 common fork sys_fork 17 3 common read sys_read 18 4 common write sys_write 19 5 common open sys_open compat_sys_open 20 6 common close sys_close 21 # 7 was sys_waitpid 22 8 common creat sys_creat 23 9 common link sys_link 24 10 common unlink sys_unlink 25 11 common execve sys_execve compat_sys_execve 26 12 common chdir sys_chdir 27 # 13 was sys_time 28 14 common mknod sys_mknod 29 15 common chmod sys_chmod 30 16 common lchown sys_lchown16 31 # 17 was sys_break 32 # 18 was sys_stat 33 19 common lseek sys_lseek compat_sys_lseek 34 20 common getpid sys_getpid 35 21 common mount sys_mount 36 # 22 was sys_umount 37 23 common setuid sys_setuid16 38 24 common getuid sys_getuid16 39 # 25 was sys_stime 40 26 common ptrace sys_ptrace compat_sys_ptrace 41 # 27 was sys_alarm 42 # 28 was sys_fstat 43 29 common pause sys_pause 44 # 30 was sys_utime 45 # 31 was sys_stty 46 # 32 was sys_gtty 47 33 common access sys_access 48 34 common nice sys_nice 49 # 35 was sys_ftime 50 36 common sync sys_sync 51 37 common kill sys_kill 52 38 common rename sys_rename 53 39 common mkdir sys_mkdir 54 40 common rmdir sys_rmdir 55 41 common dup sys_dup 56 42 common pipe sys_pipe 57 43 common times sys_times compat_sys_times 58 # 44 was sys_prof 59 45 common brk sys_brk 60 46 common setgid sys_setgid16 61 47 common getgid sys_getgid16 62 # 48 was sys_signal 63 49 common geteuid sys_geteuid16 64 50 common getegid sys_getegid16 65 51 common acct sys_acct 66 52 common umount2 sys_umount 67 # 53 was sys_lock 68 54 common ioctl sys_ioctl compat_sys_ioctl 69 55 common fcntl sys_fcntl compat_sys_fcntl 70 # 56 was sys_mpx 71 57 common setpgid sys_setpgid 72 # 58 was sys_ulimit 73 # 59 was sys_olduname 74 60 common umask sys_umask 75 61 common chroot sys_chroot 76 62 common ustat sys_ustat compat_sys_ustat 77 63 common dup2 sys_dup2 78 64 common getppid sys_getppid 79 65 common getpgrp sys_getpgrp 80 66 common setsid sys_setsid 81 67 common sigaction sys_sigaction compat_sys_sigaction 82 # 68 was sys_sgetmask 83 # 69 was sys_ssetmask 84 70 common setreuid sys_setreuid16 85 71 common setregid sys_setregid16 86 72 common sigsuspend sys_sigsuspend 87 73 common sigpending sys_sigpending compat_sys_sigpending 88 74 common sethostname sys_sethostname 89 75 common setrlimit sys_setrlimit compat_sys_setrlimit 90 # 76 was compat_sys_getrlimit 91 77 common getrusage sys_getrusage compat_sys_getrusage 92 78 common gettimeofday sys_gettimeofday compat_sys_gettimeofday 93 79 common settimeofday sys_settimeofday compat_sys_settimeofday 94 80 common getgroups sys_getgroups16 95 81 common setgroups sys_setgroups16 96 # 82 was compat_sys_select 97 83 common symlink sys_symlink 98 # 84 was sys_lstat 99 85 common readlink sys_readlink 100 86 common uselib sys_uselib 101 87 common swapon sys_swapon 102 88 common reboot sys_reboot 103 # 89 was sys_readdir 104 # 90 was sys_mmap 105 91 common munmap sys_munmap 106 92 common truncate sys_truncate compat_sys_truncate 107 93 common ftruncate sys_ftruncate compat_sys_ftruncate 108 94 common fchmod sys_fchmod 109 95 common fchown sys_fchown16 110 96 common getpriority sys_getpriority 111 97 common setpriority sys_setpriority 112 # 98 was sys_profil 113 99 common statfs sys_statfs compat_sys_statfs 114 100 common fstatfs sys_fstatfs compat_sys_fstatfs 115 # 101 was sys_ioperm 116 # 102 was sys_socketcall 117 103 common syslog sys_syslog 118 104 common setitimer sys_setitimer compat_sys_setitimer 119 105 common getitimer sys_getitimer compat_sys_getitimer 120 106 common stat sys_newstat compat_sys_newstat 121 107 common lstat sys_newlstat compat_sys_newlstat 122 108 common fstat sys_newfstat compat_sys_newfstat 123 # 109 was sys_uname 124 # 110 was sys_iopl 125 111 common vhangup sys_vhangup 126 # 112 was sys_idle 127 # 113 was sys_syscall 128 114 common wait4 sys_wait4 compat_sys_wait4 129 115 common swapoff sys_swapoff 130 116 common sysinfo sys_sysinfo compat_sys_sysinfo 131 # 117 was sys_ipc 132 118 common fsync sys_fsync 133 119 common sigreturn sys_sigreturn_wrapper compat_sys_sigreturn 134 120 common clone sys_clone 135 121 common setdomainname sys_setdomainname 136 122 common uname sys_newuname 137 # 123 was sys_modify_ldt 138 124 common adjtimex sys_adjtimex_time32 139 125 common mprotect sys_mprotect 140 126 common sigprocmask sys_sigprocmask compat_sys_sigprocmask 141 # 127 was sys_create_module 142 128 common init_module sys_init_module 143 129 common delete_module sys_delete_module 144 # 130 was sys_get_kernel_syms 145 131 common quotactl sys_quotactl 146 132 common getpgid sys_getpgid 147 133 common fchdir sys_fchdir 148 134 common bdflush sys_ni_syscall 149 135 common sysfs sys_sysfs 150 136 common personality sys_personality 151 # 137 was sys_afs_syscall 152 138 common setfsuid sys_setfsuid16 153 139 common setfsgid sys_setfsgid16 154 140 common _llseek sys_llseek 155 141 common getdents sys_getdents compat_sys_getdents 156 142 common _newselect sys_select compat_sys_select 157 143 common flock sys_flock 158 144 common msync sys_msync 159 145 common readv sys_readv 160 146 common writev sys_writev 161 147 common getsid sys_getsid 162 148 common fdatasync sys_fdatasync 163 149 common _sysctl sys_ni_syscall 164 150 common mlock sys_mlock 165 151 common munlock sys_munlock 166 152 common mlockall sys_mlockall 167 153 common munlockall sys_munlockall 168 154 common sched_setparam sys_sched_setparam 169 155 common sched_getparam sys_sched_getparam 170 156 common sched_setscheduler sys_sched_setscheduler 171 157 common sched_getscheduler sys_sched_getscheduler 172 158 common sched_yield sys_sched_yield 173 159 common sched_get_priority_max sys_sched_get_priority_max 174 160 common sched_get_priority_min sys_sched_get_priority_min 175 161 common sched_rr_get_interval sys_sched_rr_get_interval_time32 176 162 common nanosleep sys_nanosleep_time32 177 163 common mremap sys_mremap 178 164 common setresuid sys_setresuid16 179 165 common getresuid sys_getresuid16 180 # 166 was sys_vm86 181 # 167 was sys_query_module 182 168 common poll sys_poll 183 169 common nfsservctl sys_ni_syscall 184 170 common setresgid sys_setresgid16 185 171 common getresgid sys_getresgid16 186 172 common prctl sys_prctl 187 173 common rt_sigreturn sys_rt_sigreturn_wrapper compat_sys_rt_sigreturn 188 174 common rt_sigaction sys_rt_sigaction compat_sys_rt_sigaction 189 175 common rt_sigprocmask sys_rt_sigprocmask compat_sys_rt_sigprocmask 190 176 common rt_sigpending sys_rt_sigpending compat_sys_rt_sigpending 191 177 common rt_sigtimedwait sys_rt_sigtimedwait_time32 compat_sys_rt_sigtimedwait_time32 192 178 common rt_sigqueueinfo sys_rt_sigqueueinfo compat_sys_rt_sigqueueinfo 193 179 common rt_sigsuspend sys_rt_sigsuspend compat_sys_rt_sigsuspend 194 180 common pread64 sys_pread64 compat_sys_aarch32_pread64 195 181 common pwrite64 sys_pwrite64 compat_sys_aarch32_pwrite64 196 182 common chown sys_chown16 197 183 common getcwd sys_getcwd 198 184 common capget sys_capget 199 185 common capset sys_capset 200 186 common sigaltstack sys_sigaltstack compat_sys_sigaltstack 201 187 common sendfile sys_sendfile compat_sys_sendfile 202 # 188 reserved 203 # 189 reserved 204 190 common vfork sys_vfork 205 # SuS compliant getrlimit 206 191 common ugetrlimit sys_getrlimit compat_sys_getrlimit 207 192 common mmap2 sys_mmap2 compat_sys_aarch32_mmap2 208 193 common truncate64 sys_truncate64 compat_sys_aarch32_truncate64 209 194 common ftruncate64 sys_ftruncate64 compat_sys_aarch32_ftruncate64 210 195 common stat64 sys_stat64 211 196 common lstat64 sys_lstat64 212 197 common fstat64 sys_fstat64 213 198 common lchown32 sys_lchown 214 199 common getuid32 sys_getuid 215 200 common getgid32 sys_getgid 216 201 common geteuid32 sys_geteuid 217 202 common getegid32 sys_getegid 218 203 common setreuid32 sys_setreuid 219 204 common setregid32 sys_setregid 220 205 common getgroups32 sys_getgroups 221 206 common setgroups32 sys_setgroups 222 207 common fchown32 sys_fchown 223 208 common setresuid32 sys_setresuid 224 209 common getresuid32 sys_getresuid 225 210 common setresgid32 sys_setresgid 226 211 common getresgid32 sys_getresgid 227 212 common chown32 sys_chown 228 213 common setuid32 sys_setuid 229 214 common setgid32 sys_setgid 230 215 common setfsuid32 sys_setfsuid 231 216 common setfsgid32 sys_setfsgid 232 217 common getdents64 sys_getdents64 233 218 common pivot_root sys_pivot_root 234 219 common mincore sys_mincore 235 220 common madvise sys_madvise 236 221 common fcntl64 sys_fcntl64 compat_sys_fcntl64 237 # 222 for tux 238 # 223 is unused 239 224 common gettid sys_gettid 240 225 common readahead sys_readahead compat_sys_aarch32_readahead 241 226 common setxattr sys_setxattr 242 227 common lsetxattr sys_lsetxattr 243 228 common fsetxattr sys_fsetxattr 244 229 common getxattr sys_getxattr 245 230 common lgetxattr sys_lgetxattr 246 231 common fgetxattr sys_fgetxattr 247 232 common listxattr sys_listxattr 248 233 common llistxattr sys_llistxattr 249 234 common flistxattr sys_flistxattr 250 235 common removexattr sys_removexattr 251 236 common lremovexattr sys_lremovexattr 252 237 common fremovexattr sys_fremovexattr 253 238 common tkill sys_tkill 254 239 common sendfile64 sys_sendfile64 255 240 common futex sys_futex_time32 256 241 common sched_setaffinity sys_sched_setaffinity compat_sys_sched_setaffinity 257 242 common sched_getaffinity sys_sched_getaffinity compat_sys_sched_getaffinity 258 243 common io_setup sys_io_setup compat_sys_io_setup 259 244 common io_destroy sys_io_destroy 260 245 common io_getevents sys_io_getevents_time32 261 246 common io_submit sys_io_submit compat_sys_io_submit 262 247 common io_cancel sys_io_cancel 263 248 common exit_group sys_exit_group 264 249 common lookup_dcookie sys_ni_syscall 265 250 common epoll_create sys_epoll_create 266 251 common epoll_ctl sys_epoll_ctl 267 252 common epoll_wait sys_epoll_wait 268 253 common remap_file_pages sys_remap_file_pages 269 # 254 for set_thread_area 270 # 255 for get_thread_area 271 256 common set_tid_address sys_set_tid_address 272 257 common timer_create sys_timer_create compat_sys_timer_create 273 258 common timer_settime sys_timer_settime32 274 259 common timer_gettime sys_timer_gettime32 275 260 common timer_getoverrun sys_timer_getoverrun 276 261 common timer_delete sys_timer_delete 277 262 common clock_settime sys_clock_settime32 278 263 common clock_gettime sys_clock_gettime32 279 264 common clock_getres sys_clock_getres_time32 280 265 common clock_nanosleep sys_clock_nanosleep_time32 281 266 common statfs64 sys_statfs64_wrapper compat_sys_aarch32_statfs64 282 267 common fstatfs64 sys_fstatfs64_wrapper compat_sys_aarch32_fstatfs64 283 268 common tgkill sys_tgkill 284 269 common utimes sys_utimes_time32 285 270 common arm_fadvise64_64 sys_arm_fadvise64_64 compat_sys_aarch32_fadvise64_64 286 271 common pciconfig_iobase sys_pciconfig_iobase 287 272 common pciconfig_read sys_pciconfig_read 288 273 common pciconfig_write sys_pciconfig_write 289 274 common mq_open sys_mq_open compat_sys_mq_open 290 275 common mq_unlink sys_mq_unlink 291 276 common mq_timedsend sys_mq_timedsend_time32 292 277 common mq_timedreceive sys_mq_timedreceive_time32 293 278 common mq_notify sys_mq_notify compat_sys_mq_notify 294 279 common mq_getsetattr sys_mq_getsetattr compat_sys_mq_getsetattr 295 280 common waitid sys_waitid compat_sys_waitid 296 281 common socket sys_socket 297 282 common bind sys_bind 298 283 common connect sys_connect 299 284 common listen sys_listen 300 285 common accept sys_accept 301 286 common getsockname sys_getsockname 302 287 common getpeername sys_getpeername 303 288 common socketpair sys_socketpair 304 289 common send sys_send 305 290 common sendto sys_sendto 306 291 common recv sys_recv compat_sys_recv 307 292 common recvfrom sys_recvfrom compat_sys_recvfrom 308 293 common shutdown sys_shutdown 309 294 common setsockopt sys_setsockopt 310 295 common getsockopt sys_getsockopt 311 296 common sendmsg sys_sendmsg compat_sys_sendmsg 312 297 common recvmsg sys_recvmsg compat_sys_recvmsg 313 298 common semop sys_semop 314 299 common semget sys_semget 315 300 common semctl sys_old_semctl compat_sys_old_semctl 316 301 common msgsnd sys_msgsnd compat_sys_msgsnd 317 302 common msgrcv sys_msgrcv compat_sys_msgrcv 318 303 common msgget sys_msgget 319 304 common msgctl sys_old_msgctl compat_sys_old_msgctl 320 305 common shmat sys_shmat compat_sys_shmat 321 306 common shmdt sys_shmdt 322 307 common shmget sys_shmget 323 308 common shmctl sys_old_shmctl compat_sys_old_shmctl 324 309 common add_key sys_add_key 325 310 common request_key sys_request_key 326 311 common keyctl sys_keyctl compat_sys_keyctl 327 312 common semtimedop sys_semtimedop_time32 328 313 common vserver sys_ni_syscall 329 314 common ioprio_set sys_ioprio_set 330 315 common ioprio_get sys_ioprio_get 331 316 common inotify_init sys_inotify_init 332 317 common inotify_add_watch sys_inotify_add_watch 333 318 common inotify_rm_watch sys_inotify_rm_watch 334 319 common mbind sys_mbind 335 320 common get_mempolicy sys_get_mempolicy 336 321 common set_mempolicy sys_set_mempolicy 337 322 common openat sys_openat compat_sys_openat 338 323 common mkdirat sys_mkdirat 339 324 common mknodat sys_mknodat 340 325 common fchownat sys_fchownat 341 326 common futimesat sys_futimesat_time32 342 327 common fstatat64 sys_fstatat64 343 328 common unlinkat sys_unlinkat 344 329 common renameat sys_renameat 345 330 common linkat sys_linkat 346 331 common symlinkat sys_symlinkat 347 332 common readlinkat sys_readlinkat 348 333 common fchmodat sys_fchmodat 349 334 common faccessat sys_faccessat 350 335 common pselect6 sys_pselect6_time32 compat_sys_pselect6_time32 351 336 common ppoll sys_ppoll_time32 compat_sys_ppoll_time32 352 337 common unshare sys_unshare 353 338 common set_robust_list sys_set_robust_list compat_sys_set_robust_list 354 339 common get_robust_list sys_get_robust_list compat_sys_get_robust_list 355 340 common splice sys_splice 356 341 common arm_sync_file_range sys_sync_file_range2 compat_sys_aarch32_sync_file_range2 357 342 common tee sys_tee 358 343 common vmsplice sys_vmsplice 359 344 common move_pages sys_move_pages 360 345 common getcpu sys_getcpu 361 346 common epoll_pwait sys_epoll_pwait compat_sys_epoll_pwait 362 347 common kexec_load sys_kexec_load compat_sys_kexec_load 363 348 common utimensat sys_utimensat_time32 364 349 common signalfd sys_signalfd compat_sys_signalfd 365 350 common timerfd_create sys_timerfd_create 366 351 common eventfd sys_eventfd 367 352 common fallocate sys_fallocate compat_sys_aarch32_fallocate 368 353 common timerfd_settime sys_timerfd_settime32 369 354 common timerfd_gettime sys_timerfd_gettime32 370 355 common signalfd4 sys_signalfd4 compat_sys_signalfd4 371 356 common eventfd2 sys_eventfd2 372 357 common epoll_create1 sys_epoll_create1 373 358 common dup3 sys_dup3 374 359 common pipe2 sys_pipe2 375 360 common inotify_init1 sys_inotify_init1 376 361 common preadv sys_preadv compat_sys_preadv 377 362 common pwritev sys_pwritev compat_sys_pwritev 378 363 common rt_tgsigqueueinfo sys_rt_tgsigqueueinfo compat_sys_rt_tgsigqueueinfo 379 364 common perf_event_open sys_perf_event_open 380 365 common recvmmsg sys_recvmmsg_time32 compat_sys_recvmmsg_time32 381 366 common accept4 sys_accept4 382 367 common fanotify_init sys_fanotify_init 383 368 common fanotify_mark sys_fanotify_mark compat_sys_fanotify_mark 384 369 common prlimit64 sys_prlimit64 385 370 common name_to_handle_at sys_name_to_handle_at 386 371 common open_by_handle_at sys_open_by_handle_at compat_sys_open_by_handle_at 387 372 common clock_adjtime sys_clock_adjtime32 388 373 common syncfs sys_syncfs 389 374 common sendmmsg sys_sendmmsg compat_sys_sendmmsg 390 375 common setns sys_setns 391 376 common process_vm_readv sys_process_vm_readv 392 377 common process_vm_writev sys_process_vm_writev 393 378 common kcmp sys_kcmp 394 379 common finit_module sys_finit_module 395 380 common sched_setattr sys_sched_setattr 396 381 common sched_getattr sys_sched_getattr 397 382 common renameat2 sys_renameat2 398 383 common seccomp sys_seccomp 399 384 common getrandom sys_getrandom 400 385 common memfd_create sys_memfd_create 401 386 common bpf sys_bpf 402 387 common execveat sys_execveat compat_sys_execveat 403 388 common userfaultfd sys_userfaultfd 404 389 common membarrier sys_membarrier 405 390 common mlock2 sys_mlock2 406 391 common copy_file_range sys_copy_file_range 407 392 common preadv2 sys_preadv2 compat_sys_preadv2 408 393 common pwritev2 sys_pwritev2 compat_sys_pwritev2 409 394 common pkey_mprotect sys_pkey_mprotect 410 395 common pkey_alloc sys_pkey_alloc 411 396 common pkey_free sys_pkey_free 412 397 common statx sys_statx 413 398 common rseq sys_rseq 414 399 common io_pgetevents sys_io_pgetevents_time32 compat_sys_io_pgetevents 415 400 common migrate_pages sys_migrate_pages 416 401 common kexec_file_load sys_kexec_file_load 417 # 402 is unused 418 403 common clock_gettime64 sys_clock_gettime 419 404 common clock_settime64 sys_clock_settime 420 405 common clock_adjtime64 sys_clock_adjtime 421 406 common clock_getres_time64 sys_clock_getres 422 407 common clock_nanosleep_time64 sys_clock_nanosleep 423 408 common timer_gettime64 sys_timer_gettime 424 409 common timer_settime64 sys_timer_settime 425 410 common timerfd_gettime64 sys_timerfd_gettime 426 411 common timerfd_settime64 sys_timerfd_settime 427 412 common utimensat_time64 sys_utimensat 428 413 common pselect6_time64 sys_pselect6 compat_sys_pselect6_time64 429 414 common ppoll_time64 sys_ppoll compat_sys_ppoll_time64 430 416 common io_pgetevents_time64 sys_io_pgetevents compat_sys_io_pgetevents_time64 431 417 common recvmmsg_time64 sys_recvmmsg compat_sys_recvmmsg_time64 432 418 common mq_timedsend_time64 sys_mq_timedsend 433 419 common mq_timedreceive_time64 sys_mq_timedreceive 434 420 common semtimedop_time64 sys_semtimedop 435 421 common rt_sigtimedwait_time64 sys_rt_sigtimedwait compat_sys_rt_sigtimedwait_time64 436 422 common futex_time64 sys_futex 437 423 common sched_rr_get_interval_time64 sys_sched_rr_get_interval 438 424 common pidfd_send_signal sys_pidfd_send_signal 439 425 common io_uring_setup sys_io_uring_setup 440 426 common io_uring_enter sys_io_uring_enter 441 427 common io_uring_register sys_io_uring_register 442 428 common open_tree sys_open_tree 443 429 common move_mount sys_move_mount 444 430 common fsopen sys_fsopen 445 431 common fsconfig sys_fsconfig 446 432 common fsmount sys_fsmount 447 433 common fspick sys_fspick 448 434 common pidfd_open sys_pidfd_open 449 435 common clone3 sys_clone3 450 436 common close_range sys_close_range 451 437 common openat2 sys_openat2 452 438 common pidfd_getfd sys_pidfd_getfd 453 439 common faccessat2 sys_faccessat2 454 440 common process_madvise sys_process_madvise 455 441 common epoll_pwait2 sys_epoll_pwait2 compat_sys_epoll_pwait2 456 442 common mount_setattr sys_mount_setattr 457 443 common quotactl_fd sys_quotactl_fd 458 444 common landlock_create_ruleset sys_landlock_create_ruleset 459 445 common landlock_add_rule sys_landlock_add_rule 460 446 common landlock_restrict_self sys_landlock_restrict_self 461 # 447 reserved for memfd_secret 462 448 common process_mrelease sys_process_mrelease 463 449 common futex_waitv sys_futex_waitv 464 450 common set_mempolicy_home_node sys_set_mempolicy_home_node 465 451 common cachestat sys_cachestat 466 452 common fchmodat2 sys_fchmodat2 467 453 common map_shadow_stack sys_map_shadow_stack 468 454 common futex_wake sys_futex_wake 469 455 common futex_wait sys_futex_wait 470 456 common futex_requeue sys_futex_requeue 471 457 common statmount sys_statmount 472 458 common listmount sys_listmount 473 459 common lsm_get_self_attr sys_lsm_get_self_attr 474 460 common lsm_set_self_attr sys_lsm_set_self_attr 475 461 common lsm_list_modules sys_lsm_list_modules 476 462 common mseal sys_mseal
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.