AnyPS5/core/libs/prx/libc/src
STL1te c206f7049a feat(kernel, libc): memory, files and threads for retail title boot
libkernel:
- direct memory keeps its contents per physical page across unmap and
  remap; a page mapped at two live addresses at once throws
- sceKernelDirectMemoryQuery answers from tracked allocations
- SCE protections read back as set, GPU and AMPR bits included
- APR prefix path resolve, file size and stat by id, positional reads,
  fsync/pread/pwrite; directories open as descriptors on Windows
- sceKernelCheckReachability, getpeername, shutdown
- Dinkumware C11 threads (_Mtx_*, _Cnd_*, _Thrd_*) in the title libc
  layout; any pthread stack size, rounded at thread creation

libc:
- unaddressed guest mappings go to the system-managed area from
  0x2_0000_0000, leaving the application area to fixed mappings
- the process starts in /app0
- guest sscanf on Windows; a null %s prints as (null) as on FreeBSD
- localeconv, _FNan, _FDtest, _FExp, __udivti3, wcsncpy_s, aligned
  operator new, _Throw_Cpp_error

Tests: direct memory following physical pages, guest formatting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 21:22:13 +03:00
..
exception fix(libc): don't walk guest frame pointers when reporting an unhandled exception 2026-09-28 14:22:48 +13:00
specifics fix(kernel): orderly shutdown when closing the display window 2026-09-28 18:30:34 +03:00
AllocatingStrings.cpp feat(libc): add allocating strings and C locale wide conversion 2026-09-29 07:39:01 +10:00
ApplicationHeap.cpp fix(libc): support SDK startup without allocator replacements 2026-09-28 09:03:10 +10:00
ApplicationProcessParameters.cpp fix(libc): route guest allocations through application heap 2026-09-24 06:53:12 +03:00
CxxAbiSupport.cpp fix(libc): add guest-compatible c++ locale abi 2026-09-24 10:51:11 +03:00
Directory.cpp feat(libc): translate guest directory enumeration 2026-09-25 06:41:55 +10:00
Environment.cpp feat(libc): implement guest environment variable storage 2026-09-25 06:39:14 +10:00
Errors.cpp feat(libc): implement guest errno message APIs 2026-09-25 06:17:18 +10:00
FileAndHeap.cpp feat(libc): operator new/delete, bounds-checked functions, char locale facets and runtime helpers 2026-09-28 14:22:48 +13:00
Filesystem.cpp feat(libc): implement guest file removal and renaming 2026-09-25 06:45:30 +10:00
Formatting.cpp feat(kernel, libc): memory, files and threads for retail title boot 2026-09-29 21:22:13 +03:00
FormattingWide.cpp refactor: apply naming conventions and drop extern-C comment 2026-09-29 04:20:28 +03:00
General.cpp feat(kernel, libc): memory, files and threads for retail title boot 2026-09-29 21:22:13 +03:00
GuestAllocations.cpp feat(kernel, libc): memory, files and threads for retail title boot 2026-09-29 21:22:13 +03:00
GuestArena.cpp feat(kernel, libc): memory, files and threads for retail title boot 2026-09-29 21:22:13 +03:00
GuestHeap.cpp feat(runtime): guest arena, kernel thread/sync/file APIs, crash hooks 2026-09-25 16:27:49 -07:00
HeapDiagnostics.cpp feat(libc): implement heap trace info 2026-09-27 11:43:36 +03:00
JumpBuffer.cpp feat(runtime): guest arena, kernel thread/sync/file APIs, crash hooks 2026-09-25 16:27:49 -07:00
LocaleSupport.cpp feat(libc): operator new/delete, bounds-checked functions, char locale facets and runtime helpers 2026-09-28 14:22:48 +13:00
Math.cpp feat(kernel, libc): memory, files and threads for retail title boot 2026-09-29 21:22:13 +03:00
Mspace.cpp perf(libc): replace the mspace block list with an ordered allocator 2026-09-29 12:53:00 +13:00
Process.cpp fix(kernel): orderly shutdown when closing the display window 2026-09-28 18:30:34 +03:00
RuntimeSupport.cpp feat(kernel, libc): memory, files and threads for retail title boot 2026-09-29 21:22:13 +03:00
StandardStreams.cpp feat(libc): expose guest standard streams and character IO 2026-09-25 06:30:30 +10:00
StdioExtras.cpp feat(kernel, libc): memory, files and threads for retail title boot 2026-09-29 21:22:13 +03:00
StringExtensions.cpp feat(libc): add C-locale character APIs and guest basename 2026-09-25 06:58:41 +10:00
Strings.cpp feat(kernel, libc): memory, files and threads for retail title boot 2026-09-29 21:22:13 +03:00
Time.cpp feat(libc): operator new/delete, bounds-checked functions, char locale facets and runtime helpers 2026-09-28 14:22:48 +13:00
WideConversion.cpp feat(libc): add allocating strings and C locale wide conversion 2026-09-29 07:39:01 +10:00