1 | #define _GNU_SOURCE |
---|---|
2 | #include <fcntl.h> |
3 | #include <sys/syscall.h> |
4 | |
5 | extern long int syscall (long int __sysno, ...) __THROW; |
6 | |
7 | int fallocate(int fd, int mode, off_t base, off_t len) |
8 | { |
9 | return syscall(SYS_fallocate, fd, mode, base, len); |
10 | } |
11 |