feat(libc): implement ctime #3201
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3201"
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 adriadam10 on 2026-10-11T00:59:10Z.
What
ctime(0uAUs3hYuG4, imported fromlibSceLibcInternal) isn't exported. Since #1529, Linux bindslibSceLibcInternalimports to the system libraries, so two catalog homebrew titles stop on it at load onmain:mainf1ae427b6./app.elf: symbol lookup error: ./app.elf: undefined symbol: 0uAUs3hYuG4It follows FreeBSD 11 tzcode (
contrib/tzcode/stdtime/localtime.cctime,asctime.casctime_r):ctime(t)isasctime(localtime(t)), built from the existinglocaltimeandasctime. Whenlocaltimecan't represent the time, tzcode'sasctimegets a nulltm. It then returns"??? ??? ?? ??:??:?? ????\n"and setsEINVAL, and so does thisctime.Tested
Linux (CachyOS), GCC 16, Release.
guest_time_conversionpasses. The new cases, all withTZ=UTC-2:"Thu Jan 1 02:00:00 1970\n", in local time;"Tue Feb 29 15:04:05 2000\n";INT64_MINgives the???string witherrno22.mainthe test doesn't link.EINVAL, and a wrong placeholder.main's relinker and launched. Both stop at load with the line above.tools/check_conventions.pypasses.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-11T00:59:30Z.
Progress report (
06da117→ef2d56e)➖ System libraries: 85.96% (+0.0%, +1 implemented functions)
✅ 1 implemented
ctime_nid_postfixImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T01:14:22Z.
Merged with Linux CI red only on the three AGC tests main has been failing since
3c46fa6f4(agc_unit_shadow,agc_driver_flat_apertures,agc_driver_image_packed16_load; the last one is fixed in #3208). Windows passed, andguest_time_conversionpassed on both.