about summary refs log tree commit diff
path: root/support/README
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/README
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/README')
-rw-r--r--support/README5
1 files changed, 5 insertions, 0 deletions
diff --git a/support/README b/support/README
index d82f472fc7..ae2c41caa8 100644
--- a/support/README
+++ b/support/README
@@ -28,3 +28,8 @@ header files provide related declarations:
 * check.h
 * temp_file.h
 * test-driver.h
+
+For tests that make use of struct timespec, the following header files
+contain additional macros and helper functions:
+
+* timespec.h