syscall.sh / loongarch64 / ftruncate

ftruncate

truncate a file to a specified length

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

Registers

registervalue
a746, the syscall number
a0unsigned int fd
a1off_t length
a0the return value

Then run syscall 0 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/loongarch64/ftruncate