From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 1852 invoked from network); 16 Jun 1999 09:09:31 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 16 Jun 1999 09:09:31 -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 EAA20389 for ; Wed, 16 Jun 1999 04:17:55 -0400 Received: (qmail 23609 invoked from network); 16 Jun 1999 08:17:54 -0000 Received: from dialpool0105-pri.voicenet.com (HELO voicenet.com) (209.71.85.5) by mail12.voicenet.com with SMTP; 16 Jun 1999 08:17:53 -0000 Sender: gat@mail.redhat.com Message-ID: <37675882.F378EEBC@voicenet.com> Date: Wed, 16 Jun 1999 03:55:46 -0400 From: Uncle George Organization: Big Endian X-Mailer: Mozilla 4.07 [en] (X11; I; Linux 2.0.36 i686) 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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 1) gettimeofday(), which uses timeval, returns 2 ints from the call to the glibc routines. 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. 2) By the same token, getrusage() uses the rusage struct, which uses struct timeval. If timeval was defined as 2 ints, like gettimeofday(), then glibc/kernel trashes stack when getrusage() is called.. If timeval is defined as 2 longs, then I dont get a trashed stack. So will the real struct timeval please stand up ? :-) gat Again this is for RH6.0 & alpha Georg Steffers wrote: > Ok, i try to do my best to serve this list so an answer to this too. > I hope i am right, if not please tell it to me..... > First, the parts of struct timeval are int, what means long because int is