diff options
author | Elliott Hughes <enh@google.com> | 2024-03-05 15:25:46 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2024-03-05 15:25:46 +0000 |
commit | 70ecb746f3e993027a42bedd63dfbc7c80a0c90a (patch) | |
tree | 8b4cda10fc5a54704c7bef279f7ddf9520b5ab9b | |
parent | 47f8ab80ccfbc88594762c07aad326ad0573ae97 (diff) | |
parent | 8dc9c1cad32142a233b754229487fb78cd48e3e2 (diff) | |
download | bionic-70ecb746f3e993027a42bedd63dfbc7c80a0c90a.tar.gz |
Merge "Clarify the timespec argument to clock_nanosleep()." into main
-rw-r--r-- | libc/include/time.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/include/time.h b/libc/include/time.h index 45c5c3423..f4488517a 100644 --- a/libc/include/time.h +++ b/libc/include/time.h @@ -365,13 +365,14 @@ int clock_gettime(clockid_t __clock, struct timespec* _Nonnull __ts); /** * [clock_nanosleep(2)](http://man7.org/linux/man-pages/man2/clock_nanosleep.2.html) - * sleeps for the given time as measured by the given clock. + * sleeps for the given time (or until the given time if the TIMER_ABSTIME flag + * is used), as measured by the given clock. * * Returns 0 on success, and returns -1 and returns an error number on failure. * If the sleep was interrupted by a signal, the return value will be `EINTR` * and `remainder` will be the amount of time remaining. */ -int clock_nanosleep(clockid_t __clock, int __flags, const struct timespec* _Nonnull __duration, struct timespec* _Nullable __remainder); +int clock_nanosleep(clockid_t __clock, int __flags, const struct timespec* _Nonnull __time, struct timespec* _Nullable __remainder); /** * [clock_settime(2)](http://man7.org/linux/man-pages/man2/clock_settime.2.html) |