syscall.sh / sh / fchdir

fchdir

change working directory

sys_fchdir(unsigned int fd)
number133 (0x85)
abicommon
entry pointsys_fchdir
sinceLinux 5.0
man pagefchdir(2)
sourceelixir.bootlin.com

Registers

registervalue
r3133, the syscall number
r4unsigned int fd
r0the return value

Then run trapa #31 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/sh/fchdir