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