1 #include <unistd.h> 2 #include "syscall.h" 3 truncate(const char * path,off_t length)4 int truncate(const char *path, off_t length) 5 { 6 return syscall(SYS_truncate, path, __SYSCALL_LL_O(length)); 7 } 8 9 weak_alias(truncate, truncate64); 10