From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 14250 invoked from network); 16 Jun 1999 02:13:32 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 16 Jun 1999 02:13:32 -0000 Received: from paralleldata.com (smtp.paralleldata.com [38.153.145.2]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id VAA24251 for ; Tue, 15 Jun 1999 21:22:03 -0400 Received: by paralleldata.com from localhost (router,SLMail V2.5); Tue, 15 Jun 1999 20:26:00 -0500 Received: by paralleldata.com from paralleldata.com (207.158.83.203::mail daemon; unverified,SLMail V2.5); Tue, 15 Jun 1999 20:25:58 -0500 Sender: "Wsb" Message-ID: <3766EF7E.D535E3DB@paralleldata.com> Date: Tue, 15 Jun 1999 19:27:42 -0500 From: "Wes Bauske" Organization: PDS Inc. X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.5-15 i686) X-Accept-Language: en 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 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 > 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