From: quzar <qu...@us...> - 2024-08-06 06:40:19
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "A pseudo Operating System for the Dreamcast.". The branch, master has been updated via 90f95e840f1bbfcb03c71240250bf1c3b84219d2 (commit) from 013fef38184d6d8517a42e8acea8f6b9558e33d9 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 90f95e840f1bbfcb03c71240250bf1c3b84219d2 Author: Falco Girgis <gyr...@gm...> Date: Tue Aug 6 01:38:34 2024 -0500 Added declaration for nanosleep to time.h. (#691) Since we don't define _POSIX_TIMERS (since we don't suppor them (yet)), Newlib does not provide us with a protype for nanosleep(). I've added it to KOS's time.h extension header. ----------------------------------------------------------------------- Summary of changes: include/kos/time.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/kos/time.h b/include/kos/time.h index fe6f2ddc..5fa1f7ba 100644 --- a/include/kos/time.h +++ b/include/kos/time.h @@ -113,12 +113,14 @@ extern __time_t timegm(struct tm *timeptr); #endif /* Explicitly provided function declarations for POSIX clock API, since -getting them from Newlib requires supporting the rest of the _POSIX_TIMERS -API, which is not implemented yet. */ + getting them from Newlib requires supporting the rest of the _POSIX_TIMERS + API, which is not implemented yet. */ extern int clock_settime(__clockid_t clock_id, const struct timespec *ts); extern int clock_gettime(__clockid_t clock_id, struct timespec *ts); extern int clock_getres(__clockid_t clock_id, struct timespec *res); +extern int nanosleep(const struct timespec *req, struct timespec *rem); + #endif /** \endcond */ hooks/post-receive -- A pseudo Operating System for the Dreamcast. |