diff options
author | 2006-10-14 14:30:45 +0000 | |
---|---|---|
committer | 2006-10-14 14:30:45 +0000 | |
commit | 5ee8538a6ded45a0f282a879d46dd97a1c9d4409 (patch) | |
tree | 4b9c365281e9481cb3ab6ad6cd651f39ec7ebab7 | |
parent | sync with <sys/stat.h>; (diff) | |
download | wireguard-openbsd-5ee8538a6ded45a0f282a879d46dd97a1c9d4409.tar.xz wireguard-openbsd-5ee8538a6ded45a0f282a879d46dd97a1c9d4409.zip |
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
-rw-r--r-- | lib/libc/sys/msgsnd.2 | 8 |
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. |