[319] in Pthreads mailing list archive

home help back first fref pref prev next nref lref last post

Re: timespec for sleep.c

daemon@ATHENA.MIT.EDU (Chris G Demetriou)
Thu May 16 14:44:12 1996

To: "Jin Guojun[ITG]" <jin@george.lbl.gov>
Cc: pthreads@MIT.EDU, proven@MIT.EDU
In-Reply-To: Your message of "Mon, 13 May 1996 13:11:08 PDT."
             <199605132011.NAA22460@george.lbl.gov> 
Date: Thu, 16 May 1996 14:22:27 -0400
From: Chris G Demetriou <Chris_G_Demetriou@UX2.SP.CS.CMU.EDU>

> The sleep.c in 1_60_beta5 uses tv_sec and tv_nsec for timespec structure.
> The 1_60_beta4 and BSD use ts_sec and ts_nsec for the timespec structure.
> So, sleep.c won't get compiled under BSD system any more. Is any way to fix
> this in the future?

Yes: Get the various BSD variants that declare timespec incorrectly to
fix their declarations.

POSIX states that timespec's members are named tv_sec and tv_nsec.  I
don't particularly agree with that, but that's another matter.


I know that NetBSD-current defines (and the upcoming NetBSD 1.2
release will define) them properly.  I dunno about other BSD systems.


cgd

home help back first fref pref prev next nref lref last post