syscall.sh / alpha / ftruncate

ftruncate

truncate a file to a specified length

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

Registers

registervalue
v0130, the syscall number
a0unsigned int fd
a1off_t length
v0the return value

Then run callsys to enter the kernel.

Same syscall on other architectures

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