Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- size_t round_pagesize(size_t size)
- {
- size_t pagesize;
- size_t tot;
- pagesize = getpagesize();
- if (size <= pagesize)
- return (pagesize);
- tot = (size + (pagesize - (size % pagesize)));
- printf("%u - %u - %u", (uint) size, (uint) tot, (uint) pagesize);
- return (tot);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement