summaryrefslogtreecommitdiffstats
path: root/signal.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-08-01 22:13:11 -0700
committerKaz Kylheku <kaz@kylheku.com>2014-08-01 22:13:11 -0700
commit404e5c4091c607a39d28b651063da9bdc7ebb3bb (patch)
tree0ff839db2e4d40c86918c423538ec617da24560e /signal.h
parent3c616876604219141ad1088e372c91928508f089 (diff)
downloadtxr-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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/signal.h b/signal.h
index 63a9bb8d..4fe9d823 100644
--- a/signal.h
+++ b/signal.h
@@ -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