Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/sys Document SIGBUS per ToG.
details: https://anonhg.NetBSD.org/src/rev/a72db5887e7a
branches: trunk
changeset: 336375:a72db5887e7a
user: christos <christos%NetBSD.org@localhost>
date: Fri Feb 27 16:18:00 2015 +0000
description:
Document SIGBUS per ToG.
diffstat:
lib/libc/sys/mmap.2 | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diffs (33 lines):
diff -r b23e7c3c73b9 -r a72db5887e7a lib/libc/sys/mmap.2
--- a/lib/libc/sys/mmap.2 Fri Feb 27 16:09:19 2015 +0000
+++ b/lib/libc/sys/mmap.2 Fri Feb 27 16:18:00 2015 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: mmap.2,v 1.47 2012/01/05 15:19:52 reinoud Exp $
+.\" $NetBSD: mmap.2,v 1.48 2015/02/27 16:18:00 christos Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)mmap.2 8.4 (Berkeley) 5/11/95
.\"
-.Dd December 20, 2011
+.Dd February 27, 2015
.Dt MMAP 2
.Os
.Sh NAME
@@ -138,6 +138,14 @@
The mapped memory will be zero filled.
.It Dv MAP_FILE
Mapped from a regular file or character-special device memory.
+Read accesses beyond the end of of the file or device but less
+than the current page size will be zero-filled.
+Write accesses beyond the end of the file or device but less
+than the current page size will not affect the file or device.
+References beyond the end of file that are beyond the current
+page size will result in the delivery of
+.Dv SIGBUS
+signal.
.It Dv MAP_FIXED
Do not permit the system to select a different address than the one
specified.
Home |
Main Index |
Thread Index |
Old Index