link on score
make a new name for a file
sys_link(const char *oldname, const char *newname)
| number | 1025 (0x401) |
|---|---|
| abi | common |
| entry point | sys_link |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for score) |
| man page | link(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r27 | 1025, the syscall number |
r4 | const char *oldname |
r5 | const char *newname |
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 86
- x86 9
- arm 9
- ia32 9
- x32 1073741910
- ppc64 9
- ppc 9
- s390x 9
- mips64 5084
- mipsn32 6084
- mipso32 4009
- alpha 9
- blackfin 9, removed in 4.17
- cris 9, removed in 4.17
- frv 9, removed in 4.17
- ia64 1031, removed in 6.7
- m32r 9, removed in 4.17
- m68k 9
- microblaze 9
- mn10300 9, removed in 4.17
- parisc 9
- sh 9
- sparc 9
- sparc64 9
- xtensa 32
Get this as JSON: https://api.syscall.sh/v2/syscalls/score/link?kernel=all