]> sourceware.org Git - glibc.git/commitdiff
manual: Safety annotations for clock_gettime, clock_getres
authorFlorian Weimer <fweimer@redhat.com>
Fri, 6 Sep 2024 12:07:00 +0000 (14:07 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 6 Sep 2024 12:07:00 +0000 (14:07 +0200)
The annotations are preliminary, for consistency with existing
annotations on gettimeofday etc.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
manual/time.texi

index 6b1080db0626174e91fd29818d1bb5ad63220942..64aad8fdc58382ac8aa5d24d3122e15ce0015283 100644 (file)
@@ -532,6 +532,7 @@ Systems may support more than just these two POSIX clocks.
 
 @deftypefun int clock_gettime (clockid_t @var{clock}, struct timespec *@var{ts})
 @standards{POSIX.1, time.h}
+@safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}}
 Get the current time according to the clock identified by @var{clock},
 storing it as seconds and nanoseconds in @code{*@var{ts}}.
 @xref{Time Types}, for a description of @code{struct timespec}.
@@ -553,6 +554,7 @@ clock:
 
 @deftypefun int clock_getres (clockid_t @var{clock}, struct timespec *@var{res})
 @standards{POSIX.1, time.h}
+@safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}}
 Get the actual resolution of the clock identified by @var{clock},
 storing it in @code{*@var{ts}}.
 
This page took 0.045073 seconds and 5 git commands to generate.