AnyPS5/core/libs/prx/libkernel/Pthread/Posix
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
..
Attr.cpp feat(runtime): guest arena, kernel thread/sync/file APIs, crash hooks 2026-09-25 16:27:49 -07:00
Barrier.cpp feat(kernel): add native pthread barriers and thread helpers 2026-09-29 07:39:01 +10:00
Common.hpp feat(runtime): guest arena, kernel thread/sync/file APIs, crash hooks 2026-09-25 16:27:49 -07:00
Cond.cpp Merge remote-tracking branch 'origin/main' into feat/demons-souls-boot 2026-09-27 10:52:21 -07:00
Mutex.cpp Merge remote-tracking branch 'origin/main' into feat/demons-souls-boot 2026-09-27 10:52:21 -07:00
Once.cpp fix(libkernel): drop the scePthreadOnce stub that shadowed the implementation 2026-09-27 11:26:58 -07:00
Rwlock.cpp Merge remote-tracking branch 'origin/main' into feat/demons-souls-boot 2026-09-27 10:52:21 -07:00
Sem.cpp feat(runtime): timed waits, sync primitive fixes, heap and RTC fixes, unattended-run switches 2026-09-26 19:00:39 -07:00
Thread.cpp feat(kernel): add native pthread barriers and thread helpers 2026-09-29 07:39:01 +10:00
Tsd.cpp feat(runtime): guest arena, kernel thread/sync/file APIs, crash hooks 2026-09-25 16:27:49 -07:00
Xthreads.cpp feat(kernel, libc): memory, files and threads for retail title boot 2026-09-29 21:22:13 +03:00