symlinkat on metag
make a new name for a file
sys_symlinkat(const char *oldname, int newdfd, const char *newname)
| number | 36 (0x24) |
|---|---|
| abi | common |
| entry point | sys_symlinkat |
| since | Linux 3.9 or earlier (3.9 is the first release scanned for metag) |
| man page | symlinkat(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
D1Re0 | 36, the syscall number |
D1Ar1 | const char *oldname |
D0Ar2 | int newdfd |
D1Ar3 | 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 266
- x86 304
- arm64 36
- arm 331
- riscv64 36
- ia32 304
- x32 1073742090
- loongarch64 36
- ppc64 295
- ppc 295
- s390x 297
- mips64 5256
- mipsn32 6260
- mipso32 4297
- alpha 459
- arc 36
- blackfin 304, removed in 4.17
- cris 304, removed in 4.17
- csky 36
- frv 304, removed in 4.17
- hexagon 36
- ia64 1290, removed in 6.7
- m32r 304, removed in 4.17
- m68k 297
- microblaze 304
- mn10300 305, removed in 4.17
- nds32 36, removed in 5.18
- nios2 36
- openrisc 36
- parisc 284
- score 36, removed in 4.17
- sh 304
- sparc 293
- sparc64 293
- tilegx 36, removed in 4.17
- tilepro 36, removed in 4.17
- xtensa 294
Get this as JSON: https://api.syscall.sh/v2/syscalls/metag/symlinkat?kernel=all