From jdrobina@infinet.com  Tue Sep 17 16:28:58 1996
Received: from drobina.my.domain (cmh-p100.infinet.com [206.103.242.106])
          by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id QAA21243
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 17 Sep 1996 16:28:56 -0700 (PDT)
Received: (from jdrobina@localhost) by infinet.com (8.7.5/8.6.12) id TAA29844; Tue, 17 Sep 1996 19:27:51 -0400 (EDT)
Message-Id: <199609172327.TAA29844@infinet.com>
Date: Tue, 17 Sep 1996 19:27:51 -0400 (EDT)
From: James Drobina <jdrobina@infinet.com>
Reply-To: jdrobina@infinet.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: Field names in struct timespec are incorrect
X-Send-Pr-Version: 3.2

>Number:         1632
>Category:       kern
>Synopsis:       Field names in struct timespec are incorrect
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    nate
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 17 16:30:01 PDT 1996
>Closed-Date:    Thu Sep 19 11:21:49 PDT 1996
>Last-Modified:  Thu Sep 19 11:23:36 PDT 1996
>Originator:     James Drobina
>Release:        FreeBSD 2.2-CURRENT i386
>Organization:
None
>Environment:

          2.2-CURRENT

>Description:

	In sys/time.h, struct timespec is defined as:

	/*
	 * Structure defined by POSIX.4 to be like a timeval.
	 */
	struct timespec {
		time_t  ts_sec;         /* seconds */
		long    ts_nsec;        /* and nanoseconds */
	};

	
	The correct names of the fields are tv_sec and tv_nsec.

        (There was traffic about this problem on freebsd-bugs, but no
	 bug report.)


>How-To-Repeat:

	N/A

>Fix:
	
	Define the structure as:

	/*
	 * Structure defined by POSIX.4 to be like a timeval.
	 */
	struct timespec {
		time_t  tv_sec;         /* seconds */
		long    tv_nsec;        /* and nanoseconds */
	};

        Don't forget the TIMEVAL_TO_TIMESPEC and TIMESPEC_TO_TIMEVAL macros.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: nate 
State-Changed-When: Thu Sep 19 11:21:49 PDT 1996 
State-Changed-Why:  

Suggested patch applied, plus all other necessary changes to the other 
kernel files finished. 

Thanks for the reminder! 





Responsible-Changed-From-To: freebsd-bugs->nate 
Responsible-Changed-By: nate 
Responsible-Changed-When: Thu Sep 19 11:21:49 PDT 1996 
Responsible-Changed-Why:  
I created the patch 
>Unformatted:
