diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2017-04-05 18:15:44 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2017-04-05 18:15:44 +0000 |
commit | 2a24af8706127913d791cf1272a14317d01608a6 (patch) | |
tree | f797a003cc3ed1106713e6257695627ed163ea57 /lib | |
parent | fefc90a99d5708759b81ae163724489ad480139a (diff) |
Not all devices support mmap, document EINVAL in this case too.
OK deraadt@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/mmap.2 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc/sys/mmap.2 b/lib/libc/sys/mmap.2 index b37f99d7cc0..51094a46967 100644 --- a/lib/libc/sys/mmap.2 +++ b/lib/libc/sys/mmap.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mmap.2,v 1.54 2017/03/11 22:58:46 jmc Exp $ +.\" $OpenBSD: mmap.2,v 1.55 2017/04/05 18:15:43 millert Exp $ .\" $NetBSD: mmap.2,v 1.5 1995/06/24 10:48:59 cgd Exp $ .\" .\" Copyright (c) 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)mmap.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: March 11 2017 $ +.Dd $Mdocdate: April 5 2017 $ .Dt MMAP 2 .Os .Sh NAME @@ -263,6 +263,10 @@ specified a region that would extend beyond the end of the address space. .Fa fd did not specify a regular, character special, or block special file. .It Bq Er EINVAL +.Fa fd +specified a character special or block special file and the underlying +device does not support memory mapping. +.It Bq Er EINVAL The allocation .Fa len was 0. |