]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/timer: add fallback if timer_create() not available
authorKarel Zak <kzak@redhat.com>
Wed, 24 Oct 2018 10:28:13 +0000 (12:28 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 3 Dec 2018 10:23:33 +0000 (11:23 +0100)
commit6df5acf970852a94b254800dc69569bd1f4c9ae8
tree18751217f934f0dd328edd69fe4da5b6bfb0428c
parent9a558f9cf68f89f62799b073d0fe7fcdd7aafdba
lib/timer: add fallback if timer_create() not available

* add struct ul_timer as API abstraction to hide differences between
timer_create() and setitimer()

* add setitimer() detection to ./configure.ac

* add fallback code to use setitimer() if timer_create() not available
  (for example on OSX)

Addresses: https://github.com/karelzak/util-linux/issues/584
Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac
include/timer.h
lib/timer.c
misc-utils/uuidd.c
sys-utils/flock.c