#include "asm/unistd_64.h" // for __NR_ftruncate #include // for __syscall_2, syscall #include // for ftruncate, off_t int ftruncate(int fildes, off_t length) { return syscall(ftruncate, fildes, length); }