libc: isnanf, __signbitl and the posix_spawn family are absent (XPSemu); fix branch ready #3624
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 screamm on 2026-10-11T14:21:46Z.
libc/libSceLibcInternal lacks
isnanf,__signbitland theposix_spawnfamily (posix_spawn,posix_spawnp,posix_spawnattr_init/destroy/setflags/setsigdefault,posix_spawn_file_actions_init/destroy/addclose/adddup2/addopen; 13 NIDs, all confirmed in aerolib). From the relink registry order they are predicted next stops of XPSemu (PPSA97358, indices 296, 363 and 347 to 381); not yet observed in a run.Fix branch ready:
screamm:feat/libc-xpsemu-spawn(two commits onmaina11c8f7f:4e8ede3efeat(libc): implement isnanf and __signbitl,efd9c2e0feat(libSceLibcInternal): implement the posix_spawn attribute and file action calls). I cannot open it as a PR because of the intake check; anyone eligible is welcome to carry it, keeping the commits as they are.isnanfcalls the existing__isnanf(FreeBSDisnan.caliases them);__signbitlreads bit 7 of byte 9 of the 80-bit value as FreeBSDs_signbit.c, with astatic_asserton the host long double.guest_mathcovers NaNs including signalling ones, infinities, signed zeros, extremes and subnormals.libSceLibcInternal/Spawn.cpp: the nine object calls follow FreeBSD 11.4lib/libc/gen/posix_spawn.c(8c639945): zeroed attribute object,ENOMEMon allocation failure,EBADFfor negative descriptors in the threeadd*calls, actions recorded in order,addopencopying the path,file_actions_initreturning -1 on allocation failure as 11.4 does; null or uninitialised objects throw.posix_spawn/posix_spawnpthrowprocess creation not implementedlikeexecvp(#2827), since FreeBSD validates nothing before the child and no child can be created here; recorded in TechnicalDebt next tofork. Newguest_posix_spawncovers the round trips, the recorded sequence, theEBADFcases and the throws.Tested on Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release,
BUILD_TESTING=ON, full build includinglibs:guest_posix_spawn,guest_math,guest_utime3/3;ctest -j8 -E "^agc_driver_|^video_out_flip"534/537, the failures being the knownwindows_exceptions(#3411),guest_kernel_sys(#3510) andguest_filesystem(#3518); withmain'sMath.cppthe extended math test fails;tools/check_conventions.py --base mainandgit diff --checkpass. Not run on Linux.Written with Claude Code assistance (implementation by a subagent, reviewed and validated in this session).
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-11T14:48:46Z.
I carried David’s
posix_spawncommit into PR #3651, preserving its author metadata. I kept the spawn family in its own PR because it is a separate topic fromisnanfand__signbitl, which are already in my #3640. The Linux/GCC 12.2 Releaseguest_posix_spawntest passed 1/1; conventions andgit diff --checkpass against currentmain. The PR links the FreeBSD 11.4 source and makes clear that XPSemu’s predicted startup stop has not been confirmed in a title run.Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-13T13:23:41Z.
All 13 functions listed here are on
mainnow:isnanfand__signbitlfrom #3640, and theposix_spawnfamily from #3651 (merged 2026-10-13). Every NID is in the export tables of the builtlibc.prx/libSceLibcInternal.prx. Build ofmain0f2683cb7(Windows, WinLibs GCC 15.2.0, Release), checked withobjdump -pon the built modules. Neither PR used a closing keyword, so this stayed open. Could a maintainer close it?Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T00:09:16Z.
Closing:
isnanfand__signbitlcame in with #3640, the posix_spawn family with #3651. Comment here if XPSemu stops on any of them on current main.