aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/gen/msgrcv.3
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2002-12-19 09:40:28 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2002-12-19 09:40:28 +0000
commit2efeeba554cbd7bdee9cfe17641c8bd335c7972f (patch)
treef0781cb8e5be3a35234a6d0c123d6ae11ba70e40 /lib/libc/gen/msgrcv.3
parent3ca4c01eea0e54f4f560aff65f774d6bd0b0b87c (diff)
Notes
Diffstat (limited to 'lib/libc/gen/msgrcv.3')
-rw-r--r--lib/libc/gen/msgrcv.314
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/libc/gen/msgrcv.3 b/lib/libc/gen/msgrcv.3
index 298576178d00..d6401b654b9d 100644
--- a/lib/libc/gen/msgrcv.3
+++ b/lib/libc/gen/msgrcv.3
@@ -69,22 +69,30 @@ The value of
has one of the following meanings:
.Bl -bullet
.It
+The
.Fa msgtyp
+argument
is greater than 0. The first message of type
.Fa msgtyp
will be received.
.It
+The
.Fa msgtyp
+argument
is equal to 0. The first message on the queue will be received.
.It
+The
.Fa msgtyp
+argument
is less than 0. The first message of the lowest message type that is
less than or equal to the absolute value of
.Fa msgtyp
will be received.
.El
.Pp
+The
.Fa msgsz
+argument
specifies the maximum length of the requested message.
If the received
message has a length greater than
@@ -165,14 +173,18 @@ function
will fail if:
.Bl -tag -width Er
.It Bq Er EINVAL
+The
.Fa msqid
+argument
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
+The
.Fa msgsz
+argument
is less than 0.
.It Bq Er E2BIG
A matching message was received, but its size was greater than
@@ -184,7 +196,9 @@ flag was not set in
.It Bq Er EACCES
The calling process does not have read access to the message queue.
.It Bq Er EFAULT
+The
.Fa msgp
+argument
points to an invalid address.
.It Bq Er EINTR
The system call was interrupted by the delivery of a signal.