Re: msync - can someone shed some light please?

Bo Lindbergh <[email protected]> Sat, 14 Jun 2025 09:15:58 +0200
Newsgroups gmane.network.inn
Message-ID <[email protected]>
Quoth Richard Kettlewell <[email protected]>:
> Anyway I think it should be:
> 
>  char *end = (char *) (((uintptr_t) p + length + pagesize - 1) & mask);
> 
> ...so that we end up to the round of the allocation, and never any further.

I concur.  This is the standard integer arithmetic idiom for rounding up
to a multiple of some value.


/Bo Lindbergh

-- 
inn-workers mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/inn-workers