Reworded text around PAGESIZE, noting also that

sysconf(_SC_PAGESIZE) can be used.
This commit is contained in:
Michael Kerrisk 2005-10-27 11:14:15 +00:00
parent d1a6e6ff04
commit 3582e90689
1 changed files with 4 additions and 2 deletions

View File

@ -276,9 +276,11 @@ and
.BR munlock ()
are available,
.B _POSIX_MEMLOCK_RANGE
is defined in <unistd.h> and the value
is defined in <unistd.h> and the number of bytes in a page
can be determined from the constant
.B PAGESIZE
from <limits.h> indicates the number of bytes per page.
(if defined) in <limits.h> or by calling
.IR sysconf(_SC_PAGESIZE) .
On POSIX systems on which
.BR mlockall ()