diff options
author | Matthew Dempsky <matthew@cvs.openbsd.org> | 2014-06-27 20:40:03 +0000 |
---|---|---|
committer | Matthew Dempsky <matthew@cvs.openbsd.org> | 2014-06-27 20:40:03 +0000 |
commit | c562329cd851bf1c2fb400825f3e7e693ae688dd (patch) | |
tree | 4cd4148358d5f1b00471e8c82b33cafd1a77b5e4 | |
parent | 0422f28a8b7439ef2b297b4705ca761cfb15b5f3 (diff) |
OpenBSD supports mmap() on block special files too.
-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 |