refactor(freetype): drop errno saves around guest copies #25944
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/25944"
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 LeandroLP23 on 2026-11-22T23:43:41Z.
What
Follow-up to #25937, for FreeType. Six files define a
CopyInPreservingErrnohelper that saveserrnoaroundGuestCopyIn_nid_no_patch. That function restoreserrnoitself since #21243 (RestoreErrnoinCopyGuestBytes,libc/src/General.cpp), so each helper is removed and its callers callGuestCopyIn_nid_no_patchdirectly, with the same arguments.Files:
libSceFreeType/src/{BuildInfo,LcdFilter,ModuleManagement,OutlineStorage,SizeRequest}.cppandlibSceFreeTypeOt/Stream.cpp, 52 lines removed and 10 added.libSceFreeType/src/Variations.cpphas the same helper but is left out, because #9848 changes it.No change in behaviour.
Tested
Windows 11 (10.0.26300), WinLibs GCC 15.2.0 r7, Release.
ctest -R freetype, with its 98 build outputs fromtools/select_tests.py targets: 106 of 106 onmain19e5a34a46and 106 of 106 with this change applied to it.tools/check_conventions.pypasses.tools/pr_overlap.py --branchfinds no overlap with the 2476 open pull requests.Not run: Linux and macOS.
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-22T23:54:37Z.
Review: APPROVED
Reviewed — looks good
The reviewed change removes redundant errno-saving wrappers, and the inspected copy implementation restores errno while preserving copy behavior.
What I ran
Reviewed head
91658ae2fc2b13b5934d4acb6adf3fc646221898. No commands or tests were run in this read-only review.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Author-reported Windows test results were not independently verified; Linux, macOS, and console behavior were not tested.
review/files.jsonwas unavailable through the reader. The changed-file manifest lists six files, all marked included, and each was read:BuildInfo.cpp,LcdFilter.cpp,ModuleManagement.cpp,OutlineStorage.cpp,SizeRequest.cpp, andStream.cpp. No excluded-file list was available.To get this to a good state
Nothing is required.