diff options
author | Elliott Hughes <enh@google.com> | 2024-03-05 15:44:19 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2024-03-05 15:44:19 +0000 |
commit | 7c37e12827e667fae78e186c753f12cf1f18b1f8 (patch) | |
tree | ce1946516c8fa6e67bc54f4dd78205c781b5771c | |
parent | c2ce647e2a38a905607ee3a9654719ee94356500 (diff) | |
parent | 70ecb746f3e993027a42bedd63dfbc7c80a0c90a (diff) | |
download | bionic-temp_319669529.tar.gz |
Merge "Clarify the timespec argument to clock_nanosleep()." into main am: 70ecb746f3temp_319669529
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2987070
Change-Id: Ie84b92a2839ad09f5f73f1cce173df5a14e3e237
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-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) |