docs/125630: [patch] modstat(2) contains outdated union modspecific
Mateusz Guzik
mjguzik at gmail.com
Tue Jul 15 09:40:04 UTC 2008
>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 at 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:
More information about the freebsd-doc
mailing list