syscall.sh / x32 / getcwd

getcwd

get current working directory

sys_getcwd(char *buf, unsigned long size)
number1073741903 (0x4000004f)
abicommon
entry pointsys_getcwd
sinceLinux 3.4
man pagegetcwd(2)
sourceelixir.bootlin.com

Registers

registervalue
rax1073741903, the syscall number
rdichar *buf
rsiunsigned long size
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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