Module Name: src Committed By: uwe Date: Wed Jun 19 20:20:52 UTC 2019
Modified Files: src/lib/libc/sys: mmap.2 Log Message: Small markup fixes. To generate a diff of this commit: cvs rdiff -u -r1.52 -r1.53 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.52 src/lib/libc/sys/mmap.2:1.53 --- src/lib/libc/sys/mmap.2:1.52 Wed May 2 16:00:20 2018 +++ src/lib/libc/sys/mmap.2 Wed Jun 19 20:20:52 2019 @@ -1,4 +1,4 @@ -.\" $NetBSD: mmap.2,v 1.52 2018/05/02 16:00:20 christos Exp $ +.\" $NetBSD: mmap.2,v 1.53 2019/06/19 20:20:52 uwe Exp $ .\" .\" Copyright (c) 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -68,7 +68,7 @@ If is zero, an address will be selected by the system. The actual starting address of the region is returned. A successful -.Fa mmap +.Nm deletes any previous mapping in the allocated address range. .Pp The protections (region accessibility) are specified in the @@ -184,7 +184,9 @@ specified. If the specified address cannot be used, .Nm mmap will fail. -If MAP_FIXED is specified, +If +.Dv MAP_FIXED +is specified, .Fa addr must be a multiple of the pagesize. Use of this option is discouraged. @@ -225,7 +227,7 @@ had not been specified. If .Fa addr is -.Fa NULL , +.Dv NULL , this flag is ignored and the system will select a mapping address. .It Dv MAP_WIRED Lock the mapped region into memory as with @@ -270,7 +272,7 @@ is set to indicate the error. The symbol .Dv MAP_FAILED is defined in the header -.Ao Pa sys/mman.h Ac . +.In sys/mman.h . No successful return from .Fn mmap will return the value @@ -300,7 +302,7 @@ parameters and .Fa fd was not open for writing. .Pp -PAX mprotect restrictions prohibit the requested protection. +PaX mprotect restrictions prohibit the requested protection. .It Bq Er EBADF .Fa fd is not a valid open file descriptor. @@ -318,7 +320,8 @@ was specified and the parameter was not page aligned or was outside of the valid address range for a process. .Pp -.Dv MAP_ANON was specified and +.Dv MAP_ANON +was specified and .Fa fd was not \-1. .It Bq Er ENODEV