Module Name: src Committed By: christos Date: Fri Feb 27 16:18:00 UTC 2015
Modified Files: src/lib/libc/sys: mmap.2 Log Message: Document SIGBUS per ToG. To generate a diff of this commit: cvs rdiff -u -r1.47 -r1.48 src/lib/libc/sys/mmap.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/sys/mmap.2 diff -u src/lib/libc/sys/mmap.2:1.47 src/lib/libc/sys/mmap.2:1.48 --- src/lib/libc/sys/mmap.2:1.47 Thu Jan 5 10:19:52 2012 +++ src/lib/libc/sys/mmap.2 Fri Feb 27 11:18:00 2015 @@ -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 @@ regions, and must be specified as \-1. 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.