diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-09-09 16:37:19 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-09-09 16:37:19 -0400 |
commit | a660180c6a93681c6efb54fb5826c08d4df60208 (patch) | |
tree | b44ffaf951f7bb76b913130097e53882cdc35d7b /src/mman/mincore.c | |
parent | 2416c63b81f7f79ea781725cf1117c191775c699 (diff) | |
download | musl-a660180c6a93681c6efb54fb5826c08d4df60208.tar.gz musl-a660180c6a93681c6efb54fb5826c08d4df60208.tar.bz2 musl-a660180c6a93681c6efb54fb5826c08d4df60208.tar.xz musl-a660180c6a93681c6efb54fb5826c08d4df60208.zip |
mincore syscall wrapper
Diffstat (limited to 'src/mman/mincore.c')
-rw-r--r-- | src/mman/mincore.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mman/mincore.c b/src/mman/mincore.c new file mode 100644 index 00000000..4bb19f85 --- /dev/null +++ b/src/mman/mincore.c @@ -0,0 +1,8 @@ +#define _GNU_SOURCE +#include <sys/mman.h> +#include "syscall.h" + +int mincore (void *addr, size_t len, unsigned char *vec) +{ + return syscall(SYS_mincore, addr, len, vec); +} |