nuttx/libs/libc/time
Marco Casaroli 314348cafe libs/libc/time: Add tzset() for builds without time zones.
POSIX requires tzset(), but NuttX declared and defined it only with
CONFIG_LIBC_LOCALTIME, so programs that call it do not build without
that option.  Without CONFIG_LIBC_LOCALTIME there are no time zones and
local time is UTC, so tzset() has nothing to do.

Declare tzset() always, and add an empty one for builds without
CONFIG_LIBC_LOCALTIME.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com>
2026-10-09 20:07:32 +08:00
..
CMakeLists.txt libs/libc/time: Add tzset() for builds without time zones. 2026-10-09 20:07:32 +08:00
Kconfig libs/libc/time: Add configuration options for the strftime 2026-06-04 14:29:33 +08:00
lib_asctime.c
lib_asctimer.c
lib_calendar2utc.c !sys/types.h: change time_t and clock_t to int64_t to align with other OSes 2026-05-19 16:21:28 +08:00
lib_ctime.c
lib_ctimer.c
lib_dayofweek.c libs: unify Private Types banners 2025-05-28 10:17:15 +08:00
lib_daysbeforemonth.c sched: Correct word spelling mistakes. 2025-05-12 19:56:29 +08:00
lib_difftime.c
lib_gethrtime.c !nuttx: drop redundant casts on tv_sec/tv_nsec and fix printf formats 2026-05-19 16:21:28 +08:00
lib_gettimeofday.c
lib_gmtime.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
lib_gmtimer.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
lib_isleapyear.c libs: unify Private Types banners 2025-05-28 10:17:15 +08:00
lib_localtime.c libc/time: Fix POSIX timezone string parsing. 2026-07-25 19:54:18 +08:00
lib_nanosleep.c
lib_settimeofday.c
lib_strftime.c libs/libc/time: Add configuration options for the strftime 2026-06-04 14:29:33 +08:00
lib_strptime.c
lib_time.c !sys/types.h: change time_t and clock_t to int64_t to align with other OSes 2026-05-19 16:21:28 +08:00
lib_timegm.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
lib_timespec_get.c
lib_tzset.c libs/libc/time: Add tzset() for builds without time zones. 2026-10-09 20:07:32 +08:00
Make.defs libs/libc/time: Add tzset() for builds without time zones. 2026-10-09 20:07:32 +08:00