Commit Graph
141 Commits
Author SHA1 Message Date
Dean 7058af5889 Merge pull request #14872 from heditrigui/feat/libscelibcinternal-fflush
feat(libSceLibcInternal): implement __fflush
2026-11-07 13:56:35 +13:00
Dean 4b50d47696 Merge pull request #14664 from miguelcoxcaballero/feat/libc-internal-ios-base-destructor
feat(libSceLibcInternal): run the ios_base complete-object destructor
2026-11-07 12:53:24 +13:00
Dean 7b087884d2 Merge pull request #14903 from unaiea-dev/feat/libscelibcinternal-pmr-resources
feat(libSceLibcInternal): implement PMR memory resources
2026-11-07 12:31:08 +13:00
Dean GalvinandHedi Trigui 278057aaa7 fix(libSceLibcInternal): return 0 from __fflush for a closed stream
FreeBSD 11.4 __fflush returns 0 for a stream with no flags set, so a closed stream returns 0 without touching errno instead of the public fflush's -1 with EBADF. The test and the debt entry follow.

Co-authored-by: Hedi Trigui <[email protected]>
2026-11-07 11:57:57 +13:00
Dean Galvin cad9d2dbc1 Merge branch 'main' 2026-11-07 11:56:55 +13:00
Dean Galvin a797c8225f Merge branch 'main' 2026-11-07 08:33:18 +13:00
Uttam Limbani 84ecec9294 feat(libSceLibcInternal): implement the numpunct<char> members 2026-11-06 18:02:59 +01:00
Adrià 23d549a9c7 Merge pull request #14158 from CodingBreadd/feat/libc-kernel-rem-pio2
feat(libSceLibcInternal): implement __kernel_rem_pio2
2026-11-06 17:26:59 +01:00
LeandroLP23andClaude Opus 5.5 02c6971e02 docs(debt): correct stale and contradictory entries
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 15:58:52 +01:00
Hedi Trigui d7d4d1c2a9 Merge remote-tracking branch 'upstream/main' into feat/libscelibcinternal-fflush
# Conflicts:
#	core/libs/prx/libSceLibcInternal/CMakeLists.txt
#	core/libs/prx/libSceLibcInternal/include/Api.hpp
#	docs/dev/debt/libSceLibcInternal.md
2026-11-06 10:34:24 +01:00
Dean 62ecc886e3 Merge pull request #14873 from heditrigui/feat/libscelibcinternal-vfprintf
feat(libSceLibcInternal): implement __vfprintf
2026-11-06 22:16:05 +13:00
Dean Galvin 21d05f3998 Merge branch 'main' 2026-11-06 21:59:04 +13:00
Dean Galvin 8610d3243f Merge branch 'main' 2026-11-06 13:25:34 +13:00
Dean GalvinandPanagiotisKaraliolios a8b75920f3 Merge branch 'main'
Keep both libSceLibcInternal test blocks in CMakeLists.txt: the multiprecision tests and the firmware answers tests.

