syscall.sh / openrisc / ftruncate64

ftruncate64

truncate a file to a specified length

sys_ftruncate64(unsigned int fd, loff_t length)
number46 (0x2e)
abi32
entry pointsys_ftruncate64
sinceLinux 3.7
man pageftruncate64(2)
sourceelixir.bootlin.com

Registers

registervalue
r1146, the syscall number
r3unsigned int fd
r4loff_t length
r11the return value

Then run l.sys 1 to enter the kernel.

Same syscall on other architectures

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