[klibc] syconf(_SC_PAGESIZE) versus getpagesize()

Karel Zak kzak at redhat.com
Wed Jul 30 02:10:43 PDT 2008


On Tue, Jul 29, 2008 at 11:02:40PM +0200, maximilian attems wrote:
> hello karel,
> 
> thanks a lot for the klibc portability merges.
> 
> current HEAD klibc failure:
> mkswap.c: In function ‘init_signature_page’:
> mkswap.c:148: error: ‘_SC_PAGESIZE’ undeclared (first use in this function)
> 
> although POSIX encourages sysconf() could util-linux use getpagesize() ?

 Yes, probably nobody sane uses libc4, libc5 and glibc 2.0. Go ahead.

        $ grep -rl _SC_PAGESIZE *
        disk-utils/fsck.cramfs.c
        disk-utils/mkswap.c
        disk-utils/mkfs.cramfs.c
        sys-utils/ipcs.c
        tests/helpers/test_sysinfo.c

    Karel

-- 
 Karel Zak  <kzak at redhat.com>



More information about the klibc mailing list