syscall.sh / arm / ftruncate64

ftruncate64

truncate a file to a specified length

sys_ftruncate64(unsigned int fd, loff_t length)
number194 (0xc2)
abicommon
entry pointsys_ftruncate64
sinceLinux 4.10
man pageftruncate64(2)
sourceelixir.bootlin.com

Registers

registervalue
r7194, the syscall number
r0unsigned int fd
r1loff_t length
r0the return value

Then run svc #0 to enter the kernel.

Same syscall on other architectures

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