summaryrefslogtreecommitdiff
path: root/lib/libc/fcntl/posix_fallocate.c
blob: f1d1e5ba8bd214a466de0cee48025a3c704e664b (plain)
1
2
3
4
5
6
7
8
9
10


#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);
}