syscall.sh / microblaze / renameat
renameat
change the name or location of a file
sys_renameat(int olddfd, const char *oldname, int newdfd, const char *newname)
| number | 302 (0x12e) |
|---|---|
| abi | common |
| entry point | sys_renameat |
| since | Linux 5.0 |
| man page | renameat(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r12 | 302, the syscall number |
r5 | int olddfd |
r6 | const char *oldname |
r7 | int newdfd |
r8 | const char *newname |
r3 | the return value |
Then run brki r14,8 to enter the kernel.
Same syscall on other architectures
- x64 264
- x86 302
- arm64 38
- arm 329
- x32 1073742088
- ppc64 293
- ppc 293
- s390x 295
- mips64 5254
- mipsn32 6258
- mipso32 4295
- alpha 457
- arc 38
- hexagon 38
- m68k 295
- nios2 38
- openrisc 38
- parisc 282
- sh 302
- sparc 291
- sparc64 291
- xtensa 292
Get this as JSON: https://api.syscall.sh/v2/syscalls/microblaze/renameat