1 2 3 4 5 6 7 8
#include <fcntl.h> #include "syscall.h" int posix_fallocate(int fd, off_t base, off_t len) { return -__syscall(SYS_fallocate, fd, __SYSCALL_LL(base), __SYSCALL_LL(len)); }