syscall.sh / sparc / readdir
readdir
read directory entry
sys_old_readdir(unsigned int fd, struct old_linux_dirent *dirent, unsigned int count)
| number | 204 (0xcc) |
|---|---|
| abi | 32 |
| entry point | sys_old_readdir |
| since | Linux 5.0 |
| man page | readdir(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
g1 | 204, the syscall number |
o0 | unsigned int fd |
o1 | struct old_linux_dirent *dirent |
o2 | unsigned int count |
o0 | the return value |
Then run t 0x10 to enter the kernel.
Same syscall on other architectures
Get this as JSON: https://api.syscall.sh/v2/syscalls/sparc/readdir