[glibc] manual: Safety annotations for timespec_get and timespec_getres
Tulio Magno Quites Machado Filho
tuliom@sourceware.org
Fri Jan 31 15:15:05 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=1b29cb7b781ecf3f6dc4647c32861119bacbd5ef
commit 1b29cb7b781ecf3f6dc4647c32861119bacbd5ef
Author: Tulio Magno Quites Machado Filho <tuliom@redhat.com>
Date: Tue Jan 28 15:31:01 2025 -0300
manual: Safety annotations for timespec_get and timespec_getres
Add preliminary annotations that are consistent with clock_gettime and
clock_getres.
Reviewed-by: Florian Weimer <fweimer@redhat.com>
Diff:
---
manual/time.texi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/manual/time.texi b/manual/time.texi
index 90bc9a2566..04c97f52ff 100644
--- a/manual/time.texi
+++ b/manual/time.texi
@@ -595,6 +595,7 @@ Systems may support more than just this @w{ISO C} clock.
@deftypefun int timespec_get (struct timespec *@var{ts}, int @var{base})
@standards{ISO, time.h}
+@safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}}
Store into @code{*@var{ts}} the current time according to the @w{ISO
C} time @var{base}.
@@ -603,6 +604,7 @@ The return value is @var{base} on success and @code{0} on failure.
@deftypefun int timespec_getres (struct timespec *@var{res}, int @var{base})
@standards{ISO, time.h}
+@safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}}
If @var{ts} is non-null, store into @code{*@var{ts}} the resolution of
the time provided by @code{timespec_get} function for the @w{ISO C}
time @var{base}.
More information about the Glibc-cvs
mailing list