summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorjmc <jmc@openbsd.org>2008-04-05 14:56:39 +0000
committerjmc <jmc@openbsd.org>2008-04-05 14:56:39 +0000
commit4808c8b3395d1d0092b3c583c64a35c617b66084 (patch)
tree603a60b1b67bb08c1eb774124902164bd46267e9 /lib/libc
parenta little tidy up; (diff)
downloadwireguard-openbsd-4808c8b3395d1d0092b3c583c64a35c617b66084.tar.xz
wireguard-openbsd-4808c8b3395d1d0092b3c583c64a35c617b66084.zip
document EINVAL; from Dasn
ok millert
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/shmget.210
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/libc/sys/shmget.2 b/lib/libc/sys/shmget.2
index e50a1300941..dc7f8fdf3e6 100644
--- a/lib/libc/sys/shmget.2
+++ b/lib/libc/sys/shmget.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: shmget.2,v 1.15 2007/05/31 19:19:33 jmc Exp $
+.\" $OpenBSD: shmget.2,v 1.16 2008/04/05 14:56:39 jmc Exp $
.\" $NetBSD: shmget.2,v 1.2 1997/03/27 08:20:39 mikel Exp $
.\"
.\" Copyright (c) 1995 Frank van der Linden
@@ -30,7 +30,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"/
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: April 5 2008 $
.Dt SHMGET 2
.Os
.Sh NAME
@@ -115,6 +115,12 @@ are set in
.Fa shmflg ,
and a shared memory segment is already associated with
.Fa key .
+.It Bq Er EINVAL
+A shared memory segment is already associated with
+.Fa key
+and its
+.Fa size
+is less than the requested size.
.It Bq Er ENOSPC
A new shared memory identifier could not be created because the system limit
for the number of shared memory identifiers has been reached.