Dean
16bc34bfc8
Merge pull request #10620 from Retr0G28/fix/freopen-random-device
...
fix(libc): reopen a stream onto /dev/random or /dev/urandom with freopen
2026-11-02 23:23:29 +13:00
Dean
87524eb88e
Merge pull request #10615 from edubox/feat/libc-cnd-at-thread-exit
...
feat(libc): register conditions for broadcast at thread exit
2026-11-02 23:23:18 +13:00
Dean
978a8ffb32
Merge pull request #10324 from MarrasFederico/feat/libc-fwide
...
feat(libc): track stream orientation and implement fwide
2026-11-02 23:22:33 +13:00
Dean
67a7602c33
Merge pull request #10247 from JJenkx/windows/libc-log10-msun
...
fix(libc): compute log10 with fdlibm's algorithm, as titles' libc.prx does
2026-11-02 21:00:20 +13:00
Dean
2aee0b06f6
Merge pull request #10229 from JJenkx/windows/libc-atan-atan2-msun
...
fix(libc): compute atan and atan2 with FreeBSD msun's algorithm, as titles' libc.prx does
2026-11-02 21:00:13 +13:00
Dean
30f2122781
Merge pull request #9953 from JJenkx/windows/wprintf-narrow-utf8
...
fix(libc): decode a wide printf %s as titles' libc.prx does, failing on invalid UTF-8
2026-11-02 20:59:39 +13:00
Dean
c84005ee40
Merge pull request #9688 from JJenkx/windows/libc-qsort-console
...
fix(libc): sort like the console's qsort and qsort_s
2026-11-02 20:58:08 +13:00
Dean
25aeb9fa48
Merge pull request #12586 from voidlakhan/feat/libc-timingsafe-bcmp
...
feat(libc): implement timingsafe_bcmp
2026-11-02 20:54:59 +13:00
Dean
307dd57e50
Merge pull request #10729 from dwk001/fix/libc-wstoul-invalid-base
...
fix(libc): reject an invalid _WStoul base like Dinkumware instead of …
2026-11-02 20:54:37 +13:00
Dean
6d0fc32dea
Merge pull request #8397 from hypermoist/feat/libc-dinkumware-float-bits
...
feat(libc): add Dinkumware float bit helpers from firmware
2026-11-02 13:43:07 +13:00
Dean
c50acd1fc4
Merge pull request #10895 from StoneDC/fix/wcsftime-partial-output
...
fix(libc): preserve partial wcsftime output on overflow
2026-11-02 10:56:58 +13:00
Dean
b2620e56d1
Merge pull request #11733 from verusferro/feat/libc-wide-string-to-number
...
feat(libc): convert wide strings with _WStoull, _WStoll, _WStod, _WStof and _WStold as the console's libc does
2026-11-02 00:33:30 +13:00
Adrià
a644edf30c
Merge pull request #13499 from Gonic0/feat/agc-label-read-trap
...
perf(agc): trap CPU reads of label readbacks on macOS instead of storing them
2026-11-01 11:09:34 +01:00
Adrià
26fa1212b8
Merge pull request #13819 from Ninot1Quyi/fix/libc-nearbyint-inexact
...
fix(libc): match nearbyint inexact flags to guest libc
2026-11-01 09:56:57 +01:00
Adrià
5c9837bfe7
Merge pull request #13442 from Gonic0/feat/libc-write-watch-read-trap
...
feat(libc): trap guest reads of write-watched pages on macOS
2026-11-01 09:13:34 +01:00
Dean Galvin
c08fe413f8
Merge main into feat/libc-timingsafe-bcmp
...
# Conflicts:
# docs/dev/debt/libc.md
2026-11-01 21:13:14 +13:00
Dean Galvin
21556548c4
Merge main into fix/libc-wstoul-invalid-base
...
# Conflicts:
# docs/dev/debt/libc.md
2026-11-01 21:09:31 +13:00
Adrià
53fbe59956
Merge pull request #13732 from SnekPolylepis/feat/libc-radix64-conversions
...
feat(libc): implement a64l, l64a, and l64a_r radix-64 integer conversions
2026-11-01 08:30:07 +01:00
Qu Yi
4a65ddf97c
chore(libc): synchronize nearbyint fix with main
...
Preserve the nearbyint implementation and regression coverage while incorporating current main. The write-watch registration prerequisite is now part of main.
Validation: freshly compiled production MathExact.cpp regression passes; ASan/UBSan passes with detect_leaks=0. The same fixture compiles against main Math.cpp and fails at the FE_INEXACT assertion (exit 134). Conventions, whitespace and 235 script registrations pass. Full product build and full CTest were not rerun for this synchronization.
2026-11-01 14:56:40 +08:00
Dean
0b2c52e9c2
Merge pull request #12597 from JJenkx/windows/libc-fopen-s-constraints
...
fix(libc): report fopen_s and freopen_s argument errors to the constraint handler
2026-11-01 19:48:43 +13:00
Nicolas Gonzalez and Claude Opus 5.5
2cf5b41ec8
perf(agc): trap CPU reads of label readbacks on macOS instead of storing them
...
Before a label, a pending linear or small storage image that shares no page
with another pending or storing image now gets a write-watch read trap
instead of its store. The first access to its pages stores it through the
host-read hook; any other store releases the trap first.
APS5_NO_LABEL_READ_TRAP=1 keeps the store at the label.
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-11-01 03:37:51 -03:00
Nicolas Gonzalez and Claude Opus 5.5
6b16f90d5a
feat(libc): trap guest reads of write-watched pages on macOS
...
GuestWriteWatchTrapReads takes all access to the pages of a range until
the resolver set with GuestWriteWatchSetReadTrapResolver has run for it.
A fault on a trapped page waits while the resolver runs on the watch's
own thread; host writes and GuestWriteWatchProtect run it first on the
calling thread. Collections keep trapped pages inaccessible, and
registering or unregistering memory drops its traps.
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-11-01 07:33:02 +01:00
Dean
803889adab
Merge pull request #8937 from UnhealthyKraken/feat/libc-fesetenv
...
feat(libc): implement fesetenv
2026-11-01 19:16:41 +13:00
Dean Galvin
7b52262718
Merge main into feat/libc-fwide
2026-11-01 18:45:39 +13:00
SnekPolylepis and Claude Opus 5.5
23bff0dd7d
fix(libc): match FreeBSD a64l and l64a_r, use HostThreadLocal for l64a
...
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-11-01 00:18:47 -05:00
Nicolas Gonzalez and Claude Opus 5.5
132bceac18
Merge remote-tracking branch 'upstream/main' into perf/libc-write-watch-fault-ahead
...
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-11-01 00:49:29 -03:00
Dean
88b7503129
Merge pull request #10222 from JJenkx/windows/libc-expm1f-msun
...
fix(libc): compute expm1f with FreeBSD msun's algorithm, as titles' libc.prx does
2026-11-01 14:57:48 +13:00
Qu Yi
4c41442276
fix(libc): match nearbyint inexact flags to guest libc
2026-10-31 15:51:17 +08:00
Nicolas Gonzalez and Claude Opus 5.5
2c15fa59b4
fix(libc): keep write-watch fault-ahead inside the faulting page's 64 KiB block
...
libSceAgcDriver decides per 64 KiB block whether a pending storage image
keeps the CPU's bytes. A window that ran into the next block marked it
CPU-written and dropped the GPU results there (agc_storage_write_back,
agc_idle_publish_wait, array layer and depth plane tests).
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-31 02:32:46 -03:00
Zain
02bcf26141
feat(libc): implement a64l, l64a, and l64a_r radix-64 integer conversions
2026-10-30 21:54:02 -05:00
Nicolas Gonzalez and Claude Opus 5.5
54080056ff
perf(libc): unprotect the pages ahead of a sequential write fault on macOS
...
A guest thread that writes a large watched range in order takes one
write-watch fault per page. Under Rosetta 2 each fault is a Mach
exception round trip. When the two pages before the faulting one were
written since the last collection, the handler now unprotects up to 32
pages from it that have the same protection and records them as
written. APS5_WRITE_WATCH_FAULT_AHEAD sets the count; 0 or 1 keeps one
page per fault.
Co-Authored-By: Claude Opus 5.5 <[email protected] >
2026-10-30 23:13:12 -03:00
Retr0
9586a81211
Merge remote-tracking branch 'origin/main' into fix/freopen-random-device
...
# Conflicts:
# docs/dev/debt/libc.md
2026-10-31 02:12:35 +02:00
Adrià
21a556f567
Merge pull request #12553 from JJenkx/codex/libc-unscaled-hex-parser-20261028
...
fix(libc): match unscaled hexadecimal Dinkumware conversion
2026-10-30 21:24:48 +01:00
Adrià
91cd8ac6fd
Merge pull request #13049 from JJenkx/fix/libc-character-scan-lengths
...
fix(libc): ignore non-wide lengths on character scans
2026-10-30 16:25:56 +01:00
Adrià
280bbad426
Merge pull request #12659 from JJenkx/codex/libc-scaled-nan-subject-20261028
...
fix(libc): parse scaled NaN subjects without numeric conversion
2026-10-30 13:45:37 +01:00
Adrià
cc7e348334
Merge pull request #12524 from JJenkx/codex/libc-unscaled-hex-range-20261028
...
fix(libc): preserve errno for unscaled hexadecimal range results
2026-10-30 13:05:20 +01:00
Dean
99f7b51d2b
Merge pull request #12541 from oneandonlydean/licence-notices-ported-code
...
docs(libc): add upstream licence notices to ported math and siglist code
2026-10-31 00:50:17 +13:00
Adrià
8304ccaedb
Merge pull request #11341 from SteelCrab/review/emscripten-libraries
...
build(libs): support Emscripten memory64 compilation
2026-10-30 12:49:20 +01:00
JJenkx
2b1276d808
fix(libc): retain current main logb debt in atan stack
2026-10-30 07:39:35 -04:00
JJenkx
74fceb9201
fix(libc): retain current main logb debt in math stack
2026-10-30 07:39:24 -04:00
JJenkx
a2d3d6bb35
fix(libc): integrate atan ports on refreshed expm1f parent
2026-10-30 07:34:20 -04:00
JJenkx
250f5b51de
fix(libc): integrate expm1f on refreshed tanhf parent
2026-10-30 07:33:46 -04:00
JJenkx
a06ed844e3
fix(libc): integrate current main into tanhf port
2026-10-30 07:32:57 -04:00
JJenkx
1f001f3f23
fix(libc): integrate qsort without changing main qsort_r ordering
2026-10-30 07:32:35 -04:00
Adrià
b3773d1a18
Merge pull request #12589 from JJenkx/windows/libc-strerror-s-constraints
...
fix(libc): report strerror_s violations as titles' libc.prx does
2026-10-30 10:19:26 +01:00
Federico Marras
a12f8fc4d3
feat(libc): track stream orientation and implement fwide
2026-10-30 09:32:46 +01:00
lakhantheboss
126495863f
feat(libc): implement timingsafe_bcmp
2026-10-30 13:20:24 +05:30
Adrià
1764ec5c60
Merge pull request #12420 from JJenkx/windows/libc-swscanf-ranges
...
fix(libc): read swscanf scanset ranges and string lengths as titles do
2026-10-30 07:16:41 +01:00
Adrià
0362b1521c
Merge pull request #12861 from heditrigui/feat/libc-recallocarray
...
feat(libc): implement recallocarray
2026-10-30 06:36:10 +01:00
Adrià
0a2cda921d
Merge pull request #12933 from heditrigui/feat/libc-dprintf
...
feat(libc): implement dprintf and vdprintf
2026-10-30 06:33:00 +01:00