about summary refs log tree commit diff
path: root/manual
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2024-09-06 14:07:00 +0200
committerFlorian Weimer <fweimer@redhat.com>2024-09-06 14:07:00 +0200
commit6efd6cd46bf2257e674be4933a034542d80944eb (patch)
tree87cf88e2fd7e9a4a6c8c08fa9f638290814bf077 /manual
parent6252c59f15b373b51e11b787b7b7f33974cd0a27 (diff)
downloadglibc-6efd6cd46bf2257e674be4933a034542d80944eb.tar.gz
glibc-6efd6cd46bf2257e674be4933a034542d80944eb.tar.xz
glibc-6efd6cd46bf2257e674be4933a034542d80944eb.zip
manual: Safety annotations for clock_gettime, clock_getres
The annotations are preliminary, for consistency with existing
annotations on gettimeofday etc.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'manual')
-rw-r--r--manual/time.texi2
1 files changed, 2 insertions, 0 deletions
diff --git a/manual/time.texi b/manual/time.texi
index 6b1080db06..64aad8fdc5 100644
--- a/manual/time.texi
+++ b/manual/time.texi
@@ -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}}.