syscall.sh / microblaze / ftruncate64

ftruncate64

truncate a file to a specified length

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

Registers

registervalue
r12194, the syscall number
r5unsigned int fd
r6loff_t length
r3the return value

Then run brki r14,8 to enter the kernel.

Same syscall on other architectures

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