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



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