From: Uncle George <gatgul@voicenet.com>
To: axp-list@redhat.com, Richard Henderson <rth@twiddle.net>
Subject: Re: what does struct timeval look like on alpha ?
Date: Sun, 20 Jun 1999 18:01:22 -0400 [thread overview]
Message-ID: <376D64B2.6642D815@voicenet.com> (raw)
In-Reply-To: 19990619205852.A8660@twiddle.net
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 <sysTimeMillis+12>: clr a1
(gdb) si
57 {
1: x/i $pc 0x20000197d90 <sysTimeMillis+16>: stq s0,8(sp)
(gdb)
66 gettimeofday(&t, 0);
1: x/i $pc 0x20000197d94 <sysTimeMillis+20>: addq sp,0x10,a0
(gdb)
73 fprintf(stderr,"sysTimeMillis:s=%ld", t.tv_sec);
1: x/i $pc 0x20000197d98 <sysTimeMillis+24>: ldq s0,-27832(gp)
(gdb)
57 {
1: x/i $pc 0x20000197d9c <sysTimeMillis+28>: stq ra,0(sp)
(gdb)
66 gettimeofday(&t, 0);
1: x/i $pc 0x20000197da0 <sysTimeMillis+32>: ldq t12,-28648(gp)
(gdb)
0x20000197da4 66 gettimeofday(&t, 0);
1: x/i $pc 0x20000197da4 <sysTimeMillis+36>:
jsr ra,(t12),0x2000019c000 <intrInitMD+352>
(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 <sys/time.h> to get the definition of struct timeval?
> Why are you so hung up on ints and longs?
>
> r~
>
next prev parent reply other threads:[~1999-06-20 22:55 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
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 [this message]
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