syscall.sh / ppc / ftruncate64

ftruncate64

truncate a file to a specified length

sys_ppc_ftruncate64(unsigned int fd, u32 reg4, unsigned long len1, unsigned long len2)
number194 (0xc2)
abi32
entry pointsys_ppc_ftruncate64
sinceLinux 5.0
man pageftruncate64(2)
sourceelixir.bootlin.com

Registers

registervalue
r0194, the syscall number
r3unsigned int fd
r4u32 reg4
r5unsigned long len1
r6unsigned long len2
r3the return value

Then run sc to enter the kernel.

Same syscall on other architectures

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