diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2016-10-24 02:15:36 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2016-10-24 02:15:36 +0000 |
commit | 9ef3a9f8b2704693496af12120ea3ab40389bf7b (patch) | |
tree | 9ed582b049881f1271a6b02978f1ed6d28a4f948 /src/sysdeps/trytimer.c | |
parent | 422d91b2b0a2b8b3a8af510cc55b1400c60be303 (diff) | |
download | skalibs-9ef3a9f8b2704693496af12120ea3ab40389bf7b.tar.xz |
Add the alarm library, first draft.
Diffstat (limited to 'src/sysdeps/trytimer.c')
-rw-r--r-- | src/sysdeps/trytimer.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/sysdeps/trytimer.c b/src/sysdeps/trytimer.c new file mode 100644 index 0000000..84cea0d --- /dev/null +++ b/src/sysdeps/trytimer.c @@ -0,0 +1,12 @@ +/* ISC license. */ + +#include <sys/types.h> +#include <signal.h> +#include <time.h> + +int main (void) +{ + timer_t blah ; + if (timer_create(CLOCK_REALTIME, 0, &blah) < 0) return 111 ; + return 0 ; +} |