timer_gettime vs getitimer

Hal Murray hmurray at megapathdsl.net
Fri Dec 6 05:16:18 UTC 2019

Are we interested in any systems without timer_gettime and friends?

How do I answer questions like that?  Do we have a list of the systems we are 
interested in?


>From devel/hacking.adoc:
  You *may* use clock_gettime(2) and clock_settime(2) calls, and
  the related getitimer(2)/setitimer(2), from POSIX-1.2008.

The Linux man page says getitimer is obsolete.  There is code to use it if 
timer_gettime isn't available.

timer_gettime is in Linux, NetBSD and FreeBSD.

These are my opinions.  I hate spam.

More information about the devel mailing list