1 # SPDX-License-Identifier: GPL-2.0 WITH Linux- 2 # 3 # Linux system call numbers and entry vectors 4 # 5 # The format is: 6 # <num> <abi> <name> [<entr 7 # 8 # Where abi is: 9 # common - for system calls shared between oa 10 # oabi - for oabi-only system calls (may ha 11 # eabi - for eabi-only system calls 12 # 13 # For each syscall number, "common" is mutuall 14 # 15 0 common restart_syscall sys_re 16 1 common exit sys_ex 17 2 common fork sys_fo 18 3 common read sys_re 19 4 common write sys_wr 20 5 common open sys_op 21 6 common close sys_cl 22 # 7 was sys_waitpid 23 8 common creat sys_cr 24 9 common link sys_li 25 10 common unlink sys_un 26 11 common execve sys_ex 27 12 common chdir sys_ch 28 13 oabi time sys_ti 29 14 common mknod sys_mk 30 15 common chmod sys_ch 31 16 common lchown sys_lc 32 # 17 was sys_break 33 # 18 was sys_stat 34 19 common lseek sys_ls 35 20 common getpid sys_ge 36 21 common mount sys_mo 37 22 oabi umount sys_ol 38 23 common setuid sys_se 39 24 common getuid sys_ge 40 25 oabi stime sys_st 41 26 common ptrace sys_pt 42 27 oabi alarm sys_al 43 # 28 was sys_fstat 44 29 common pause sys_pa 45 30 oabi utime sys_ut 46 # 31 was sys_stty 47 # 32 was sys_gtty 48 33 common access sys_ac 49 34 common nice sys_ni 50 # 35 was sys_ftime 51 36 common sync sys_sy 52 37 common kill sys_ki 53 38 common rename sys_re 54 39 common mkdir sys_mk 55 40 common rmdir sys_rm 56 41 common dup sys_du 57 42 common pipe sys_pi 58 43 common times sys_ti 59 # 44 was sys_prof 60 45 common brk sys_br 61 46 common setgid sys_se 62 47 common getgid sys_ge 63 # 48 was sys_signal 64 49 common geteuid sys_ge 65 50 common getegid sys_ge 66 51 common acct sys_ac 67 52 common umount2 sys_um 68 # 53 was sys_lock 69 54 common ioctl sys_io 70 55 common fcntl sys_fc 71 # 56 was sys_mpx 72 57 common setpgid sys_se 73 # 58 was sys_ulimit 74 # 59 was sys_olduname 75 60 common umask sys_um 76 61 common chroot sys_ch 77 62 common ustat sys_us 78 63 common dup2 sys_du 79 64 common getppid sys_ge 80 65 common getpgrp sys_ge 81 66 common setsid sys_se 82 67 common sigaction sys_si 83 # 68 was sys_sgetmask 84 # 69 was sys_ssetmask 85 70 common setreuid sys_se 86 71 common setregid sys_se 87 72 common sigsuspend sys_si 88 73 common sigpending sys_si 89 74 common sethostname sys_se 90 75 common setrlimit sys_se 91 # Back compat 2GB limited rlimit 92 76 oabi getrlimit sys_ol 93 77 common getrusage sys_ge 94 78 common gettimeofday sys_ge 95 79 common settimeofday sys_se 96 80 common getgroups sys_ge 97 81 common setgroups sys_se 98 82 oabi select sys_ol 99 83 common symlink sys_sy 100 # 84 was sys_lstat 101 85 common readlink sys_re 102 86 common uselib sys_us 103 87 common swapon sys_sw 104 88 common reboot sys_re 105 89 oabi readdir sys_ol 106 90 oabi mmap sys_ol 107 91 common munmap sys_mu 108 92 common truncate sys_tr 109 93 common ftruncate sys_ft 110 94 common fchmod sys_fc 111 95 common fchown sys_fc 112 96 common getpriority sys_ge 113 97 common setpriority sys_se 114 # 98 was sys_profil 115 99 common statfs sys_st 116 100 common fstatfs sys_fs 117 # 101 was sys_ioperm 118 102 oabi socketcall sys_so 119 103 common syslog sys_sy 120 104 common setitimer sys_se 121 105 common getitimer sys_ge 122 106 common stat sys_ne 123 107 common lstat sys_ne 124 108 common fstat sys_ne 125 # 109 was sys_uname 126 # 110 was sys_iopl 127 111 common vhangup sys_vh 128 # 112 was sys_idle 129 # syscall to call a syscall! 130 113 oabi syscall sys_sy 131 114 common wait4 sys_wa 132 115 common swapoff sys_sw 133 116 common sysinfo sys_sy 134 117 oabi ipc sys_ip 135 118 common fsync sys_fs 136 119 common sigreturn sys_si 137 120 common clone sys_cl 138 121 common setdomainname sys_se 139 122 common uname sys_ne 140 # 123 was sys_modify_ldt 141 124 common adjtimex sys_ad 142 125 common mprotect sys_mp 143 126 common sigprocmask sys_si 144 # 127 was sys_create_module 145 128 common init_module sys_in 146 129 common delete_module sys_de 147 # 130 was sys_get_kernel_syms 148 131 common quotactl sys_qu 149 132 common getpgid sys_ge 150 133 common fchdir sys_fc 151 134 common bdflush sys_ni 152 135 common sysfs sys_sy 153 136 common personality sys_pe 154 # 137 was sys_afs_syscall 155 138 common setfsuid sys_se 156 139 common setfsgid sys_se 157 140 common _llseek sys_ll 158 141 common getdents sys_ge 159 142 common _newselect sys_se 160 143 common flock sys_fl 161 144 common msync sys_ms 162 145 common readv sys_re 163 146 common writev sys_wr 164 147 common getsid sys_ge 165 148 common fdatasync sys_fd 166 149 common _sysctl sys_ni 167 150 common mlock sys_ml 168 151 common munlock sys_mu 169 152 common mlockall sys_ml 170 153 common munlockall sys_mu 171 154 common sched_setparam sys_sc 172 155 common sched_getparam sys_sc 173 156 common sched_setscheduler sys_sc 174 157 common sched_getscheduler sys_sc 175 158 common sched_yield sys_sc 176 159 common sched_get_priority_max sys_sc 177 160 common sched_get_priority_min sys_sc 178 161 common sched_rr_get_interval sys_sc 179 162 common nanosleep sys_na 180 163 common mremap sys_mr 181 164 common setresuid sys_se 182 165 common getresuid sys_ge 183 # 166 was sys_vm86 184 # 167 was sys_query_module 185 168 common poll sys_po 186 169 common nfsservctl 187 170 common setresgid sys_se 188 171 common getresgid sys_ge 189 172 common prctl sys_pr 190 173 common rt_sigreturn sys_rt 191 174 common rt_sigaction sys_rt 192 175 common rt_sigprocmask sys_rt 193 176 common rt_sigpending sys_rt 194 177 common rt_sigtimedwait sys_rt 195 178 common rt_sigqueueinfo sys_rt 196 179 common rt_sigsuspend sys_rt 197 180 common pread64 sys_pr 198 181 common pwrite64 sys_pw 199 182 common chown sys_ch 200 183 common getcwd sys_ge 201 184 common capget sys_ca 202 185 common capset sys_ca 203 186 common sigaltstack sys_si 204 187 common sendfile sys_se 205 # 188 reserved 206 # 189 reserved 207 190 common vfork sys_vf 208 # SuS compliant getrlimit 209 191 common ugetrlimit sys_ge 210 192 common mmap2 sys_mm 211 193 common truncate64 sys_tr 212 194 common ftruncate64 sys_ft 213 195 common stat64 sys_st 214 196 common lstat64 sys_ls 215 197 common fstat64 sys_fs 216 198 common lchown32 sys_lc 217 199 common getuid32 sys_ge 218 200 common getgid32 sys_ge 219 201 common geteuid32 sys_ge 220 202 common getegid32 sys_ge 221 203 common setreuid32 sys_se 222 204 common setregid32 sys_se 223 205 common getgroups32 sys_ge 224 206 common setgroups32 sys_se 225 207 common fchown32 sys_fc 226 208 common setresuid32 sys_se 227 209 common getresuid32 sys_ge 228 210 common setresgid32 sys_se 229 211 common getresgid32 sys_ge 230 212 common chown32 sys_ch 231 213 common setuid32 sys_se 232 214 common setgid32 sys_se 233 215 common setfsuid32 sys_se 234 216 common setfsgid32 sys_se 235 217 common getdents64 sys_ge 236 218 common pivot_root sys_pi 237 219 common mincore sys_mi 238 220 common madvise sys_ma 239 221 common fcntl64 sys_fc 240 # 222 for tux 241 # 223 is unused 242 224 common gettid sys_ge 243 225 common readahead sys_re 244 226 common setxattr sys_se 245 227 common lsetxattr sys_ls 246 228 common fsetxattr sys_fs 247 229 common getxattr sys_ge 248 230 common lgetxattr sys_lg 249 231 common fgetxattr sys_fg 250 232 common listxattr sys_li 251 233 common llistxattr sys_ll 252 234 common flistxattr sys_fl 253 235 common removexattr sys_re 254 236 common lremovexattr sys_lr 255 237 common fremovexattr sys_fr 256 238 common tkill sys_tk 257 239 common sendfile64 sys_se 258 240 common futex sys_fu 259 241 common sched_setaffinity sys_sc 260 242 common sched_getaffinity sys_sc 261 243 common io_setup sys_io 262 244 common io_destroy sys_io 263 245 common io_getevents sys_io 264 246 common io_submit sys_io 265 247 common io_cancel sys_io 266 248 common exit_group sys_ex 267 249 common lookup_dcookie sys_ni 268 250 common epoll_create sys_ep 269 251 common epoll_ctl sys_ep 270 252 common epoll_wait sys_ep 271 253 common remap_file_pages sys_re 272 # 254 for set_thread_area 273 # 255 for get_thread_area 274 256 common set_tid_address sys_se 275 257 common timer_create sys_ti 276 258 common timer_settime sys_ti 277 259 common timer_gettime sys_ti 278 260 common timer_getoverrun sys_ti 279 261 common timer_delete sys_ti 280 262 common clock_settime sys_cl 281 263 common clock_gettime sys_cl 282 264 common clock_getres sys_cl 283 265 common clock_nanosleep sys_cl 284 266 common statfs64 sys_st 285 267 common fstatfs64 sys_fs 286 268 common tgkill sys_tg 287 269 common utimes sys_ut 288 270 common arm_fadvise64_64 sys_ar 289 271 common pciconfig_iobase sys_pc 290 272 common pciconfig_read sys_pc 291 273 common pciconfig_write sys_pc 292 274 common mq_open sys_mq 293 275 common mq_unlink sys_mq 294 276 common mq_timedsend sys_mq 295 277 common mq_timedreceive sys_mq 296 278 common mq_notify sys_mq 297 279 common mq_getsetattr sys_mq 298 280 common waitid sys_wa 299 281 common socket sys_so 300 282 common bind sys_bi 301 283 common connect sys_co 302 284 common listen sys_li 303 285 common accept sys_ac 304 286 common getsockname sys_ge 305 287 common getpeername sys_ge 306 288 common socketpair sys_so 307 289 common send sys_se 308 290 common sendto sys_se 309 291 common recv sys_re 310 292 common recvfrom sys_re 311 293 common shutdown sys_sh 312 294 common setsockopt sys_se 313 295 common getsockopt sys_ge 314 296 common sendmsg sys_se 315 297 common recvmsg sys_re 316 298 common semop sys_se 317 299 common semget sys_se 318 300 common semctl sys_ol 319 301 common msgsnd sys_ms 320 302 common msgrcv sys_ms 321 303 common msgget sys_ms 322 304 common msgctl sys_ol 323 305 common shmat sys_sh 324 306 common shmdt sys_sh 325 307 common shmget sys_sh 326 308 common shmctl sys_ol 327 309 common add_key sys_ad 328 310 common request_key sys_re 329 311 common keyctl sys_ke 330 312 common semtimedop sys_se 331 313 common vserver 332 314 common ioprio_set sys_io 333 315 common ioprio_get sys_io 334 316 common inotify_init sys_in 335 317 common inotify_add_watch sys_in 336 318 common inotify_rm_watch sys_in 337 319 common mbind sys_mb 338 320 common get_mempolicy sys_ge 339 321 common set_mempolicy sys_se 340 322 common openat sys_op 341 323 common mkdirat sys_mk 342 324 common mknodat sys_mk 343 325 common fchownat sys_fc 344 326 common futimesat sys_fu 345 327 common fstatat64 sys_fs 346 328 common unlinkat sys_un 347 329 common renameat sys_re 348 330 common linkat sys_li 349 331 common symlinkat sys_sy 350 332 common readlinkat sys_re 351 333 common fchmodat sys_fc 352 334 common faccessat sys_fa 353 335 common pselect6 sys_ps 354 336 common ppoll sys_pp 355 337 common unshare sys_un 356 338 common set_robust_list sys_se 357 339 common get_robust_list sys_ge 358 340 common splice sys_sp 359 341 common arm_sync_file_range sys_sy 360 342 common tee sys_te 361 343 common vmsplice sys_vm 362 344 common move_pages sys_mo 363 345 common getcpu sys_ge 364 346 common epoll_pwait sys_ep 365 347 common kexec_load sys_ke 366 348 common utimensat sys_ut 367 349 common signalfd sys_si 368 350 common timerfd_create sys_ti 369 351 common eventfd sys_ev 370 352 common fallocate sys_fa 371 353 common timerfd_settime sys_ti 372 354 common timerfd_gettime sys_ti 373 355 common signalfd4 sys_si 374 356 common eventfd2 sys_ev 375 357 common epoll_create1 sys_ep 376 358 common dup3 sys_du 377 359 common pipe2 sys_pi 378 360 common inotify_init1 sys_in 379 361 common preadv sys_pr 380 362 common pwritev sys_pw 381 363 common rt_tgsigqueueinfo sys_rt 382 364 common perf_event_open sys_pe 383 365 common recvmmsg sys_re 384 366 common accept4 sys_ac 385 367 common fanotify_init sys_fa 386 368 common fanotify_mark sys_fa 387 369 common prlimit64 sys_pr 388 370 common name_to_handle_at sys_na 389 371 common open_by_handle_at sys_op 390 372 common clock_adjtime sys_cl 391 373 common syncfs sys_sy 392 374 common sendmmsg sys_se 393 375 common setns sys_se 394 376 common process_vm_readv sys_pr 395 377 common process_vm_writev sys_pr 396 378 common kcmp sys_kc 397 379 common finit_module sys_fi 398 380 common sched_setattr sys_sc 399 381 common sched_getattr sys_sc 400 382 common renameat2 sys_re 401 383 common seccomp sys_se 402 384 common getrandom sys_ge 403 385 common memfd_create sys_me 404 386 common bpf sys_bp 405 387 common execveat sys_ex 406 388 common userfaultfd sys_us 407 389 common membarrier sys_me 408 390 common mlock2 sys_ml 409 391 common copy_file_range sys_co 410 392 common preadv2 sys_pr 411 393 common pwritev2 sys_pw 412 394 common pkey_mprotect sys_pk 413 395 common pkey_alloc sys_pk 414 396 common pkey_free sys_pk 415 397 common statx sys_st 416 398 common rseq sys_rs 417 399 common io_pgetevents sys_io 418 400 common migrate_pages sys_mi 419 401 common kexec_file_load sys_ke 420 # 402 is unused 421 403 common clock_gettime64 422 404 common clock_settime64 423 405 common clock_adjtime64 424 406 common clock_getres_time64 425 407 common clock_nanosleep_time64 426 408 common timer_gettime64 427 409 common timer_settime64 428 410 common timerfd_gettime64 429 411 common timerfd_settime64 430 412 common utimensat_time64 431 413 common pselect6_time64 432 414 common ppoll_time64 433 416 common io_pgetevents_time64 434 417 common recvmmsg_time64 435 418 common mq_timedsend_time64 436 419 common mq_timedreceive_time64 437 420 common semtimedop_time64 438 421 common rt_sigtimedwait_time64 439 422 common futex_time64 440 423 common sched_rr_get_interval_time64 441 424 common pidfd_send_signal 442 425 common io_uring_setup 443 426 common io_uring_enter 444 427 common io_uring_register 445 428 common open_tree 446 429 common move_mount 447 430 common fsopen 448 431 common fsconfig 449 432 common fsmount 450 433 common fspick 451 434 common pidfd_open 452 435 common clone3 453 436 common close_range 454 437 common openat2 455 438 common pidfd_getfd 456 439 common faccessat2 457 440 common process_madvise 458 441 common epoll_pwait2 459 442 common mount_setattr 460 443 common quotactl_fd 461 444 common landlock_create_ruleset 462 445 common landlock_add_rule 463 446 common landlock_restrict_self 464 # 447 reserved for memfd_secret 465 448 common process_mrelease 466 449 common futex_waitv 467 450 common set_mempolicy_home_node 468 451 common cachestat 469 452 common fchmodat2 470 453 common map_shadow_stack 471 454 common futex_wake 472 455 common futex_wait 473 456 common futex_requeue 474 457 common statmount 475 458 common listmount 476 459 common lsm_get_self_attr 477 460 common lsm_set_self_attr 478 461 common lsm_list_modules 479 462 common 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.