blob: 61129c4a4f42d0a923070174e08b8a22c7d5ba2a (
plain)
1
2
3
4
5
6
7
8
9
10
|
#include "asm/unistd_64.h" // for __NR_fallocate
#include <fcntl.h> // for posix_fallocate
#include <sys/types.h> // for off_t
#include <syscall.h> // for __syscall_4, syscall
int posix_fallocate(int fd, off_t offset, off_t len)
{
return syscall(fallocate, fd, 0, offset, len);
}
|