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