This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Possible bug in sysdeps/unix/sysv/linux/powerpc/mmap64.c
- To: GNU C Library <libc-alpha at sourceware dot cygnus dot com>
- Subject: Possible bug in sysdeps/unix/sysv/linux/powerpc/mmap64.c
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Sat, 19 May 2001 15:02:22 -0700
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.