From: David Mosberger-Tang <davidm@AZStarNet.com>
Subject: Re: times(2) no sys_call ??
Date: Fri, 10 May 1996 08:51:57 -0700 [thread overview]
Message-ID: <199605101551.IAA01545@koala.azstarnet.com> (raw)
>>>>> On Fri, 10 May 1996 09:53:00 +0200 (MET DST), koenig@tat.physik.uni-tuebingen.de (Harald Koenig) said:
>> This seems the "standard" value. It's the same value that glibc
>> uses. I don't think there is anything in POSIX requires CLK_TCK
>> to equal HZ. And since OSF/1 uses 60 as well, it's probably
>> better to stick with that value.
>>
>> IMHO: avoid times() if you can...
Harald> but why is times() no real system call to sys_times() in
Harald> linux/kernel/sys.c ?
If memory serves, that system call wasn't enabled for the Alpha until
work on glibc started. OSF/1 doesn't have that syscall so it probably
was felt that Linux/Alpha wouldn't need it either (which is true,
strictly speaking).
Here is the situation with glibc: it uses the real system call, but it
currently has CLK_TCK defined as 60. This is wrong so I fixed it to
use HZ instead. I hope the patch will show in the regular glibc
sources soon.
So, CLK_TCK on the Alpha will be 1024, not 60 as under OSF/1. But
that is OK, since OSF/1 doesn't use the times syscall to implement
times().
As I said: avoid times if you can... :-)
--david
next reply other threads:[~1996-05-10 15:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-05-10 15:51 David Mosberger-Tang [this message]
-- strict thread matches above, loose matches on Subject: below --
1996-05-10 5:07 times(2) no sys_call ?? David Mosberger-Tang
1996-05-17 9:11 ` Harald Koenig
1996-05-10 4:42 David Mosberger-Tang
1996-05-10 7:53 ` Harald Koenig
1996-05-10 7:53 ` Harald Koenig
1996-05-09 17:08 Harald Koenig
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