1 2 3 4 5 6 7
#include <fcntl.h> #include <syscall.h> int posix_fallocate(int fd, off_t offset, off_t len) { return syscall(fallocate, fd, 0, offset, len); }