From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 20085 invoked from network); 19 Jun 1999 22:54:33 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 19 Jun 1999 22:54:33 -0000 Received: from voicenet.com (mail12.voicenet.com [207.103.0.6]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id SAA30518 for ; Sat, 19 Jun 1999 18:01:18 -0400 Received: (qmail 28239 invoked from network); 19 Jun 1999 22:01:17 -0000 Received: from dialpool0201-pri.voicenet.com (HELO voicenet.com) (209.71.85.66) by mail12.voicenet.com with SMTP; 19 Jun 1999 22:01:17 -0000 Message-ID: <376D6616.F215B731@voicenet.com> Date: Sun, 20 Jun 1999 18:07:18 -0400 From: Meryem Kazanfer X-Mailer: Mozilla 4.04 [en] (Win95; I) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: what does struct timeval look like on alpha ? References: <199906152150.XAA08340@earth.uni-muenster.de> <37675882.F378EEBC@voicenet.com> <19990619131628.C8357@twiddle.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit it does in RH 6.0 with glibc2.1. In redhat 5.x, with glibc2.0.7 it doesn't. This also was reported by someone else. Timeval was defined with 2 longs for gettimeofday(), but apparently the glib/kern returned 2 ints. I suspect glib, as I use the same kern for 5.x & 6.0. If i'm not mistaken, u ssaid this was a posix change. I will review again my 6.0 installation, since u appear to suggest that timeval has 2 longs, but i suspect that gettimeofday() will return ints :-/ gat Richard Henderson wrote: > On Wed, Jun 16, 1999 at 03:55:46AM -0400, Uncle George wrote: > > 1) gettimeofday(), which uses timeval, returns 2 ints from the call to the > > glibc routines. > > No it doesn't. > > > This is done irrespective of whatever the definition of struct > > timeval is. If u define timeval as long, u get bogus looking values. But as > > int, the numbers look more reasonable. > > I don't know what you're doing, but it's screwy.