On Thu, Oct 08, 2009 at 01:40:08PM +0200, Guillem Jover wrote: > SUSv2 marked getpagesize() LEGACY, and POSIX.1-2001 dropped it. Some > systems do not even have it (e.g. HP-UX). Use the more portable > sysconf(_SC_PAGESIZE) call instead. commit d144727bc3e5f77692fc2d6b5c1dbf5d05fc495c Author: maximilian attems <max@xxxxxxx> Date: Wed Jul 30 11:46:32 2008 +0200 use getpagesize() getpagesize() is said to be more portable than sysconf(_SC_PAGESIZE) to anything Linux. this patch helps klibc porting effort as the sysconf multiplex API is not supported there. if you *really* want to port util-linux-ng to any other OS you need to add a fallback for getpagesize() to lib/. Note that portability to non-Linux system is not our primary goal. Karel -- Karel Zak <kzak@xxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html