summary refs log tree commit diff
path: root/support/Makefile
diff options
context:
space:
mode:
authorMike Crowe <mac@mcrowe.com>2019-05-09 14:19:21 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2019-05-09 14:33:53 -0300
commit519839965197291924895a3988804e325035beee (patch)
treec99f523add5a2a2fe22d0c747bf497eb800941da /support/Makefile
parent18aa51ee0d1a9c555d9fee93441cd075cd9b5975 (diff)
downloadglibc-519839965197291924895a3988804e325035beee.tar.gz
glibc-519839965197291924895a3988804e325035beee.tar.xz
glibc-519839965197291924895a3988804e325035beee.zip
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 <adhemerval.zanella@linaro.org>
Diffstat (limited to 'support/Makefile')
-rw-r--r--support/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/support/Makefile b/support/Makefile
index 05865fef1e..64044f6f5c 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 \