syscall.sh / m68k / readdir
readdir
read directory entry
sys_old_readdir(unsigned int fd, struct old_linux_dirent *dirent, unsigned int count)
| number | 89 (0x59) |
|---|---|
| abi | common |
| entry point | sys_old_readdir |
| since | Linux 5.0 |
| man page | readdir(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
d0 | 89, the syscall number |
d1 | unsigned int fd |
d2 | struct old_linux_dirent *dirent |
d3 | unsigned int count |
d0 | the return value |
Then run trap #0 to enter the kernel.
Same syscall on other architectures
Get this as JSON: https://api.syscall.sh/v2/syscalls/m68k/readdir