aboutsummaryrefslogtreecommitdiff
path: root/posix/tst-mmap.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-12-22 20:10:10 +0000
committerUlrich Drepper <drepper@redhat.com>2004-12-22 20:10:10 +0000
commita334319f6530564d22e775935d9c91663623a1b4 (patch)
treeb5877475619e4c938e98757d518bb1e9cbead751 /posix/tst-mmap.c
parent0ecb606cb6cf65de1d9fc8a919bceb4be476c602 (diff)
downloadglibc-a334319f6530564d22e775935d9c91663623a1b4.tar
glibc-a334319f6530564d22e775935d9c91663623a1b4.tar.gz
glibc-a334319f6530564d22e775935d9c91663623a1b4.tar.bz2
glibc-a334319f6530564d22e775935d9c91663623a1b4.zip
(CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.
Diffstat (limited to 'posix/tst-mmap.c')
-rw-r--r--posix/tst-mmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/posix/tst-mmap.c b/posix/tst-mmap.c
index c03acf5e16..355a784124 100644
--- a/posix/tst-mmap.c
+++ b/posix/tst-mmap.c
@@ -30,7 +30,7 @@ main (void)
for (c = 0; c < sizeof (buf); ++c)
buf[c] = '0' + (c % 10);
- for (c = 0; c < (ps * 4) / sizeof (buf); ++c)
+ for (c = 0; c < 20; ++c)
if (fwrite (buf, 1, sizeof (buf), fp) != sizeof (buf))
{
printf ("`fwrite' failed: %m\n");
@@ -40,7 +40,7 @@ main (void)
assert (ps + 1000 < c * sizeof (buf));
/* First try something which is not allowed: map at an offset which is
- not modulo the pagesize. */
+ not module the pagesize. */
ptr = mmap (NULL, 1000, PROT_READ, MAP_SHARED, fd, ps - 1);
if (ptr != MAP_FAILED)
{