bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

new module 'timespec_get'


From: Bruno Haible
Subject: new module 'timespec_get'
Date: Sat, 02 Jan 2021 13:18:42 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-197-generic; KDE/5.18.0; x86_64; ; )

One of the glibc functions that was added in 2012 already is actually
specified in ISO C 11: 'timespec_get'. This set of patches implements it,
as a thin wrapper around the 'gettime' module.


2021-01-02  Bruno Haible  <bruno@clisp.org>

        timespec_get: Add tests.
        * tests/test-timespec_get.c: New file.
        * modules/timespec_get-tests: New file.

        timespec_get: New module.
        * lib/time.in.h (timespec_get): New declaration.
        * lib/timespec_get.c: New file.
        * m4/timespec_get.m4: New file.
        * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
        GNULIB_TIMESPEC_GET, HAVE_TIMESPEC_GET.
        * modules/time (Makefile.am): Substitute GNULIB_TIMESPEC_GET,
        HAVE_TIMESPEC_GET.
        * modules/timespec_get: New file.
        * tests/test-time-c++.cc (timespec_get): Check signature.
        * doc/glibc-functions/timespec_get.texi: Mention the new module.

2021-01-01  Bruno Haible  <bruno@clisp.org>

        time: Define TIME_UTC.
        * lib/time.in.h (TIME_UTC, GNULIB_defined_TIME_UTC): New macros.
        * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Set TIME_H_DEFINES_TIME_UTC.
        * modules/time (Makefile.am): Substitute TIME_H_DEFINES_TIME_UTC.
        * tests/test-time.c: Check that TIME_UTC is defined and a positive
        integer.
        * doc/posix-headers/time.texi: Mention TIME_UTC.

Attachment: 0001-time-Define-TIME_UTC.patch
Description: Text Data

Attachment: 0002-timespec_get-New-module.patch
Description: Text Data

Attachment: 0003-timespec_get-Add-tests.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]