From 519839965197291924895a3988804e325035beee Mon Sep 17 00:00:00 2001 From: Mike Crowe Date: Thu, 9 May 2019 14:19:21 -0300 Subject: support: Add timespec.h It adds useful functions for tests that use struct timespec. Checked on x86_64-linux-gnu and i686-linux-gnu. * support/timespec.h: New file. Provide timespec helper functions along with macros in the style of those in check.h. * support/timespec.c: New file. Implement check functions declared in support/timespec.h. * support/timespec-add.c: New file from gnulib containing timespec_add implementation that handles overflow. * support/timespec-sub.c: New file from gnulib containing timespec_sub implementation that handles overflow. * support/README: Mention timespec.h. Reviewed-by: Adhemerval Zanella --- support/Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'support/Makefile') diff --git a/support/Makefile b/support/Makefile index 05865fe..64044f6 100644 --- a/support/Makefile +++ b/support/Makefile @@ -71,6 +71,9 @@ libsupport-routines = \ support_test_main \ support_test_verify_impl \ temp_file \ + timespec \ + timespec-add \ + timespec-sub \ write_message \ xaccept \ xaccept4 \ -- cgit v1.1