From joelh@gnu.org  Wed Feb 21 02:46:27 2001
Return-Path: <joelh@gnu.org>
Received: from thor.piqnet.org (adsl-63-197-64-194.dsl.snfc21.pacbell.net [63.197.64.194])
	by hub.freebsd.org (Postfix) with ESMTP id B7F4637B4EC
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 21 Feb 2001 02:46:26 -0800 (PST)
	(envelope-from joelh@gnu.org)
Received: (from joelh@localhost)
	by thor.piqnet.org (8.11.1/8.11.1) id f1LAo5v45814;
	Wed, 21 Feb 2001 02:50:05 -0800 (PST)
	(envelope-from joelh)
Message-Id: <200102211050.f1LAo5v45814@thor.piqnet.org>
Date: Wed, 21 Feb 2001 02:50:05 -0800 (PST)
From: joelh@gnu.org
Reply-To: joelh@gnu.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: sys/user.h needs sys/param.h, but doesn't include it.
X-Send-Pr-Version: 3.2

>Number:         25248
>Category:       kern
>Synopsis:       sys/user.h needs sys/param.h, but doesn't include it.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bde
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 21 02:50:01 PST 2001
>Closed-Date:    Sat Jan 27 19:02:20 GMT 2007
>Last-Modified:  Sat Jan 27 19:02:20 GMT 2007
>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:
Responsible-Changed-From-To: freebsd-bugs->bde 
Responsible-Changed-By: dd 
Responsible-Changed-When: Sat Apr 28 19:35:20 PDT 2001 
Responsible-Changed-Why:  
Looks like something Bruce might be interested in investigating. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=25248 
State-Changed-From-To: open->feedback 
State-Changed-By: remko 
State-Changed-When: Sat Dec 30 20:55:23 UTC 2006 
State-Changed-Why:  
Hello, is this still relevant? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=25248 
State-Changed-From-To: feedback->closed 
State-Changed-By: remko 
State-Changed-When: Sat Jan 27 19:02:18 UTC 2007 
State-Changed-Why:  
feedback timeout 

http://www.freebsd.org/cgi/query-pr.cgi?pr=25248 
>Unformatted:
