Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Uncle George <gatgul@voicenet.com>
To: axp-list@redhat.com
Subject: Re: what does struct timeval look like on alpha ?
Date: Wed, 16 Jun 1999 03:55:46 -0400	[thread overview]
Message-ID: <37675882.F378EEBC@voicenet.com> (raw)
In-Reply-To: 199906152150.XAA08340@earth.uni-muenster.de

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




  parent reply	other threads:[~1999-06-16  9:09 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-15 13:34 what does struct timeval look like on alpha ? Uncle George
1999-06-15 21:50 ` Georg Steffers
1999-06-16  0:27   ` Wes Bauske
1999-06-16  7:55   ` Uncle George [this message]
1999-06-19 20:16     ` Richard Henderson
1999-06-20 22:07       ` Meryem Kazanfer
1999-06-20  0:40         ` Wes Bauske
1999-06-20  3:58         ` Richard Henderson
1999-06-20 22:01           ` Uncle George
1999-06-20 22:28             ` Richard Henderson
1999-06-20 23:27               ` Uncle George
1999-06-22  4:34                 ` Richard Henderson
1999-06-22 10:05                   ` Uncle George
1999-06-27  4:54                     ` Richard Henderson
1999-06-27  8:11                       ` Uncle George
1999-06-27 20:18                         ` Richard Henderson
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