Subject: Re: timespec definition
To: John Birrell <cimaxp1!jb@WERPLE.NET.AU>
From: None <Chris_G_Demetriou@NIAGARA.NECTAR.CS.CMU.EDU>
List: current-users
Date: 01/31/1996 09:12:24
> For some time I've been annoyed by the NetBSD definition of timespec
> (which uses ts_sec and ts_nsec where other systems use tv_sec and tv_nsec).
> We use timespec a lot and I'm tired of doing...
> 
> #ifdef __NetBSD__
> code for non-standard timespec
> #else
> code for standard timespec
> #endif
> 
> The NetBSD <sys/time.h> header file refers to POSIX 1003.4 which has been
> replaced by POSIX 1003.1b-1993. Section 14.1.1 says that timespec includes
> at least tv_sec and tv_nsec and implementations may add extensions.
> 
> Is there anyone who (a) agrees that timespec in NetBSD should comply with
> POSIX; and (b) has the authority to make the decision to allow the change?

I just looked at my copy of .1b-1993.  tv_sec and tv_nsec.  (I could
have _sworn_ at one point that it was supposed to be ts_sec and
ts_nsec...  I guess that's because we inherited the brokenness from
4.4-Lite.)

Yes, this should be fixed.


chris