From b72db3d1ed561d31d059acc7e9a5aacb8c5ee9ac Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sat, 8 Sep 2012 00:41:11 -0400 Subject: move fallocate syscall wrapper to linux-specific syscalls dir --- src/linux/fallocate.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/linux/fallocate.c (limited to 'src/linux') diff --git a/src/linux/fallocate.c b/src/linux/fallocate.c new file mode 100644 index 00000000..9146350e --- /dev/null +++ b/src/linux/fallocate.c @@ -0,0 +1,9 @@ +#define _GNU_SOURCE +#include +#include "syscall.h" + +int fallocate(int fd, int mode, off_t base, off_t len) +{ + return syscall(SYS_fallocate, fd, mode, __SYSCALL_LL_E(base), + __SYSCALL_LL_E(len)); +} -- cgit v1.2.1