]> git.ipfire.org Git - thirdparty/glibc.git/commit
support: Add timespec.h
authorMike Crowe <mac@mcrowe.com>
Thu, 9 May 2019 17:19:21 +0000 (14:19 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 9 May 2019 17:33:53 +0000 (14:33 -0300)
commit519839965197291924895a3988804e325035beee
treec99f523add5a2a2fe22d0c747bf497eb800941da
parent18aa51ee0d1a9c555d9fee93441cd075cd9b5975
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>
ChangeLog
support/Makefile
support/README
support/timespec-add.c [new file with mode: 0644]
support/timespec-sub.c [new file with mode: 0644]
support/timespec.c [new file with mode: 0644]
support/timespec.h [new file with mode: 0644]