getdents on score
get directory entries
sys_getdents(unsigned int fd, struct linux_dirent *dirent, unsigned int count)
| number | 1065 (0x429) |
|---|---|
| abi | common |
| entry point | sys_getdents |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for score) |
| man page | getdents(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r27 | 1065, the syscall number |
r4 | unsigned int fd |
r5 | struct linux_dirent *dirent |
r6 | unsigned int count |
r4 | the return value |
Then run syscall to enter the kernel.
r7 is the error flag and r4 then holds the positive error number.
This architecture was removed from the Linux kernel in Linux 4.17. The newest release with a syscall table here is Linux 4.16. The other removed architectures live on the historical architectures page.
Same syscall on other architectures
- x64 78
- x86 141
- arm 141
- ia32 141
- x32 1073741902
- ppc64 141
- ppc 141
- s390x 141
- mips64 5076
- mipsn32 6076
- mipso32 4141
- alpha 305
- blackfin 141, removed in 4.17
- cris 141, removed in 4.17
- frv 141, removed in 4.17
- ia64 1144, removed in 6.7
- m32r 141, removed in 4.17
- m68k 141
- microblaze 141
- mn10300 141, removed in 4.17
- parisc 141
- sh 141
- sparc 174
- sparc64 174
- xtensa 59
Get this as JSON: https://api.syscall.sh/v2/syscalls/score/getdents?kernel=all