Re: mprotect

John Alvord (
Tue, 22 Apr 1997 12:52:00 -0400 (EDT)

On Tue, 22 Apr 1997, Kai Schulte wrote:
> that is aligned with a page boundary and extends the specified length to
> the nearest multiple of the page size. Chances are that malloc will not
> return a page-aligned pointer, so it will probably be invalid.

You can alway get page alignment by asking for another page worth and
doing a round operation to find the full page aligned address.

john alvord