renameat on score
change the name or location of a file
sys_renameat(int olddfd, const char *oldname, int newdfd, const char *newname)
| number | 38 (0x26) |
|---|---|
| abi | common |
| entry point | sys_renameat |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for score) |
| man page | renameat(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r27 | 38, the syscall number |
r4 | int olddfd |
r5 | const char *oldname |
r6 | int newdfd |
r7 | const char *newname |
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 264
- x86 302
- arm64 38
- arm 329
- ia32 302
- x32 1073742088
- ppc64 293
- ppc 293
- s390x 295
- mips64 5254
- mipsn32 6258
- mipso32 4295
- alpha 457
- arc 38
- blackfin 302, removed in 4.17
- cris 302, removed in 4.17
- frv 302, removed in 4.17
- hexagon 38
- ia64 1288, removed in 6.7
- m32r 302, removed in 4.17
- m68k 295
- metag 38, removed in 4.17
- microblaze 302
- mn10300 303, removed in 4.17
- nios2 38
- openrisc 38
- parisc 282
- sh 302
- sparc 291
- sparc64 291
- tilegx 38, removed in 4.17
- tilepro 38, removed in 4.17
- xtensa 292
Get this as JSON: https://api.syscall.sh/v2/syscalls/score/renameat?kernel=all