[klibc] getpagesize / libsysfs broken with 0.148

H. Peter Anvin hpa at zytor.com
Thu Jul 15 11:44:16 PDT 2004

H. Peter Anvin wrote:
> *SIGH* So much for the claim that there actually existed a sane way to 
> get the page size across platforms.  This is particularly nasty because 
> of the definition of mmap2().
> The kernel headers don't work very well since page size is a 
> kernel-compile-time option on some platforms, e.g. MIPS, and dynamic on 
> some platforms.

OK, Arjan van der Ven suggested using the AT_PAGESZ vector entry in the 
ELF header; this provides a nice and uniform solution across all platforms.


More information about the klibc mailing list