summaryrefslogtreecommitdiff
path: root/lib/libc/sys
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2006-10-14 14:30:46 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2006-10-14 14:30:46 +0000
commit75d827d3a40f6b2a0621909470d59c4f23dc0df4 (patch)
treee92473eafeb3628f5d9df1ab56c3718ab0d59a49 /lib/libc/sys
parent2271c5e90704e3cde5dc3a6de99ee34af82b5b00 (diff)
freebsd -r1.21:
Document what "msgsz" argument really denotes; from brian candler (freebsd pr #101145) Don't say that "msgsz" can be less than 0, it cannot as it's unsigned (POSIX has the same bug); from ru@freebsd ok millert deraadt
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/msgsnd.28
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/sys/msgsnd.2 b/lib/libc/sys/msgsnd.2
index 466d4f60d5f..58cf6577a22 100644
--- a/lib/libc/sys/msgsnd.2
+++ b/lib/libc/sys/msgsnd.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: msgsnd.2,v 1.13 2006/08/07 20:00:01 jmc Exp $
+.\" $OpenBSD: msgsnd.2,v 1.14 2006/10/14 14:30:45 jmc Exp $
.\" $NetBSD: msgsnd.2,v 1.2 1997/03/27 08:20:36 mikel Exp $
.\"
.\" Copyright (c) 1995 Frank van der Linden
@@ -59,7 +59,9 @@ char mtext[1]; /* body of message */
is an integer greater than 0 that can be used for selecting messages (see
.Xr msgrcv 2 ) ;
.Va mtext
-is an array of bytes, with a size up to that of the system limit
+is an array of
+.Fa msgsz
+bytes, with a size between 0 and that of the system limit
.Pq Dv MSGMAX .
.Pp
If the number of bytes already on the message queue plus
@@ -136,7 +138,7 @@ was waiting for a resource to become available in order to deliver the
message.
.Pp
.Fa msgsz
-is less than 0, or greater than
+is greater than
.Va msg_qbytes .
.It Bq Er EACCES
The calling process does not have write access to the message queue.