syscall.sh / parisc / rmdir
rmdir
delete a directory
sys_rmdir(const char *pathname)
| number | 40 (0x28) |
|---|---|
| abi | common |
| entry point | sys_rmdir |
| since | Linux 5.0 |
| man page | rmdir(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r20 | 40, the syscall number |
r26 | const char *pathname |
r28 | the return value |
Then run ble 0x100(%sr2, %r0) to enter the kernel.
Same syscall on other architectures
- x64 84
- x86 40
- arm 40
- x32 1073741908
- ppc64 40
- ppc 40
- s390x 40
- mips64 5082
- mipsn32 6082
- mipso32 4040
- alpha 137
- m68k 40
- microblaze 40
- sh 40
- sparc 137
- sparc64 137
- xtensa 39
Get this as JSON: https://api.syscall.sh/v2/syscalls/parisc/rmdir