rmdir on score
delete a directory
sys_rmdir(const char *pathname)
| number | 1031 (0x407) |
|---|---|
| abi | common |
| entry point | sys_rmdir |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for score) |
| man page | rmdir(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r27 | 1031, 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 84
- x86 40
- arm 40
- ia32 40
- x32 1073741908
- ppc64 40
- ppc 40
- s390x 40
- mips64 5082
- mipsn32 6082
- mipso32 4040
- alpha 137
- blackfin 40, removed in 4.17
- cris 40, removed in 4.17
- frv 40, removed in 4.17
- ia64 1056, removed in 6.7
- m32r 40, removed in 4.17
- m68k 40
- microblaze 40
- mn10300 40, removed in 4.17
- parisc 40
- sh 40
- sparc 137
- sparc64 137
- xtensa 39
Get this as JSON: https://api.syscall.sh/v2/syscalls/score/rmdir?kernel=all