feat(libc): implement utime for guest paths #1683
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1683"
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 MarcZX10 on 2026-10-08T16:22:42Z.
What
Implement the
utimeimport for guest paths, setting access and modification times at second precision. A null times pointer sets both times to the current time. The implementation handles Linux timestamps withutimensatand Windows timestamps withSetFileTime, maps filesystem errors to guest errno values, and records the write for the existing persistence path.Tested
Linux: built
guest_filesystem_testsand ranctest --test-dir build -R '^guest_filesystem$' --output-on-failure(1/1 passed). The test checks explicit access/modification times, current-time behavior, null/empty paths, and a missing file. Conventions andgit diff --checkpassed. Windows was not available in this environment.Checklist
main; no other open PR implements theutimeimportNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-08T19:20:57Z.
No title reaches
utimeon main yet: the homebrew audit lists the import, but those titles stop earlier at other missing imports. Closing for now; reopen when it's a title's next stop on main, with the log line.Pull request closed