diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-09-16 22:26:23 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-09-16 22:26:23 -0400 |
commit | 662da62eb7cba808e98fe8ea65f6bbf55fa50f1e (patch) | |
tree | 95e2e2b286336f5cde1c75e86689236c0e5a2ccf /src/linux/remap_file_pages.c | |
parent | bd261bf25e000a1b754616db0b2ee1e14835a75d (diff) | |
download | musl-662da62eb7cba808e98fe8ea65f6bbf55fa50f1e.tar.gz |
add clock_adjtime, remap_file_pages, and syncfs syscall wrappers
patch by Justin Cormack, with slight modification
Diffstat (limited to 'src/linux/remap_file_pages.c')
-rw-r--r-- | src/linux/remap_file_pages.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/linux/remap_file_pages.c b/src/linux/remap_file_pages.c new file mode 100644 index 00000000..f95c4cc3 --- /dev/null +++ b/src/linux/remap_file_pages.c @@ -0,0 +1,8 @@ +#define _GNU_SOURCE +#include <sys/mman.h> +#include "syscall.h" + +int remap_file_pages(void *addr, size_t size, int prot, ssize_t pgoff, int flags) +{ + return syscall(SYS_remap_file_pages, addr, size, prot, pgoff, flags); +} |