From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 25932 invoked from network); 16 Jan 1999 04:04:28 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 16 Jan 1999 04:04:28 -0000 Received: from piglet.twiddle.net (rth@piglet.twiddle.net [207.104.6.26]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id WAA30420 for ; Fri, 15 Jan 1999 22:40:56 -0500 Received: (from rth@localhost) by piglet.twiddle.net (8.8.7/8.8.7) id TAA11687 for axp-list@redhat.com; Fri, 15 Jan 1999 19:43:05 -0800 Message-ID: <19990115194305.C11127@piglet.twiddle.net> Date: Fri, 15 Jan 1999 19:43:05 -0800 From: Richard Henderson To: axp-list@redhat.com Subject: Re: struct timeval problem References: <199901152100.NAA21342@netcom11.netcom.com> <199901152113.QAA24246@adder.cs.Virginia.EDU> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2 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~