fix(libSceLibcInternal): declare environ for the spawn test on macOS #11358
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11358"
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 krishalivaibhav on 2026-10-26T08:12:10Z.
What
core/libs/tests/GuestPosixSpawn.cppreads the hostenvironon every non-Windows host since2bfcf6166a, but declares it only under__linux__. On macOS the test does not compile:The declaration now covers every host except Windows, which keeps using
_environ. Test-only change; Linux and Windows compile the same code as before.Tested
macOS 27 on Apple Silicon M2, x86_64 Release under Rosetta 2, Apple clang, on
main14c99b52ac:GuestPosixSpawn.cpp.ofails with the error above;libc/include/Api.hppandGeneral.hpp, unchanged).Not run:
guest_posix_spawnitself. On currentmainthe test program does not link on macOS, because libc'sGuestAllocations.cppneeds<link.h>(fixed by #10366) and libkernel needs the open macOS PRs (#10552 and others). Linux and Windows were not rebuilt.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🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-26T08:15:47Z.
Review: APPROVED
Reviewed exact head
4580ed63016d647bbb032a49bb6dbeffdd01bfb0. The test references the hostenvironon POSIX hosts, so guarding its declaration with#ifndef _WIN32matches the existing_environpath on Windows and exposesenvironon macOS. The author reports the macOS test translation unit now compiles; I did not independently run AppleClang or the test binary. Hosted eligibility, conventions, intake and labels pass; product/relinker jobs are skipped by path policy.GuestPosixSpawn.cpphas not changed on main since this branch's base, and the current merge preview is clean.