summaryrefslogtreecommitdiff
path: root/lib/libc/sys/msgrcv.2
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/sys/msgrcv.2')
-rw-r--r--lib/libc/sys/msgrcv.225
1 files changed, 7 insertions, 18 deletions
diff --git a/lib/libc/sys/msgrcv.2 b/lib/libc/sys/msgrcv.2
index 25ff6352525..fc7d574f51b 100644
--- a/lib/libc/sys/msgrcv.2
+++ b/lib/libc/sys/msgrcv.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: msgrcv.2,v 1.13 2007/05/31 19:19:33 jmc Exp $
+.\" $OpenBSD: msgrcv.2,v 1.14 2007/09/03 14:37:52 millert Exp $
.\" $NetBSD: msgrcv.2,v 1.2 1997/03/27 08:20:37 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: September 3 2007 $
.Dt MSGRCV 2
.Os
.Sh NAME
@@ -166,10 +166,6 @@ will fail if:
.Fa msqid
is not a valid message queue identifier.
.Pp
-The message queue was removed while
-.Fn msgrcv
-was waiting for a message of the requested type to become available on it.
-.Pp
.Fa msgsz
is less than 0.
.It Bq Er E2BIG
@@ -186,12 +182,16 @@ The calling process does not have read access to the message queue.
points to an invalid address.
.It Bq Er EINTR
The system call was interrupted by the delivery of a signal.
-.It Bq Er EAGAIN
+.It Bq Er ENOMSG
There is no message of the requested type available on the message queue,
and
.Dv IPC_NOWAIT
is set in
.Fa msgflg .
+.It Bq Er EIDRM
+The message queue was removed while
+.Fn msgrcv
+was waiting for a message of the requested type to become available on it.
.El
.Sh SEE ALSO
.Xr msgctl 2 ,
@@ -199,14 +199,3 @@ is set in
.Xr msgsnd 2
.Sh HISTORY
Message queues appeared in the first release of AT&T Unix System V.
-.Sh BUGS
-.Ox
-does not define the
-.Er EIDRM
-error value, which should be used in
-the case of a removed message queue, nor the
-.Er ENOMSG
-value, which
-should be used when no suitable message is available and
-.Dv IPC_NOWAIT
-is set.