]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
manual: Safety annotations for timespec_get and timespec_getres
authorTulio Magno Quites Machado Filho <tuliom@redhat.com>
Tue, 28 Jan 2025 18:31:01 +0000 (15:31 -0300)
committerTulio Magno Quites Machado Filho <tuliom@redhat.com>
Fri, 31 Jan 2025 15:13:20 +0000 (12:13 -0300)
Add preliminary annotations that are consistent with clock_gettime and
clock_getres.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
manual/time.texi

index 90bc9a2566e4ca5498f10502ac5bc8c5c9aeed96..04c97f52ff6ba1649326ff47e5dcd8c32964e1e6 100644 (file)
@@ -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}.