diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-08-01 22:13:11 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-08-01 22:13:11 -0700 |
commit | 404e5c4091c607a39d28b651063da9bdc7ebb3bb (patch) | |
tree | 0ff839db2e4d40c86918c423538ec617da24560e /signal.h | |
parent | 3c616876604219141ad1088e372c91928508f089 (diff) | |
download | txr-404e5c4091c607a39d28b651063da9bdc7ebb3bb.tar.gz txr-404e5c4091c607a39d28b651063da9bdc7ebb3bb.tar.bz2 txr-404e5c4091c607a39d28b651063da9bdc7ebb3bb.zip |
* configure (have_sys_time): New variable.
Added check for setitimer/getitimer which also
checks for <sys/time.h>.
* signal.c (sig_init): Register itimer-real, itimer-virtual,
itimer-prof variables and getitimer and setitimer functions.
(tv_to_usec): New static function.
(getitimer_wrap, setitimer_wrap): New functions.
* signal.h (getitimer_wrap, setitimer_wrap): Declared.
* txr.1: Documented itimers.
Diffstat (limited to 'signal.h')
-rw-r--r-- | signal.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -124,3 +124,8 @@ val sig_check(void); #if HAVE_POSIX_SIGS int sig_mask(int how, const sigset_t *set, sigset_t *oldset); #endif + +#if HAVE_ITIMER +val getitimer_wrap(val which); +val setitimer_wrap(val which, val interval, val currval); +#endif |