summaryrefslogtreecommitdiff
path: root/src/sysdeps/tryitimer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sysdeps/tryitimer.c')
-rw-r--r--src/sysdeps/tryitimer.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sysdeps/tryitimer.c b/src/sysdeps/tryitimer.c
new file mode 100644
index 0000000..4fd3454
--- /dev/null
+++ b/src/sysdeps/tryitimer.c
@@ -0,0 +1,10 @@
+/* ISC license. */
+
+#include <sys/time.h>
+
+int main (void)
+{
+ struct itimerval blah ;
+ if (getitimer(ITIMER_REAL, &blah) < 0) return 111 ;
+ return 0 ;
+}