feat: read title files from a read-only app0.zar (ZArchive) layer #5835

Merged
AlexOfTheForest merged 5 commits from upstream-pr/5835 into main 2026-10-16 19:23:25 +00:00
AlexOfTheForest commented 2026-10-14 12:59:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by AlexOfTheForest on 2026-10-14T12:59:24Z.


What

Closes #4848. Adds an opt-in, read-only app0.zar (ZArchive) beside app0/. A path missing from app0/ is looked up in the archive case-insensitively; files on disk take precedence. Without an archive nothing changes.

  • build: zstd v1.5.7 and ZArchive as submodules, built from source as static PIC libraries; their symbols are excluded from the .prx export table on Linux.
  • libc: archive reader, archived-descriptor table with shared positions, and a guard in ResolvePath_nid_no_patch. Any call that does not read the archive throws NotImplemented for an archive-only path instead of returning ENOENT. opendir of a directory present on disk and in the archive, fdopen of an archived descriptor and chdir into the archive also throw. .. through an archive-only directory resolves.
  • libkernel:
    • Open: sceKernelOpen/open give an archived file a read-only null-device descriptor.
    • Reads: read, pread, readv, preadv and AIO reads are served from the archive.
    • Other descriptor calls: lseek, fstat and FIONREAD are served from the archive. dup, dup2 and F_DUPFD share the position.
    • Path calls: sceKernelStat and sceKernelCheckReachability see archived paths.
    • Errors: opening for writing fails with EROFS, O_CREAT|O_EXCL with EEXIST, and O_DIRECTORY on a file with ENOTDIR. Opening an archived or merged directory throws until getdents can list it.
  • Remaining gaps (fopen, access, mmap, record locks, directory listing) are recorded in docs/dev/debt/libc.md and libkernel.md; usage is in docs/user/USAGE.md.

Tested

