syscall.sh / mips64 / getcwd
getcwd
get current working directory
sys_getcwd(char *buf, unsigned long size)
| number | 5077 (0x13d5) |
|---|---|
| abi | n64 |
| entry point | sys_getcwd |
| since | Linux 5.0 |
| man page | getcwd(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
v0 | 5077, the syscall number |
a0 | char *buf |
a1 | unsigned long size |
v0 | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 79
- x86 183
- arm64 17
- arm 183
- riscv64 17
- x32 1073741903
- loongarch64 17
- ppc64 182
- ppc 182
- s390x 183
- mipsn32 6077
- mipso32 4203
- alpha 367
- arc 17
- csky 17
- hexagon 17
- m68k 183
- microblaze 183
- nios2 17
- openrisc 17
- parisc 110
- sh 183
- sparc 119
- sparc64 119
- xtensa 43
Get this as JSON: https://api.syscall.sh/v2/syscalls/mips64/getcwd