syscall.sh / openrisc / linkat
linkat
make a new name for a file
sys_linkat(int olddfd, const char *oldname, int newdfd, const char *newname, int flags)
| number | 37 (0x25) |
|---|---|
| abi | common |
| entry point | sys_linkat |
| since | Linux 3.7 |
| man page | linkat(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r11 | 37, the syscall number |
r3 | int olddfd |
r4 | const char *oldname |
r5 | int newdfd |
r6 | const char *newname |
r7 | int flags |
r11 | the return value |
Then run l.sys 1 to enter the kernel.
Same syscall on other architectures
- x64 265
- x86 303
- arm64 37
- arm 330
- riscv64 37
- x32 1073742089
- loongarch64 37
- ppc64 294
- ppc 294
- s390x 296
- mips64 5255
- mipsn32 6259
- mipso32 4296
- alpha 458
- arc 37
- csky 37
- hexagon 37
- m68k 296
- microblaze 303
- nios2 37
- parisc 283
- sh 303
- sparc 292
- sparc64 292
- xtensa 293
Get this as JSON: https://api.syscall.sh/v2/syscalls/openrisc/linkat