[Bug libc/959] New: posix/tst-mmap.c doesn't support 64 page size
hjl at lucon dot org
sourceware-bugzilla@sources.redhat.com
Thu May 19 20:04:00 GMT 2005
posix/tst-mmap.c has
char buf[1000];
int fd;
unsigned char *ptr;
size_t ps = sysconf (_SC_PAGESIZE);
...
for (c = 0; c < 20; ++c)
if (fwrite (buf, 1, sizeof (buf), fp) != sizeof (buf))
{
printf ("`fwrite' failed: %m\n");
return 1;
}
fflush (fp);
assert (ps + 1000 < c * sizeof (buf));
If page size is 64K, assert will fail.
--
Summary: posix/tst-mmap.c doesn't support 64 page size
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: gotom at debian dot or dot jp
ReportedBy: hjl at lucon dot org
CC: glibc-bugs at sources dot redhat dot com
http://sources.redhat.com/bugzilla/show_bug.cgi?id=959
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the Glibc-bugs
mailing list