This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/959] New: posix/tst-mmap.c doesn't support 64 page size
- From: "hjl at lucon dot org" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 19 May 2005 19:56:33 -0000
- Subject: [Bug libc/959] New: posix/tst-mmap.c doesn't support 64 page size
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
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.