Other mapping functions
returns the system-dependent size of a memory page.
applications should not embed any constants specifying the size of a page, and
instead should make use of
to obtain that information.
Note that it is not unusual for page sizes to
vary even among implementations of the same instruction set, increasing the
importance of using this function for portability.
mprotect(caddr_t addr, size_t len, int prot);
has the effect of assigning protection
to all pages in the range
[addr, addr + len).
The protection assigned can not exceed the permissions allowed on the
For instance, a read-only mapping to a file that was
opened for read-only access can not be set to be writable with
(unless the mapping is of the
type, in which case the write access is permitted since the writes will modify
copies of pages from the object, and not the object itself).
Address space layout
Memory page residency
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004