syscall.sh / mipso32 / ftruncate

ftruncate

truncate a file to a specified length

sys_ftruncate(unsigned int fd, off_t length)
number4093 (0xffd)
abio32
entry pointsys_ftruncate
sinceLinux 5.0
man pageftruncate(2)
sourceelixir.bootlin.com

Registers

registervalue
v04093, the syscall number
a0unsigned int fd
a1off_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/ftruncate