accept4 on score
accept a connection on a socket
sys_accept4(int fd, struct sockaddr *upeer_sockaddr, int *upeer_addrlen, int flags)
| number | 242 (0xf2) |
|---|---|
| abi | common |
| entry point | sys_accept4 |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for score) |
| man page | accept4(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r27 | 242, the syscall number |
r4 | int fd |
r5 | struct sockaddr *upeer_sockaddr |
r6 | int *upeer_addrlen |
r7 | int flags |
r4 | the return value |
Then run syscall to enter the kernel.
r7 is the error flag and r4 then holds the positive error number.
This architecture was removed from the Linux kernel in Linux 4.17. The newest release with a syscall table here is Linux 4.16. The other removed architectures live on the historical architectures page.
Same syscall on other architectures
- x64 288
- x86 364
- arm64 242
- arm 366
- riscv64 242
- ia32 364
- x32 1073742112
- loongarch64 242
- ppc64 344
- ppc 344
- s390x 364
- mips64 5293
- mipsn32 6297
- mipso32 4334
- alpha 502
- arc 242
- cris 341, removed in 4.17
- csky 242
- hexagon 242
- ia64 1334, removed in 6.7
- m68k 361
- metag 242, removed in 4.17
- microblaze 362
- nds32 242, removed in 5.18
- nios2 242
- openrisc 242
- parisc 320
- sh 358
- sparc 323
- sparc64 323
- tilegx 242, removed in 4.17
- tilepro 242, removed in 4.17
- xtensa 333
Get this as JSON: https://api.syscall.sh/v2/syscalls/score/accept4?kernel=all