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

H . J . Lu hjl@lucon.org
Sat May 19 15:02:00 GMT 2001


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.



More information about the Libc-alpha mailing list