feat(libSceLibcInternal): implement guest utime #2967
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2967"
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-10T18:59:45Z.
What
Implements
utime(1nTKA7pN1jw) in libSceLibcInternal. All four commits are @QRMOE's, from #2024 (their corrected revisionade10c77, rebased ontomainwith their authorship kept). They can't open PRs yet because of the intake check and asked me to open it.It converts the guest's two 64-bit seconds fields to zero-microsecond timevals and forwards through the existing guest
utimespath; null times request the current clock (FreeBSD utime). The caller's guest errno is kept on success and the delegated error is kept on failure, since guest errno shares host errno storage.guest_utime_forwardinglinks the wrapper with a backend that changes errno on success and checks explicit and null times, 64-bit seconds, zero fractions, the return value, one backend call and failure errno.Six catalog titles stop at it on
main9c5d67fb(catalog builds,eboot.binandsce_module/libc.prxunwrapped as #2605 requires; tracked in #1578).main, Windows:FAIL: unresolved ELF import 1nTKA7pN1jw (utime) from libSceLibcInternal.prx; Linux:undefined symbol: 1nTKA7pN1jw.04AjkP0jO9U(_umtx_op, #1482)04AjkP0jO9U(_umtx_op)DisplayWindowfinds no Vulkan display in the headless test container (Windows below)oxMp8uPqa+U(pthread_set_name_np, #1872)oxMp8uPqa+U(pthread_set_name_np)04AjkP0jO9U(_umtx_op)Tested
Linux (Ubuntu 24.04, GCC 13, Release) on
9c5d67fb:guest_utimeandguest_utime_forwardingpass 5/5 (--repeat until-fail:5), and the title results above.check_conventions.pypasses. Windows 11 (MinGW-w64 GCC 15.2 from WinLibs, Release) on the same commit: both tests 5/5 with no warnings, and the same stops for ccleste, RommPS, PSXS5, SwanStationPS5 and vkQuake (for exampleFAIL: unresolved ELF import 04AjkP0jO9U (_umtx_op) from libkernel.prx). On Windows, Capy Mobile resolves every import, creates its Vulkan surface and swapchain, opens/app0/saves/.probeand then stops atsysctlbyname_nid_postfix: unsupported name kern.sdk_version(#2701, #2697).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-10T19:23:16Z.
Progress report (
4a747c4→71ff607)➖ System libraries: 84.48% (+0.0%, +1 implemented functions)
✅ 1 implemented
utime_nid_postfixImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-10T22:03:17Z.
Checked on Linux merged onto current
main:guest_utimeandguest_utime_forwardingpass 5/5, the rest of the libSceLibcInternal/libs ctest scope is green,utimesis the existing libkernel one, no duplicate export, and the tests cover explicit and null times, 64-bit seconds, errno kept on success and delegated on failure. Merging. Thanks @babyhuey, and @QRMOE for the original work.