docs/121173: mq_getattr(2): mq_flags mistakenly described as holding messages currently on the queue

Thomas Mueller tmueller at sysgo.com
Thu Feb 28 14:50:03 UTC 2008


>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 at 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:



More information about the freebsd-doc mailing list