diff options
author | 2014-06-27 20:40:02 +0000 | |
---|---|---|
committer | 2014-06-27 20:40:02 +0000 | |
commit | dd1d8edad4e794f2c763d8776706617bad3b5893 (patch) | |
tree | a5ff16ef5366aa3be8ec7d3087c1bdf27ece48d6 /lib | |
parent | Avoid buffer overflow on max line length by ending string with just one \0. (diff) | |
download | wireguard-openbsd-dd1d8edad4e794f2c763d8776706617bad3b5893.tar.xz wireguard-openbsd-dd1d8edad4e794f2c763d8776706617bad3b5893.zip |
OpenBSD supports mmap() on block special files too.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/mmap.2 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/sys/mmap.2 b/lib/libc/sys/mmap.2 index fa28d108e6f..dbdd7e68fb9 100644 --- a/lib/libc/sys/mmap.2 +++ b/lib/libc/sys/mmap.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mmap.2,v 1.46 2014/06/27 19:26:36 matthew Exp $ +.\" $OpenBSD: mmap.2,v 1.47 2014/06/27 20:40:02 matthew Exp $ .\" $NetBSD: mmap.2,v 1.5 1995/06/24 10:48:59 cgd Exp $ .\" .\" Copyright (c) 1991, 1993 @@ -166,7 +166,9 @@ modifications made by others are not visible. this behaves just like .Dv MAP_PRIVATE ). .It Dv MAP_FILE -Mapped from a regular file or character-special device memory. +Mapped from a regular file, character special file, or block special file +specified by file descriptor +.Fa fd . (On .Ox and all systems conforming to @@ -259,7 +261,7 @@ and specified a region that would extend beyond the end of the address space. .It Bq Er EINVAL .Fa fd -did not reference a regular or character special file. +did not specify a regular, character special, or block special file. .It Bq Er EINVAL The allocation .Fa len |