X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Ffcntl%2Fposix_fallocate.c;fp=src%2Ffcntl%2Fposix_fallocate.c;h=d6680c142c35ba51159ad767a155a898dd836503;hb=1c76683cb4377a481dc1085b63170bb276512267;hp=0000000000000000000000000000000000000000;hpb=145c05345d6172eef1c8c274d696dbe1c01b88ab;p=musl diff --git a/src/fcntl/posix_fallocate.c b/src/fcntl/posix_fallocate.c new file mode 100644 index 00000000..d6680c14 --- /dev/null +++ b/src/fcntl/posix_fallocate.c @@ -0,0 +1,8 @@ +#include +#include "syscall.h" + +int posix_fallocate(int fd, off_t base, off_t len) +{ + return -__syscall(SYS_fallocate, fd, __SYSCALL_LL(base), + __SYSCALL_LL(len)); +}