syscall.sh / x86 / readlink
readlink
read value of a symbolic link
sys_readlink(const char *path, char *buf, int bufsiz)
| number | 85 (0x55) |
|---|---|
| abi | i386 |
| entry point | sys_readlink |
| since | Linux 3.3 |
| man page | readlink(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 85, the syscall number |
ebx | const char *path |
ecx | char *buf |
edx | int bufsiz |
eax | the return value |
Then run int 0x80 to enter the kernel.
Same syscall on other architectures
- x64 89
- arm 85
- x32 1073741913
- ppc64 85
- ppc 85
- s390x 85
- mips64 5087
- mipsn32 6087
- mipso32 4085
- alpha 58
- m68k 85
- microblaze 85
- parisc 85
- sh 85
- sparc 58
- sparc64 58
- xtensa 35
Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/readlink