summaryrefslogtreecommitdiff
path: root/lib/libc/mman/mprotect.c
blob: bc97ae4ae201d8694f512b3ff50c0ecc772d2d5a (plain)
1
2
3
4
5
6
7
8
9


#include <stddef.h>  // for size_t
#include <syscall.h> // for __syscall_3, syscall

int mprotect(void *addr, size_t len, int prot)
{
	return syscall(mprotect, addr, len, prot);
}