From 09bd310c91ecfeb5893a0d4904783ff1e6c59d96 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Thu, 12 Oct 2006 11:42:41 +0000 Subject: [PATCH] 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 --- lib/libc/gen/msgsnd.3 | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/libc/gen/msgsnd.3 b/lib/libc/gen/msgsnd.3 index 89e9d753ec1..fc802b38ba7 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