AnyPS5/core/libs/prx/libc/src
screamm 8aa0d42824 feat(libc): implement swscanf
swscanf (HNnWdT43ues) runs the swscanf_s scanner without the buffer
size arguments after %s, %c and %[, as FreeBSD's swscanf.c passes its
arguments to vswscanf. Both entry points share one engine with a flag
for the sizes; swscanf_s behaves as before.

Title: PS5CEMU-HAR PPSA99360 imports swscanf from libSceLibcInternal.prx
(import audit with --trap-sdk-syscall-stubs, registry index 292, right
after pthread_setaffinity_np at 276). Predicted stop line once
pthread_setaffinity_np resolves, without this change:
FAIL: unresolved ELF import HNnWdT43ues (swscanf) from libSceLibcInternal.prx

NID from tools/nid_names.py, confirmed in shadPS4 aerolib.inl:51950
(e0a466753a1a). Prototype in ps5-payload-dev include/freebsd/wchar.h:133,
export in sce_stubs/libSceLibcInternal.c:8582 (f5d40f02770e).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-14 11:17:04 +13:00
..
exception feat(libc): add missing Unity IL2CPP runtime imports and Dinkumware helpers 2026-10-13 19:01:30 +03:00
specifics feat(libc): record traced import calls on Windows 2026-10-13 16:13:12 +02:00
AllocatingStrings.cpp fix(libc): format 16-bit wide arguments in asprintf on Linux 2026-10-11 20:02:20 +00:00
ApplicationHeap.cpp fix(libc): allocate from realloc(NULL, 0) as malloc(0) does 2026-10-12 00:11:17 -03:00
ApplicationProcessParameters.cpp fix(libc): route guest allocations through application heap 2026-09-24 06:53:12 +03:00
Backtrace.cpp feat(libc): add missing Unity IL2CPP runtime imports and Dinkumware helpers 2026-10-13 19:01:30 +03:00
CreationMask.cpp fix(libkernel): preserve patched loading and shared-memory object identity 2026-10-11 23:40:46 +02:00
CxxAbiSupport.cpp fix(libc): ignore the guest DSO of thread atexit on Windows in the shared bridge 2026-10-13 15:33:22 +02:00
Directory.cpp Merge pull request #3635 from MarcZX100/codex/libc-readdir-r-3556 2026-10-13 14:15:32 +13:00
Environment.cpp Merge pull request #4008 from zmeizy/claude/getenv-invalid-name-errno 2026-10-12 17:33:03 +13:00
Errors.cpp Merge pull request #3130 from fma-rc/fix/strerror-r-unknown-short 2026-10-11 10:44:49 +02:00
FileAndHeap.cpp fix(libc): check for a pipe on every stream seek on Windows 2026-10-13 02:38:02 +00:00
FileLock.cpp fix(libs): share Windows flock state between duplicated descriptors 2026-10-12 16:03:47 +02:00
Filesystem.cpp fix(filesystem): reject final dot removal paths 2026-10-11 10:42:14 +00:00
Formatting.cpp Merge pull request #4358 from milescoviello/fix/scanf-binary-prefix 2026-10-13 07:19:26 +13:00
FormattingWide.cpp Merge pull request #4360 from milescoviello/fix/wide-printf-grouping-flag 2026-10-13 07:20:09 +13:00
General.cpp Merge pull request #4640 from MarcZX100/codex/win-host-standard-handles-4631 2026-10-13 17:49:02 +13:00
GuestAllocations.cpp fix(agc): retire fully unmapped multisample targets 2026-10-13 10:37:07 -04:00
GuestArena.cpp fix(agc): defer write tracking for fresh Windows shared imports 2026-10-13 10:37:27 +05:30
GuestHeap.cpp Merge pull request #3213 from Raghav314/fix/libc-heap-without-gpu 2026-10-11 09:14:14 +02:00
GuestStacks.cpp feat(libkernel): implement getcontext, setcontext and makecontext 2026-10-11 13:00:38 +03:00
GuestWriteWatch.cpp fix(libc): track never-collected pages in the macOS write watch 2026-10-11 18:34:59 +03:00
HeapDiagnostics.cpp feat(libc): report heap backtraces and heap errors requested by the guest heap 2026-10-12 22:15:55 +01:00
HostEntropy.cpp fix(libs): take guest entropy from the host OS instead of std::random_device 2026-10-11 22:07:49 -03:00
Hostname.cpp fix(libc): keep the guest hostname independent of the host 2026-10-10 14:42:43 -04:00
Interfaces.cpp feat(libc): keep getifaddrs flags consistent with their addresses on Linux 2026-10-10 10:23:55 +02:00
JumpBuffer.cpp feat(libkernel): implement getcontext, setcontext and makecontext 2026-10-11 13:00:38 +03:00
LocaleSupport.cpp fix(libc): size collate<char>::do_transform strings as the console does 2026-10-12 14:59:36 -04:00
Math.cpp feat(libc): add missing Unity IL2CPP runtime imports and Dinkumware helpers 2026-10-13 19:01:30 +03:00
Mspace.cpp fix(libc): keep a moved mspace block's usable bytes in realloc 2026-10-13 03:38:29 +02:00
Multibyte.cpp fix(libs): share Sony CRT semantics between libc and libSceAmpr with tests 2026-10-11 11:42:31 +02:00
Process.cpp fix(libc): run atexit handlers in one order with __cxa_atexit destructors 2026-10-11 21:05:51 +00:00
Random.cpp feat(libc): implement drand48, lrand48, mrand48 and srand48 2026-10-11 21:48:56 +04:00
RealPath.cpp feat(libc): implement realpath 2026-10-11 01:11:33 +02:00
Rename.cpp Merge pull request #4532 from DavidSamir/fix/libc-rename-replace-open-destination-windows 2026-10-14 00:38:14 +13:00
RuneLocale.cpp feat(libc): implement _WStoul, _Iswctype and swscanf_s 2026-10-10 23:44:00 +02:00
RuntimeSupport.cpp feat(libc): add missing Unity IL2CPP runtime imports and Dinkumware helpers 2026-10-13 19:01:30 +03:00
ScanningWide.cpp feat(libc): implement swscanf 2026-10-14 11:17:04 +13:00
StandardStreams.cpp fix(libc): fail fgets with a size of 0 or less like FreeBSD 2026-10-11 13:49:43 +00:00
StdioExtras.cpp fix(libc): drop unused clocale include 2026-10-13 15:13:01 +02:00
StringExtensions.cpp fix(libc): clear exhausted strtok continuation state 2026-10-12 19:00:50 +02:00
Strings.cpp Merge pull request #4616 from EagleBearerYS/fix/libc-strtod-quiet-nan-windows 2026-10-13 17:11:55 +02:00
Syslog.cpp fix(libc): honor openlog identity and facility 2026-10-13 09:56:31 +00:00
Threads.cpp feat(libc): add missing Unity IL2CPP runtime imports and Dinkumware helpers 2026-10-13 19:01:30 +03:00
Time.cpp fix(libc): keep the caller errno when the Windows tm_year range overflows 2026-10-13 14:50:07 +02:00
WideConversion.cpp fix(libs): share Sony CRT semantics between libc and libSceAmpr with tests 2026-10-11 11:42:31 +02:00