[PATCH v3 02/29] Prepare for the addition of the <sys/pagesize.h> header

Paul Eggert eggert@cs.ucla.edu
Sun Sep 29 19:06:34 GMT 2024


On 2024-09-29 08:49, Florian Weimer wrote:
> +#define PAGE_SIZE_MIN (1UL << __GLIBC_PAGE_SHIFT_MIN)
> +#define PAGE_SIZE_MAX (1UL << __GLIBC_PAGE_SHIFT_MAX)

Shouldn't these have the same type as sysconf (_SC_PAGESIZE)? It seems 
odd to introduce yet another type for page sizes.

(I write this as a longtime fan of signed types due to the better 
checking for them, so yeah, I'm biased....)


More information about the Libc-alpha mailing list