Repository navigation
feat(libkernel): export environ as an empty environment - #2090
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
a6a083f to
a3f0120
Compare
|
Tested on Windows 11, MinGW-w64 GCC 15.2.0 (WinLibs r7, same as CI), Release:
One question: libc's |
|
Thanks for testing it. Yes, that's how it is for now: |
…viron feat(libkernel): export environ as an empty environment
What
PICO-8 for PS5 (PPSA99808 v0.1.2, RafaelNGP/pico8-ps5, GPL-3.0) stops at start-up on
environonce__inet_aton(#1848) resolves:+2thxYZ4sykisenviron. FreeBSD's libcgetenvreads it andsetenv/putenvreplace it, so the export is a writablechar**.It points to an empty, null-terminated array. A PS5 app starts with no environment variables: the payload SDK's
elfldr(elfldr_set_environin ps5-payload-dev/websrv) writesenvirononly when it has variables to pass, and shadPS4 exports the same NID as a pointer to an empty array (src/core/libraries/kernel/kernel.cpp).Tested
Windows 11, MinGW-w64 GCC 15.2.0, Release,
mainf145139:N2OjwJJGjeQfromlibSceLibcInternal.prx(freeifaddrs, feat(libc): implement getifaddrs and freeifaddrs #1772).guest_system_configurationchecks thatenvironis non-null and empty.tools/check_conventions.pypasses.Linux and Windows: fork CI https://github.com/LeandroLP23/AnyPS5/actions/runs/37899939325, all jobs pass.
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)