Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Feb 2008 14:40:32 GMT
From:      Thomas Mueller <tmueller@sysgo.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   docs/121173: mq_getattr(2): mq_flags mistakenly described as holding messages currently on the queue
Message-ID:  <200802281440.m1SEeWT0025065@www.freebsd.org>
Resent-Message-ID: <200802281450.m1SEo2ed044961@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         121173
>Category:       docs
>Synopsis:       mq_getattr(2): mq_flags mistakenly described as holding messages currently on the queue
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 28 14:50:02 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Thomas Mueller
>Release:        RELENG_7
>Organization:
>Environment:
FreeBSD tom.ulm.sysgo.com 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #30: Tue Feb 26 12:35:30 CET 2008     toor@tom.ulm.sysgo.com:/u2/obj/usr/src/sys/TOM  i386
>Description:
The manual page for mq_getattr(2) states that mq_attr.mq_flags contains 
the number of messages currently on the queue. According to IEEE Std 1003.1-2004 
this information is stored in mq_attr.mq_curmsgs.


>How-To-Repeat:

>Fix:
Index: mq_getattr.2
===================================================================
RCS file: /u2/tmu/FreeBSD/repo/src/lib/libc/sys/mq_getattr.2,v
retrieving revision 1.4
diff -u -p -r1.4 mq_getattr.2
--- mq_getattr.2        18 Jun 2007 01:50:03 -0000      1.4
+++ mq_getattr.2        28 Feb 2008 14:29:17 -0000
@@ -73,7 +73,7 @@ structure referenced by the
 .Fa mqstat
 argument will be set to the current state
 of the message queue:
-.Bl -tag -width ".Va mq_flags"
+.Bl -tag -width ".Va mq_curmsgs"
 .It Va mq_flags
 The number of messages currently on the queue.
 .El


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802281440.m1SEeWT0025065>