syscall.sh / xtensa / ftruncate

ftruncate

truncate a file to a specified length

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

Registers

registervalue
a223, the syscall number
a6unsigned int fd
a3off_t length
a2the return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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