Bug 121173

Summary: [patch] mq_getattr(2): mq_flags mistakenly described as holding messages currently on the queue
Product: Documentation Reporter: Thomas Mueller <tmueller>
Component: Books & ArticlesAssignee: Christian Brueffer <brueffer>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Thomas Mueller 2008-02-28 14:50:02 UTC
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.
Comment 1 dfilter service freebsd_committer freebsd_triage 2014-02-21 13:53:49 UTC
Author: brueffer
Date: Fri Feb 21 13:53:41 2014
New Revision: 262296
URL: http://svnweb.freebsd.org/changeset/base/262296

Log:
  Match the correct variable to the variable description.
  
  PR:		121173
  Submitted by:	Thomas Mueller <tmueller at sysgo.com>
  MFC after:	1 week

Modified:
  head/lib/libc/sys/mq_getattr.2

Modified: head/lib/libc/sys/mq_getattr.2
==============================================================================
--- head/lib/libc/sys/mq_getattr.2	Fri Feb 21 13:17:10 2014	(r262295)
+++ head/lib/libc/sys/mq_getattr.2	Fri Feb 21 13:53:41 2014	(r262296)
@@ -37,7 +37,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd November 29, 2005
+.Dd February 21, 2014
 .Dt MQ_GETATTR 2
 .Os
 .Sh NAME
@@ -83,8 +83,8 @@ structure referenced by the
 .Fa mqstat
 argument will be set to the current state
 of the message queue:
-.Bl -tag -width ".Va mq_flags"
-.It Va mq_flags
+.Bl -tag -width ".Va mq_curmsgs"
+.It Va mq_curmsgs
 The number of messages currently on the queue.
 .El
 .Sh RETURN VALUES
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
Comment 2 Christian Brueffer freebsd_committer freebsd_triage 2014-02-21 13:53:54 UTC
State Changed
From-To: open->patched

Fix committed, thanks!  Sorry it took so long to get such an obvious thing 
corrected. 


Comment 3 Christian Brueffer freebsd_committer freebsd_triage 2014-02-21 13:53:54 UTC
Responsible Changed
From-To: freebsd-doc->brueffer

MFC reminder.
Comment 4 dfilter service freebsd_committer freebsd_triage 2014-02-28 00:43:35 UTC
Author: brueffer
Date: Fri Feb 28 00:43:27 2014
New Revision: 262588
URL: http://svnweb.freebsd.org/changeset/base/262588

Log:
  MFC: r262296
  
  Match the correct variable to the variable description.
  
  PR:		121173
  Submitted by:	Thomas Mueller <tmueller at sysgo.com>

Modified:
  stable/10/lib/libc/sys/mq_getattr.2
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/lib/libc/sys/mq_getattr.2
==============================================================================
--- stable/10/lib/libc/sys/mq_getattr.2	Fri Feb 28 00:41:55 2014	(r262587)
+++ stable/10/lib/libc/sys/mq_getattr.2	Fri Feb 28 00:43:27 2014	(r262588)
@@ -37,7 +37,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd November 29, 2005
+.Dd February 21, 2014
 .Dt MQ_GETATTR 2
 .Os
 .Sh NAME
@@ -83,8 +83,8 @@ structure referenced by the
 .Fa mqstat
 argument will be set to the current state
 of the message queue:
-.Bl -tag -width ".Va mq_flags"
-.It Va mq_flags
+.Bl -tag -width ".Va mq_curmsgs"
+.It Va mq_curmsgs
 The number of messages currently on the queue.
 .El
 .Sh RETURN VALUES
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
Comment 5 dfilter service freebsd_committer freebsd_triage 2014-02-28 00:44:49 UTC
Author: brueffer
Date: Fri Feb 28 00:44:41 2014
New Revision: 262589
URL: http://svnweb.freebsd.org/changeset/base/262589

Log:
  MFC: r262296
  
  Match the correct variable to the variable description.
  
  PR:		121173
  Submitted by:	Thomas Mueller <tmueller at sysgo.com>

Modified:
  stable/9/lib/libc/sys/mq_getattr.2
Directory Properties:
  stable/9/lib/libc/   (props changed)
  stable/9/lib/libc/sys/   (props changed)

Modified: stable/9/lib/libc/sys/mq_getattr.2
==============================================================================
--- stable/9/lib/libc/sys/mq_getattr.2	Fri Feb 28 00:43:27 2014	(r262588)
+++ stable/9/lib/libc/sys/mq_getattr.2	Fri Feb 28 00:44:41 2014	(r262589)
@@ -37,7 +37,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd November 29, 2005
+.Dd February 21, 2014
 .Dt MQ_GETATTR 2
 .Os
 .Sh NAME
@@ -83,8 +83,8 @@ structure referenced by the
 .Fa mqstat
 argument will be set to the current state
 of the message queue:
-.Bl -tag -width ".Va mq_flags"
-.It Va mq_flags
+.Bl -tag -width ".Va mq_curmsgs"
+.It Va mq_curmsgs
 The number of messages currently on the queue.
 .El
 .Sh RETURN VALUES
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
Comment 6 dfilter service freebsd_committer freebsd_triage 2014-02-28 00:46:04 UTC
Author: brueffer
Date: Fri Feb 28 00:45:55 2014
New Revision: 262590
URL: http://svnweb.freebsd.org/changeset/base/262590

Log:
  MFC: r262296
  
  Match the correct variable to the variable description.
  
  PR:		121173
  Submitted by:	Thomas Mueller <tmueller at sysgo.com>

Modified:
  stable/8/lib/libc/sys/mq_getattr.2
Directory Properties:
  stable/8/lib/libc/   (props changed)
  stable/8/lib/libc/sys/   (props changed)

Modified: stable/8/lib/libc/sys/mq_getattr.2
==============================================================================
--- stable/8/lib/libc/sys/mq_getattr.2	Fri Feb 28 00:44:41 2014	(r262589)
+++ stable/8/lib/libc/sys/mq_getattr.2	Fri Feb 28 00:45:55 2014	(r262590)
@@ -37,7 +37,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd November 29, 2005
+.Dd February 21, 2014
 .Dt MQ_GETATTR 2
 .Os
 .Sh NAME
@@ -83,8 +83,8 @@ structure referenced by the
 .Fa mqstat
 argument will be set to the current state
 of the message queue:
-.Bl -tag -width ".Va mq_flags"
-.It Va mq_flags
+.Bl -tag -width ".Va mq_curmsgs"
+.It Va mq_curmsgs
 The number of messages currently on the queue.
 .El
 .Sh RETURN VALUES
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
Comment 7 Christian Brueffer freebsd_committer freebsd_triage 2014-02-28 00:46:09 UTC
State Changed
From-To: patched->closed

Merge to stable branches done.