AnyPS5/core/libs/prx/libc/include
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
..
exceptions refactor(libs): use local cmakelists in libc 2026-09-11 12:22:19 +03:00
general refactor(agc): make frame timing logs optional by cmake option 2026-09-28 10:51:29 +03:00
specifics feat(libc): operator new/delete, bounds-checked functions, char locale facets and runtime helpers 2026-09-28 14:22:48 +13:00
ApplicationHeap.hpp fix(libc): route guest allocations through application heap 2026-09-24 06:53:12 +03:00
CpuTopology.hpp feat(runtime): timed waits, sync primitive fixes, heap and RTC fixes, unattended-run switches 2026-09-26 19:00:39 -07:00
FileStream.hpp feat(libc): reopen guest streams while preserving identity 2026-09-25 07:05:07 +10:00
General.hpp feat(libc): operator new/delete, bounds-checked functions, char locale facets and runtime helpers 2026-09-28 14:22:48 +13:00
GuestAllocations.hpp Merge remote-tracking branch 'origin/main' into feat/demons-souls-boot 2026-09-27 10:52:21 -07:00
GuestArena.hpp feat(kernel, libc): memory, files and threads for retail title boot 2026-09-29 21:22:13 +03:00
GuestDirectory.hpp feat(libc): translate guest directory enumeration 2026-09-25 06:41:55 +10:00
GuestHeap.hpp feat(agc): add bda memory mapping and resource management (wip) 2026-09-21 18:54:06 +03:00
GuestLocale.hpp feat(libc): replace guest locale implementation with std::locale 2026-09-27 11:43:42 +03:00
HeapDiagnostics.hpp feat(libc): implement heap trace info 2026-09-27 11:43:36 +03:00
HostThreadLocal.hpp fix(agc): preserve recorder buffers through Windows thread teardown 2026-09-28 09:55:01 +10:00
PreciseWait.hpp refactor: strip explanatory comments to match repo conventions 2026-09-29 04:18:04 +03:00
Shutdown.hpp fix(kernel): orderly shutdown when closing the display window 2026-09-28 18:30:34 +03:00
VarArgsAbi.hpp refactor(libc): separate platform and compiler specifics in libc 2026-09-06 12:41:33 +03:00
WindowsFormatting.hpp feat(kernel, libc): memory, files and threads for retail title boot 2026-09-29 21:22:13 +03:00