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