summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Zezeski <ryan@zinascii.com>2014-10-23 19:53:26 -0400
committerRobert Mustacchi <rm@joyent.com>2014-10-24 16:16:43 -0700
commitb22e5fb9dace0d6facdf8c239062fb9c344c95b9 (patch)
treedfdd553143f6ed28eea1df74166b3f345d26b346
parent38ce19d2fe6359bf2fe9536f075f30cc972d2b50 (diff)
downloadillumos-joyent-b22e5fb9dace0d6facdf8c239062fb9c344c95b9.tar.gz
5258 Incorrect range specified in mq_send(3c) manual
Reviewed by: Dan McDonald <danmcd@omniti.com> Reviewed by: Marcel Telka <marcel@telka.sk> Approved by: Robert Mustacchi <rm@joyent.com>
-rw-r--r--usr/src/man/man3c/mq_send.3c22
1 files changed, 9 insertions, 13 deletions
diff --git a/usr/src/man/man3c/mq_send.3c b/usr/src/man/man3c/mq_send.3c
index 9972c2c17a..febc2a5ff5 100644
--- a/usr/src/man/man3c/mq_send.3c
+++ b/usr/src/man/man3c/mq_send.3c
@@ -1,4 +1,5 @@
'\" te
+.\" Copyright (c) 2014, Ryan Zezeski.
.\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved.
.\" Copyright 1989 AT&T
.\" Portions Copyright (c) 1992, X/Open Company Limited. All Rights Reserved.
@@ -9,7 +10,7 @@
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
-.TH MQ_SEND 3C "Feb 5, 2008"
+.TH MQ_SEND 3C "Oct 23, 2014"
.SH NAME
mq_send, mq_timedsend, mq_reltimedsend_np \- send a message to a message queue
.SH SYNOPSIS
@@ -39,7 +40,6 @@ mq_send, mq_timedsend, mq_reltimedsend_np \- send a message to a message queue
.fi
.SH DESCRIPTION
-.sp
.LP
The \fBmq_send()\fR function adds the message pointed to by the argument
\fImsg_ptr\fR to the message queue specified by \fImqdes\fR. The \fImsg_len\fR
@@ -48,13 +48,13 @@ argument specifies the length of the message in bytes pointed to by
\fImq_msgsize\fR attribute of the message queue, or \fBmq_send()\fR fails.
.sp
.LP
-If the specified message queue is not full, \fBmq_send()\fR behaves as if the
-message is inserted into the message queue at the position indicated by the
-\fImsg_prio\fR argument. A message with a larger numeric value of
-\fImsg_prio\fR is inserted before messages with lower values of \fImsg_prio\fR.
-A message will be inserted after other messages in the queue, if any, with
-equal \fImsg_prio\fR. The value of \fImsg_prio\fR must be greater than zero and
-less than or equal to \fBMQ_PRIO_MAX\fR.
+If the specified message queue is not full, \fBmq_send()\fR behaves as
+if the message is inserted into the message queue at the position
+indicated by the \fImsg_prio\fR argument. A message with a larger
+numeric value of \fImsg_prio\fR is inserted before messages with lower
+values of \fImsg_prio\fR. A message will be inserted after other
+messages in the queue, if any, with equal \fImsg_prio\fR. The value of
+\fImsg_prio\fR must range from zero to \fBMQ_PRIO_MAX - 1\fR.
.sp
.LP
If the specified message queue is full and \fBO_NONBLOCK\fR is not set in the
@@ -105,13 +105,11 @@ sufficient room in the queue to add the message immediately. The validity of
the timeout parameter need not be checked when there is sufficient room in the
queue.
.SH RETURN VALUES
-.sp
.LP
Upon successful completion, \fBmq_send()\fR, \fBmq_timedsend()\fR, and
\fBmq_reltimedsend_np()\fR return \fB0\fR. Otherwise, no message is enqueued,
the functions return \fB\(mi1\fR, and \fBerrno\fR is set to indicate the error.
.SH ERRORS
-.sp
.LP
The \fBmq_send()\fR, \fBmq_timedsend()\fR, and \fBmq_reltimedsend_np()\fR
functions will fail if:
@@ -185,7 +183,6 @@ the timeout expired before the message could be added to the queue.
.RE
.SH ATTRIBUTES
-.sp
.LP
See \fBattributes\fR(5) for descriptions of the following attributes:
.sp
@@ -208,7 +205,6 @@ Standard See below.
.LP
For \fBmq_send()\fR and \fBmq_timedsend()\fR, see \fBstandards\fR(5).
.SH SEE ALSO
-.sp
.LP
\fBsysconf\fR(3C), \fBmqueue.h\fR(3HEAD), \fBmq_open\fR(3C),
\fBmq_receive\fR(3C), \fBmq_setattr\fR(3C), \fBattributes\fR(5),