add syscall wrappers for posix_fadvise, posix_fallocate

This commit is contained in:
Rich Felker 2011-04-20 15:20:22 -04:00
commit 1c76683cb4
4 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,8 @@
#include <fcntl.h>
#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);
}

View file

@ -0,0 +1,8 @@
#include <fcntl.h>
#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));
}