Possible cruft cleanup: clock_gettime vs getitimer

Eric S. Raymond esr at thyrsus.com
Mon Feb 17 03:42:41 UTC 2020


Hal Murray via devel <devel at ntpsec.org>:
> devel/hacking.adoc says:
>   You *may* use clock_gettime(2) and clock_settime(2) calls, and
>   the related getitimer(2)/setitimer(2), from POSIX-1.2008.
> 
> My man pages say both are in POSIX.1-2001.
> 
> Is there any reason we don't pick one and discard the crufty ifdefs?
> 
> No big deal, just another minor cleanup that makes the code slightly easier to 
> read and maintain.

I believe those #ifdefs are a port hack for a minor platform that's not
completely standards-cimpliant, most likely some version og Mac OS/X. 
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>




More information about the devel mailing list