diff options
author | 2003-04-18 23:50:32 +0000 | |
---|---|---|
committer | 2003-04-18 23:50:32 +0000 | |
commit | 56ad411cf7f813c3262af2493c43b90ac962abf3 (patch) | |
tree | 1cf2507673219314079b3c7a0f650e6d65fc9635 /lib/libc/sys | |
parent | Return EINVAL if MAP_FIXED was specified but was not available. ok tedu@ (diff) | |
download | wireguard-openbsd-56ad411cf7f813c3262af2493c43b90ac962abf3.tar.xz wireguard-openbsd-56ad411cf7f813c3262af2493c43b90ac962abf3.zip |
Document that mquery() returns EINVAL if request memory was not available
when MAP_FIXED is specified. ok tedu@
Diffstat (limited to 'lib/libc/sys')
-rw-r--r-- | lib/libc/sys/mquery.2 | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/libc/sys/mquery.2 b/lib/libc/sys/mquery.2 index a3d276cc967..651ef4de035 100644 --- a/lib/libc/sys/mquery.2 +++ b/lib/libc/sys/mquery.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mquery.2,v 1.2 2003/04/17 18:38:01 millert Exp $ +.\" $OpenBSD: mquery.2,v 1.3 2003/04/18 23:50:32 drahn Exp $ .\" .\" Copyright (c) 2003 Artur Grabowski <art@openbsd.org> .\" All rights reserved. @@ -97,8 +97,7 @@ When no such area can be found .Fn mquery will return \-1 and set .Va errno -to -.Dv ENOMEM . +to indicate the error. .Sh RETURN VALUES When a memory range satisfying the request is found .Fn mquery @@ -109,8 +108,8 @@ is set to indicate the error. .Sh ERRORS .Fn mquery will fail if: -.Bl -tag -width ENOMEM -.It Bq Er ENOMEM +.Bl -tag -width EINVAL +.It Bq Er EINVAL .Dv MAP_FIXED was specified and the requested memory area is unavailable. .It Bq Er ENOMEM |