From nobody@FreeBSD.org  Tue Jul 15 09:37:02 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id D158C1065677
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 15 Jul 2008 09:37:02 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id B8F788FC31
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 15 Jul 2008 09:37:02 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m6F9b2vf069909
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 15 Jul 2008 09:37:02 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m6F9b2IW069908;
	Tue, 15 Jul 2008 09:37:02 GMT
	(envelope-from nobody)
Message-Id: <200807150937.m6F9b2IW069908@www.freebsd.org>
Date: Tue, 15 Jul 2008 09:37:02 GMT
From: Mateusz Guzik <mjguzik@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] modstat(2) contains outdated union modspecific
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         125630
>Category:       docs
>Synopsis:       [patch] modstat(2) contains outdated union modspecific
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    danger
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 15 09:40:03 UTC 2008
>Closed-Date:    Tue Jan 06 12:13:13 UTC 2009
>Last-Modified:  Tue Jan  6 12:20:03 UTC 2009
>Originator:     Mateusz Guzik
>Release:        8.0-CURRENT
>Organization:
>Environment:
FreeBSD eternal 8.0-CURRENT FreeBSD 8.0-CURRENT #17: Tue Jul 15 02:29:03 CEST 2008     f@eternal:/usr/obj/usr/src/sys/ETERNAL  i386

>Description:
modstat(2):
typedef union modspecific {
             int         intval;
             u_int       u_intval;
             long        longval;
             u_long      u_longval;
     } modspecific_t;

/usr/include/sys/module.h:
typedef union modspecific {
        int     intval;
        u_int   uintval;
        long    longval;
        u_long  ulongval;
} modspecific_t;
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- lib/libc/sys/modstat.2.orig	2008-07-15 11:29:21.000000000 +0200
+++ lib/libc/sys/modstat.2	2008-07-15 11:31:34.000000000 +0200
@@ -53,13 +53,13 @@
 	int         id;
 	modspecific_t data;
 };
 typedef union modspecific {
 	int         intval;
-	u_int       u_intval;
+	u_int       uintval;
 	long        longval;
-	u_long      u_longval;
+	u_long      ulongval;
 } modspecific_t;
 .Ed
 .Pp
 .Bl -tag -width XXXaddress
 .It version


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-doc->danger 
Responsible-Changed-By: danger 
Responsible-Changed-When: Tue Jul 15 10:07:10 UTC 2008 
Responsible-Changed-Why:  
Take 

http://www.freebsd.org/cgi/query-pr.cgi?pr=125630 
State-Changed-From-To: open->patched 
State-Changed-By: danger 
State-Changed-When: Tue Jul 15 10:07:44 UTC 2008 
State-Changed-Why:  
Fixed in HEAD 

http://www.freebsd.org/cgi/query-pr.cgi?pr=125630 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/125630: commit references a PR
Date: Tue, 15 Jul 2008 10:07:08 +0000 (UTC)

 danger      2008-07-15 10:06:37 UTC
 
   FreeBSD src repository
 
   Modified files:
     lib/libc/sys         modstat.2 
   Log:
   SVN rev 180534 on 2008-07-15 10:06:37Z by danger
   
   Update the definition of modspecific structure
   
   PR:             docs/125630
   
   Revision  Changes    Path
   1.12      +3 -3      src/lib/libc/sys/modstat.2
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: danger 
State-Changed-When: Tue Jan 6 12:12:51 UTC 2009 
State-Changed-Why:  
MFC'ed to both stable/6 and stable/7. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=125630 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/125630: commit references a PR
Date: Tue,  6 Jan 2009 12:10:47 +0000 (UTC)

 Author: danger (doc committer)
 Date: Tue Jan  6 12:10:23 2009
 New Revision: 186811
 URL: http://svn.freebsd.org/changeset/base/186811
 
 Log:
   MFC r180534:
   
   - Update the definition of modspecific structure
   
   PR:		docs/125630
   Submitted by:	Mateusz Guzik <mjguzik@gmail.com>
 
 Modified:
   stable/7/lib/libc/   (props changed)
   stable/7/lib/libc/string/ffsll.c   (props changed)
   stable/7/lib/libc/string/flsll.c   (props changed)
   stable/7/lib/libc/sys/modstat.2
 
 Modified: stable/7/lib/libc/sys/modstat.2
 ==============================================================================
 --- stable/7/lib/libc/sys/modstat.2	Tue Jan  6 11:11:58 2009	(r186810)
 +++ stable/7/lib/libc/sys/modstat.2	Tue Jan  6 12:10:23 2009	(r186811)
 @@ -25,7 +25,7 @@
  .\"
  .\" $FreeBSD$
  .\"
 -.Dd June 13, 2007
 +.Dd July 15, 2008
  .Dt MODSTAT 2
  .Os
  .Sh NAME
 @@ -55,9 +55,9 @@ struct module_stat {
  };
  typedef union modspecific {
  	int         intval;
 -	u_int       u_intval;
 +	u_int       uintval;
  	long        longval;
 -	u_long      u_longval;
 +	u_long      ulongval;
  } modspecific_t;
  .Ed
  .Pp
 _______________________________________________
 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"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/125630: commit references a PR
Date: Tue,  6 Jan 2009 12:12:49 +0000 (UTC)

 Author: danger (doc committer)
 Date: Tue Jan  6 12:12:39 2009
 New Revision: 186812
 URL: http://svn.freebsd.org/changeset/base/186812
 
 Log:
   MFC r180534:
   
   - Update the definition of modspecific structure
   
   PR:		docs/125630
   Submitted by:	Mateusz Guzik <mjguzik@gmail.com>
 
 Modified:
   stable/6/lib/libc/   (props changed)
   stable/6/lib/libc/inet/inet_net_pton.c   (props changed)
   stable/6/lib/libc/sys/   (props changed)
   stable/6/lib/libc/sys/modstat.2
 
 Modified: stable/6/lib/libc/sys/modstat.2
 ==============================================================================
 --- stable/6/lib/libc/sys/modstat.2	Tue Jan  6 12:10:23 2009	(r186811)
 +++ stable/6/lib/libc/sys/modstat.2	Tue Jan  6 12:12:39 2009	(r186812)
 @@ -25,7 +25,7 @@
  .\"
  .\" $FreeBSD$
  .\"
 -.Dd June 13, 2007
 +.Dd July 15, 2008
  .Dt MODSTAT 2
  .Os
  .Sh NAME
 @@ -55,9 +55,9 @@ struct module_stat {
  };
  typedef union modspecific {
  	int         intval;
 -	u_int       u_intval;
 +	u_int       uintval;
  	long        longval;
 -	u_long      u_longval;
 +	u_long      ulongval;
  } modspecific_t;
  .Ed
  .Pp
 _______________________________________________
 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"
 
>Unformatted:
