syscall.sh / arm64 / ftruncate

ftruncate

truncate a file to a specified length

sys_ftruncate(unsigned int fd, off_t length)
number46 (0x2e)
abi64
entry pointsys_ftruncate
sinceLinux 3.7
man pageftruncate(2)
sourceelixir.bootlin.com

Registers

registervalue
x846, the syscall number
x0unsigned int fd
x1off_t length
x0the 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/arm64/ftruncate