syscall.sh / s390x / getcwd

getcwd

get current working directory

sys_getcwd(char *buf, unsigned long size)
number183 (0xb7)
abicommon
entry pointsys_getcwd
sinceLinux 4.16
man pagegetcwd(2)
sourceelixir.bootlin.com

Registers

registervalue
r1183, the syscall number
r2char *buf
r3unsigned long size
r2the return value

Then run svc 0 to enter the kernel.

Same syscall on other architectures

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