mirror of git://git.musl-libc.org/musl
mincore syscall wrapper
This commit is contained in:
parent
2416c63b81
commit
a660180c6a
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
Loading…
Reference in New Issue