unistd32.h (31738B)
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 9#ifndef __SYSCALL 10#define __SYSCALL(x, y) 11#endif 12 13#define __NR_restart_syscall 0 14__SYSCALL(__NR_restart_syscall, sys_restart_syscall) 15#define __NR_exit 1 16__SYSCALL(__NR_exit, sys_exit) 17#define __NR_fork 2 18__SYSCALL(__NR_fork, sys_fork) 19#define __NR_read 3 20__SYSCALL(__NR_read, sys_read) 21#define __NR_write 4 22__SYSCALL(__NR_write, sys_write) 23#define __NR_open 5 24__SYSCALL(__NR_open, compat_sys_open) 25#define __NR_close 6 26__SYSCALL(__NR_close, sys_close) 27 /* 7 was sys_waitpid */ 28__SYSCALL(7, sys_ni_syscall) 29#define __NR_creat 8 30__SYSCALL(__NR_creat, sys_creat) 31#define __NR_link 9 32__SYSCALL(__NR_link, sys_link) 33#define __NR_unlink 10 34__SYSCALL(__NR_unlink, sys_unlink) 35#define __NR_execve 11 36__SYSCALL(__NR_execve, compat_sys_execve) 37#define __NR_chdir 12 38__SYSCALL(__NR_chdir, sys_chdir) 39 /* 13 was sys_time */ 40__SYSCALL(13, sys_ni_syscall) 41#define __NR_mknod 14 42__SYSCALL(__NR_mknod, sys_mknod) 43#define __NR_chmod 15 44__SYSCALL(__NR_chmod, sys_chmod) 45#define __NR_lchown 16 46__SYSCALL(__NR_lchown, sys_lchown16) 47 /* 17 was sys_break */ 48__SYSCALL(17, sys_ni_syscall) 49 /* 18 was sys_stat */ 50__SYSCALL(18, sys_ni_syscall) 51#define __NR_lseek 19 52__SYSCALL(__NR_lseek, compat_sys_lseek) 53#define __NR_getpid 20 54__SYSCALL(__NR_getpid, sys_getpid) 55#define __NR_mount 21 56__SYSCALL(__NR_mount, sys_mount) 57 /* 22 was sys_umount */ 58__SYSCALL(22, sys_ni_syscall) 59#define __NR_setuid 23 60__SYSCALL(__NR_setuid, sys_setuid16) 61#define __NR_getuid 24 62__SYSCALL(__NR_getuid, sys_getuid16) 63 /* 25 was sys_stime */ 64__SYSCALL(25, sys_ni_syscall) 65#define __NR_ptrace 26 66__SYSCALL(__NR_ptrace, compat_sys_ptrace) 67 /* 27 was sys_alarm */ 68__SYSCALL(27, sys_ni_syscall) 69 /* 28 was sys_fstat */ 70__SYSCALL(28, sys_ni_syscall) 71#define __NR_pause 29 72__SYSCALL(__NR_pause, sys_pause) 73 /* 30 was sys_utime */ 74__SYSCALL(30, sys_ni_syscall) 75 /* 31 was sys_stty */ 76__SYSCALL(31, sys_ni_syscall) 77 /* 32 was sys_gtty */ 78__SYSCALL(32, sys_ni_syscall) 79#define __NR_access 33 80__SYSCALL(__NR_access, sys_access) 81#define __NR_nice 34 82__SYSCALL(__NR_nice, sys_nice) 83 /* 35 was sys_ftime */ 84__SYSCALL(35, sys_ni_syscall) 85#define __NR_sync 36 86__SYSCALL(__NR_sync, sys_sync) 87#define __NR_kill 37 88__SYSCALL(__NR_kill, sys_kill) 89#define __NR_rename 38 90__SYSCALL(__NR_rename, sys_rename) 91#define __NR_mkdir 39 92__SYSCALL(__NR_mkdir, sys_mkdir) 93#define __NR_rmdir 40 94__SYSCALL(__NR_rmdir, sys_rmdir) 95#define __NR_dup 41 96__SYSCALL(__NR_dup, sys_dup) 97#define __NR_pipe 42 98__SYSCALL(__NR_pipe, sys_pipe) 99#define __NR_times 43 100__SYSCALL(__NR_times, compat_sys_times) 101 /* 44 was sys_prof */ 102__SYSCALL(44, sys_ni_syscall) 103#define __NR_brk 45 104__SYSCALL(__NR_brk, sys_brk) 105#define __NR_setgid 46 106__SYSCALL(__NR_setgid, sys_setgid16) 107#define __NR_getgid 47 108__SYSCALL(__NR_getgid, sys_getgid16) 109 /* 48 was sys_signal */ 110__SYSCALL(48, sys_ni_syscall) 111#define __NR_geteuid 49 112__SYSCALL(__NR_geteuid, sys_geteuid16) 113#define __NR_getegid 50 114__SYSCALL(__NR_getegid, sys_getegid16) 115#define __NR_acct 51 116__SYSCALL(__NR_acct, sys_acct) 117#define __NR_umount2 52 118__SYSCALL(__NR_umount2, sys_umount) 119 /* 53 was sys_lock */ 120__SYSCALL(53, sys_ni_syscall) 121#define __NR_ioctl 54 122__SYSCALL(__NR_ioctl, compat_sys_ioctl) 123#define __NR_fcntl 55 124__SYSCALL(__NR_fcntl, compat_sys_fcntl) 125 /* 56 was sys_mpx */ 126__SYSCALL(56, sys_ni_syscall) 127#define __NR_setpgid 57 128__SYSCALL(__NR_setpgid, sys_setpgid) 129 /* 58 was sys_ulimit */ 130__SYSCALL(58, sys_ni_syscall) 131 /* 59 was sys_olduname */ 132__SYSCALL(59, sys_ni_syscall) 133#define __NR_umask 60 134__SYSCALL(__NR_umask, sys_umask) 135#define __NR_chroot 61 136__SYSCALL(__NR_chroot, sys_chroot) 137#define __NR_ustat 62 138__SYSCALL(__NR_ustat, compat_sys_ustat) 139#define __NR_dup2 63 140__SYSCALL(__NR_dup2, sys_dup2) 141#define __NR_getppid 64 142__SYSCALL(__NR_getppid, sys_getppid) 143#define __NR_getpgrp 65 144__SYSCALL(__NR_getpgrp, sys_getpgrp) 145#define __NR_setsid 66 146__SYSCALL(__NR_setsid, sys_setsid) 147#define __NR_sigaction 67 148__SYSCALL(__NR_sigaction, compat_sys_sigaction) 149 /* 68 was sys_sgetmask */ 150__SYSCALL(68, sys_ni_syscall) 151 /* 69 was sys_ssetmask */ 152__SYSCALL(69, sys_ni_syscall) 153#define __NR_setreuid 70 154__SYSCALL(__NR_setreuid, sys_setreuid16) 155#define __NR_setregid 71 156__SYSCALL(__NR_setregid, sys_setregid16) 157#define __NR_sigsuspend 72 158__SYSCALL(__NR_sigsuspend, sys_sigsuspend) 159#define __NR_sigpending 73 160__SYSCALL(__NR_sigpending, compat_sys_sigpending) 161#define __NR_sethostname 74 162__SYSCALL(__NR_sethostname, sys_sethostname) 163#define __NR_setrlimit 75 164__SYSCALL(__NR_setrlimit, compat_sys_setrlimit) 165 /* 76 was compat_sys_getrlimit */ 166__SYSCALL(76, sys_ni_syscall) 167#define __NR_getrusage 77 168__SYSCALL(__NR_getrusage, compat_sys_getrusage) 169#define __NR_gettimeofday 78 170__SYSCALL(__NR_gettimeofday, compat_sys_gettimeofday) 171#define __NR_settimeofday 79 172__SYSCALL(__NR_settimeofday, compat_sys_settimeofday) 173#define __NR_getgroups 80 174__SYSCALL(__NR_getgroups, sys_getgroups16) 175#define __NR_setgroups 81 176__SYSCALL(__NR_setgroups, sys_setgroups16) 177 /* 82 was compat_sys_select */ 178__SYSCALL(82, sys_ni_syscall) 179#define __NR_symlink 83 180__SYSCALL(__NR_symlink, sys_symlink) 181 /* 84 was sys_lstat */ 182__SYSCALL(84, sys_ni_syscall) 183#define __NR_readlink 85 184__SYSCALL(__NR_readlink, sys_readlink) 185#define __NR_uselib 86 186__SYSCALL(__NR_uselib, sys_uselib) 187#define __NR_swapon 87 188__SYSCALL(__NR_swapon, sys_swapon) 189#define __NR_reboot 88 190__SYSCALL(__NR_reboot, sys_reboot) 191 /* 89 was sys_readdir */ 192__SYSCALL(89, sys_ni_syscall) 193 /* 90 was sys_mmap */ 194__SYSCALL(90, sys_ni_syscall) 195#define __NR_munmap 91 196__SYSCALL(__NR_munmap, sys_munmap) 197#define __NR_truncate 92 198__SYSCALL(__NR_truncate, compat_sys_truncate) 199#define __NR_ftruncate 93 200__SYSCALL(__NR_ftruncate, compat_sys_ftruncate) 201#define __NR_fchmod 94 202__SYSCALL(__NR_fchmod, sys_fchmod) 203#define __NR_fchown 95 204__SYSCALL(__NR_fchown, sys_fchown16) 205#define __NR_getpriority 96 206__SYSCALL(__NR_getpriority, sys_getpriority) 207#define __NR_setpriority 97 208__SYSCALL(__NR_setpriority, sys_setpriority) 209 /* 98 was sys_profil */ 210__SYSCALL(98, sys_ni_syscall) 211#define __NR_statfs 99 212__SYSCALL(__NR_statfs, compat_sys_statfs) 213#define __NR_fstatfs 100 214__SYSCALL(__NR_fstatfs, compat_sys_fstatfs) 215 /* 101 was sys_ioperm */ 216__SYSCALL(101, sys_ni_syscall) 217 /* 102 was sys_socketcall */ 218__SYSCALL(102, sys_ni_syscall) 219#define __NR_syslog 103 220__SYSCALL(__NR_syslog, sys_syslog) 221#define __NR_setitimer 104 222__SYSCALL(__NR_setitimer, compat_sys_setitimer) 223#define __NR_getitimer 105 224__SYSCALL(__NR_getitimer, compat_sys_getitimer) 225#define __NR_stat 106 226__SYSCALL(__NR_stat, compat_sys_newstat) 227#define __NR_lstat 107 228__SYSCALL(__NR_lstat, compat_sys_newlstat) 229#define __NR_fstat 108 230__SYSCALL(__NR_fstat, compat_sys_newfstat) 231 /* 109 was sys_uname */ 232__SYSCALL(109, sys_ni_syscall) 233 /* 110 was sys_iopl */ 234__SYSCALL(110, sys_ni_syscall) 235#define __NR_vhangup 111 236__SYSCALL(__NR_vhangup, sys_vhangup) 237 /* 112 was sys_idle */ 238__SYSCALL(112, sys_ni_syscall) 239 /* 113 was sys_syscall */ 240__SYSCALL(113, sys_ni_syscall) 241#define __NR_wait4 114 242__SYSCALL(__NR_wait4, compat_sys_wait4) 243#define __NR_swapoff 115 244__SYSCALL(__NR_swapoff, sys_swapoff) 245#define __NR_sysinfo 116 246__SYSCALL(__NR_sysinfo, compat_sys_sysinfo) 247 /* 117 was sys_ipc */ 248__SYSCALL(117, sys_ni_syscall) 249#define __NR_fsync 118 250__SYSCALL(__NR_fsync, sys_fsync) 251#define __NR_sigreturn 119 252__SYSCALL(__NR_sigreturn, compat_sys_sigreturn) 253#define __NR_clone 120 254__SYSCALL(__NR_clone, sys_clone) 255#define __NR_setdomainname 121 256__SYSCALL(__NR_setdomainname, sys_setdomainname) 257#define __NR_uname 122 258__SYSCALL(__NR_uname, sys_newuname) 259 /* 123 was sys_modify_ldt */ 260__SYSCALL(123, sys_ni_syscall) 261#define __NR_adjtimex 124 262__SYSCALL(__NR_adjtimex, sys_adjtimex_time32) 263#define __NR_mprotect 125 264__SYSCALL(__NR_mprotect, sys_mprotect) 265#define __NR_sigprocmask 126 266__SYSCALL(__NR_sigprocmask, compat_sys_sigprocmask) 267 /* 127 was sys_create_module */ 268__SYSCALL(127, sys_ni_syscall) 269#define __NR_init_module 128 270__SYSCALL(__NR_init_module, sys_init_module) 271#define __NR_delete_module 129 272__SYSCALL(__NR_delete_module, sys_delete_module) 273 /* 130 was sys_get_kernel_syms */ 274__SYSCALL(130, sys_ni_syscall) 275#define __NR_quotactl 131 276__SYSCALL(__NR_quotactl, sys_quotactl) 277#define __NR_getpgid 132 278__SYSCALL(__NR_getpgid, sys_getpgid) 279#define __NR_fchdir 133 280__SYSCALL(__NR_fchdir, sys_fchdir) 281#define __NR_bdflush 134 282__SYSCALL(__NR_bdflush, sys_ni_syscall) 283#define __NR_sysfs 135 284__SYSCALL(__NR_sysfs, sys_sysfs) 285#define __NR_personality 136 286__SYSCALL(__NR_personality, sys_personality) 287 /* 137 was sys_afs_syscall */ 288__SYSCALL(137, sys_ni_syscall) 289#define __NR_setfsuid 138 290__SYSCALL(__NR_setfsuid, sys_setfsuid16) 291#define __NR_setfsgid 139 292__SYSCALL(__NR_setfsgid, sys_setfsgid16) 293#define __NR__llseek 140 294__SYSCALL(__NR__llseek, sys_llseek) 295#define __NR_getdents 141 296__SYSCALL(__NR_getdents, compat_sys_getdents) 297#define __NR__newselect 142 298__SYSCALL(__NR__newselect, compat_sys_select) 299#define __NR_flock 143 300__SYSCALL(__NR_flock, sys_flock) 301#define __NR_msync 144 302__SYSCALL(__NR_msync, sys_msync) 303#define __NR_readv 145 304__SYSCALL(__NR_readv, sys_readv) 305#define __NR_writev 146 306__SYSCALL(__NR_writev, sys_writev) 307#define __NR_getsid 147 308__SYSCALL(__NR_getsid, sys_getsid) 309#define __NR_fdatasync 148 310__SYSCALL(__NR_fdatasync, sys_fdatasync) 311 /* 149 was sys_sysctl */ 312__SYSCALL(149, sys_ni_syscall) 313#define __NR_mlock 150 314__SYSCALL(__NR_mlock, sys_mlock) 315#define __NR_munlock 151 316__SYSCALL(__NR_munlock, sys_munlock) 317#define __NR_mlockall 152 318__SYSCALL(__NR_mlockall, sys_mlockall) 319#define __NR_munlockall 153 320__SYSCALL(__NR_munlockall, sys_munlockall) 321#define __NR_sched_setparam 154 322__SYSCALL(__NR_sched_setparam, sys_sched_setparam) 323#define __NR_sched_getparam 155 324__SYSCALL(__NR_sched_getparam, sys_sched_getparam) 325#define __NR_sched_setscheduler 156 326__SYSCALL(__NR_sched_setscheduler, sys_sched_setscheduler) 327#define __NR_sched_getscheduler 157 328__SYSCALL(__NR_sched_getscheduler, sys_sched_getscheduler) 329#define __NR_sched_yield 158 330__SYSCALL(__NR_sched_yield, sys_sched_yield) 331#define __NR_sched_get_priority_max 159 332__SYSCALL(__NR_sched_get_priority_max, sys_sched_get_priority_max) 333#define __NR_sched_get_priority_min 160 334__SYSCALL(__NR_sched_get_priority_min, sys_sched_get_priority_min) 335#define __NR_sched_rr_get_interval 161 336__SYSCALL(__NR_sched_rr_get_interval, sys_sched_rr_get_interval_time32) 337#define __NR_nanosleep 162 338__SYSCALL(__NR_nanosleep, sys_nanosleep_time32) 339#define __NR_mremap 163 340__SYSCALL(__NR_mremap, sys_mremap) 341#define __NR_setresuid 164 342__SYSCALL(__NR_setresuid, sys_setresuid16) 343#define __NR_getresuid 165 344__SYSCALL(__NR_getresuid, sys_getresuid16) 345 /* 166 was sys_vm86 */ 346__SYSCALL(166, sys_ni_syscall) 347 /* 167 was sys_query_module */ 348__SYSCALL(167, sys_ni_syscall) 349#define __NR_poll 168 350__SYSCALL(__NR_poll, sys_poll) 351#define __NR_nfsservctl 169 352__SYSCALL(__NR_nfsservctl, sys_ni_syscall) 353#define __NR_setresgid 170 354__SYSCALL(__NR_setresgid, sys_setresgid16) 355#define __NR_getresgid 171 356__SYSCALL(__NR_getresgid, sys_getresgid16) 357#define __NR_prctl 172 358__SYSCALL(__NR_prctl, sys_prctl) 359#define __NR_rt_sigreturn 173 360__SYSCALL(__NR_rt_sigreturn, compat_sys_rt_sigreturn) 361#define __NR_rt_sigaction 174 362__SYSCALL(__NR_rt_sigaction, compat_sys_rt_sigaction) 363#define __NR_rt_sigprocmask 175 364__SYSCALL(__NR_rt_sigprocmask, compat_sys_rt_sigprocmask) 365#define __NR_rt_sigpending 176 366__SYSCALL(__NR_rt_sigpending, compat_sys_rt_sigpending) 367#define __NR_rt_sigtimedwait 177 368__SYSCALL(__NR_rt_sigtimedwait, compat_sys_rt_sigtimedwait_time32) 369#define __NR_rt_sigqueueinfo 178 370__SYSCALL(__NR_rt_sigqueueinfo, compat_sys_rt_sigqueueinfo) 371#define __NR_rt_sigsuspend 179 372__SYSCALL(__NR_rt_sigsuspend, compat_sys_rt_sigsuspend) 373#define __NR_pread64 180 374__SYSCALL(__NR_pread64, compat_sys_aarch32_pread64) 375#define __NR_pwrite64 181 376__SYSCALL(__NR_pwrite64, compat_sys_aarch32_pwrite64) 377#define __NR_chown 182 378__SYSCALL(__NR_chown, sys_chown16) 379#define __NR_getcwd 183 380__SYSCALL(__NR_getcwd, sys_getcwd) 381#define __NR_capget 184 382__SYSCALL(__NR_capget, sys_capget) 383#define __NR_capset 185 384__SYSCALL(__NR_capset, sys_capset) 385#define __NR_sigaltstack 186 386__SYSCALL(__NR_sigaltstack, compat_sys_sigaltstack) 387#define __NR_sendfile 187 388__SYSCALL(__NR_sendfile, compat_sys_sendfile) 389 /* 188 reserved */ 390__SYSCALL(188, sys_ni_syscall) 391 /* 189 reserved */ 392__SYSCALL(189, sys_ni_syscall) 393#define __NR_vfork 190 394__SYSCALL(__NR_vfork, sys_vfork) 395#define __NR_ugetrlimit 191 /* SuS compliant getrlimit */ 396__SYSCALL(__NR_ugetrlimit, compat_sys_getrlimit) /* SuS compliant getrlimit */ 397#define __NR_mmap2 192 398__SYSCALL(__NR_mmap2, compat_sys_aarch32_mmap2) 399#define __NR_truncate64 193 400__SYSCALL(__NR_truncate64, compat_sys_aarch32_truncate64) 401#define __NR_ftruncate64 194 402__SYSCALL(__NR_ftruncate64, compat_sys_aarch32_ftruncate64) 403#define __NR_stat64 195 404__SYSCALL(__NR_stat64, sys_stat64) 405#define __NR_lstat64 196 406__SYSCALL(__NR_lstat64, sys_lstat64) 407#define __NR_fstat64 197 408__SYSCALL(__NR_fstat64, sys_fstat64) 409#define __NR_lchown32 198 410__SYSCALL(__NR_lchown32, sys_lchown) 411#define __NR_getuid32 199 412__SYSCALL(__NR_getuid32, sys_getuid) 413#define __NR_getgid32 200 414__SYSCALL(__NR_getgid32, sys_getgid) 415#define __NR_geteuid32 201 416__SYSCALL(__NR_geteuid32, sys_geteuid) 417#define __NR_getegid32 202 418__SYSCALL(__NR_getegid32, sys_getegid) 419#define __NR_setreuid32 203 420__SYSCALL(__NR_setreuid32, sys_setreuid) 421#define __NR_setregid32 204 422__SYSCALL(__NR_setregid32, sys_setregid) 423#define __NR_getgroups32 205 424__SYSCALL(__NR_getgroups32, sys_getgroups) 425#define __NR_setgroups32 206 426__SYSCALL(__NR_setgroups32, sys_setgroups) 427#define __NR_fchown32 207 428__SYSCALL(__NR_fchown32, sys_fchown) 429#define __NR_setresuid32 208 430__SYSCALL(__NR_setresuid32, sys_setresuid) 431#define __NR_getresuid32 209 432__SYSCALL(__NR_getresuid32, sys_getresuid) 433#define __NR_setresgid32 210 434__SYSCALL(__NR_setresgid32, sys_setresgid) 435#define __NR_getresgid32 211 436__SYSCALL(__NR_getresgid32, sys_getresgid) 437#define __NR_chown32 212 438__SYSCALL(__NR_chown32, sys_chown) 439#define __NR_setuid32 213 440__SYSCALL(__NR_setuid32, sys_setuid) 441#define __NR_setgid32 214 442__SYSCALL(__NR_setgid32, sys_setgid) 443#define __NR_setfsuid32 215 444__SYSCALL(__NR_setfsuid32, sys_setfsuid) 445#define __NR_setfsgid32 216 446__SYSCALL(__NR_setfsgid32, sys_setfsgid) 447#define __NR_getdents64 217 448__SYSCALL(__NR_getdents64, sys_getdents64) 449#define __NR_pivot_root 218 450__SYSCALL(__NR_pivot_root, sys_pivot_root) 451#define __NR_mincore 219 452__SYSCALL(__NR_mincore, sys_mincore) 453#define __NR_madvise 220 454__SYSCALL(__NR_madvise, sys_madvise) 455#define __NR_fcntl64 221 456__SYSCALL(__NR_fcntl64, compat_sys_fcntl64) 457 /* 222 for tux */ 458__SYSCALL(222, sys_ni_syscall) 459 /* 223 is unused */ 460__SYSCALL(223, sys_ni_syscall) 461#define __NR_gettid 224 462__SYSCALL(__NR_gettid, sys_gettid) 463#define __NR_readahead 225 464__SYSCALL(__NR_readahead, compat_sys_aarch32_readahead) 465#define __NR_setxattr 226 466__SYSCALL(__NR_setxattr, sys_setxattr) 467#define __NR_lsetxattr 227 468__SYSCALL(__NR_lsetxattr, sys_lsetxattr) 469#define __NR_fsetxattr 228 470__SYSCALL(__NR_fsetxattr, sys_fsetxattr) 471#define __NR_getxattr 229 472__SYSCALL(__NR_getxattr, sys_getxattr) 473#define __NR_lgetxattr 230 474__SYSCALL(__NR_lgetxattr, sys_lgetxattr) 475#define __NR_fgetxattr 231 476__SYSCALL(__NR_fgetxattr, sys_fgetxattr) 477#define __NR_listxattr 232 478__SYSCALL(__NR_listxattr, sys_listxattr) 479#define __NR_llistxattr 233 480__SYSCALL(__NR_llistxattr, sys_llistxattr) 481#define __NR_flistxattr 234 482__SYSCALL(__NR_flistxattr, sys_flistxattr) 483#define __NR_removexattr 235 484__SYSCALL(__NR_removexattr, sys_removexattr) 485#define __NR_lremovexattr 236 486__SYSCALL(__NR_lremovexattr, sys_lremovexattr) 487#define __NR_fremovexattr 237 488__SYSCALL(__NR_fremovexattr, sys_fremovexattr) 489#define __NR_tkill 238 490__SYSCALL(__NR_tkill, sys_tkill) 491#define __NR_sendfile64 239 492__SYSCALL(__NR_sendfile64, sys_sendfile64) 493#define __NR_futex 240 494__SYSCALL(__NR_futex, sys_futex_time32) 495#define __NR_sched_setaffinity 241 496__SYSCALL(__NR_sched_setaffinity, compat_sys_sched_setaffinity) 497#define __NR_sched_getaffinity 242 498__SYSCALL(__NR_sched_getaffinity, compat_sys_sched_getaffinity) 499#define __NR_io_setup 243 500__SYSCALL(__NR_io_setup, compat_sys_io_setup) 501#define __NR_io_destroy 244 502__SYSCALL(__NR_io_destroy, sys_io_destroy) 503#define __NR_io_getevents 245 504__SYSCALL(__NR_io_getevents, sys_io_getevents_time32) 505#define __NR_io_submit 246 506__SYSCALL(__NR_io_submit, compat_sys_io_submit) 507#define __NR_io_cancel 247 508__SYSCALL(__NR_io_cancel, sys_io_cancel) 509#define __NR_exit_group 248 510__SYSCALL(__NR_exit_group, sys_exit_group) 511#define __NR_lookup_dcookie 249 512__SYSCALL(__NR_lookup_dcookie, compat_sys_lookup_dcookie) 513#define __NR_epoll_create 250 514__SYSCALL(__NR_epoll_create, sys_epoll_create) 515#define __NR_epoll_ctl 251 516__SYSCALL(__NR_epoll_ctl, sys_epoll_ctl) 517#define __NR_epoll_wait 252 518__SYSCALL(__NR_epoll_wait, sys_epoll_wait) 519#define __NR_remap_file_pages 253 520__SYSCALL(__NR_remap_file_pages, sys_remap_file_pages) 521 /* 254 for set_thread_area */ 522__SYSCALL(254, sys_ni_syscall) 523 /* 255 for get_thread_area */ 524__SYSCALL(255, sys_ni_syscall) 525#define __NR_set_tid_address 256 526__SYSCALL(__NR_set_tid_address, sys_set_tid_address) 527#define __NR_timer_create 257 528__SYSCALL(__NR_timer_create, compat_sys_timer_create) 529#define __NR_timer_settime 258 530__SYSCALL(__NR_timer_settime, sys_timer_settime32) 531#define __NR_timer_gettime 259 532__SYSCALL(__NR_timer_gettime, sys_timer_gettime32) 533#define __NR_timer_getoverrun 260 534__SYSCALL(__NR_timer_getoverrun, sys_timer_getoverrun) 535#define __NR_timer_delete 261 536__SYSCALL(__NR_timer_delete, sys_timer_delete) 537#define __NR_clock_settime 262 538__SYSCALL(__NR_clock_settime, sys_clock_settime32) 539#define __NR_clock_gettime 263 540__SYSCALL(__NR_clock_gettime, sys_clock_gettime32) 541#define __NR_clock_getres 264 542__SYSCALL(__NR_clock_getres, sys_clock_getres_time32) 543#define __NR_clock_nanosleep 265 544__SYSCALL(__NR_clock_nanosleep, sys_clock_nanosleep_time32) 545#define __NR_statfs64 266 546__SYSCALL(__NR_statfs64, compat_sys_aarch32_statfs64) 547#define __NR_fstatfs64 267 548__SYSCALL(__NR_fstatfs64, compat_sys_aarch32_fstatfs64) 549#define __NR_tgkill 268 550__SYSCALL(__NR_tgkill, sys_tgkill) 551#define __NR_utimes 269 552__SYSCALL(__NR_utimes, sys_utimes_time32) 553#define __NR_arm_fadvise64_64 270 554__SYSCALL(__NR_arm_fadvise64_64, compat_sys_aarch32_fadvise64_64) 555#define __NR_pciconfig_iobase 271 556__SYSCALL(__NR_pciconfig_iobase, sys_pciconfig_iobase) 557#define __NR_pciconfig_read 272 558__SYSCALL(__NR_pciconfig_read, sys_pciconfig_read) 559#define __NR_pciconfig_write 273 560__SYSCALL(__NR_pciconfig_write, sys_pciconfig_write) 561#define __NR_mq_open 274 562__SYSCALL(__NR_mq_open, compat_sys_mq_open) 563#define __NR_mq_unlink 275 564__SYSCALL(__NR_mq_unlink, sys_mq_unlink) 565#define __NR_mq_timedsend 276 566__SYSCALL(__NR_mq_timedsend, sys_mq_timedsend_time32) 567#define __NR_mq_timedreceive 277 568__SYSCALL(__NR_mq_timedreceive, sys_mq_timedreceive_time32) 569#define __NR_mq_notify 278 570__SYSCALL(__NR_mq_notify, compat_sys_mq_notify) 571#define __NR_mq_getsetattr 279 572__SYSCALL(__NR_mq_getsetattr, compat_sys_mq_getsetattr) 573#define __NR_waitid 280 574__SYSCALL(__NR_waitid, compat_sys_waitid) 575#define __NR_socket 281 576__SYSCALL(__NR_socket, sys_socket) 577#define __NR_bind 282 578__SYSCALL(__NR_bind, sys_bind) 579#define __NR_connect 283 580__SYSCALL(__NR_connect, sys_connect) 581#define __NR_listen 284 582__SYSCALL(__NR_listen, sys_listen) 583#define __NR_accept 285 584__SYSCALL(__NR_accept, sys_accept) 585#define __NR_getsockname 286 586__SYSCALL(__NR_getsockname, sys_getsockname) 587#define __NR_getpeername 287 588__SYSCALL(__NR_getpeername, sys_getpeername) 589#define __NR_socketpair 288 590__SYSCALL(__NR_socketpair, sys_socketpair) 591#define __NR_send 289 592__SYSCALL(__NR_send, sys_send) 593#define __NR_sendto 290 594__SYSCALL(__NR_sendto, sys_sendto) 595#define __NR_recv 291 596__SYSCALL(__NR_recv, compat_sys_recv) 597#define __NR_recvfrom 292 598__SYSCALL(__NR_recvfrom, compat_sys_recvfrom) 599#define __NR_shutdown 293 600__SYSCALL(__NR_shutdown, sys_shutdown) 601#define __NR_setsockopt 294 602__SYSCALL(__NR_setsockopt, sys_setsockopt) 603#define __NR_getsockopt 295 604__SYSCALL(__NR_getsockopt, sys_getsockopt) 605#define __NR_sendmsg 296 606__SYSCALL(__NR_sendmsg, compat_sys_sendmsg) 607#define __NR_recvmsg 297 608__SYSCALL(__NR_recvmsg, compat_sys_recvmsg) 609#define __NR_semop 298 610__SYSCALL(__NR_semop, sys_semop) 611#define __NR_semget 299 612__SYSCALL(__NR_semget, sys_semget) 613#define __NR_semctl 300 614__SYSCALL(__NR_semctl, compat_sys_old_semctl) 615#define __NR_msgsnd 301 616__SYSCALL(__NR_msgsnd, compat_sys_msgsnd) 617#define __NR_msgrcv 302 618__SYSCALL(__NR_msgrcv, compat_sys_msgrcv) 619#define __NR_msgget 303 620__SYSCALL(__NR_msgget, sys_msgget) 621#define __NR_msgctl 304 622__SYSCALL(__NR_msgctl, compat_sys_old_msgctl) 623#define __NR_shmat 305 624__SYSCALL(__NR_shmat, compat_sys_shmat) 625#define __NR_shmdt 306 626__SYSCALL(__NR_shmdt, sys_shmdt) 627#define __NR_shmget 307 628__SYSCALL(__NR_shmget, sys_shmget) 629#define __NR_shmctl 308 630__SYSCALL(__NR_shmctl, compat_sys_old_shmctl) 631#define __NR_add_key 309 632__SYSCALL(__NR_add_key, sys_add_key) 633#define __NR_request_key 310 634__SYSCALL(__NR_request_key, sys_request_key) 635#define __NR_keyctl 311 636__SYSCALL(__NR_keyctl, compat_sys_keyctl) 637#define __NR_semtimedop 312 638__SYSCALL(__NR_semtimedop, sys_semtimedop_time32) 639#define __NR_vserver 313 640__SYSCALL(__NR_vserver, sys_ni_syscall) 641#define __NR_ioprio_set 314 642__SYSCALL(__NR_ioprio_set, sys_ioprio_set) 643#define __NR_ioprio_get 315 644__SYSCALL(__NR_ioprio_get, sys_ioprio_get) 645#define __NR_inotify_init 316 646__SYSCALL(__NR_inotify_init, sys_inotify_init) 647#define __NR_inotify_add_watch 317 648__SYSCALL(__NR_inotify_add_watch, sys_inotify_add_watch) 649#define __NR_inotify_rm_watch 318 650__SYSCALL(__NR_inotify_rm_watch, sys_inotify_rm_watch) 651#define __NR_mbind 319 652__SYSCALL(__NR_mbind, sys_mbind) 653#define __NR_get_mempolicy 320 654__SYSCALL(__NR_get_mempolicy, sys_get_mempolicy) 655#define __NR_set_mempolicy 321 656__SYSCALL(__NR_set_mempolicy, sys_set_mempolicy) 657#define __NR_openat 322 658__SYSCALL(__NR_openat, compat_sys_openat) 659#define __NR_mkdirat 323 660__SYSCALL(__NR_mkdirat, sys_mkdirat) 661#define __NR_mknodat 324 662__SYSCALL(__NR_mknodat, sys_mknodat) 663#define __NR_fchownat 325 664__SYSCALL(__NR_fchownat, sys_fchownat) 665#define __NR_futimesat 326 666__SYSCALL(__NR_futimesat, sys_futimesat_time32) 667#define __NR_fstatat64 327 668__SYSCALL(__NR_fstatat64, sys_fstatat64) 669#define __NR_unlinkat 328 670__SYSCALL(__NR_unlinkat, sys_unlinkat) 671#define __NR_renameat 329 672__SYSCALL(__NR_renameat, sys_renameat) 673#define __NR_linkat 330 674__SYSCALL(__NR_linkat, sys_linkat) 675#define __NR_symlinkat 331 676__SYSCALL(__NR_symlinkat, sys_symlinkat) 677#define __NR_readlinkat 332 678__SYSCALL(__NR_readlinkat, sys_readlinkat) 679#define __NR_fchmodat 333 680__SYSCALL(__NR_fchmodat, sys_fchmodat) 681#define __NR_faccessat 334 682__SYSCALL(__NR_faccessat, sys_faccessat) 683#define __NR_pselect6 335 684__SYSCALL(__NR_pselect6, compat_sys_pselect6_time32) 685#define __NR_ppoll 336 686__SYSCALL(__NR_ppoll, compat_sys_ppoll_time32) 687#define __NR_unshare 337 688__SYSCALL(__NR_unshare, sys_unshare) 689#define __NR_set_robust_list 338 690__SYSCALL(__NR_set_robust_list, compat_sys_set_robust_list) 691#define __NR_get_robust_list 339 692__SYSCALL(__NR_get_robust_list, compat_sys_get_robust_list) 693#define __NR_splice 340 694__SYSCALL(__NR_splice, sys_splice) 695#define __NR_sync_file_range2 341 696__SYSCALL(__NR_sync_file_range2, compat_sys_aarch32_sync_file_range2) 697#define __NR_tee 342 698__SYSCALL(__NR_tee, sys_tee) 699#define __NR_vmsplice 343 700__SYSCALL(__NR_vmsplice, sys_vmsplice) 701#define __NR_move_pages 344 702__SYSCALL(__NR_move_pages, sys_move_pages) 703#define __NR_getcpu 345 704__SYSCALL(__NR_getcpu, sys_getcpu) 705#define __NR_epoll_pwait 346 706__SYSCALL(__NR_epoll_pwait, compat_sys_epoll_pwait) 707#define __NR_kexec_load 347 708__SYSCALL(__NR_kexec_load, compat_sys_kexec_load) 709#define __NR_utimensat 348 710__SYSCALL(__NR_utimensat, sys_utimensat_time32) 711#define __NR_signalfd 349 712__SYSCALL(__NR_signalfd, compat_sys_signalfd) 713#define __NR_timerfd_create 350 714__SYSCALL(__NR_timerfd_create, sys_timerfd_create) 715#define __NR_eventfd 351 716__SYSCALL(__NR_eventfd, sys_eventfd) 717#define __NR_fallocate 352 718__SYSCALL(__NR_fallocate, compat_sys_aarch32_fallocate) 719#define __NR_timerfd_settime 353 720__SYSCALL(__NR_timerfd_settime, sys_timerfd_settime32) 721#define __NR_timerfd_gettime 354 722__SYSCALL(__NR_timerfd_gettime, sys_timerfd_gettime32) 723#define __NR_signalfd4 355 724__SYSCALL(__NR_signalfd4, compat_sys_signalfd4) 725#define __NR_eventfd2 356 726__SYSCALL(__NR_eventfd2, sys_eventfd2) 727#define __NR_epoll_create1 357 728__SYSCALL(__NR_epoll_create1, sys_epoll_create1) 729#define __NR_dup3 358 730__SYSCALL(__NR_dup3, sys_dup3) 731#define __NR_pipe2 359 732__SYSCALL(__NR_pipe2, sys_pipe2) 733#define __NR_inotify_init1 360 734__SYSCALL(__NR_inotify_init1, sys_inotify_init1) 735#define __NR_preadv 361 736__SYSCALL(__NR_preadv, compat_sys_preadv) 737#define __NR_pwritev 362 738__SYSCALL(__NR_pwritev, compat_sys_pwritev) 739#define __NR_rt_tgsigqueueinfo 363 740__SYSCALL(__NR_rt_tgsigqueueinfo, compat_sys_rt_tgsigqueueinfo) 741#define __NR_perf_event_open 364 742__SYSCALL(__NR_perf_event_open, sys_perf_event_open) 743#define __NR_recvmmsg 365 744__SYSCALL(__NR_recvmmsg, compat_sys_recvmmsg_time32) 745#define __NR_accept4 366 746__SYSCALL(__NR_accept4, sys_accept4) 747#define __NR_fanotify_init 367 748__SYSCALL(__NR_fanotify_init, sys_fanotify_init) 749#define __NR_fanotify_mark 368 750__SYSCALL(__NR_fanotify_mark, compat_sys_fanotify_mark) 751#define __NR_prlimit64 369 752__SYSCALL(__NR_prlimit64, sys_prlimit64) 753#define __NR_name_to_handle_at 370 754__SYSCALL(__NR_name_to_handle_at, sys_name_to_handle_at) 755#define __NR_open_by_handle_at 371 756__SYSCALL(__NR_open_by_handle_at, compat_sys_open_by_handle_at) 757#define __NR_clock_adjtime 372 758__SYSCALL(__NR_clock_adjtime, sys_clock_adjtime32) 759#define __NR_syncfs 373 760__SYSCALL(__NR_syncfs, sys_syncfs) 761#define __NR_sendmmsg 374 762__SYSCALL(__NR_sendmmsg, compat_sys_sendmmsg) 763#define __NR_setns 375 764__SYSCALL(__NR_setns, sys_setns) 765#define __NR_process_vm_readv 376 766__SYSCALL(__NR_process_vm_readv, sys_process_vm_readv) 767#define __NR_process_vm_writev 377 768__SYSCALL(__NR_process_vm_writev, sys_process_vm_writev) 769#define __NR_kcmp 378 770__SYSCALL(__NR_kcmp, sys_kcmp) 771#define __NR_finit_module 379 772__SYSCALL(__NR_finit_module, sys_finit_module) 773#define __NR_sched_setattr 380 774__SYSCALL(__NR_sched_setattr, sys_sched_setattr) 775#define __NR_sched_getattr 381 776__SYSCALL(__NR_sched_getattr, sys_sched_getattr) 777#define __NR_renameat2 382 778__SYSCALL(__NR_renameat2, sys_renameat2) 779#define __NR_seccomp 383 780__SYSCALL(__NR_seccomp, sys_seccomp) 781#define __NR_getrandom 384 782__SYSCALL(__NR_getrandom, sys_getrandom) 783#define __NR_memfd_create 385 784__SYSCALL(__NR_memfd_create, sys_memfd_create) 785#define __NR_bpf 386 786__SYSCALL(__NR_bpf, sys_bpf) 787#define __NR_execveat 387 788__SYSCALL(__NR_execveat, compat_sys_execveat) 789#define __NR_userfaultfd 388 790__SYSCALL(__NR_userfaultfd, sys_userfaultfd) 791#define __NR_membarrier 389 792__SYSCALL(__NR_membarrier, sys_membarrier) 793#define __NR_mlock2 390 794__SYSCALL(__NR_mlock2, sys_mlock2) 795#define __NR_copy_file_range 391 796__SYSCALL(__NR_copy_file_range, sys_copy_file_range) 797#define __NR_preadv2 392 798__SYSCALL(__NR_preadv2, compat_sys_preadv2) 799#define __NR_pwritev2 393 800__SYSCALL(__NR_pwritev2, compat_sys_pwritev2) 801#define __NR_pkey_mprotect 394 802__SYSCALL(__NR_pkey_mprotect, sys_pkey_mprotect) 803#define __NR_pkey_alloc 395 804__SYSCALL(__NR_pkey_alloc, sys_pkey_alloc) 805#define __NR_pkey_free 396 806__SYSCALL(__NR_pkey_free, sys_pkey_free) 807#define __NR_statx 397 808__SYSCALL(__NR_statx, sys_statx) 809#define __NR_rseq 398 810__SYSCALL(__NR_rseq, sys_rseq) 811#define __NR_io_pgetevents 399 812__SYSCALL(__NR_io_pgetevents, compat_sys_io_pgetevents) 813#define __NR_migrate_pages 400 814__SYSCALL(__NR_migrate_pages, sys_migrate_pages) 815#define __NR_kexec_file_load 401 816__SYSCALL(__NR_kexec_file_load, sys_kexec_file_load) 817/* 402 is unused */ 818#define __NR_clock_gettime64 403 819__SYSCALL(__NR_clock_gettime64, sys_clock_gettime) 820#define __NR_clock_settime64 404 821__SYSCALL(__NR_clock_settime64, sys_clock_settime) 822#define __NR_clock_adjtime64 405 823__SYSCALL(__NR_clock_adjtime64, sys_clock_adjtime) 824#define __NR_clock_getres_time64 406 825__SYSCALL(__NR_clock_getres_time64, sys_clock_getres) 826#define __NR_clock_nanosleep_time64 407 827__SYSCALL(__NR_clock_nanosleep_time64, sys_clock_nanosleep) 828#define __NR_timer_gettime64 408 829__SYSCALL(__NR_timer_gettime64, sys_timer_gettime) 830#define __NR_timer_settime64 409 831__SYSCALL(__NR_timer_settime64, sys_timer_settime) 832#define __NR_timerfd_gettime64 410 833__SYSCALL(__NR_timerfd_gettime64, sys_timerfd_gettime) 834#define __NR_timerfd_settime64 411 835__SYSCALL(__NR_timerfd_settime64, sys_timerfd_settime) 836#define __NR_utimensat_time64 412 837__SYSCALL(__NR_utimensat_time64, sys_utimensat) 838#define __NR_pselect6_time64 413 839__SYSCALL(__NR_pselect6_time64, compat_sys_pselect6_time64) 840#define __NR_ppoll_time64 414 841__SYSCALL(__NR_ppoll_time64, compat_sys_ppoll_time64) 842#define __NR_io_pgetevents_time64 416 843__SYSCALL(__NR_io_pgetevents_time64, sys_io_pgetevents) 844#define __NR_recvmmsg_time64 417 845__SYSCALL(__NR_recvmmsg_time64, compat_sys_recvmmsg_time64) 846#define __NR_mq_timedsend_time64 418 847__SYSCALL(__NR_mq_timedsend_time64, sys_mq_timedsend) 848#define __NR_mq_timedreceive_time64 419 849__SYSCALL(__NR_mq_timedreceive_time64, sys_mq_timedreceive) 850#define __NR_semtimedop_time64 420 851__SYSCALL(__NR_semtimedop_time64, sys_semtimedop) 852#define __NR_rt_sigtimedwait_time64 421 853__SYSCALL(__NR_rt_sigtimedwait_time64, compat_sys_rt_sigtimedwait_time64) 854#define __NR_futex_time64 422 855__SYSCALL(__NR_futex_time64, sys_futex) 856#define __NR_sched_rr_get_interval_time64 423 857__SYSCALL(__NR_sched_rr_get_interval_time64, sys_sched_rr_get_interval) 858#define __NR_pidfd_send_signal 424 859__SYSCALL(__NR_pidfd_send_signal, sys_pidfd_send_signal) 860#define __NR_io_uring_setup 425 861__SYSCALL(__NR_io_uring_setup, sys_io_uring_setup) 862#define __NR_io_uring_enter 426 863__SYSCALL(__NR_io_uring_enter, sys_io_uring_enter) 864#define __NR_io_uring_register 427 865__SYSCALL(__NR_io_uring_register, sys_io_uring_register) 866#define __NR_open_tree 428 867__SYSCALL(__NR_open_tree, sys_open_tree) 868#define __NR_move_mount 429 869__SYSCALL(__NR_move_mount, sys_move_mount) 870#define __NR_fsopen 430 871__SYSCALL(__NR_fsopen, sys_fsopen) 872#define __NR_fsconfig 431 873__SYSCALL(__NR_fsconfig, sys_fsconfig) 874#define __NR_fsmount 432 875__SYSCALL(__NR_fsmount, sys_fsmount) 876#define __NR_fspick 433 877__SYSCALL(__NR_fspick, sys_fspick) 878#define __NR_pidfd_open 434 879__SYSCALL(__NR_pidfd_open, sys_pidfd_open) 880#define __NR_clone3 435 881__SYSCALL(__NR_clone3, sys_clone3) 882#define __NR_close_range 436 883__SYSCALL(__NR_close_range, sys_close_range) 884#define __NR_openat2 437 885__SYSCALL(__NR_openat2, sys_openat2) 886#define __NR_pidfd_getfd 438 887__SYSCALL(__NR_pidfd_getfd, sys_pidfd_getfd) 888#define __NR_faccessat2 439 889__SYSCALL(__NR_faccessat2, sys_faccessat2) 890#define __NR_process_madvise 440 891__SYSCALL(__NR_process_madvise, sys_process_madvise) 892#define __NR_epoll_pwait2 441 893__SYSCALL(__NR_epoll_pwait2, compat_sys_epoll_pwait2) 894#define __NR_mount_setattr 442 895__SYSCALL(__NR_mount_setattr, sys_mount_setattr) 896#define __NR_quotactl_fd 443 897__SYSCALL(__NR_quotactl_fd, sys_quotactl_fd) 898#define __NR_landlock_create_ruleset 444 899__SYSCALL(__NR_landlock_create_ruleset, sys_landlock_create_ruleset) 900#define __NR_landlock_add_rule 445 901__SYSCALL(__NR_landlock_add_rule, sys_landlock_add_rule) 902#define __NR_landlock_restrict_self 446 903__SYSCALL(__NR_landlock_restrict_self, sys_landlock_restrict_self) 904#define __NR_process_mrelease 448 905__SYSCALL(__NR_process_mrelease, sys_process_mrelease) 906#define __NR_futex_waitv 449 907__SYSCALL(__NR_futex_waitv, sys_futex_waitv) 908#define __NR_set_mempolicy_home_node 450 909__SYSCALL(__NR_set_mempolicy_home_node, sys_set_mempolicy_home_node) 910 911/* 912 * Please add new compat syscalls above this comment and update 913 * __NR_compat_syscalls in asm/unistd.h. 914 */