From: "Wes Bauske" <wsb@paralleldata.com>
To: axp-list@redhat.com
Subject: Re: what does struct timeval look like on alpha ?
Date: Tue, 15 Jun 1999 19:27:42 -0500 [thread overview]
Message-ID: <3766EF7E.D535E3DB@paralleldata.com> (raw)
In-Reply-To: 199906152150.XAA08340@earth.uni-muenster.de
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
> only an alias on this on alpha-machines. (int may be an alias to an other
> data-type on other machines) long and int are both 4 byte.
No, on AlphaLinux, int is 4 bytes, long is 8 bytes. On Intel,
long and int's are 4 bytes.
I did a simple program on my system and the tv_sec/tv_usec values
are longs, not int's, using a sizeof().
> I tried this with a simple sizeof(int) and sizeof(long) call.
> What exacly do you mean if you say <if timeval is defined with ints>
> Did you change the libc include-files?? On my system the values ARE defined
> as int in /usr/include/timebits.h and your code compiles and run on it very
> well....even if i change your l-valiable to int.
>
That file doesn't appear to exist on my RH6.0 systems.
I have a subdirecory called /usr/include/bits that has a
file time.h in it and it defines tv_sec/tv_usec as
__time_t values.
Are you sure you're running RH6.0??
Wes
next prev parent reply other threads:[~1999-06-16 2:13 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 [this message]
1999-06-16 7:55 ` Uncle George
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