summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2006-10-12 11:42:41 +0000
committerru <ru@FreeBSD.org>2006-10-12 11:42:41 +0000
commitdc9cd76103b00c625db6314b6e5c1aa21bb11a55 (patch)
tree123c78353b5cfe5199bc1c6b327d34e66c61fda9
parentacf34672644026875dc96c2b03a8ce3a7c362698 (diff)
downloadFreeBSD-src-dc9cd76103b00c625db6314b6e5c1aa21bb11a55.zip
FreeBSD-src-dc9cd76103b00c625db6314b6e5c1aa21bb11a55.tar.gz
Document what "msgsz" argument really denotes. [1]
Don't say that "msgsz" can be less than 0, it cannot as it's unsigned (POSIX has the same bug). PR: docs/101145 [1] MFC after: 3 days
-rw-r--r--lib/libc/gen/msgsnd.313
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/libc/gen/msgsnd.3 b/lib/libc/gen/msgsnd.3
index 89e9d75..fc802b3 100644
--- a/lib/libc/gen/msgsnd.3
+++ b/lib/libc/gen/msgsnd.3
@@ -31,7 +31,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd November 24, 1997
+.Dd October 12, 2006
.Dt MSGSND 3
.Os
.Sh NAME
@@ -65,8 +65,13 @@ consist of the following members:
is an integer greater than 0 that can be used for selecting messages (see
.Xr msgrcv 3 ) ,
.Va mtext
-is an array of bytes, with a size up to that of the system limit
-.Pf ( Dv MSGMAX ) .
+is an array of
+.Fa msgsz
+bytes.
+The argument
+.Fa msgsz
+can range from 0 to a system-imposed maximum,
+.Dv MSGMAX .
.Pp
If the number of bytes already on the message queue plus
.Fa msgsz
@@ -144,7 +149,7 @@ message.
The
.Fa msgsz
argument
-is less than 0, or greater than
+is greater than
.Va msg_qbytes .
.Pp
The
OpenPOWER on IntegriCloud