Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/crash add MAP_PRIVATE
details: https://anonhg.NetBSD.org/src/rev/8a6787dc2fe5
branches: trunk
changeset: 785355:8a6787dc2fe5
user: christos <christos%NetBSD.org@localhost>
date: Sun Mar 10 19:32:29 2013 +0000
description:
add MAP_PRIVATE
diffstat:
usr.sbin/crash/crash.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r b092adeb7d39 -r 8a6787dc2fe5 usr.sbin/crash/crash.c
--- a/usr.sbin/crash/crash.c Sun Mar 10 17:55:42 2013 +0000
+++ b/usr.sbin/crash/crash.c Sun Mar 10 19:32:29 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: crash.c,v 1.4 2011/08/31 13:32:36 joerg Exp $ */
+/* $NetBSD: crash.c,v 1.5 2013/03/10 19:32:29 christos Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: crash.c,v 1.4 2011/08/31 13:32:36 joerg Exp $");
+__RCSID("$NetBSD: crash.c,v 1.5 2013/03/10 19:32:29 christos Exp $");
#endif /* not lint */
#include <ddb/ddb.h>
@@ -390,7 +390,7 @@
}
} else {
sz = sb.st_size;
- elf = mmap(NULL, sz, PROT_READ, MAP_FILE, fd, 0);
+ elf = mmap(NULL, sz, PROT_READ, MAP_PRIVATE|MAP_FILE, fd, 0);
if (elf == MAP_FAILED) {
err(EXIT_FAILURE, "mmap `%s'", nlistf);
}
Home |
Main Index |
Thread Index |
Old Index