When IPC_NOWAIT is set and there is no message, msgrcv() fails

with errno set to ENOMSG.

PR:		docs/82217
Submitted by:	delphij
Approved by:	re (blanket)
This commit is contained in:
Ruslan Ermilov 2005-06-14 10:56:02 +00:00
parent ebcef7d42b
commit d3b3ec17a8

View File

@ -31,7 +31,7 @@
.\" $FreeBSD$
.\"
.\"/
.Dd November 24, 1997
.Dd June 15, 2005
.Dt MSGRCV 3
.Os
.Sh NAME
@ -122,7 +122,7 @@ is set,
will immediately return a value of -1, and set
.Va errno
to
.Er EAGAIN .
.Er ENOMSG .
If
.Dv IPC_NOWAIT
is not set, the calling process will be blocked
@ -206,7 +206,7 @@ argument
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