wait4 on ia32
wait for process to change state, BSD style
compat_sys_wait4(pid_t pid, int *stat_addr, int options, struct rusage *ru)
| number | 114 (0x72) |
|---|---|
| abi | i386 |
| entry point | compat_sys_wait4 |
| since | Linux 3.3 or earlier (3.3 is the first release scanned for ia32) |
| man page | wait4(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 114, the syscall number |
ebx | pid_t pid |
ecx | int *stat_addr |
edx | int options |
esi | struct rusage *ru |
eax | the return value |
Then run int 0x80 to enter the kernel.
This compat ABI is only available when the kernel is built with CONFIG_IA32_EMULATION.
Same syscall on other architectures
- x64 61
- x86 114
- arm64 260
- arm 114
- riscv64 260
- x32 1073741885
- loongarch64 260
- ppc64 114
- ppc 114
- s390x 114
- mips64 5059
- mipsn32 6059
- mipso32 4114
- alpha 365
- arc 260
- csky 260
- hexagon 260
- m68k 114
- microblaze 114
- nios2 260
- openrisc 260
- parisc 114
- sh 114
- sparc 7
- sparc64 7
- xtensa 121
Get this as JSON: https://api.syscall.sh/v2/syscalls/ia32/wait4