feat(libcurl): implement 57 libcurl exports over libcurl 7.81.0 #14448
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/14448"
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 PrivacyOnion on 2026-11-01T14:01:42Z.
What
Implements 57 libcurl exports as adapters over libcurl 7.81.0, a new submodule at
3rdparty/curl(tagcurl-7_81_0). It is built from source bycore/libs/prx/libcurl/CMakeLists.txt(CMakeExternalProject), statically, with the bundled mbedtls (TLS) and nghttp2 (HTTP/2) oflibSceSslandlibSceHttp2; DICT, FTP, GOPHER, IMAP, LDAP, MQTT, POP3, RTSP, SMB, SMTP, TELNET and TFTP are disabled. The console's export set matches libcurl 7.73–7.85; its exact version is unknown and recorded in the debt file.curl_easy_init,cleanup,duphandle,reset,perform,pause,recv,send,upkeep,strerror,option_by_id/by_name/next.curl_easy_setoptreads the guest's SysV variadic argument by option type. A guestlongis 64-bit and throwsstd::out_of_rangewhere it does not fit a 32-bit hostlong;curl_off_t, pointers, slists and blobs pass through.*FUNCTIONoption goes through a per-handle host trampoline that calls the guest function with the guest pointer of its*DATAoption. The context is copied byduphandleand cleared byreset.CURLOPT_STDERR, use guestFILE*streams through the guest stdio exports.curl_easy_getinfowrites 64-bit guestlongs and passes the other output types through.curl_multi_init,cleanup,add_handle,remove_handle,perform,info_read,timeout,wakeup,socket_all,wait/pollwithout extra descriptors,curl_multi_setopt(LONG, OFF_T and the timer callback),curl_multi_strerror;curl_share_init,cleanup,setopt(with guest lock callbacks),strerror.curl_url,curl_url_cleanup,curl_url_dup,curl_url_get,curl_url_set.curl_mime_init,free,addpart,name,filename,type,encoder,data,filedata,headers,subparts.curl_global_init,curl_global_cleanup,curl_global_sslset,curl_version,curl_version_info,curl_getdate,curl_getenv,curl_pushheader_bynum,curl_pushheader_byname.Memory: libcurl allocates through the guest libc heap (
malloc,free,realloc,calloc,strdupof libc). Those functions are installed when the library loads, and passed again throughcurl_global_init_membycurl_global_initand by the implicit initialization ofcurl_easy_init. Strings and lists libcurl returns can therefore be freed with the guestfreeorcurl_free. Lists built on the guest heap can be handed to libcurl with ownership (curl_mime_headers(…, 1)).Left to other PRs:
curl_slist_append,curl_slist_free_all,curl_free,curl_escape,curl_unescape,curl_easy_escapeandcurl_easy_unescape(#14429), andcurl_strequal/curl_strnequal(#14337). They stay stubs here, so until #14429 lands, strings libcurl returns (curl_url_get,curl_getenv, …) can only be released with the guestfree; with #14429,curl_freereleases them. Because libcurl uses the guest heap, the guest-heap lists andcurl_freeof #14429 work with this library in either merge order, and libcurl's owncurl_strequalis renamed inside the backend so it does not clash with #14337's export.Still stubs (debt file):
curl_formadd/formget/formfree;curl_m*printffamily;curl_global_init_memwith guest allocator callbacks;curl_mime_data_cb;curl_multi_assign,fdset,socketandsocket_action, plus the socket callback options andCURLINFO_ACTIVESOCKET/LASTSOCKET. The guest socket registry has no reverse lookup for sockets libcurl owns;CURLMOPT_PUSHFUNCTION.CURLOPT_SSL_CTX_FUNCTION/DATAthrowstd::invalid_argument, because the TLS context is a host mbedtls object.Tested
Windows 11, host harness with the Qt MinGW 13.1 toolchain against the static libcurl, mbedtls and nghttp2 built by the repository CMake integration (
anyps5_curl_buildbuilds). No network access; transfers usefile://URLs. The six tests incore/libs/prx/libcurl/testspass:CurlTransfers:FILE*given asWRITEDATA;CURLE_ABORTED_BY_CALLBACK;getinfoofRESPONSE_CODE,SIZE_DOWNLOAD_T,EFFECTIVE_URL,CONTENT_TYPEandPRIVATE;duphandlekeeping andresetdropping the guest callbacks;duphandleand cleanup, then the original handle;curl_multi_perform/curl_multi_wait, withCURLMOPT_TIMERFUNCTIONcalled.CurlHandles,CurlOptions,CurlUrl,CurlSlistMime,CurlUtility: handles and share locks, option metadata, everycurl_url_get/setpart (results freed with the guestfree), MIME parts with guest-heap headers handed over with ownership, version information, dates, error strings and environment lookups.Every source and test compiles with the real
APS5_VABI.tools/check_conventions.py --base upstream/mainandcore/libs/tests/test_public_headers.py --audit-onlypass. A full CMake configure is not possible here (SDL2/ffmpeg submodules missing), so the guest build and CTest run are left to CI.pr_overlap.py:.gitmodulesis shared with PRs adding other submodules (#14421, #14435 and older ones), andlibc/include/FileStream.hppwith libc PRs. This PR only adds the existing__stdinp_nid_postfixdeclaration there. #14337 and #14429 touchlibcurl/Export.cppfor the exports listed above, which this PR leaves to them.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)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T14:46:45Z.
Review: COMMENTED
Reviewed in part — no blocking findings so far
The rename pairs, the libcurl build wiring and the
curl_easy_setoptargument dispatch that I read are consistent with the PR body, but I did not read the transfer trampolines, the handle-copy and reset code, most of the 1,071 changed lines ofExport.cpp, or the test files, so this is a partial result and not an approval.What I ran
c885095a08272573f46d01c7eb7893aad020aa2b, basef1a7b02028(the precheck base). Four commits:6b56723d60,39ec6988ef,7f509ae14c,c885095a08./usr/bin/python33.11.2, no build.python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14448 --output-dir /dev/shm/reviewer-run/precheck/14448python3 tools/pr_abi_audit.py --repo /marc/AnyPS5 --base f1a7b02028 --head c885095a08272573f46d01c7eb7893aad020aa2b --json(exit 0;passed_with_warnings; 174 findings, 176 symbols). Of the 174, 83 areexport-removedand 83 aredefinition-not-found: the plaincurl_*names whose_nid_postfixreplacements are defined in the head. For all 83 pairs the computed NIDs are equal. The other 8 arepublic-declaration-not-foundfor test callbacks (Abort,Read,Write,Timer,Lock,Unlock,HstsRead,HstsWrite) defined intests/;curl_strequalandcurl_strnequalhave no finding.core/libs/prx/libcurl/CMakeLists.txtlines 1-60 (theExternalProjectbuild of3rdparty/curl, its backend options, the mbedtls and nghttp2 targets it requires, and the disabled protocols). Lines 61-108 were not read.curl_easy_setoptread at head (core/libs/prx/libcurl/Export.cpplines 852-895) together withHostLong(lines 79-82): the guest's variadic argument is read by option type, a 64-bit guestlongthat does not fit the hostlongthrowsstd::out_of_range, and unknown options are passed on without reading arguments.Results
Precheck report, checks table, unedited (
/dev/shm/reviewer-run/precheck/14448/report.md):The precheck deliberately does not configure, build, or compile AnyPS5.git diff --check f1a7b02028ae50adaf6c5aaaef892a51841b25bf...c885095a08272573f46d01c7eb7893aad020aa2b/usr/bin/python3 tools/check_conventions.py --base f1a7b02028ae50adaf6c5aaaef892a51841b25bf --head c885095a08272573f46d01c7eb7893aad020aa2b --title feat(libcurl): implement 57 libcurl exports over libcurl 7.81.0 --body /dev/shm/reviewer-run/precheck/14448/pr-body.md/usr/bin/python3 tools/pr_abi_audit.py --base f1a7b02028ae50adaf6c5aaaef892a51841b25bf --head c885095a08272573f46d01c7eb7893aad020aa2b --jsonNo changed Python implementation files.No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.No changed test_*.py files./usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 14448 --repo boykopovar/AnyPS5 --output-dir /dev/shm/reviewer-run/precheck/14448/stackNot run: C++ tests need exact-head binaries, which require a build; the precheck does not build./usr/bin/python3 /dev/shm/reviewer-run/precheck/14448/head-c885095a0827-71da5ff8/tools/pr_test_quality.py --root /dev/shm/reviewer-run/precheck/14448/head-c885095a0827-71da5ff8 --json .gitmodules 3rdparty/curl core/libs/prx/libc/include/FileStream.hpp core/libs/prx/libcurl/CMakeLists.txt core/libs/prx/libcurl/Export.cpp core/libs/prx/libcurl/include/CurlTypes.hpp core/libs/prx/libcurl/include/InventoryExports.hpp core/libs/prx/libcurl/src/CurlHost.hpp core/libs/prx/libcurl/tests/CurlHandles.cpp core/libs/prx/libcurl/tests/CurlOptions.cpp core/libs/prx/libcurl/tests/CurlSlistMime.cpp core/libs/prx/libcurl/tests/CurlTransfers.cpp core/libs/prx/libcurl/tests/CurlUrl.cpp core/libs/prx/libcurl/tests/CurlUtility.cpp docs/dev/debt/libcurl.mdNo changed Python test module in tools/ can be run as a no-build base-source control.Negative control
Not run here. The tests need a built libcurl backend.
Findings
Blocking: none found in the parts read.
Non-blocking:
HostLongthrows for a guestlongoutside the hostlongrange. On a platform wherelongis 32 bits (Windows), a guest value that a title expects to pass would fail the call with a C++ exception rather than an error code. The PR body says so; the author should confirm that a title never passes such a value on the paths that matter.NotImplementedorinvalid_argument; the debt file should list each one.Sources
curl_easy_setoptat head:github.com/boykopovar/AnyPS5@c885095a08/core/libs/prx/libcurl/Export.cpp (L852-L895)HostLongat head:github.com/boykopovar/AnyPS5@c885095a08/core/libs/prx/libcurl/Export.cpp (L79-L82)github.com/boykopovar/AnyPS5@c885095a08/core/libs/prx/libcurl/CMakeLists.txt (L1-L60)Not verified
CurlTypes.hppandCurlHost.hpp; the transfer, trampoline and duplicate or reset code inExport.cpp; lines 61-108 ofCMakeLists.txt; all seven test files (tests/Curl*.cpp).conventions,eligibility,library-portabilityandreportwere queued at review time.Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-11-01T15:07:47Z.
Review: DISMISSED
Reviewed current head
c885095a08272573f46d01c7eb7893aad020aa2b.[P1] Make curl's Windows nonblocking capability probe work with the supported compiler —
CMakeLists.txt:27(backend configuration options). The pinned curl 7.81.0 probeCMake/CurlTests.c:312passes anint*toioctlsocket, which requiresu_long*. Both the project's WinLibs GCC 15.2 r7 and MSYS2 GCC 16.2 reject this as an incompatible-pointer error. The ExternalProject configure consequently leavesHAVE_IOCTLSOCKET_FIONBIOunset, and the backend build fails inlib/nonblock.c:83withno non-blocking method was found/used/set. Please handle this old dependency probe in the integration, or update the pinned backend, and verify a fresh configure/build with the project's Windows compiler.Control: setting the correct capability in the isolated backend cache allows it to build, after which all six supplied curl adapter suites pass with the real guest ABI. That control uses host-backed allocator/stdio support and bypasses application-heap initialization and guest-arena tracking; it does not validate full guest-heap integration. The untouched backend configuration fails, so this is not a clean build pass.
The new head fixes the earlier public-header dependency: the umbrella header now compiles with only the repository's public include paths. I am not carrying that older-head finding forward. Whitespace and conventions pass. Depends on #14429.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T15:28:06Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
Six wrappers let libcurl write guest out-pointers without the
GuestArena::HostWritebracket that the repository requires for writes made by a native library, so the change breaks that rule; the other fourteen files were read and give only non-blocking items.What I ran
c50a51e61d5847db9cc0084418c95673d47dee57. Basef1a7b02028(precheck base); merge base785ad26398. The head adds one commit (c50a51e61d) after the reviewed headc885095a08; the compare shows onlycore/libs/prx/libcurl/CMakeLists.txtchanged (one line).Export.cppsplit at line 640) and by me. Files unchanged sincec885095a08were read there.python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14448 --output-dir /dev/shm/reviewer-run/precheck/14448cpython3 tools/pr_abi_audit.py --repo /marc/AnyPS5 --base f1a7b02028 --head c50a51e61d5847db9cc0084418c95673d47dee57 --json801bd5138cequals the commit that tagcurl-7_81_0resolves to (read withgh api).Results
Precheck output and commands
Commands: the precheck and the ABI audit listed above, and
gh apireads of the tag and the compare.Precheck checks table (unedited):
The precheck deliberately does not configure, build, or compile AnyPS5.git diff --check f1a7b02028ae50adaf6c5aaaef892a51841b25bf...c50a51e61d5847db9cc0084418c95673d47dee57/marc/Conlyse-VIEJO/.venv/bin/python3 tools/check_conventions.py --base f1a7b02028ae50adaf6c5aaaef892a51841b25bf --head c50a51e61d5847db9cc0084418c95673d47dee57 --title feat(libcurl): implement 57 libcurl exports over libcurl 7.81.0 --body /dev/shm/reviewer-run/precheck/14448c/pr-body.md/marc/Conlyse-VIEJO/.venv/bin/python3 tools/pr_abi_audit.py --base f1a7b02028ae50adaf6c5aaaef892a51841b25bf --head c50a51e61d5847db9cc0084418c95673d47dee57 --jsonNo changed Python implementation files.No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.No changed test_*.py files./marc/Conlyse-VIEJO/.venv/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 14448 --repo boykopovar/AnyPS5 --output-dir /dev/shm/reviewer-run/precheck/14448c/stackNot run: C++ tests need exact-head binaries, which require a build; the precheck does not build./marc/Conlyse-VIEJO/.venv/bin/python3 /dev/shm/reviewer-run/precheck/14448c/head-c50a51e61d58-c807c4ac/tools/pr_test_quality.py --root /dev/shm/reviewer-run/precheck/14448c/head-c50a51e61d58-c807c4ac --json .gitmodules 3rdparty/curl core/libs/prx/libc/include/FileStream.hpp core/libs/prx/libcurl/CMakeLists.txt core/libs/prx/libcurl/Export.cpp core/libs/prx/libcurl/include/CurlTypes.hpp core/libs/prx/libcurl/include/InventoryExports.hpp core/libs/prx/libcurl/src/CurlHost.hpp core/libs/prx/libcurl/tests/CurlHandles.cpp core/libs/prx/libcurl/tests/CurlOptions.cpp core/libs/prx/libcurl/tests/CurlSlistMime.cpp core/libs/prx/libcurl/tests/CurlTransfers.cpp core/libs/prx/libcurl/tests/CurlUrl.cpp core/libs/prx/libcurl/tests/CurlUtility.cpp docs/dev/debt/libcurl.mdNo changed Python test module in tools/ can be run as a no-build base-source control.Negative control
Not run. The new tests are C++ and need a build.
Findings
Blocking
Six native writes into guest memory lack the required bracket.
docs/dev/CONVENTIONS.md("Host writes into guest memory") requires aGuestArena::HostWriteover the destination for any write a native library makes into guest memory. Incore/libs/prx/libcurl/Export.cppatc50a51e61d5847db9cc0084418c95673d47dee57:curl_easy_recv(lines 702-705): libcurl writes*n; onlybufferis bracketed.curl_easy_send(lines 707-709): libcurl writes*n; no bracket.curl_easy_getinfo(lines 896-906): libcurl writes the output for non-LONG types. The LONG path stores after the call with host code and is fine.curl_multi_poll(lines 913-916): libcurl writes*ret.curl_multi_wait(lines 1017-1020): libcurl writes*ret.curl_multi_info_read(lines 1083-1085): libcurl writes*msgs_in_queue.Smallest fix: bracket each out-pointer the same way the buffer already is, for the whole native call. For
curl_easy_recv:Rerun the precheck and the six libcurl test executables on the new head.
Non-blocking
curl_easy_setopt,duphandleandresetuse theFindEasyresult without checking it (lines 874-886, 940, 981).getinforeturnsCURLE_UNKNOWN_OPTIONfor a null handle (895) wheresetoptreturnsCURLE_BAD_FUNCTION_ARGUMENT(854). A null output is passed to libcurl and then dereferenced when libcurl returns OK (902-903, 1166-1168); guard it explicitly.FindSharereturns null,curl_share_setoptis called without its argument for SHARE, UNSHARE, LOCKFUNC, UNLOCKFUNC and USERDATA (1036). The lock and unlock functions are installed before their context slots are stored (1054-1061), andShareLockcallscontext->lockunconditionally (688).nullptr(1116-1117). This matters only for options newer than the pinned version.SSH_HOSTKEYFUNCTIONis a function option forwarded unwrapped by the default branch (603). Latent, because SSH is disabled.WRITEDATAorREADDATAwith no callback set makes the fallback throwstd::runtime_errorthrough libcurl's C frames (118, 124;FileStream.hpp396-399).HostLongthrowsstd::out_of_rangewherelongis 32-bit (80-83). This is already in the debt file.curl_easy_sendreads the guest buffer without a host-read preparation (709). This is a convention question; its relevance to curl buffers is not verified.docs/dev/debt/libcurl.md: the NID table shrank from 85 rows to 2, and the catalogue links and image hash were removed. The NID evidence is no longer in the repository.CurlHost.hppasserts layouts for eight host types but not forguest_curl_version_info_data,guest_curl_httppost,guest_curl_forms,guest_curl_sockaddrorguest_curl_waitfd. Mixedint64_t/size_tqualification inCurlTypes.hpp. A redundant__stdinp_nid_postfixdeclaration inFileStream.hpp(408).CurlUtilitychecksCURLVERSION_FIRSTby pointer identity (61);getenvis checked only for an absent variable (58-59);CurlSlistMimechecks return codes only (30-57); thecountinCurlHandles(38-40) is never asserted; the date test passes only if zone-less input is read as UTC (43-44);curl_global_cleanupruns without an init (62); theRequirehelpers abort without a message;CurlSlistMimeleavescurl-mime-test.tmpbehind if it aborts early (50-57).CurlTransfers.cpp237-238 passes if the second transfer writes nothing, because the bytes are the same as before. The HSTS test (89-121) asserts callback counts only.CurlUrl.cppdoes not read back USER, PASSWORD or OPTIONS (105), though the PR body says everycurl_url_get/setpart is covered.FileUrldoes not percent-encode the path (60-63).InventoryExports.hppuses#ifndefrather than#pragma once. The backend targets must be defined before the build (implicit ordering).Sources
github.com/boykopovar/AnyPS5@c50a51e61d/docs/dev/CONVENTIONS.md (L19-L28)github.com/boykopovar/AnyPS5@c50a51e61d/core/libs/prx/libcurl/Export.cpp (L702-L705)(recv), #L707-L709 (send), #L896-L906 (getinfo), #L913-L916 (poll), #L1017-L1020 (wait), #L1083-L1085 (info_read)github.com/boykopovar/AnyPS5@c50a51e61d/core/libs/prx/libcurl/CMakeLists.txt (L17-L21)Not verified
3rdparty/curlis not checked out locally, so the sources were not read (the pin itself was checked).To get this to a good state
GuestArena::HostWritefor the duration of each native call, as in the example above.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T21:15:09Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
Two blocking defects at head
2051c37e46(a NULL stdio stream that throws through libcurl's C frames, and two debt-file statements that do not match the code), and one unconfirmed header-routing question that needs the pinned libcurl source before merge.What I ran
2051c37e46a88582fad27ae2c54d55b299ee44a2, PR basef1a7b02028ae50adaf6c5aaaef892a51841b25bf.git -C /marc/AnyPS5 show 2051c37e46a88582fad27ae2c54d55b299ee44a2:<path>for the changed files, split across read-only file-range reads. I re-read the lines cited below myself.python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14448 --output-dir <scratch>.Results
Precheck report (unedited header and failing rows)
Findings
Blocking
core/libs/prx/libcurl/Export.cpp477-490:CURLOPT_WRITEDATAandCURLOPT_READDATAstore the guest's value as is, including NULL. The read and write trampolines then pass that NULL to the host stdio wrappers, which throwstd::runtime_erroron a null stream. The exception crosses libcurl's C frames. Fix: map NULL to the stdio default (stdout or stdin), which the constructor is reported to install, or return a libcurl abort code without throwing.docs/dev/debt/libcurl.mdline 8 says memory libcurl returns can be released withcurl_free.curl_freethrowsNotImplemented(Export.cpp809-811). Fix: remove "orcurl_free" until it is implemented.docs/dev/debt/libcurl.mdline 14 says failed guest stdio rewinds throwstd::runtime_error. The default seek returnsCURL_SEEKFUNC_CANTSEEKon an ordinary failure, and only a random-device or null stream throws. Fix: correct the sentence.Non-blocking
SSH_HOSTKEYFUNCTIONhas no case in the switch, socurl_easy_setoptforwards the guest function pointer to libcurl unchanged (the default branch around 604-605). SSH is compiled out, so libcurl never calls it here. Fix: add it to the NotImplemented group, or record it in the debt file.HEADERFUNCTIONset, the wrapper sends headers toWRITEFUNCTIONwith the header slot's data, notWRITEDATA.tests/CurlTransfers.cpp247-249 pins this behaviour. Whether libcurl 7.81.0 does the same has to be checked againstlib/sendf.cat the pinned tag before merge.tests/CurlSlistMime.cpptests no slist API, so its name overstates its coverage (reported).Sources
github.com/boykopovar/AnyPS5@2051c37e46/core/libs/prx/libcurl/Export.cpp (L477-L490)github.com/boykopovar/AnyPS5@2051c37e46/core/libs/prx/libcurl/Export.cpp (L809-L811)github.com/boykopovar/AnyPS5@2051c37e46/docs/dev/debt/libcurl.md (L8)and #L14Not verified
To get this to a good state
Fix blocking 1-3. Check the header-routing question against the pinned libcurl source. Rebuild and run the six libcurl tests on the new head.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-03T02:05:41Z.
Review: APPROVED
Reviewed — looks good
I reviewed all 15 changed files at head
cc9dda4eb7ccb247f5db6d5c688bcf2ab1e82863and found no blocking issue; the applicable hosted checks passed.What I ran
Reviewed the full diff against PR base
b28bb772177768f99874ca38f6252cd0139acf2a; the merge preview against currentmain(7feb37ee3e30e10139b483fb4df689d5b5b69ab8) was clean. Environment: Debian Linux 6.1, Python 3.11.2, GCC 12.2.0. I did not build locally.Results
mainThe precheck's isolated snapshot did not contain the optional ABI and test-quality helper scripts. I ran the helpers from the workspace against the exact head. The ABI audit's warnings were the expected old-name/new-name pairs and test-only callback declarations; the test-quality heuristic's six “possibly unregistered” warnings are false positives because CMake constructs each source path from the topic loop.
Precheck table and hosted check output
Precheck table (unedited):
The precheck deliberately does not configure, build, or compile AnyPS5.git diff --check b28bb772177768f99874ca38f6252cd0139acf2a...cc9dda4eb7ccb247f5db6d5c688bcf2ab1e82863/usr/bin/python3 tools/check_conventions.py --base b28bb772177768f99874ca38f6252cd0139acf2a --head cc9dda4eb7ccb247f5db6d5c688bcf2ab1e82863 --title feat(libcurl): implement 57 libcurl exports over libcurl 7.81.0 --body /tmp/anyps5-pr-precheck/14448-20261103/pr-body.mdNo changed Python implementation files.No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.No changed test_*.py files.tools/pr_stack_check.py 14448 --repo boykopovar/AnyPS5C++ tests need exact-head binaries, which require a build; the precheck does not build.No changed Python test module in tools/ can be run as a no-build base-source control.gh pr checksoutput:Negative control
Findings
Blocking
None found after reading the complete 15-file diff, including the export wrappers, guest layouts, CMake, tests, and debt updates.
Non-blocking
The declared order is #14337 → #14429 → #14448. The current heads of #14337 and #14429 are not included in this branch, but each dependency and this PR preview cleanly against current
main. The author states this branch will be rebased after #14429 lands; this approval covers only the current reviewed head.Sources
Not verified
To get this to a good state
No correction is requested for this reviewed head. After #14429 lands and this branch is rebased, I can rerun the same checks against the resulting head.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-11-07T12:17:00Z.
Review: CHANGES_REQUESTED
#14429 and #14337 are merged, so this branch now conflicts with
mainin five files:.gitmodules: keep curl next to the sqlite and fontconfig entries.core/libs/prx/libcurl/CMakeLists.txt:mainregistersguest_curlandguest_curl_strings; keep those tests next to the curl backend wiring.core/libs/prx/libcurl/Export.cpp:mainnow implementscurl_slist_append,curl_slist_free_all,curl_free, the escape functions andcurl_strequal/curl_strnequal. Keep those implementations and drop the stubs this PR still carries, as the PR body says, with one public declaration per export. Check thatcurl_freeand the guest-heap lists still work with the heap hooks installed here.core/libs/prx/libcurl/include/InventoryExports.hpp,docs/dev/debt/libcurl.md: drop the entriesmainalready implemented and recount.Please rebase onto current
mainand rerun the sixlibcurl/testsplusguest_curlandguest_curl_strings. The previous review points were all met atcc9dda4eb7, so only the merge needs another look.