From: ljsebald <ljs...@us...> - 2024-03-18 02:16:03
|
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 6321b5edb09a89d7f90ba56927f858df981bb27a (commit) via 1259a4474c5e9cf94cfc55bc3cca521d4c73a93f (commit) via 68b489dea38fc6d2103ab333230750830499855d (commit) via 67be188ddb7db70eb59a224ab0425113a6a46f7a (commit) from 33c7ee5dbacfb0d2e862377da8ffb4ac00818cf1 (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 6321b5edb09a89d7f90ba56927f858df981bb27a Merge: 1259a447 68b489de Author: Lawrence Sebald <ljs...@us...> Date: Sun Mar 17 22:15:12 2024 -0400 Merge pull request #495 from KallistiOS/posix_clock_declarations Added declarations for clock_xxx() POSIX API commit 1259a4474c5e9cf94cfc55bc3cca521d4c73a93f Merge: 33c7ee5d 67be188d Author: Lawrence Sebald <ljs...@us...> Date: Sun Mar 17 22:13:27 2024 -0400 Merge pull request #491 from KallistiOS/gdb142 Update configs with GDB 14.1 to 14.2 commit 68b489dea38fc6d2103ab333230750830499855d Author: Falco Girgis <gyr...@gm...> Date: Sun Mar 17 11:38:15 2024 -0500 Fixed declarations for clock_xx() POSIX API Since we were never defining _POSIX_TIMERS support within KOS (we don't support all of its functionality), Newlib was never providing us with the declarations for the POSIX clock_xxx() date/time API which we do implement. - Added explicit prototypes for POSIX clock_gettime(), clock_settime(), and clock_getres(). commit 67be188ddb7db70eb59a224ab0425113a6a46f7a Author: darc <da...@pr...> Date: Sun Mar 3 17:51:07 2024 -0600 Update configs with GDB 14.1 to 14.2 ----------------------------------------------------------------------- Summary of changes: include/kos/time.h | 14 ++++++++++++++ include/sys/_pthread.h | 3 --- utils/dc-chain/config/config.mk.10.5.0.sample | 2 +- utils/dc-chain/config/config.mk.11.4.0.sample | 2 +- utils/dc-chain/config/config.mk.12.3.0.sample | 2 +- utils/dc-chain/config/config.mk.13.2.1-dev.sample | 2 +- utils/dc-chain/config/config.mk.14.0.1-dev.sample | 2 +- utils/dc-chain/config/config.mk.9.5.0-winxp.sample | 2 +- utils/dc-chain/config/config.mk.stable.sample | 2 +- 9 files changed, 21 insertions(+), 10 deletions(-) diff --git a/include/kos/time.h b/include/kos/time.h index 67f28d4a..3995c061 100644 --- a/include/kos/time.h +++ b/include/kos/time.h @@ -15,6 +15,10 @@ This will probably go away at some point in the future, if/when Newlib gets an implementation of this function. But for now, it's here. + \todo + - Implement _POSIX_TIMERS, which requires POSIX signals back-end. + - Implement thread-specific CPU time + \author Lawrence Sebald \author Falco Girgis */ @@ -37,8 +41,11 @@ __BEGIN_DECLS struct timespec; #define TIME_UTC 1 + +/* Microsecond resolution for clock(), per POSIX standard */ #define CLOCKS_PER_SEC 1000000 +/* C11 nanosecond-resolution timing. */ extern int timespec_get(struct timespec *ts, int base); #endif /* !defined(__STRICT_ANSI__) || (__STDC_VERSION__ >= 201112L) || (__cplusplus >= 201703L) */ @@ -64,6 +71,13 @@ extern int timespec_get(struct timespec *ts, int base); #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. */ +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); + #endif /* !defined(__STRICT_ANSI__) || (_POSIX_C_SOURCE >= 199309L) */ __END_DECLS diff --git a/include/sys/_pthread.h b/include/sys/_pthread.h index aa9ae369..a53bdd28 100644 --- a/include/sys/_pthread.h +++ b/include/sys/_pthread.h @@ -14,7 +14,4 @@ /** \brief POSIX timeouts supported (sorta) */ #define _POSIX_TIMEOUTS -/** \brief POSIX timers supported (not really) */ -#define _POSIX_TIMERS - #endif /* __SYS__PTHREAD_H */ diff --git a/utils/dc-chain/config/config.mk.10.5.0.sample b/utils/dc-chain/config/config.mk.10.5.0.sample index a91da992..69bb718b 100644 --- a/utils/dc-chain/config/config.mk.10.5.0.sample +++ b/utils/dc-chain/config/config.mk.10.5.0.sample @@ -9,7 +9,7 @@ sh_binutils_ver=2.41 sh_gcc_ver=10.5.0 newlib_ver=4.3.0.20230120 -gdb_ver=14.1 +gdb_ver=14.2 # Tarball extensions to download for SH sh_binutils_download_type=xz diff --git a/utils/dc-chain/config/config.mk.11.4.0.sample b/utils/dc-chain/config/config.mk.11.4.0.sample index 9fcd42c7..1d2e466d 100644 --- a/utils/dc-chain/config/config.mk.11.4.0.sample +++ b/utils/dc-chain/config/config.mk.11.4.0.sample @@ -9,7 +9,7 @@ sh_binutils_ver=2.41 sh_gcc_ver=11.4.0 newlib_ver=4.3.0.20230120 -gdb_ver=14.1 +gdb_ver=14.2 # Tarball extensions to download for SH sh_binutils_download_type=xz diff --git a/utils/dc-chain/config/config.mk.12.3.0.sample b/utils/dc-chain/config/config.mk.12.3.0.sample index c33fe0d1..8bae848e 100644 --- a/utils/dc-chain/config/config.mk.12.3.0.sample +++ b/utils/dc-chain/config/config.mk.12.3.0.sample @@ -9,7 +9,7 @@ sh_binutils_ver=2.41 sh_gcc_ver=12.3.0 newlib_ver=4.3.0.20230120 -gdb_ver=14.1 +gdb_ver=14.2 # Tarball extensions to download for SH sh_binutils_download_type=xz diff --git a/utils/dc-chain/config/config.mk.13.2.1-dev.sample b/utils/dc-chain/config/config.mk.13.2.1-dev.sample index be251783..7576900c 100644 --- a/utils/dc-chain/config/config.mk.13.2.1-dev.sample +++ b/utils/dc-chain/config/config.mk.13.2.1-dev.sample @@ -16,7 +16,7 @@ sh_binutils_ver=2.42 sh_gcc_ver=13.2.1 newlib_ver=4.4.0.20231231 -gdb_ver=14.1 +gdb_ver=14.2 # Tarball extensions to download for SH sh_binutils_download_type=xz diff --git a/utils/dc-chain/config/config.mk.14.0.1-dev.sample b/utils/dc-chain/config/config.mk.14.0.1-dev.sample index 03d5cb4d..2bc94b07 100644 --- a/utils/dc-chain/config/config.mk.14.0.1-dev.sample +++ b/utils/dc-chain/config/config.mk.14.0.1-dev.sample @@ -16,7 +16,7 @@ sh_binutils_ver=2.42 sh_gcc_ver=14.0.1 newlib_ver=4.4.0.20231231 -gdb_ver=14.1 +gdb_ver=14.2 # Tarball extensions to download for SH sh_binutils_download_type=xz diff --git a/utils/dc-chain/config/config.mk.9.5.0-winxp.sample b/utils/dc-chain/config/config.mk.9.5.0-winxp.sample index 75024821..cd19f6d2 100644 --- a/utils/dc-chain/config/config.mk.9.5.0-winxp.sample +++ b/utils/dc-chain/config/config.mk.9.5.0-winxp.sample @@ -9,7 +9,7 @@ sh_binutils_ver=2.34 sh_gcc_ver=9.5.0 newlib_ver=4.3.0.20230120 -gdb_ver=14.1 +gdb_ver=14.2 # Tarball extensions to download for SH sh_binutils_download_type=xz diff --git a/utils/dc-chain/config/config.mk.stable.sample b/utils/dc-chain/config/config.mk.stable.sample index 6e5b932c..61897fa4 100644 --- a/utils/dc-chain/config/config.mk.stable.sample +++ b/utils/dc-chain/config/config.mk.stable.sample @@ -9,7 +9,7 @@ sh_binutils_ver=2.41 sh_gcc_ver=13.2.0 newlib_ver=4.3.0.20230120 -gdb_ver=14.1 +gdb_ver=14.2 # Tarball extensions to download for SH sh_binutils_download_type=xz hooks/post-receive -- A pseudo Operating System for the Dreamcast. |