syscall.sh / parisc / ftruncate

ftruncate

truncate a file to a specified length

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

Registers

registervalue
r2093, the syscall number
r26unsigned int fd
r25off_t length
r28the return value

Then run ble 0x100(%sr2, %r0) to enter the kernel.

Same syscall on other architectures

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