syscall.sh / csky / ftruncate64

ftruncate64

truncate a file to a specified length

sys_ftruncate64(unsigned int fd, loff_t length)
number46 (0x2e)
abi32
entry pointsys_ftruncate64
sinceLinux 4.20
man pageftruncate64(2)
sourceelixir.bootlin.com

Registers

registervalue
r746, the syscall number
a0unsigned int fd
a1loff_t length
a0the return value

Then run trap 0 to enter the kernel.

Same syscall on other architectures

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