syscall.sh / parisc / rename
rename
change the name or location of a file
sys_rename(const char *oldname, const char *newname)
| number | 38 (0x26) |
|---|---|
| abi | common |
| entry point | sys_rename |
| since | Linux 5.0 |
| man page | rename(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r20 | 38, the syscall number |
r26 | const char *oldname |
r25 | const char *newname |
r28 | the return value |
Then run ble 0x100(%sr2, %r0) to enter the kernel.
Same syscall on other architectures
- x64 82
- x86 38
- arm 38
- x32 1073741906
- ppc64 38
- ppc 38
- s390x 38
- mips64 5080
- mipsn32 6080
- mipso32 4038
- alpha 128
- m68k 38
- microblaze 38
- sh 38
- sparc 128
- sparc64 128
- xtensa 33
Get this as JSON: https://api.syscall.sh/v2/syscalls/parisc/rename