On Tue, 2008-09-02 at 19:21 +0200, Kaplan L. Aaron wrote:
[...]
> yup, that could go into the os/ specific directories.

In an ideal world we wouldn't need the os/ directories;-)

> I am not that much of a portability guru as Bernd but I guess on the  

I'm lazy and use (somewhat) portable functions if possible (if only that
I don't have to read new man pages;-).
The main reason is:
We have ports for (say) 3 different BSDs + Linux + Win32. 
Suppose each uses some kernel-specific means (and not some trivial
variant of times(2)) written by several "OS-specific gurus".
Assume a timer bug which occurs only on some kernels.
No one can actually look into it and find differences between them
unless he/she knows all of the interesting ones. And if it's gets very
specific, there are less people with in depth knowledge.
Let alone if the kernel version(s) are also important.

> one hand we should be able to have posix timers and on the other hand  
> we could use the much more advanced linux timers.

Is times(2) not good enough?

> And there is a multitude to chose from ;-)

Maybe. But I never needed anything else than times(2) (and the variant
with the "sane_" prefix).

	Bernd
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services




