From: Rich Felker Date: Sat, 8 Sep 2012 04:41:11 +0000 (-0400) Subject: move fallocate syscall wrapper to linux-specific syscalls dir X-Git-Tag: v0.9.5~40 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b72db3d1ed561d31d059acc7e9a5aacb8c5ee9ac;p=oweals%2Fmusl.git move fallocate syscall wrapper to linux-specific syscalls dir --- diff --git a/src/fcntl/fallocate.c b/src/fcntl/fallocate.c deleted file mode 100644 index 9146350e..00000000 --- a/src/fcntl/fallocate.c +++ /dev/null @@ -1,9 +0,0 @@ -#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)); -} 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)); +}