syscall.sh / s390x / ftruncate

ftruncate

truncate a file to a specified length

sys_ftruncate(unsigned int fd, off_t length)
number93 (0x5d)
abicommon
entry pointsys_ftruncate
sinceLinux 4.16
man pageftruncate(2)
sourceelixir.bootlin.com

Registers

registervalue
r193, the syscall number
r2unsigned int fd
r3off_t length
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/ftruncate