From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 6069 invoked from network); 20 Jun 1999 22:55:09 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 20 Jun 1999 22:55:09 -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 SAA27693 for ; Sun, 20 Jun 1999 18:01:28 -0400 Received: (qmail 1310 invoked from network); 20 Jun 1999 22:01:26 -0000 Received: from dialpool0822-pri.voicenet.com (HELO voicenet.com) (209.71.86.215) by mail12.voicenet.com with SMTP; 20 Jun 1999 22:01:25 -0000 Sender: gat@mail.redhat.com Message-ID: <376D64B2.6642D815@voicenet.com> Date: Sun, 20 Jun 1999 18:01:22 -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, Richard Henderson 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> <376D6616.F215B731@voicenet.com> <19990619205852.A8660@twiddle.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Since time_t == __time_t == Long int, there had to be another explanation. & using a small sample 'c' pgm to test gettimeofday() with int/long/timeval structs, long appears to be the correct answer - BUT - It appears that in my java port on RH 6.0 gettimeofday() gets binded to __gettimeofday__tv32 I suppose I want __gettimeofday_tv64. Any way to convince the dynamic linker that i'm not intel ? :-/ gat single instruction stepping: Breakpoint 3, sysTimeMillis () at ../../../../src/genunix/java/runtime/system_md.c:66 66 gettimeofday(&t, 0); 1: x/i $pc 0x20000197d8c : clr a1 (gdb) si 57 { 1: x/i $pc 0x20000197d90 : stq s0,8(sp) (gdb) 66 gettimeofday(&t, 0); 1: x/i $pc 0x20000197d94 : addq sp,0x10,a0 (gdb) 73 fprintf(stderr,"sysTimeMillis:s=%ld", t.tv_sec); 1: x/i $pc 0x20000197d98 : ldq s0,-27832(gp) (gdb) 57 { 1: x/i $pc 0x20000197d9c : stq ra,0(sp) (gdb) 66 gettimeofday(&t, 0); 1: x/i $pc 0x20000197da0 : ldq t12,-28648(gp) (gdb) 0x20000197da4 66 gettimeofday(&t, 0); 1: x/i $pc 0x20000197da4 : jsr ra,(t12),0x2000019c000 (gdb) __gettimeofday_tv32 () at __gettimeofday_tv32:2 __gettimeofday_tv32:2: No such file or directory. 1: x/i $pc 0x200005c53c0 <__gettimeofday_tv32>: lda v0,116(zero) (gdb Richard Henderson wrote: > On Sun, Jun 20, 1999 at 06:07:18PM -0400, Meryem Kazanfer wrote: > > it does in RH 6.0 with glibc2.1. > > Yes. > > > In redhat 5.x, with glibc2.0.7 it doesn't. > > Yes. > > > If i'm not mistaken, u ssaid this was a posix change. > > Yes -- timeval.tv_sec must be of type time_t. > > Are you not using to get the definition of struct timeval? > Why are you so hung up on ints and longs? > > r~ >