diff options
author | maximilian attems | 2008-07-30 11:46:32 +0200 |
---|---|---|
committer | Karel Zak | 2008-07-30 13:26:58 +0200 |
commit | d144727bc3e5f77692fc2d6b5c1dbf5d05fc495c (patch) | |
tree | 6d0e94d31cc05862eb171216a73e9c917a63cd0b /sys-utils/ipcs.c | |
parent | mount: retry on ENOMEDIUM (diff) | |
download | kernel-qcow2-util-linux-d144727bc3e5f77692fc2d6b5c1dbf5d05fc495c.tar.gz kernel-qcow2-util-linux-d144727bc3e5f77692fc2d6b5c1dbf5d05fc495c.tar.xz kernel-qcow2-util-linux-d144727bc3e5f77692fc2d6b5c1dbf5d05fc495c.zip |
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.
also remove comment of the switch to sysconf in mkswap.c.
Signed-off-by: maximilian attems <max@stro.at>
Diffstat (limited to 'sys-utils/ipcs.c')
-rw-r--r-- | sys-utils/ipcs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/ipcs.c b/sys-utils/ipcs.c index 1b3400c18..3738d89b0 100644 --- a/sys-utils/ipcs.c +++ b/sys-utils/ipcs.c @@ -281,7 +281,7 @@ void do_shm (char format) printf (_("max seg size (kbytes) = %lu\n"), (unsigned long) (shminfo.shmmax >> 10)); printf (_("max total shared memory (kbytes) = %llu\n"), - sysconf(_SC_PAGESIZE) / 1024 * (unsigned long long) shminfo.shmall); + getpagesize() / 1024 * (unsigned long long) shminfo.shmall); printf (_("min seg size (bytes) = %lu\n"), (unsigned long) shminfo.shmmin); return; |