diff options
Diffstat (limited to 'src/sysdeps')
-rw-r--r-- | src/sysdeps/tryclockboot.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sysdeps/tryclockboot.c b/src/sysdeps/tryclockboot.c new file mode 100644 index 0000000..de8bf5c --- /dev/null +++ b/src/sysdeps/tryclockboot.c @@ -0,0 +1,10 @@ +/* ISC license. */ + +#include <time.h> + +int main (void) +{ + struct timespec ts ; + if (clock_gettime(CLOCK_BOOTTIME, &ts) < 0) return 111 ; + return 0 ; +} |