blob: ae766d5e5fa4e63a547babe811e39efb2e69e2d6 [file] [log] [blame]
Rich Felkeradb88e72012-09-08 00:33:04 -04001#define _GNU_SOURCE
2#include <fcntl.h>
3#include "syscall.h"
Rich Felker1e7a5812014-01-06 21:31:17 -05004#include "libc.h"
Rich Felkeradb88e72012-09-08 00:33:04 -04005
6int fallocate(int fd, int mode, off_t base, off_t len)
7{
8 return syscall(SYS_fallocate, fd, mode, __SYSCALL_LL_E(base),
9 __SYSCALL_LL_E(len));
10}
Rich Felker1e7a5812014-01-06 21:31:17 -050011
12#undef fallocate64
13LFS64(fallocate);