feat(libc): implement tzset #3124
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3124"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by babyhuey on 2026-10-10T22:38:29Z.
What
Implements
tzset(gYFKAMoNEfo) in libc. It calls the host'stzset(_tzseton Windows), so a guest that changesTZand callstzsetgets the new zone fromlocaltimeand the other conversions, which already go through the host time zone.PS5MC (PPSA99420) stops at it on
mainf38a036e(catalog build,eboot.binandsce_module/libc.prxunwrapped as #2605 requires, with #1529 in; tracked in #1578):main, Linux:app.elf: symbol lookup error: app.elf: undefined symbol: gYFKAMoNEfoapp.elf: symbol lookup error: app.elf: undefined symbol: 0NJDcQ2B8vE(execvp, #2827)Tested
Linux (Ubuntu 24.04, GCC 13, Release) on
f38a036e:guest_time_conversionpasses 5/5 (--repeat until-fail:5). The new case switchesTZfromUTC-2toUTC-5, callstzset, and checks that the epoch converts to 05:00 withtm_gmtoff18000; it fails iftzsetdoesn't re-readTZ.check_conventions.pypasses. Windows 11 (MinGW-w64 GCC 15.2 from WinLibs, Release):guest_time_conversion5/5 with no warnings, so theUTC-5case passes through_tzsettoo. The Windows loader reportsFAIL: unresolved ELF import 0NJDcQ2B8vE (execvp) from libkernel.prxfirst for PS5MC, onmainand with this PR, so it reachestzsetthere only once #2827 is in.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T22:38:53Z.
Progress report (
4fb937a→502dae1)📈 System libraries: 84.91% (+0.01%, +1 implemented functions)
✅ 1 implemented
tzset_nid_postfixImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-10T22:43:52Z.
Checked on Linux:
guest_time_conversionpasses, and the test fails to link without the change.localtime_ron glibc does not re-readTZafter init, so the new case does exercise the export. Merging once CI is green.