util-linux/sys-utils
Karel Zak 6df5acf970 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>
2018-12-03 11:23:33 +01:00
..
.gitignore build-sys: support ./configure ADJTIME_PATH= 2014-06-19 10:30:56 +02:00
Makemodule.am build-sys: fix typo in man install 2018-08-15 11:47:17 +02:00
adjtime_config.5 docs: add adjtime_config(5) man page 2018-08-14 14:53:14 +02:00
blkdiscard.8 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
blkdiscard.c misc: consolidate macro style USAGE_HELP_OPTIONS 2017-06-29 16:54:33 +02:00
blkzone.8 man pages: Remove "left" (or change to "l") in the column formats of tables 2018-08-06 08:58:57 +02:00
blkzone.c blkzone: fix report zones sector offset check 2018-10-23 11:49:41 +02:00
chcpu.8 man: Use the correct macro for a font change of one argument 2018-05-23 10:43:27 +02:00
chcpu.c chcpu: use new ul_path_* API 2018-06-21 13:07:46 +02:00
chmem.8 man: Use the correct macro for a font change of one argument 2018-05-23 10:43:27 +02:00
chmem.c ipcs,chmem: fix access() usage 2018-06-25 16:49:00 +02:00
choom.1 Fix man page typos 2018-08-16 11:09:15 +02:00
choom.c choom: use new ul_path_* API 2018-06-21 13:49:16 +02:00
ctrlaltdel.8 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
ctrlaltdel.c ctrlaltdel: use new ul_path_* API 2018-06-21 13:07:46 +02:00
dmesg.1 man: Use the correct macro for a font change of one argument 2018-05-23 10:43:27 +02:00
dmesg.c dmesg: fix raw output 2018-04-05 15:59:59 +02:00
eject.1 docs: remove some old history from manpages 2017-06-29 12:56:22 +02:00
eject.c eject: use err() rather than abort() 2018-11-05 10:35:24 +01:00
fallocate.1 fallocate: add man page note about --collapse-range granularity 2018-07-03 13:51:51 +02:00
fallocate.c fallocate: add missing semicolon 2018-09-10 15:25:16 +03:00
flock.1 man: Use the correct macro for a font change of one argument 2018-05-23 10:43:27 +02:00
flock.c lib/timer: add fallback if timer_create() not available 2018-12-03 11:23:33 +01:00
fsfreeze.8 man: Use the correct macro for a font change of one argument 2018-05-23 10:43:27 +02:00
fsfreeze.c misc: consolidate macro style USAGE_HELP_OPTIONS 2017-06-29 16:54:33 +02:00
fstab.5 fstab(5): mention how tabs are escaped 2017-07-31 13:48:04 +02:00
fstrim.8 fstrim: use -n shortcut for --dry-run 2018-08-16 14:00:45 +02:00
fstrim.c fstrim: use -n shortcut for --dry-run 2018-08-16 14:00:45 +02:00
fstrim.service.in fstrim: Add hardening settings to fstrim.service 2018-11-22 11:13:58 +01:00
fstrim.timer fstrim: systemd timer units should be WantedBy=timers.target 2016-01-12 10:30:36 +01:00
hwclock-cmos.c hwclock: fix warning 2018-07-20 12:25:38 +02:00
hwclock-rtc.c hwclock: rely on kernel for RTC_UIE_ON on Aplha and Sparc 2018-08-03 13:08:21 +02:00
hwclock.8.in man pages: Fix misuse of two-fonts-macros (BR, IR) 2018-08-06 08:58:57 +02:00
hwclock.c hwclock: add --delay <seconds> 2018-07-18 13:59:15 +02:00
hwclock.h hwclock: add --delay <seconds> 2018-07-18 13:59:15 +02:00
ipcmk.1 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
ipcmk.c misc: consolidate macro style USAGE_HELP_OPTIONS 2017-06-29 16:54:33 +02:00
ipcrm.1 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
ipcrm.c misc: consolidate macro style USAGE_HELP_OPTIONS 2017-06-29 16:54:33 +02:00
ipcs.1 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
ipcs.c misc: consolidate macro style USAGE_HELP_OPTIONS 2017-06-29 16:54:33 +02:00
ipcutils.c ipcs,chmem: fix access() usage 2018-06-25 16:49:00 +02:00
ipcutils.h ipcs: use new ul_path_* API 2018-06-21 13:07:46 +02:00
ldattach.8 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
ldattach.c ldattach: simplify debugging function when vwarnx(3) is available 2017-07-15 22:02:53 +01:00
losetup.8 losetup: add reference to suffixes for --{sizelimit,offset} 2018-08-08 13:12:27 +02:00
losetup.c losetup: fix mem leak, improve code [coverity scan] 2018-07-25 11:56:44 +02:00
lscpu-arm.c lscpu: fixed part ID for ARM Cortex-M7 2018-08-13 16:45:01 +01:00
lscpu-dmi.c lscpu: move struct lscpu_desc header file 2018-01-22 13:04:12 +01:00
lscpu.1 man pages: Fix misuse of two-fonts-macros (BR, IR) 2018-08-06 08:58:57 +02:00
lscpu.c lscpu: use the first VM from /proc/sysinfo 2018-09-04 14:30:37 +02:00
lscpu.h lscpu: add 'Address sizes' 2018-08-01 08:33:32 +02:00
lsipc.1 lsipc: fix options parsing and sync with man page 2017-05-02 23:22:04 +01:00
lsipc.c lsipc: cleanup columns[] usage 2018-04-18 15:51:17 +02:00
lsmem.1 lsmem: add --output-all option 2018-05-03 19:56:20 +01:00
lsmem.c lsmem: use new ul_path_* API 2018-06-21 13:07:46 +02:00
lsns.8 lsns: add --output-all option 2018-05-03 19:56:21 +01:00
lsns.c lsns: remove unnecessary include 2018-05-17 12:42:16 +02:00
mount.8 mount: add note about MS_BIND and _netdev 2018-10-02 12:50:40 +02:00
mount.c mount: allow PID as --namespace argument 2018-06-11 16:16:32 +02:00
mountpoint.1 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
mountpoint.c mountpoint: simplify test condition [cppcheck] 2018-05-28 13:39:18 +02:00
nsenter.1 man: Use the correct macro for a font change of one argument 2018-05-23 10:43:27 +02:00
nsenter.c sys-utils: use errexec() 2018-02-01 15:44:25 +01:00
pivot_root.8 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
pivot_root.c misc: consolidate macro style USAGE_HELP_OPTIONS 2017-06-29 16:54:33 +02:00
prlimit.1 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
prlimit.c sys-utils: use errexec() 2018-02-01 15:44:25 +01:00
readprofile.8 Fix man page typos 2018-08-16 11:09:15 +02:00
readprofile.c misc: consolidate macro style USAGE_HELP_OPTIONS 2017-06-29 16:54:33 +02:00
renice.1 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
renice.c Fix minor typo: priorty -> priority 2017-12-31 13:07:43 +02:00
rfkill.8 rfkill: add --output-all option 2018-05-03 19:56:21 +01:00
rfkill.c rfkill: don't use lib/path 2018-06-21 13:07:46 +02:00
rtcwake.8.in man pages: Fix misuse of two-fonts-macros (BR, IR) 2018-08-06 08:58:57 +02:00
rtcwake.c rtcwake: use poweroff if shutdown is not found 2018-11-06 12:34:02 +01:00
setarch.8 Fix man page typos 2018-08-16 11:09:15 +02:00
setarch.c setarch: fix obscure sparc32bash use-case 2018-11-22 11:03:35 +01:00
setpriv.1 setpriv: add --reset-env 2018-08-22 11:43:32 +02:00
setpriv.c setpriv: add --reset-env 2018-08-22 11:43:32 +02:00
setsid.1 setsid: new option --fork 2017-11-08 11:38:26 +01:00
setsid.c sys-utils: use errexec() 2018-02-01 15:44:25 +01:00
swapoff.8 build-sys: move swapon from mount/ to sys-utils/ 2012-01-11 12:14:29 +01:00
swapoff.c build-sys: don't check for swapon() number of arguments 2017-12-18 13:57:20 +01:00
swapon-common.c mount, umount, swapon, fsck, lsblk, findmnt: harmonize six error messages 2016-03-16 10:39:38 +01:00
swapon-common.h swapon: split swapon-common.c 2014-09-22 13:16:25 +02:00
swapon.8 Fix man page typos 2018-08-16 11:09:15 +02:00
swapon.c swapon: fix compiler warnings [-Wcast-qual] 2018-07-23 11:43:47 +02:00
switch_root.8 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
switch_root.c fix a bug where switch_root would erroneously try to parse initargs 2018-11-12 14:20:45 +01:00
tunelp.8 tunelp: use linux header 2017-07-31 13:48:04 +02:00
tunelp.c tunelp: use linux header 2017-07-31 13:48:04 +02:00
umount.8 Fix man page typos 2018-08-16 11:09:15 +02:00
umount.c umount: add --quiet option 2018-08-01 09:10:07 +02:00
unshare.1 unshare: allow to set user ID and group ID 2018-11-12 11:52:15 +01:00
unshare.c unshare: allow to set user ID and group ID 2018-11-12 11:52:15 +01:00
wdctl.8 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
wdctl.c wdctl: do not call fsync(2) when closing watchdog device 2017-07-31 13:48:04 +02:00
zramctl.8 zramctl: (man) explain that --find is necessary 2018-06-11 11:14:56 +02:00
zramctl.c zramctl: use new ul_path_* API 2018-06-21 13:07:46 +02:00