syscall.sh / mipso32 / ftruncate64

ftruncate64

truncate a file to a specified length

sys_ftruncate64(unsigned int fd, loff_t length)
number4212 (0x1074)
abio32
entry pointsys_ftruncate64
sinceLinux 5.0
man pageftruncate64(2)
sourceelixir.bootlin.com

Registers

registervalue
v04212, the syscall number
a0unsigned int fd
a1loff_t length
v0the return value

Then run syscall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/mipso32/ftruncate64