Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jul 2008 09:37:02 GMT
From:      Mateusz Guzik <mjguzik@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   docs/125630: [patch] modstat(2) contains outdated union modspecific
Message-ID:  <200807150937.m6F9b2IW069908@www.freebsd.org>
Resent-Message-ID: <200807150940.m6F9e4aK071835@freefall.freebsd.org>

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

>Number:         125630
>Category:       docs
>Synopsis:       [patch] modstat(2) contains outdated union modspecific
>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:   Tue Jul 15 09:40:03 UTC 2008
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



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