Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/usr.bin/cmp Pull up rev. 1.10 (approved by thorpej):
details: https://anonhg.NetBSD.org/src/rev/de75e820d006
branches: netbsd-1-5
changeset: 489234:de75e820d006
user: enami <enami%NetBSD.org@localhost>
date: Thu Aug 24 06:54:29 2000 +0000
description:
Pull up rev. 1.10 (approved by thorpej):
date: 2000/07/27 02:58:57; author: mycroft; state: Exp; lines: +4 -4
Use MAP_SHARED.
diffstat:
usr.bin/cmp/regular.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (33 lines):
diff -r 830e2b01bf49 -r de75e820d006 usr.bin/cmp/regular.c
--- a/usr.bin/cmp/regular.c Thu Aug 24 06:44:43 2000 +0000
+++ b/usr.bin/cmp/regular.c Thu Aug 24 06:54:29 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: regular.c,v 1.8.4.1 2000/07/20 19:06:09 jdolecek Exp $ */
+/* $NetBSD: regular.c,v 1.8.4.2 2000/08/24 06:54:29 enami Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)regular.c 8.3 (Berkeley) 4/2/94";
#else
-__RCSID("$NetBSD: regular.c,v 1.8.4.1 2000/07/20 19:06:09 jdolecek Exp $");
+__RCSID("$NetBSD: regular.c,v 1.8.4.2 2000/08/24 06:54:29 enami Exp $");
#endif
#endif /* not lint */
@@ -82,12 +82,12 @@
}
if ((p1 = (u_char *)mmap(NULL, (size_t)length,
- PROT_READ, MAP_FILE, fd1, skip1)) == MAP_FAILED)
+ PROT_READ, MAP_FILE|MAP_SHARED, fd1, skip1)) == MAP_FAILED)
goto mmap_failed;
(void)madvise(p1, (size_t)length, MADV_SEQUENTIAL);
if ((p2 = (u_char *)mmap(NULL, (size_t)length,
- PROT_READ, MAP_FILE, fd2, skip2)) == MAP_FAILED) {
+ PROT_READ, MAP_FILE|MAP_SHARED, fd2, skip2)) == MAP_FAILED) {
munmap(p1, (size_t) length);
goto mmap_failed;
}
Home |
Main Index |
Thread Index |
Old Index