summaryrefslogtreecommitdiff
path: root/05/musl-0.6.0/src/mman/mprotect.c
blob: 11d5e23110156e60c71a217a484fdee44d8a3c21 (plain)
1
2
3
4
5
6
7
#include <sys/mman.h>
#include "syscall.h"

int mprotect(void *addr, size_t len, int prot)
{
	return syscall3(__NR_mprotect, (long)addr, len, prot);
}