This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Possible bug in sysdeps/unix/sysv/linux/powerpc/mmap64.c


sysdeps/unix/sysv/linux/powerpc/mmap64.c has

/* This is always the constant 12 for this routine, even if the actual
   page size is larger.  */
#define PAGE_SHIFT 12

However, posix/tst-mmap.c uses sysconf (_SC_PAGESIZE) to get the
page size used to test mmap. If sysconf (_SC_PAGESIZE) > (1 << 12),
mmap will work and the test will fail. Could someone please tell
me why PAGE_SHIFT is hardcoded to 12?


H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]