mincore syscall wrapper

This commit is contained in:
Rich Felker 2012-09-09 16:37:19 -04:00
parent 2416c63b81
commit a660180c6a
2 changed files with 9 additions and 0 deletions

View File

@ -33,6 +33,7 @@ void *mremap (void *, size_t, size_t, int, ...);
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
int madvise (void *, size_t, int);
int mincore (void *, size_t, unsigned char *);
#endif
int shm_open (const char *, int, mode_t);

8
src/mman/mincore.c Normal file
View File

@ -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);
}