syscall.sh / csky / truncate64

truncate64

truncate a file to a specified length

sys_truncate64(const char *path, loff_t length)
number45 (0x2d)
abi32
entry pointsys_truncate64
sinceLinux 4.20
man pagetruncate64(2)
sourceelixir.bootlin.com

Registers

registervalue
r745, the syscall number
a0const char *path
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/truncate64