From tim@mysql.com  Sat Apr  8 08:25:28 2000
Return-Path: <tim@mysql.com>
Received: from mail.hcisp.net (Stargate.hcisp.net [208.60.89.18])
	by hub.freebsd.org (Postfix) with SMTP id A287B37B577
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  8 Apr 2000 08:25:19 -0700 (PDT)
	(envelope-from tim@mysql.com)
Received: (qmail 24248 invoked from network); 8 Apr 2000 15:33:35 -0000
Received: from modem4.hcisp.net (HELO threads.polyesthetic.msg) (208.60.89.70)
  by stargate.hcisp.net with SMTP; 8 Apr 2000 15:33:35 -0000
Received: (qmail 18378 invoked by uid 1001); 8 Apr 2000 15:24:48 -0000
Message-Id: <20000408152448.18377.qmail@threads.polyesthetic.msg>
Date: 8 Apr 2000 15:24:48 -0000
From: "Thimble Smith" <tim@mysql.com>
Reply-To: tim@mysql.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: PATCH: sys/resource.h needs sys/time.h for struct timeval
X-Send-Pr-Version: 3.2

>Number:         17864
>Category:       bin
>Synopsis:       PATCH: sys/resource.h needs sys/time.h for struct timeval
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr  8 08:30:01 PDT 2000
>Closed-Date:    Wed May 23 13:50:29 PDT 2001
>Last-Modified:  Wed May 23 13:50:57 PDT 2001
>Originator:     Thimble Smith
>Release:        FreeBSD 4.0-STABLE i386
>Organization:
>Environment:

	

>Description:

Programs that include <sys/resource.h> without including <sys/time.h>
first will not compile, because struct timeval is not defined.  This
could be a bug in the program instead of in FreeBSD.  If so, go ahead
and tell me so and I'll bug the program's authors.

>How-To-Repeat:

	

>Fix:

--- /usr/tmp/resource.h	Sat Apr  8 11:17:30 2000
+++ /usr/include/sys/resource.h	Sat Apr  8 11:17:48 2000
@@ -37,6 +37,8 @@
 #ifndef _SYS_RESOURCE_H_
 #define	_SYS_RESOURCE_H_
 
+#include <sys/time.h>
+
 /*
  * Process priority specifications to get/setpriority.
  */


>Release-Note:
>Audit-Trail:

From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To: tim@mysql.com
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: bin/17864: PATCH: sys/resource.h needs sys/time.h for struct timeval
Date: Sat, 8 Apr 2000 12:01:11 -0400 (EDT)

 <<On 8 Apr 2000 15:24:48 -0000, "Thimble Smith" <tim@mysql.com> said:
 
 > Programs that include <sys/resource.h> without including <sys/time.h>
 > first will not compile, because struct timeval is not defined.  This
 > could be a bug in the program instead of in FreeBSD.  If so, go ahead
 > and tell me so and I'll bug the program's authors.
 
 <sys/time.h> is a documented prerequisite of <sys/resource.h>:
 
 GETRUSAGE(2)              FreeBSD System Calls Manual             GETRUSAGE(2)
 
 NAME
      getrusage - get information about resource utilization
 
 SYNOPSIS
      #include <sys/types.h>
      #include <sys/time.h>
      #include <sys/resource.h>
 
 GETRLIMIT(2)              FreeBSD System Calls Manual             GETRLIMIT(2)
 
 NAME
      getrlimit, setrlimit - control maximum system resource consumption
 
 SYNOPSIS
      #include <sys/types.h>
      #include <sys/time.h>
      #include <sys/resource.h>
 
 -GAWollman
 
 --
 Garrett A. Wollman   | O Siem / We are all family / O Siem / We're all the same
 wollman@lcs.mit.edu  | O Siem / The fires of freedom 
 Opinions not those of| Dance in the burning flame
 MIT, LCS, CRS, or NSA|                     - Susan Aglukark and Chad Irschick
 

From: Sheldon Hearn <sheldonh@uunet.co.za>
To: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/17864: PATCH: sys/resource.h needs sys/time.h for struct timeval 
Date: Mon, 10 Apr 2000 18:26:51 +0200

 On Sat, 08 Apr 2000 09:10:03 MST, Garrett Wollman wrote:
 
 >  <sys/time.h> is a documented prerequisite of <sys/resource.h>:
 
 Always?  Is gettimeofday(2) wrong, or is this a red herring?
 
 Ciao,
 Sheldon.
 

From: "Danny J. Zerkel" <dzerkel@columbus.rr.com>
To: freebsd-gnats-submit@FreeBSD.org, tim@mysql.com
Cc:  
Subject: Re: bin/17864: PATCH: sys/resource.h needs sys/time.h for struct timeval
Date: Wed, 10 May 2000 00:14:42 -0400

 This is also a duplicate of bin/5758.
 
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Wed May 23 13:50:29 PDT 2001 
State-Changed-Why:  
Stale PR 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=17864 
>Unformatted:
