syscall.sh / arm64 / truncate

truncate

truncate a file to a specified length

sys_truncate(const char *path, long length)
number45 (0x2d)
abi64
entry pointsys_truncate
sinceLinux 3.7
man pagetruncate(2)
sourceelixir.bootlin.com

Registers

registervalue
x845, the syscall number
x0const char *path
x1long 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/truncate