readlink on score
read value of a symbolic link
sys_readlink(const char *path, char *buf, int bufsiz)
| number | 1035 (0x40b) |
|---|---|
| abi | common |
| entry point | sys_readlink |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for score) |
| man page | readlink(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r27 | 1035, the syscall number |
r4 | const char *path |
r5 | char *buf |
r6 | int bufsiz |
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 89
- x86 85
- arm 85
- ia32 85
- x32 1073741913
- ppc64 85
- ppc 85
- s390x 85
- mips64 5087
- mipsn32 6087
- mipso32 4085
- alpha 58
- blackfin 85, removed in 4.17
- cris 85, removed in 4.17
- frv 85, removed in 4.17
- ia64 1092, removed in 6.7
- m32r 85, removed in 4.17
- m68k 85
- microblaze 85
- mn10300 85, removed in 4.17
- parisc 85
- sh 85
- sparc 58
- sparc64 58
- xtensa 35
Get this as JSON: https://api.syscall.sh/v2/syscalls/score/readlink?kernel=all