Linux x86-64, GCC, full build with BUILD_TESTING=ON.

  • New tests (all passing): guest_app_archive_{present,absent,damaged,invalid} and guest_kernel_app_archive_{archive,plain}. They cover:
    • reads that cross 64 KiB block boundaries, plus vectored, positioned and AIO reads;
    • seeks and end of file;
    • shared positions after dup, F_DUPFD and close, and dup2 over an archived descriptor;
    • stat/fstat, the error codes, the refusals, a damaged block and an invalid archive;
    • disk precedence and unchanged behaviour without an archive.
  • Mutation check: removing the sceKernelRead hook makes the kernel test fail.
  • Full ctest: only environment failures (UDP/TCP sockets unavailable in the sandbox; shm EACCES check while running as root).
  • No title tested.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4858251648 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5835). Originally posted by [AlexOfTheForest](https://github.com/AlexOfTheForest) on 2026-10-14T12:59:24Z. --- ### What Closes #4848. Adds an opt-in, read-only `app0.zar` ([ZArchive](https://github.com/Exzap/ZArchive)) beside `app0/`. A path missing from `app0/` is looked up in the archive case-insensitively; files on disk take precedence. Without an archive nothing changes. - `build`: zstd v1.5.7 and ZArchive as submodules, built from source as static PIC libraries; their symbols are excluded from the `.prx` export table on Linux. - `libc`: archive reader, archived-descriptor table with shared positions, and a guard in `ResolvePath_nid_no_patch`. Any call that does not read the archive throws `NotImplemented` for an archive-only path instead of returning `ENOENT`. `opendir` of a directory present on disk and in the archive, `fdopen` of an archived descriptor and `chdir` into the archive also throw. `..` through an archive-only directory resolves. - `libkernel`: - **Open:** `sceKernelOpen`/`open` give an archived file a read-only null-device descriptor. - **Reads:** `read`, `pread`, `readv`, `preadv` and AIO reads are served from the archive. - **Other descriptor calls:** `lseek`, `fstat` and `FIONREAD` are served from the archive. `dup`, `dup2` and `F_DUPFD` share the position. - **Path calls:** `sceKernelStat` and `sceKernelCheckReachability` see archived paths. - **Errors:** opening for writing fails with `EROFS`, `O_CREAT|O_EXCL` with `EEXIST`, and `O_DIRECTORY` on a file with `ENOTDIR`. Opening an archived or merged directory throws until `getdents` can list it. - Remaining gaps (`fopen`, `access`, `mmap`, record locks, directory listing) are recorded in `docs/dev/debt/libc.md` and `libkernel.md`; usage is in `docs/user/USAGE.md`. ### Tested Linux x86-64, GCC, full build with `BUILD_TESTING=ON`. - New tests (all passing): `guest_app_archive_{present,absent,damaged,invalid}` and `guest_kernel_app_archive_{archive,plain}`. They cover: - reads that cross 64 KiB block boundaries, plus vectored, positioned and AIO reads; - seeks and end of file; - shared positions after `dup`, `F_DUPFD` and `close`, and `dup2` over an archived descriptor; - `stat`/`fstat`, the error codes, the refusals, a damaged block and an invalid archive; - disk precedence and unchanged behaviour without an archive. - Mutation check: removing the `sceKernelRead` hook makes the kernel test fail. - Full `ctest`: only environment failures (UDP/TCP sockets unavailable in the sandbox; shm EACCES check while running as root). - No title tested. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
adriadam10 commented 2026-10-14 13:55:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-14T13:55:25Z.

Review: CHANGES_REQUESTED


Thanks for this, the layering and the tests are careful. One blocking issue before merge:

  • An archived file is a real null-device descriptor (core/libs/prx/libkernel/File/src/ArchivedFile.cpp:23), and only read/seek/stat/FIONREAD/AIO/dup check for it. Every other descriptor call still runs on the null device: mmap_nid_postfix (DirectMemory/PosixMemory.cpp:92, takes the fd straight to the host mmap), fchmod, fchown, futimes, flock, ftruncate, fsync/fdatasync (File/src/Stdio.cpp ~288-311, 693, 736, 903, 913). They either succeed silently or fail with an unrelated errno, and fchmod/futimes act on the host's /dev/null. That contradicts "any call that does not read the archive throws NotImplemented" in the description and the exact-or-throw rule (titles commonly mmap their assets).
  • Fix: for an archived descriptor these calls throw NotImplemented (as fdopen already does), and the debt line in docs/dev/debt/libkernel.md lists them. Add a test in GuestKernelAppArchive.cpp that calls each one on an archived fd.

Also note: the Windows paths (NUL placeholder, linking zarchive into libc) are not exercised by the PR CI, so the full Build dispatch will be the evidence for them.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5519064417 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5835#pullrequestreview-5519064417). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-14T13:55:25Z. **Review:** CHANGES_REQUESTED --- Thanks for this, the layering and the tests are careful. One blocking issue before merge: - An archived file is a real null-device descriptor (`core/libs/prx/libkernel/File/src/ArchivedFile.cpp:23`), and only read/seek/stat/`FIONREAD`/AIO/dup check for it. Every other descriptor call still runs on the null device: `mmap_nid_postfix` (`DirectMemory/PosixMemory.cpp:92`, takes the fd straight to the host `mmap`), `fchmod`, `fchown`, `futimes`, `flock`, `ftruncate`, `fsync`/`fdatasync` (`File/src/Stdio.cpp` ~288-311, 693, 736, 903, 913). They either succeed silently or fail with an unrelated errno, and `fchmod`/`futimes` act on the host's `/dev/null`. That contradicts "any call that does not read the archive throws `NotImplemented`" in the description and the exact-or-throw rule (titles commonly `mmap` their assets). - Fix: for an archived descriptor these calls throw `NotImplemented` (as `fdopen` already does), and the debt line in `docs/dev/debt/libkernel.md` lists them. Add a test in `GuestKernelAppArchive.cpp` that calls each one on an archived fd. Also note: the Windows paths (`NUL` placeholder, linking `zarchive` into libc) are not exercised by the PR CI, so the full Build dispatch will be the evidence for them.
AlexOfTheForest commented 2026-10-14 14:11:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by AlexOfTheForest on 2026-10-14T14:11:07Z.


Thanks for this, the layering and the tests are careful. One blocking issue before merge:

  • An archived file is a real null-device descriptor (core/libs/prx/libkernel/File/src/ArchivedFile.cpp:23), and only read/seek/stat/FIONREAD/AIO/dup check for it. Every other descriptor call still runs on the null device: mmap_nid_postfix (DirectMemory/PosixMemory.cpp:92, takes the fd straight to the host mmap), fchmod, fchown, futimes, flock, ftruncate, fsync/fdatasync (File/src/Stdio.cpp ~288-311, 693, 736, 903, 913). They either succeed silently or fail with an unrelated errno, and fchmod/futimes act on the host's /dev/null. That contradicts "any call that does not read the archive throws NotImplemented" in the description and the exact-or-throw rule (titles commonly mmap their assets).
  • Fix: for an archived descriptor these calls throw NotImplemented (as fdopen already does), and the debt line in docs/dev/debt/libkernel.md lists them. Add a test in GuestKernelAppArchive.cpp that calls each one on an archived fd.

Also note: the Windows paths (NUL placeholder, linking zarchive into libc) are not exercised by the PR CI, so the full Build dispatch will be the evidence for them.

Thanks for the review now it should be fixed

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6170357498 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5835#issuecomment-6170357498). Originally posted by [AlexOfTheForest](https://github.com/AlexOfTheForest) on 2026-10-14T14:11:07Z. --- > Thanks for this, the layering and the tests are careful. One blocking issue before merge: > > - An archived file is a real null-device descriptor (`core/libs/prx/libkernel/File/src/ArchivedFile.cpp:23`), and only read/seek/stat/`FIONREAD`/AIO/dup check for it. Every other descriptor call still runs on the null device: `mmap_nid_postfix` (`DirectMemory/PosixMemory.cpp:92`, takes the fd straight to the host `mmap`), `fchmod`, `fchown`, `futimes`, `flock`, `ftruncate`, `fsync`/`fdatasync` (`File/src/Stdio.cpp` ~288-311, 693, 736, 903, 913). They either succeed silently or fail with an unrelated errno, and `fchmod`/`futimes` act on the host's `/dev/null`. That contradicts "any call that does not read the archive throws `NotImplemented`" in the description and the exact-or-throw rule (titles commonly `mmap` their assets). > - Fix: for an archived descriptor these calls throw `NotImplemented` (as `fdopen` already does), and the debt line in `docs/dev/debt/libkernel.md` lists them. Add a test in `GuestKernelAppArchive.cpp` that calls each one on an archived fd. > > Also note: the Windows paths (`NUL` placeholder, linking `zarchive` into libc) are not exercised by the PR CI, so the full Build dispatch will be the evidence for them. > Thanks for the review now it should be fixed
AlexOfTheForest commented 2026-10-15 05:20:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by AlexOfTheForest on 2026-10-15T05:20:09Z.


@adriadam10 Thanks for the review. Fixed in e403613 (fix(libkernel): refuse descriptor calls on app0.zar files).

On an archived descriptor, flock, fstatfs, ftruncate, fsync, fdatasync, getdirentries, fchmod, futimes and mmap now throw NotImplemented. They all go through one guard, File::RefuseArchivedFile in ArchivedFile.cpp, the same way fdopen is refused in libc. libkernel has no fchown export, so that one needed no change.

mmap_nid_postfix is declared noexcept in several translation units, so its refusal terminates the process. The mmap mode of the test checks the terminate path through libc's set_terminate and the current exception, as GuestItimer.cpp does. This is noted in docs/dev/debt/libkernel.md.

Tests: GuestKernelAppArchive.cpp checks each call. Removing any one of the nine guards makes the test fail; with all of them, the 7 archive tests pass on Linux. The Windows paths still need the full Build dispatch, as you said.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6185040774 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5835#issuecomment-6185040774). Originally posted by [AlexOfTheForest](https://github.com/AlexOfTheForest) on 2026-10-15T05:20:09Z. --- @adriadam10 Thanks for the review. Fixed in e403613 (`fix(libkernel): refuse descriptor calls on app0.zar files`). On an archived descriptor, `flock`, `fstatfs`, `ftruncate`, `fsync`, `fdatasync`, `getdirentries`, `fchmod`, `futimes` and `mmap` now throw `NotImplemented`. They all go through one guard, `File::RefuseArchivedFile` in `ArchivedFile.cpp`, the same way `fdopen` is refused in libc. libkernel has no `fchown` export, so that one needed no change. `mmap_nid_postfix` is declared `noexcept` in several translation units, so its refusal terminates the process. The `mmap` mode of the test checks the terminate path through libc's `set_terminate` and the current exception, as `GuestItimer.cpp` does. This is noted in `docs/dev/debt/libkernel.md`. Tests: `GuestKernelAppArchive.cpp` checks each call. Removing any one of the nine guards makes the test fail; with all of them, the 7 archive tests pass on Linux. The Windows paths still need the full Build dispatch, as you said.
github-actions[bot] commented 2026-10-15 11:24:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T11:24:35Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 5993 docs/dev/debt/libkernel.md L202
PR 6061 core/libs/prx/libc/src/General.cpp L194-195, L203-209
PR 6067 CMakeLists.txt L273
PR 6132 core/libs/prx/libkernel/File/src/Open.cpp L225-226
PR 6228 core/libs/prx/libkernel/File/src/NativeStat.cpp L2
PR 6519 docs/dev/debt/libkernel.md L202
PR 6565 docs/dev/debt/libc.md L83
PR 6658 docs/dev/debt/libkernel.md L202
PR 6721 .gitmodules L42

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 674 .gitmodules
CMakeLists.txt
PR 3987 docs/dev/debt/libc.md
PR 4891 docs/user/USAGE.md
PR 4972 core/libs/prx/libkernel/CMakeLists.txt
PR 5021 .gitmodules
CMakeLists.txt
core/libs/prx/libc/CMakeLists.txt
core/libs/prx/libc/src/General.cpp
core/libs/prx/libkernel/CMakeLists.txt
core/libs/prx/libkernel/File/src/NativeStat.cpp
core/libs/prx/libkernel/File/src/Open.cpp
core/libs/prx/libkernel/File/src/Stdio.cpp
docs/dev/debt/libc.md
docs/dev/debt/libkernel.md
docs/user/USAGE.md
PR 5303 docs/dev/debt/libc.md
PR 5390 docs/user/USAGE.md
PR 5668 core/libs/prx/libc/CMakeLists.txt
core/libs/prx/libc/src/FileAndHeap.cpp
PR 5797 .gitmodules
PR 5925 docs/user/USAGE.md
PR 5962 docs/user/USAGE.md
PR 6044 CMakeLists.txt
core/libs/prx/libc/CMakeLists.txt
core/libs/prx/libkernel/CMakeLists.txt
PR 6222 core/libs/prx/libc/CMakeLists.txt
core/libs/prx/libc/src/General.cpp
core/libs/prx/libkernel/CMakeLists.txt
core/libs/prx/libkernel/DirectMemory/PosixMemory.cpp
core/libs/prx/libkernel/File/src/NativeStat.cpp
core/libs/prx/libkernel/File/src/Stdio.cpp
docs/dev/debt/libc.md
docs/dev/debt/libkernel.md
PR 6484 core/libs/prx/libc/include/FilesystemError.hpp
core/libs/prx/libkernel/File/src/Stdio.cpp
PR 6510 docs/dev/debt/libkernel.md
PR 6879 CMakeLists.txt
core/libs/prx/libc/src/General.cpp
core/libs/prx/libkernel/File/src/NativeStat.cpp
core/libs/prx/libkernel/File/src/Stdio.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6190911406 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5835#issuecomment-6190911406). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T11:24:35Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | [PR 5993](https://www.github.com/boykopovar/AnyPS5/pull/5993) | `docs/dev/debt/libkernel.md` [L202](https://github.com/boykopovar/AnyPS5/blob/f474fb7768e68cc6cbaafdc4874429bcb4c1dbc1/docs/dev/debt/libkernel.md#L202) | | | | [PR 6061](https://www.github.com/boykopovar/AnyPS5/pull/6061) | `core/libs/prx/libc/src/General.cpp` [L194-195](https://github.com/boykopovar/AnyPS5/blob/f474fb7768e68cc6cbaafdc4874429bcb4c1dbc1/core/libs/prx/libc/src/General.cpp#L194-L195), [L203-209](https://github.com/boykopovar/AnyPS5/blob/f474fb7768e68cc6cbaafdc4874429bcb4c1dbc1/core/libs/prx/libc/src/General.cpp#L203-L209) | | | | [PR 6067](https://www.github.com/boykopovar/AnyPS5/pull/6067) | `CMakeLists.txt` [L273](https://github.com/boykopovar/AnyPS5/blob/f474fb7768e68cc6cbaafdc4874429bcb4c1dbc1/CMakeLists.txt#L273) | | | | [PR 6132](https://www.github.com/boykopovar/AnyPS5/pull/6132) | `core/libs/prx/libkernel/File/src/Open.cpp` [L225-226](https://github.com/boykopovar/AnyPS5/blob/f474fb7768e68cc6cbaafdc4874429bcb4c1dbc1/core/libs/prx/libkernel/File/src/Open.cpp#L225-L226) | | | | [PR 6228](https://www.github.com/boykopovar/AnyPS5/pull/6228) | `core/libs/prx/libkernel/File/src/NativeStat.cpp` [L2](https://github.com/boykopovar/AnyPS5/blob/f474fb7768e68cc6cbaafdc4874429bcb4c1dbc1/core/libs/prx/libkernel/File/src/NativeStat.cpp#L2) | | | | [PR 6519](https://www.github.com/boykopovar/AnyPS5/pull/6519) | `docs/dev/debt/libkernel.md` [L202](https://github.com/boykopovar/AnyPS5/blob/f474fb7768e68cc6cbaafdc4874429bcb4c1dbc1/docs/dev/debt/libkernel.md#L202) | | | | [PR 6565](https://www.github.com/boykopovar/AnyPS5/pull/6565) | `docs/dev/debt/libc.md` [L83](https://github.com/boykopovar/AnyPS5/blob/f474fb7768e68cc6cbaafdc4874429bcb4c1dbc1/docs/dev/debt/libc.md#L83) | | | | [PR 6658](https://www.github.com/boykopovar/AnyPS5/pull/6658) | `docs/dev/debt/libkernel.md` [L202](https://github.com/boykopovar/AnyPS5/blob/f474fb7768e68cc6cbaafdc4874429bcb4c1dbc1/docs/dev/debt/libkernel.md#L202) | | | | [PR 6721](https://www.github.com/boykopovar/AnyPS5/pull/6721) | `.gitmodules` [L42](https://github.com/boykopovar/AnyPS5/blob/f474fb7768e68cc6cbaafdc4874429bcb4c1dbc1/.gitmodules#L42) | | | Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 674](https://www.github.com/boykopovar/AnyPS5/pull/674) | `.gitmodules`<br>`CMakeLists.txt` | | [PR 3987](https://www.github.com/boykopovar/AnyPS5/pull/3987) | `docs/dev/debt/libc.md` | | [PR 4891](https://www.github.com/boykopovar/AnyPS5/pull/4891) | `docs/user/USAGE.md` | | [PR 4972](https://www.github.com/boykopovar/AnyPS5/pull/4972) | `core/libs/prx/libkernel/CMakeLists.txt` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `.gitmodules`<br>`CMakeLists.txt`<br>`core/libs/prx/libc/CMakeLists.txt`<br>`core/libs/prx/libc/src/General.cpp`<br>`core/libs/prx/libkernel/CMakeLists.txt`<br>`core/libs/prx/libkernel/File/src/NativeStat.cpp`<br>`core/libs/prx/libkernel/File/src/Open.cpp`<br>`core/libs/prx/libkernel/File/src/Stdio.cpp`<br>`docs/dev/debt/libc.md`<br>`docs/dev/debt/libkernel.md`<br>`docs/user/USAGE.md` | | [PR 5303](https://www.github.com/boykopovar/AnyPS5/pull/5303) | `docs/dev/debt/libc.md` | | [PR 5390](https://www.github.com/boykopovar/AnyPS5/pull/5390) | `docs/user/USAGE.md` | | [PR 5668](https://www.github.com/boykopovar/AnyPS5/pull/5668) | `core/libs/prx/libc/CMakeLists.txt`<br>`core/libs/prx/libc/src/FileAndHeap.cpp` | | [PR 5797](https://www.github.com/boykopovar/AnyPS5/pull/5797) | `.gitmodules` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `docs/user/USAGE.md` | | [PR 5962](https://www.github.com/boykopovar/AnyPS5/pull/5962) | `docs/user/USAGE.md` | | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `CMakeLists.txt`<br>`core/libs/prx/libc/CMakeLists.txt`<br>`core/libs/prx/libkernel/CMakeLists.txt` | | [PR 6222](https://www.github.com/boykopovar/AnyPS5/pull/6222) | `core/libs/prx/libc/CMakeLists.txt`<br>`core/libs/prx/libc/src/General.cpp`<br>`core/libs/prx/libkernel/CMakeLists.txt`<br>`core/libs/prx/libkernel/DirectMemory/PosixMemory.cpp`<br>`core/libs/prx/libkernel/File/src/NativeStat.cpp`<br>`core/libs/prx/libkernel/File/src/Stdio.cpp`<br>`docs/dev/debt/libc.md`<br>`docs/dev/debt/libkernel.md` | | [PR 6484](https://www.github.com/boykopovar/AnyPS5/pull/6484) | `core/libs/prx/libc/include/FilesystemError.hpp`<br>`core/libs/prx/libkernel/File/src/Stdio.cpp` | | [PR 6510](https://www.github.com/boykopovar/AnyPS5/pull/6510) | `docs/dev/debt/libkernel.md` | | [PR 6879](https://www.github.com/boykopovar/AnyPS5/pull/6879) | `CMakeLists.txt`<br>`core/libs/prx/libc/src/General.cpp`<br>`core/libs/prx/libkernel/File/src/NativeStat.cpp`<br>`core/libs/prx/libkernel/File/src/Stdio.cpp` |
adriadam10 commented 2026-10-16 18:16:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-16T18:16:19Z.

Review: APPROVED


Rebased onto current main: the only real conflict was File/src/Stdio.cpp in TransferIovecs, where main added File::LockPositionedTransfer(d). Kept both, the archived read first and the lock after it. No other change to the PR. guest_app_archive* and guest_kernel_app_archive* pass on the rebased tree. Merging once the full Build (Windows) is green.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5551941650 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5835#pullrequestreview-5551941650). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-16T18:16:19Z. **Review:** APPROVED --- Rebased onto current main: the only real conflict was `File/src/Stdio.cpp` in `TransferIovecs`, where main added `File::LockPositionedTransfer(d)`. Kept both, the archived read first and the lock after it. No other change to the PR. `guest_app_archive*` and `guest_kernel_app_archive*` pass on the rebased tree. Merging once the full Build (Windows) is green.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!5835
No description provided.