summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/fcntl/posix_fallocate.c
blob: c57a24aef4d9aa7da437bac0d4ec32522c8cfc01 (plain)
1
2
3
4
5
6
7
8
9
10
#include <fcntl.h>
#include "syscall.h"

int posix_fallocate(int fd, off_t base, off_t len)
{
	return -__syscall(SYS_fallocate, fd, 0, __SYSCALL_LL_E(base),
		__SYSCALL_LL_E(len));
}

weak_alias(posix_fallocate, posix_fallocate64);