syscall.sh / openrisc / chdir
chdir
change working directory
sys_chdir(const char *filename)
| number | 49 (0x31) |
|---|---|
| abi | common |
| entry point | sys_chdir |
| since | Linux 3.7 |
| man page | chdir(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r11 | 49, the syscall number |
r3 | const char *filename |
r11 | the return value |
Then run l.sys 1 to enter the kernel.
Same syscall on other architectures
- x64 80
- x86 12
- arm64 49
- arm 12
- riscv64 49
- x32 1073741904
- loongarch64 49
- ppc64 12
- ppc 12
- s390x 12
- mips64 5078
- mipsn32 6078
- mipso32 4012
- alpha 12
- arc 49
- csky 49
- hexagon 49
- m68k 12
- microblaze 12
- nios2 49
- parisc 12
- sh 12
- sparc 12
- sparc64 12
- xtensa 41
Get this as JSON: https://api.syscall.sh/v2/syscalls/openrisc/chdir