Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Fred Roy <froy@gr.osf.org>
Subject: Re: first linux/alpha questions
Date: Mon, 15 Apr 1996 10:36:46 +0200	[thread overview]
Message-ID: <199604150836.EAA00917@postman.osf.org> (raw)
In-Reply-To: <9604121350.AA26210@nova.tat.physik.uni-tuebingen.de>

I had a similar problem some weeks ago with the time(1) command from
the BLADE_0.3 distribution. I suspected the times(2) library function,
that used to return an incorrect value, and I mailed what I found to the
linux-alpha@vger(..) and @redhat.com.
David M. proposed a fix in source form to the libc:

David > PS: All it should take is to replace libc/sysdeps/linux/alpha/times.c
David > with times.S containing the following lines (and updating the
David > Makefile).
David >
David > #include <sysdep.h>

David > SYSCALL__ (times, 1)
David > 	RETSYS(__times)

I did not experiment this fix, because I had already written a workaround in
the source code for time(1): I changed some of the  calls to times(2) by calls 
to time(2); while it gives an accuracy of 1 second (yes, dear), the command
line:
/usr/local/bin/time sleep 2
gives now a not silly value for the elapsed time. So you have now  several 
means
to fix the time(1) problem. Good luck!
fred

  reply	other threads:[~1996-04-15  8:36 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.3.91.960403165726.7085C-100000@elroy.redhat.com>
1996-04-04 10:10 ` first linux/alpha questions Richard Henderson
1996-04-12 13:36 ` Harald Koenig
1996-04-15  8:36   ` Fred Roy [this message]
1996-04-04  7:50 Ka'plaagh 04-Apr-1996 0953 +0100
1996-04-04 11:33 ` Matti E Aarnio
  -- strict thread matches above, loose matches on Subject: below --
1996-04-04  6:54 David Mosberger-Tang
1996-04-04  8:03 ` Harald Koenig
1996-04-02 22:11 Upgrading to RPM 2.0 Matti E Aarnio
1996-04-03 21:28 ` first linux/alpha questions Harald Koenig
1996-04-03 22:00   ` Erik Troan
1996-04-03 22:18   ` Thomas Bogendoerfer
1996-04-04  5:40     ` Linus Torvalds
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