From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Date: Thu, 15 Jul 2004 17:44:16 +0000 Subject: Re: [klibc] getpagesize / libsysfs broken with 0.148 Message-Id: <40F6C270.5090102@zytor.com> List-Id: References: <40F6457F.8050200@suse.de> In-Reply-To: <40F6457F.8050200@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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. -hpa ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_idG21&alloc_id040&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel