check for CLOCK_MONOTONIC

James Peach jpeach at samba.org
Wed Jun 7 02:48:57 GMT 2006


On Wed, 2006-06-07 at 10:00 +1000, James Peach wrote:
> 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 rejiggered your patch a bit, can you please re-test before I commit?

-- 
James Peach | jpeach at samba.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bjacke-check-clock-availability
Type: text/x-patch
Size: 5624 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20060607/0fccceae/bjacke-check-clock-availability.bin


More information about the samba-technical mailing list