feat(libc): implement strsep #2187
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2187"
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 reyani-dev on 2026-10-09T11:07:16Z.
What
Exports
strsepwith FreeBSD's semantics (lib/libc/string/strsep.c):*stringp, ending at the first delimiter.*stringpadvances past it.strtok.*stringpbecomes NULL; with*stringp == NULLit returns NULL.Title: PPSA99169 RetroArch imports it from
libSceLibcInternal(resolved throughlibc.prx), per the #1578 audit. I haven't run the title.Tested
Windows 11, WinLibs GCC 15.2.0 r7, Release,
-DBUILD_TESTING=ON:guest_string_tests, next to thestrtokcases:",a,,b;c"with",;");""and then NULL.strtok_r, which skips empty fields, makesguest_stringsfail.cmake --build build --target libs: the patchedlibc.prxexportscJWGxiQPmDQ.tools/check_conventions.pypasses, andtools/pr_overlap.py --branchreports no overlap. The function is placed away from the lines #1812, #1848 and #1972 change.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)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T11:07:39Z.
Progress report (
d70b899→804674f)📈 System libraries: 84.7% (+0.01%, +1 implemented functions)
✅ 1 implemented
strsep_nid_postfixImported from boykopovar/AnyPS5. Originally posted by reyani-dev on 2026-10-09T11:39:27Z.
Full Linux and Windows builds and tests for this head (
804674f2), using the project's Build workflow. I can't start the upstream manual run, so I ran the samebuild.ymlin my fork through a mirror PR. Like the upstream run, the jobs check out the PR head merged into currentmain(d70b8998):ctest: 516/516 passedctest: 507/507 passedRun: https://github.com/AchrafReyani/AnyPS5/actions/runs/37921802565
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T20:09:54Z.
Same as #2167, for
strsep.Imported from boykopovar/AnyPS5. Originally posted by babyhuey on 2026-10-11T00:43:31Z.
@AchrafReyani
strsepis now a title's next stop onmain. Withexecvp(#2827) merged, VLC (PPSA85300) onmain06da1176reports this on Linux (catalog build,sce_module/libc.prxunwrapped as #2605 requires):app.elf: symbol lookup error: app.elf: undefined symbol: cJWGxiQPmDQThis head (
804674f2) merges cleanly onto06da1176,guest_stringspasses 5/5 (--repeat until-fail:5), and VLC then stops atnanf(DZU+K1wozGI).Imported from boykopovar/AnyPS5. Originally posted by reyani-dev on 2026-10-11T00:51:38Z.
Thanks @babyhuey, resubmitted as #3192, rebased onto current
mainwith your stop.Pull request closed