syscall.sh / sparc / ftruncate

ftruncate

truncate a file to a specified length

sys_ftruncate(unsigned int fd, off_t length)
number130 (0x82)
abicommon
entry pointsys_ftruncate
sinceLinux 5.0
man pageftruncate(2)
sourceelixir.bootlin.com

Registers

registervalue
g1130, the syscall number
o0unsigned int fd
o1off_t length
o0the return value

Then run t 0x10 to enter the kernel.

Same syscall on other architectures

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