Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Feb 2001 02:50:05 -0800 (PST)
From:      joelh@gnu.org
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/25248: sys/user.h needs sys/param.h, but doesn't include it.
Message-ID:  <200102211050.f1LAo5v45814@thor.piqnet.org>

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

>Number:         25248
>Category:       kern
>Synopsis:       sys/user.h needs sys/param.h, but doesn't include it.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 21 02:50:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Joel Ray Holveck
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
>Environment:

4.2-STABLE from Jan 2000

>Description:

The file <sys/user.h> (needed for the KERN_PROC sysctl oid) uses variables
defined by <sys/param.h>, but neither is documented as necessary, and the
latter is not automatically included by the former.

>How-To-Repeat:

#include <sys/types.h>
#include <sys/sysctl.h>
#include <sys/user.h>

int
main()
{
}


>Fix:

include <sys/param.h> in <sys/user.h>.

It may be good to either document in sysctl(3) that <sys/user.h> is 
needed to interpret the KERN_PROC oid, or include it in <sys/sysctl.h>.

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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