James Peach jpeach at
Wed Jun 7 00:00:21 GMT 2006

On Tue, 2006-06-06 at 22:53 +0200, Björn JACKE wrote:
> Hi,
> attached is a patch which checks the availabiliy of the different 
> clocks on that System and if they really work on that hardware. Keep 
> in mind that clock_gettime(3) mentions that even if a clock is known 
> by the libc, it might be unavailable, which will result in 
> clock_gettime() returning EINVAL.
> James, that's you code, can you please have a look?

Thanks, the patch looks great!

I have a couple of minor quibbles
	- I don't think that the CLOCK_* definitions are guaranteed to
	be #defines, so we should have checks for them
	- we can't use CLOCK_PROCESS_CPUTIME_ID on a multiprocessor

I'll check in a slightly modified version of your patch in a hour or
so ...

James Peach | jpeach at

More information about the samba-technical mailing list