Skip to content
BSD syscall#74

svc · unix #74

mprotect

Changes the protection flags (RWX) of a memory region.

Prototype

int mprotect(caddr_t addr, size_t len, int prot);

Returns: int

Arguments

NameTypeDirDescription
addrcaddr_t-
lensize_t-
protint-

Version history

XNU tagmacOS#
xnu-1456.1.26macOS 10.6 Snow Leopard74
xnu-1486.2.1174
xnu-1504.15.374
xnu-1504.3.1274
xnu-1504.7.474
xnu-1504.9.1774
xnu-1504.9.2674
xnu-1504.9.3774

Notes

No prose documentation yet.