renameat on metag
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.9 or earlier (3.9 is the first release scanned for metag) |
| man page | renameat(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
D1Re0 | 38, the syscall number |
D1Ar1 | int olddfd |
D0Ar2 | const char *oldname |
D1Ar3 | int newdfd |
D0Ar4 | const char *newname |
D0Re0 | the return value |
Then run SWITCH #0x440001 to enter the kernel.
Values wider than one register are packed into consecutive arguments.
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
- microblaze 302
- mn10300 303, removed in 4.17
- nios2 38
- openrisc 38
- parisc 282
- score 38, removed in 4.17
- 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/metag/renameat?kernel=all