syscall.sh / mipso32 / readdir
readdir
read directory entry
sys_old_readdir(unsigned int fd, struct old_linux_dirent *dirent, unsigned int count)
| number | 4089 (0xff9) |
|---|---|
| abi | o32 |
| entry point | sys_old_readdir |
| since | Linux 5.0 |
| man page | readdir(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
v0 | 4089, the syscall number |
a0 | unsigned int fd |
a1 | struct old_linux_dirent *dirent |
a2 | unsigned int count |
v0 | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
Get this as JSON: https://api.syscall.sh/v2/syscalls/mipso32/readdir