Repository navigation
feat(libSceLibreSsl3): report queued errors through guest callbacks - #15737
oneandonlydean merged 5 commits into
Conversation
|
Windows check of head Setup: Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release. The hosted Windows check does not run this test on pull requests.
AI-assisted: yes. |
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
Fix-up on santhoshkumar-dev's change: keep both sets of new declarations in Api.hpp, take main's debt notes and re-apply this change on top (the error-queue sentence in libSceLibreSsl.md and the reworded pending-exports entry in libSceLibreSsl3.md, which no longer states a count). The Additional exports total on the merged tree is unchanged at 140 (130 named, 10 known only by NID).
…s the unimplemented throw Fix-up on santhoshkumar-dev's change: the error report test no longer asserts that a null callback throws. The stop-result, producer and queue checks stay.
|
Two fix-ups on your branch (plain commits, no force-push). We merged current main (Api.hpp: kept both sets of declarations; the two libSceLibreSsl debt notes: main wording taken and your change re-applied on top; the Additional exports total is unchanged at 140, 130 named and 10 known only by NID) and removed the null-callback throw check from |
What
ERR_print_errors_cb(gtRD8r2e+uk) currently throws. Its guest callback now receives one diagnostic line at a time from the existing LibreSSL error queue. Each call consumes the oldest record before invoking the callback. A zero or negative callback result stops the report and leaves later records queued.The report uses the existing numeric formatter, the decimal guest pthread handle, and the stored filename and line. Missing filenames produce
NA:0, and the callback length excludes the terminating null. The implementation follows the public LibreSSL callback and line format. The queue does not store optional diagnostic text. Console callback ABI and diagnostic metadata remain unverified. Pinned LibreSSL formatter · OpenBSD manualThe dependency line records integration order for the older branches that touch the same build, declaration, or debt lines. The callback uses the error queue and pthread APIs already on main.
Tested
Submitted head
b8266feacf432d3fed8e051e22049dd69e53d5b9on upstream mainb11c7bf84f5d2f636ff60166cc3371bd071e24d5.BUILD_TESTING=ON. Completelibsbuild, selected tests and packaged-library loader built. 83/83 selected CTests pass, including the header audit and 64 compile batches.ERR_print_errors_cb_nid_postfix not implemented.Conventions and whitespace pass.
tools/pr_overlap.py --branchscanned 1,822 open PRs and found seven shared-file conflicts and no same-export collision. It exited 2 on 33 branches with pre-existing base conflicts. I compared their shared files against the baseline and searched each full source diff for the callback, its NID and the new queue helper. This found only neighboring declaration edits from #12928 and #15163 beyond the conflicts already present on main. The earlier inventory addition supplies the throwing declaration.Validation covers the selected runtime tests. macOS, console, title execution and the complete CTest suite remain untested.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)