getdents on ia32
get directory entries
compat_sys_getdents(unsigned int fd, struct linux_dirent *dirent, unsigned int count)
| number | 141 (0x8d) |
|---|---|
| abi | i386 |
| entry point | compat_sys_getdents |
| since | Linux 3.3 or earlier (3.3 is the first release scanned for ia32) |
| man page | getdents(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 141, the syscall number |
ebx | unsigned int fd |
ecx | struct linux_dirent *dirent |
edx | unsigned int count |
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 78
- x86 141
- arm 141
- x32 1073741902
- ppc64 141
- ppc 141
- s390x 141
- mips64 5076
- mipsn32 6076
- mipso32 4141
- alpha 305
- m68k 141
- microblaze 141
- parisc 141
- sh 141
- sparc 174
- sparc64 174
- xtensa 59
Get this as JSON: https://api.syscall.sh/v2/syscalls/ia32/getdents