Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/regress/sys/uvm/mmap Pull up revision 1.14 (requested b...
details: https://anonhg.NetBSD.org/src/rev/4324d1290774
branches: netbsd-1-6
changeset: 527730:4324d1290774
user: lukem <lukem%NetBSD.org@localhost>
date: Wed Jun 05 03:28:55 2002 +0000
description:
Pull up revision 1.14 (requested by thorpej in ticket #162):
Fix off-by one when computing page count in the test file.
diffstat:
regress/sys/uvm/mmap/mmap.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r 7056ac5f9985 -r 4324d1290774 regress/sys/uvm/mmap/mmap.c
--- a/regress/sys/uvm/mmap/mmap.c Wed Jun 05 03:26:27 2002 +0000
+++ b/regress/sys/uvm/mmap/mmap.c Wed Jun 05 03:28:55 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mmap.c,v 1.13 2002/04/07 11:25:40 wiz Exp $ */
+/* $NetBSD: mmap.c,v 1.13.2.1 2002/06/05 03:28:55 lukem Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -119,7 +119,9 @@
(void) close(fd);
- npgs = (st.st_size / pgsize) + 1;
+ npgs = (st.st_size / pgsize);
+ if (st.st_size % pgsize != 0)
+ npgs++;
printf(" CHECKING RESIDENCY\n");
Home |
Main Index |
Thread Index |
Old Index