Print this page
5258 Incorrect range specified in mq_send(3c) manual

@@ -1,6 +1,7 @@
 '\" 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.
 .\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at
 .\" http://www.opengroup.org/bookstore/.

@@ -7,11 +8,11 @@
 .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html.
 .\"  This notice shall appear on any product containing this material.
 .\" 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
 .LP
 .nf

@@ -46,17 +47,17 @@
 argument specifies the length of the message in bytes pointed to by
 \fImsg_ptr\fR. The value of \fImsg_len\fR is less than or equal to the
 \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
 message queue description associated with \fImqdes\fR (see \fBmq_open\fR(3C)
 and \fBmq_setattr\fR(3C)), \fBmq_send()\fR blocks until space becomes available