feat(libc): implement dirname #1761
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1761"
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-08T18:39:38Z.
What
Implement the missing
dirnamepath operation with FreeBSD-style handling of empty paths, trailing slashes, root paths, and paths without a parent component. The missing import is listed in #1578.Tested
Linux: built
libcandguest_string_tests;ctest --test-dir build -R '^guest_strings$' --output-on-failurepassed.python3 tools/check_conventions.py --base upstream/mainpassed. Windows and PS5 hardware not tested.Checklist
main; no other open PR implements this functionImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-08T19:22:13Z.
No title reaches
dirnameon 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.Imported from boykopovar/AnyPS5. Originally posted by reyani-dev on 2026-10-11T01:37:56Z.
@MarcZX100
dirnameis now a title's next stop. Per @babyhuey's run in #3190 (with #3190–#3192 stacked onmaind31b57a4,sce_module/libc.prxunwrapped), Porpoise (PPSA99764) gets pastasinhand stops atdirname(E4wZaG1zSFc):app.elf: symbol lookup error: app.elf: undefined symbol: E4wZaG1zSFcFAIL: unresolved ELF import E4wZaG1zSFc (dirname) from libSceLibcInternal.prxdirnameis still absent onmain, and no open PR implements it, in case you want to resubmit this.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-11T04:02:16Z.
Thanks for the new title evidence. GitHub would not reopen #1761 after its branch was force-pushed while closed, so I submitted the rebased and validated implementation as #3261. It is the only open
dirnameimplementation; the diff and original tests are preserved, with validation rerun against currentmain.Pull request closed