syscall.sh / alpha / link
link
make a new name for a file
sys_link(const char *oldname, const char *newname)
| number | 9 (0x9) |
|---|---|
| abi | common |
| entry point | sys_link |
| since | Linux 5.0 |
| man page | link(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
v0 | 9, the syscall number |
a0 | const char *oldname |
a1 | const char *newname |
v0 | the return value |
Then run callsys to enter the kernel.
Same syscall on other architectures
- x64 86
- x86 9
- arm 9
- x32 1073741910
- ppc64 9
- ppc 9
- s390x 9
- mips64 5084
- mipsn32 6084
- mipso32 4009
- m68k 9
- microblaze 9
- parisc 9
- sh 9
- sparc 9
- sparc64 9
- xtensa 32
Get this as JSON: https://api.syscall.sh/v2/syscalls/alpha/link