|author||Rich Felker <firstname.lastname@example.org>||2011-06-29 00:42:42 -0400|
|committer||Rich Felker <email@example.com>||2011-06-29 00:42:42 -0400|
work around linux bug in mprotect
per POSIX: The mprotect() function shall change the access protections to be that specified by prot for those whole pages containing any part of the address space of the process starting at address addr and continuing for len bytes. on the other hand, linux mprotect fails with EINVAL if the base address and/or length is not page-aligned, so we have to align them before making the syscall.
Diffstat (limited to 'src/prng/random.c')
0 files changed, 0 insertions, 0 deletions