Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Craig Groeschel <craig@metrolink.com>
Subject: Re: time(1) incorrect (Re) ... times(3) strange; clock_t == long
Date: Thu, 29 Feb 1996 09:43:42 -0500 (EST)	[thread overview]
Message-ID: <m0ts9a2-000Bn5C@tartan> (raw)
In-Reply-To: <199602290957.EAA24888@postman.osf.org>

> I replayed this time(1) story 2.5 months later, on my BLADE_0.3 platform.
> I think it is [was] due to times(3) which uses [used] to return a

No, I don't think it was the units.  I think it was...

> I have also a question on clock_t: it's a `long' on BLADE_0.3 (<asm/types.h>)
> but an `int' on Digital Unix (<sys/types.h>). While perhaps sometimes

If you were to compile time(1) with "gcc -Wall" you would observe some
warnings about printf int/long mismatches.  Fixing those up in the time
program made it return proper numbers.

Speaking of the Byte benchmarks, I fixed the "write an long, read an int"
problem in the pipe-based context switch test and sent diffs to the
maintainer of the Linux Benchmark page.  The response I got was

> The code doesn't require a patch, BTW.  Thousands have ran the code.

Oh well.  My mistake I'm sure.

-- 
Craig E. Groeschel  <craig@metrolink.com>  Not speaking for my employer.
"Do not play this piece fast.  It is never right to play Ragtime fast." Joplin
linux$ /bin/pwd: can't load library '/lib/libc.2.2.2'

  reply	other threads:[~1996-02-29 14:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-02-29  9:53 time(1) incorrect (Re) ... times(3) strange; clock_t == long froy
1996-02-29 14:43 ` Craig Groeschel [this message]
1996-02-29 15:57   ` Fred Roy
1996-02-29 15:42 ` Erik Troan
     [not found] <Pine.LNX.3.91.960229104046.22036A-100000@redhat.com>
1996-02-29 16:41 ` Richard Henderson
  -- strict thread matches above, loose matches on Subject: below --
1996-03-04 22:43 David Mosberger-Tang
1996-03-04 23:48 Kendall Clark
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