Co-authored-by: PanagiotisKaraliolios <[email protected]>
2026-11-06 10:34:42 +13:00
Dean 9f86329e12 Merge pull request #14945 from BunnyFl/feat/libcinternal-fw1342-daysto
feat(libSceLibcInternal): answer _Daysto, _FXp_getw and _Isdst as firmware 13.42 does
2026-11-06 10:19:03 +13:00
Dean Galvin 5fdcb0623a Merge branch 'main' 2026-11-06 00:51:31 +13:00
Dean Galvin e2703b1563 Merge branch 'main' 2026-11-06 00:47:54 +13:00
Dean 9125034887 Merge pull request #12896 from heditrigui/feat/libscelibcinternal-setprogname
feat(libSceLibcInternal): implement setprogname
2026-11-05 21:51:00 +13:00
Panagiotis KaralioliosandClaude Opus 5.5 761dc38931 docs(libSceLibcInternal): credit Microsoft STL multprec.cpp in the multiprecision helpers
MultiPrecision.cpp is derived from stl/src/multprec.cpp at the first
microsoft/STL release (219514876ea8): add its notice and make that
revision the source of record in the debt entry, which also records that
firmware 13.42 exports all four functions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 20:43:19 +02:00
Panagiotis KaralioliosandClaude Opus 5.5 9ba6807346 feat(libSceLibcInternal): implement std::_MP_Add, _MP_Get, _MP_Mul and _MP_Rem
NIDs QfPuSqhub7o, lrQSsTRMMr4, Gav1Xt1Ce+c and Ozk+Z6QnlTY follow
Dinkumware V6.00 multprec.cpp, the multiprecision helpers of
linear_congruential_engine, instead of throwing: five 64-bit words of
base 2^32 digits, the product by Knuth's Algorithm M and the remainder by
Algorithm D. _MP_Rem throws for the inputs where V6.00 reads outside its
arrays, and every export throws for a null array.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 20:43:04 +02:00
Dean 6863f295a9 Merge pull request #10749 from ycbuzi/refactor/siginterrupt-libc-internal
refactor(libSceLibcInternal): serve siginterrupt from libSceLibcInternal
2026-11-05 06:35:30 +13:00
Dean 1b58cf171b Merge pull request #10392 from GabrielKLBr/feat/libc-legacy-signal-masks
feat(libc): implement legacy signal masks
2026-11-05 06:35:07 +13:00
Dean cc628cbc87 Merge pull request #12924 from heditrigui/feat/libscelibcinternal-inet-helpers
feat(libSceLibcInternal): implement inet_netof, inet_lnaof, inet_makeaddr and inet_network
2026-11-04 19:27:15 +13:00
Dean 8e4fe4d0f2 Merge pull request #11751 from oneandonlydean/salvage/libc-internal-9511
feat(libSceLibcInternal): declare 140 PS5 3.20 pending exports
2026-11-04 16:58:19 +13:00
bluandClaude Opus 5.5 24497b2406 Merge branch 'main' into refactor/siginterrupt-libc-internal
Resolves docs/dev/debt/libkernel.md: main's sigaction entry (SIGPIPE outside Windows) and this branch's signal entry, which points to libSceLibcInternal for siginterrupt.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 10:23:38 -07:00
BunnyFl e6e2d050a2 Merge remote-tracking branch 'upstream/main' into feat/libcinternal-fw1342-daysto 2026-11-03 16:47:03 +01:00
DariusandClaude Opus 5.5 6afc7c7f31 feat(libSceLibcInternal): implement __kernel_rem_pio2
Port FreeBSD 11.4 msun k_rem_pio2.c with the amd64 690-chunk 2/pi
table. Inputs the FreeBSD code would index out of bounds, convert out
of int32 range or overflow on throw instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 12:07:16 +02:00
Dean 8fe922d1ad Merge pull request #13273 from Celegans12/feat/libcinternal-recovered-inventory-20261030
feat(libcinternal): add recovered inventory placeholders
2026-11-03 21:10:14 +13:00
Dean 7fc59ddd6e Merge pull request #14864 from Jawschamp/feat/libc-devname
feat(libc): implement devname and devname_r
2026-11-03 18:10:59 +13:00
Dean Galvin 923d757f7f Merge commit '88bb16c20e757658078b3efce912c96b1b03502a' into HEAD
# Conflicts:
#	core/libs/prx/libSceLibcInternal/CMakeLists.txt
2026-11-03 11:45:16 +13:00
Dean c2e1a6f84d Merge pull request #14666 from miguelcoxcaballero/feat/libc-internal-pad-destructor
feat(libSceLibcInternal): run the _Pad complete-object destructor
2026-11-03 11:41:30 +13:00
Dean 54e19f8d84 Merge pull request #14659 from miguelcoxcaballero/feat/libc-internal-exception-base-destructors
feat(libSceLibcInternal): run the base-object destructors of future_error, overflow_error and underflow_error
2026-11-03 11:41:14 +13:00
Dean 8697910db1 Merge pull request #11869 from santhoshkumar-dev/codex/spawn-optional-pid
fix(libSceLibcInternal): allow omitted spawn PID outputs
2026-11-03 01:27:33 +13:00
Dean b10f83849c Merge pull request #11866 from santhoshkumar-dev/codex/spawn-guest-errors
fix(libSceLibcInternal): translate native spawn errors
2026-11-03 01:27:27 +13:00
bluandClaude Opus 5.5 dae55d9e12 Merge branch 'main' into refactor/siginterrupt-libc-internal
Resolves docs/dev/debt/libc.md: main's updated _Thrd entry, and siginterrupt stays documented in libSceLibcInternal.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-02 04:12:04 -07:00
BunnyFlandClaude Opus 5.5 078df10ae0 Merge upstream/main into feat/libcinternal-fw1342-daysto
Keeps main's sigvec test block and this branch's firmware answers test
block, one after the other at the end of the libSceLibcInternal list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-02 11:53:23 +01:00
unaiea-dev 260e558059 feat(libSceLibcInternal): implement PMR memory resources 2026-11-02 11:52:35 +01:00
Hedi Trigui 9eb9ba5bcd Merge branch 'upstream/main' into feat/libscelibcinternal-inet-helpers 2026-11-02 09:29:52 +01:00
Dean Galvin 8a90344b3b Merge commit '88e804b0a7df1f1ac373a9e2f72fb378d925fdd4' into HEAD
# Conflicts:
#	docs/dev/debt/libSceLibcInternal.md
2026-11-02 21:07:03 +13:00
Celegans12 bb4d312e54 fix(libcinternal): avoid shadowing find-last helpers
Remove the four find-last placeholders from the recovered inventory.
The named provider is searched before the libc fallback, so throwing
placeholders would shadow the working implementation under review.
Keep the remaining declarations and definitions paired.
Update the technical debt count to match the remaining exports.
2026-11-02 05:51:55 +01:00
BunnyFlandClaude Opus 5.5 bbfc44a57c feat(libSceLibcInternal): answer _Daysto, _FXp_getw and _Isdst as firmware 13.42 does
_Isdst returns -1. _Daysto(year, month) adds the leap days before the year
to the common or leap days-before-month table, as Dinkumware's _Daysto does,
and throws for a month outside the twelve table entries the module would
index past. _FXp_getw sums up to four float parts as Dinkumware's _Xp_getw
does. Read to the return from firmware 13.42's libSceLibcInternal,
disassembly only, not measured on a console.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-02 04:04:19 +01:00
bluandClaude Opus 5.5 d984a64ceb Merge branch 'main' into refactor/siginterrupt-libc-internal
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-01 16:22:33 -07:00
Hedi Trigui d6fb4c9b23 fix(libSceLibcInternal): address Dean review on __vfprintf signature and tests 2026-11-01 23:29:39 +01:00
Hedi Trigui bea5b50526 fix(libSceLibcInternal): address Dean review on __fflush test coverage and debt documentation 2026-11-01 23:24:01 +01:00
Hedi Trigui f9c3af599a feat(libSceLibcInternal): implement __vfprintf 2026-11-01 23:01:09 +01:00
Hedi Trigui 56fecc5d35 feat(libSceLibcInternal): implement __fflush 2026-11-01 22:57:33 +01:00
Hedi Trigui 2bcc41fdb3 docs(libSceLibcInternal): condense technical debt entry under 1000 characters 2026-11-01 22:44:47 +01:00
Hedi Trigui afbaef3f00 Merge branch 'upstream/main' into feat/libscelibcinternal-inet-helpers 2026-11-01 22:44:01 +01:00
unknown eeef26f744 docs(libSceLibcInternal): pin showmanyc bodies and module identity 2026-11-01 21:21:28 +00:00
Jaws a4faa2f0b6 feat(libc): implement devname and devname_r 2026-11-01 21:10:14 +00:00