From 795cc55e450db3958445895fd1175e9e392003fd Mon Sep 17 00:00:00 2001 From: rumbledethumps <16963588+rumbledethumps@users.noreply.github.com> Date: Fri, 23 May 2025 19:26:27 -0700 Subject: [PATCH] tzset() --- include/time.h | 1 + libsrc/rp6502/tzset.c | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 libsrc/rp6502/tzset.c diff --git a/include/time.h b/include/time.h index 5eb6f144a..d320fe3f1 100644 --- a/include/time.h +++ b/include/time.h @@ -134,6 +134,7 @@ extern struct _timezone { int __fastcall__ clock_getres (clockid_t clock_id, struct timespec *res); int __fastcall__ clock_gettime (clockid_t clock_id, struct timespec *tp); int __fastcall__ clock_settime (clockid_t clock_id, const struct timespec *tp); +void tzset (void); #endif diff --git a/libsrc/rp6502/tzset.c b/libsrc/rp6502/tzset.c new file mode 100644 index 000000000..be4236f2f --- /dev/null +++ b/libsrc/rp6502/tzset.c @@ -0,0 +1,9 @@ +#include +#include + +int clock_gettimezone (clockid_t clock_id, struct _timezone* tz); + +void tzset (void) +{ + clock_gettimezone (CLOCK_REALTIME, &_tz); +}