unlink on score
delete a name and possibly the file it refers to
sys_unlink(const char *pathname)
| number | 1026 (0x402) |
|---|---|
| abi | common |
| entry point | sys_unlink |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for score) |
| man page | unlink(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r27 | 1026, the syscall number |
r4 | const char *pathname |
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 87
- x86 10
- arm 10
- ia32 10
- x32 1073741911
- ppc64 10
- ppc 10
- s390x 10
- mips64 5085
- mipsn32 6085
- mipso32 4010
- alpha 10
- blackfin 10, removed in 4.17
- cris 10, removed in 4.17
- frv 10, removed in 4.17
- ia64 1032, removed in 6.7
- m32r 10, removed in 4.17
- m68k 10
- microblaze 10
- mn10300 10, removed in 4.17
- parisc 10
- sh 10
- sparc 10
- sparc64 10
- xtensa 38
Get this as JSON: https://api.syscall.sh/v2/syscalls/score/unlink?kernel=all