From: Richard Henderson <rth@twiddle.net>
To: axp-list@redhat.com
Subject: Re: struct timeval problem
Date: Fri, 15 Jan 1999 19:43:05 -0800 [thread overview]
Message-ID: <19990115194305.C11127@piglet.twiddle.net> (raw)
In-Reply-To: <199901152113.QAA24246@adder.cs.Virginia.EDU>; from Greg Lindahl on Fri, Jan 15, 1999 at 04:13:34PM -0500
On Fri, Jan 15, 1999 at 04:13:34PM -0500, Greg Lindahl wrote:
> > Just noticed a discrepancy in RH 5.2 in the way 'struct timeval' is
> > defined in /usr/include/timebits.H:
Yes, you've caught a real standards conformance bug. This was fixed
early in the glibc 2.1 development cycle; glibc 2.1 is going through
test releases prior to final right now.
Binary compatibility (against libc at least) is handled with ELF
symbol versioning on the related functions.
> That is already required since I don't think that tv_sec is supposed
> to be a time_t... a bug in the standard. But we have to follow the
> bugs, too.
tv_sec is required to be a time_t. I don't recall off-hand what
POSIX sez for tv_usec -- probably `long'. I was thinking one of
Single Unix or UNIX98 defined a useconds_t or some such.
r~
prev parent reply other threads:[~1999-01-16 4:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-01-15 21:00 struct timeval problem Munagala V. S. Ramanath
1999-01-15 21:13 ` Greg Lindahl
1999-01-16 3:43 ` Richard Henderson [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox