feat(libSceNKWebKit): implement WTF FileSystemImpl existence, delete and volume helpers over the guest filesystem #19822

Merged
B-Howell merged 10 commits from upstream-pr/19822 into main 2026-11-19 20:48:43 +00:00
B-Howell commented 2026-11-14 00:33:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by B-Howell on 2026-11-14T00:33:14Z.


What

Implements six existing WTF::FileSystemImpl stubs in libSceNKWebKit over the guest filesystem, following the pinned PS5-WebKit-11.x PlayStation build (playstation/FileSystemPlayStation.cpp, posix/FileSystemPOSIX.cpp and the std::filesystem branch of FileSystem.cpp, since FILESYSTEM_POSIX_FAST_PATH is Cocoa-only):

  • fileExists: guest stat succeeds (std::filesystem::exists).
  • deleteFile: lstat, false for a directory, then unlink.
  • deleteEmptyDirectory: lstat, false unless a directory (a symlink is not), then rmdir.
  • moveFile: rename of the two UTF-8 paths, != -1.
  • realPath: guest realpath into a 1024-byte buffer; on failure returns the input String unchanged.
  • filesHaveSameVolume: false for a null String, otherwise both stat calls must succeed and st_dev must match.

Paths use the existing String::utf8 export as openFile already does; results use String::fromUTF8. Routing goes through the existing libkernel stat/lstat/unlink/rmdir and libc rename/realpath exports, and the directory test reuses GuestFilesystem::TypeOfMode. The six inventory rows are removed and a debt entry records that console ABI is not measured.

Tested

WSL Ubuntu, GCC, nkwebkit_wtf_tests (new TestFileSystemHelpers in tests/Wtf.cpp, through a guest path alias): existence for a file, a directory, missing, empty and null paths; same volume for two files and a file and directory, false for null, missing and empty; move and move of a missing or null source; realPath of /alias/sub/../moved.txt gives /alias/moved.txt, a missing path and a null String come back unchanged; delete twice, delete of a directory and of null; deleteEmptyDirectory false on a non-empty directory, a file, missing and null, true on an empty directory.

  • Red control (the test on main 6fd2999417): the test does not build, Wtf.cpp:602: error: too many arguments to function for each stub.
  • This PR (1b5206fed7): ctest -R '^nkwebkit_wtf$' passed 3/3 (1/1 Test #3930: nkwebkit_wtf ... Passed 0.02 sec).
  • ctest -R '^public_headers': 65/65 passed.
  • tools/progress.py: libraries 15784 to 15790 of 39340 (40.12% to 40.14%, +6 implemented).
  • @JJenkx, Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release, 7b18132687 merged onto main 04631f5042 (report): nkwebkit_wtf passed 3/3, none skipped.
  • Main merge e41774e46ef, with fix 76e9ef8a1e6: the Windows CI failure was this PR. patched_libraries reported libSceNKWebKit.prx: LoadLibraryEx failed with error 127 because moveFile imported rename_nid_postfix from libkernel.prx (libkernel also builds libc's Rename.cpp), and libkernel's patched exports keep that name un-NIDed while the import was patched to the NID. The fix calls RenameGuestPath_nid_no_patch, the same body, whose name is kept on both sides. Windows 11, WinLibs GCC 15.2, Release: before the fix 412 patched libraries loaded, 1 failed; after it patched_libraries and nkwebkit_wtf passed, and every libkernel import of the module resolves. Windows 11, WinLibs GCC 15.2, Release, all 18 of our main merges from this round built together on main 790e9a371cc: ctest -R nkwebkit 116/116 passed, patched_libraries passed once the #19822 fix was in. Re-merged onto b9fb5ab5a32 (no NKWebKit changes in between); check_conventions passed.
  • Debt fragment 6166cb158b: merged main 3ae84d01bd3 (the tests/Wtf.cpp conflict with #19103 kept both test groups) and moved this PR's debt edits into docs/dev/debt/changes/claude-wtf-fs-existence-delete.md; the debt files match main. WSL2 Ubuntu: nkwebkit_wtf_tests built and ctest -R ^nkwebkit_wtf$ passed 1/1. debt_fold.py --check and check_conventions.py --base origin/main pass.
  • Main merge ea3626604ea onto main 80dffd266c0: conflict only in Export.cpp and include/InventoryExports.hpp, where #21270 removed the adjacent makeAllDirectories stub and this PR removes the filesHaveSameVolume and deleteEmptyDirectory stubs; all three stubs are dropped. WSL2 Ubuntu, GCC, Release: nkwebkit_wtf_tests built and ctest -R ^nkwebkit_wtf$ --repeat until-fail:3 passed. debt_fold.py --check and check_conventions.py --base origin/main pass; the debt files match main.
  • Main merge 0acf163a3fc onto main 1d3c669c843: conflict only in tests/Wtf.cpp, where #19380 added its StackBounds and TimingScope tests next to this PR's TestFileSystemHelpers; both test groups are kept. WSL2 Ubuntu, GCC, Release: nkwebkit_wtf_tests built and ctest -R ^nkwebkit_wtf$ --repeat until-fail:3 passed. debt_fold.py --check and check_conventions.py --base origin/main pass; the debt files match main.

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
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5305123122 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19822). Originally posted by [B-Howell](https://github.com/B-Howell) on 2026-11-14T00:33:14Z. --- ### What Implements six existing `WTF::FileSystemImpl` stubs in libSceNKWebKit over the guest filesystem, following the pinned [PS5-WebKit-11.x](https://github.com/neonmodder123/PS5-WebKit-11.x/tree/80f77e94c63ee7202eec3d4b5b1a021dd89011ba) PlayStation build (`playstation/FileSystemPlayStation.cpp`, `posix/FileSystemPOSIX.cpp` and the `std::filesystem` branch of `FileSystem.cpp`, since `FILESYSTEM_POSIX_FAST_PATH` is Cocoa-only): - `fileExists`: guest `stat` succeeds (`std::filesystem::exists`). - `deleteFile`: `lstat`, false for a directory, then `unlink`. - `deleteEmptyDirectory`: `lstat`, false unless a directory (a symlink is not), then `rmdir`. - `moveFile`: `rename` of the two UTF-8 paths, `!= -1`. - `realPath`: guest `realpath` into a 1024-byte buffer; on failure returns the input `String` unchanged. - `filesHaveSameVolume`: false for a null `String`, otherwise both `stat` calls must succeed and `st_dev` must match. Paths use the existing `String::utf8` export as `openFile` already does; results use `String::fromUTF8`. Routing goes through the existing libkernel `stat`/`lstat`/`unlink`/`rmdir` and libc `rename`/`realpath` exports, and the directory test reuses `GuestFilesystem::TypeOfMode`. The six inventory rows are removed and a debt entry records that console ABI is not measured. ### Tested WSL Ubuntu, GCC, `nkwebkit_wtf_tests` (new `TestFileSystemHelpers` in `tests/Wtf.cpp`, through a guest path alias): existence for a file, a directory, missing, empty and null paths; same volume for two files and a file and directory, false for null, missing and empty; move and move of a missing or null source; `realPath` of `/alias/sub/../moved.txt` gives `/alias/moved.txt`, a missing path and a null String come back unchanged; delete twice, delete of a directory and of null; `deleteEmptyDirectory` false on a non-empty directory, a file, missing and null, true on an empty directory. - Red control (the test on `main` 6fd29994179): the test does not build, `Wtf.cpp:602: error: too many arguments to function` for each stub. - This PR (1b5206fed73): `ctest -R '^nkwebkit_wtf$'` passed 3/3 (`1/1 Test #3930: nkwebkit_wtf ... Passed 0.02 sec`). - `ctest -R '^public_headers'`: 65/65 passed. - `tools/progress.py`: libraries 15784 to 15790 of 39340 (40.12% to 40.14%, +6 implemented). - @JJenkx, Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release, 7b18132687 merged onto main 04631f5042 ([report](https://github.com/boykopovar/AnyPS5/pull/19822#issuecomment-6870075906)): `nkwebkit_wtf` passed 3/3, none skipped. - Main merge `e41774e46ef`, with fix `76e9ef8a1e6`: the Windows CI failure was this PR. `patched_libraries` reported `libSceNKWebKit.prx: LoadLibraryEx failed with error 127` because `moveFile` imported `rename_nid_postfix` from libkernel.prx (libkernel also builds libc's `Rename.cpp`), and libkernel's patched exports keep that name un-NIDed while the import was patched to the NID. The fix calls `RenameGuestPath_nid_no_patch`, the same body, whose name is kept on both sides. Windows 11, WinLibs GCC 15.2, Release: before the fix `412 patched libraries loaded, 1 failed`; after it `patched_libraries` and `nkwebkit_wtf` passed, and every libkernel import of the module resolves. Windows 11, WinLibs GCC 15.2, Release, all 18 of our main merges from this round built together on main `790e9a371cc`: `ctest -R nkwebkit` 116/116 passed, `patched_libraries` passed once the #19822 fix was in. Re-merged onto `b9fb5ab5a32` (no NKWebKit changes in between); `check_conventions` passed. - Debt fragment `6166cb158b`: merged main `3ae84d01bd3` (the `tests/Wtf.cpp` conflict with #19103 kept both test groups) and moved this PR's debt edits into `docs/dev/debt/changes/claude-wtf-fs-existence-delete.md`; the debt files match main. WSL2 Ubuntu: `nkwebkit_wtf_tests` built and `ctest -R ^nkwebkit_wtf$` passed 1/1. `debt_fold.py --check` and `check_conventions.py --base origin/main` pass. - Main merge `ea3626604ea` onto main `80dffd266c0`: conflict only in `Export.cpp` and `include/InventoryExports.hpp`, where #21270 removed the adjacent `makeAllDirectories` stub and this PR removes the `filesHaveSameVolume` and `deleteEmptyDirectory` stubs; all three stubs are dropped. WSL2 Ubuntu, GCC, Release: `nkwebkit_wtf_tests` built and `ctest -R ^nkwebkit_wtf$ --repeat until-fail:3` passed. `debt_fold.py --check` and `check_conventions.py --base origin/main` pass; the debt files match main. - Main merge `0acf163a3fc` onto main `1d3c669c843`: conflict only in `tests/Wtf.cpp`, where #19380 added its StackBounds and TimingScope tests next to this PR's `TestFileSystemHelpers`; both test groups are kept. WSL2 Ubuntu, GCC, Release: `nkwebkit_wtf_tests` built and `ctest -R ^nkwebkit_wtf$ --repeat until-fail:3` passed. `debt_fold.py --check` and `check_conventions.py --base origin/main` pass; the debt files match main. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
PrivacyOnion commented 2026-11-14 01:01:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-14T01:01:37Z.

Review: CHANGES_REQUESTED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 7b18132687:

  • Conventions: tools/check_conventions.py passed; git diff --check clean.
  • Build: nkwebkit_wtf_tests built cleanly.
  • CTest (nkwebkit_wtf):
    1/1 Test #3933: nkwebkit_wtf .....................   Passed    0.01 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceNKWebKit/Export.cpp, core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, core/libs/prx/libSceNKWebKit/include/WtfExports.hpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified _ZN3WTF14FileSystemImpl10fileExistsERKNS_6StringE follows symlinks using stat_nid_postfix through Status and safely returns false for null strings, empty strings, and missing paths.
    • core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified _ZN3WTF14FileSystemImpl10deleteFileERKNS_6StringE and _ZN3WTF14FileSystemImpl20deleteEmptyDirectoryERKNS_6StringE query lstat_nid_postfix and GuestFilesystem::TypeOfMode to discriminate directories from regular files and symlinks before calling unlink_nid_postfix or rmdir_nid_postfix.
    • core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified ZN3WTF14FileSystemImpl8moveFileERKNS_6StringES3 validates that both old and new UTF-8 path representations are non-null before delegating to rename_nid_postfix.
    • core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified ZN3WTF14FileSystemImpl19filesHaveSameVolumeERKNS_6StringES3 rejects null String instances via .impl checks and ensures both file stats succeed before comparing st_dev.
    • core/libs/prx/libSceNKWebKit/tests/Wtf.cpp: Verified TestFileSystemHelpers exercises existence, deletion, directory removal, volume comparison, and moveFile over guest path aliases, testing boundary values (null String, empty string, non-empty directory, missing file) and properly removing path aliases and temporary directories.
    • docs/dev/debt/libSceNKWebKit.md: Verified technical debt documentation correctly accounts for unmeasured console ABI and the 1024-byte buffer in realPath, while inventory tables remove the 6 implemented symbols.
  • Concerns:
    • core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp:1-56: Violates the strict AGENTS.md rule ('No comments in code, except #endif and namespace ends'). Lines 1-3 contain derivation comments and lines 4-56 contain two C-style copyright header comment blocks; provenance notes belong in PR descriptions or docs/dev/debt/libSceNKWebKit.md rather than in source code.
  • Note: the AI-assisted checkbox can stay.

Requesting changes for the points above.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5900234688 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19822#pullrequestreview-5900234688). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-14T01:01:37Z. **Review:** CHANGES_REQUESTED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `7b18132687`: - **Conventions**: `tools/check_conventions.py` passed; `git diff --check` clean. - **Build**: `nkwebkit_wtf_tests` built cleanly. - **CTest** (`nkwebkit_wtf`): ``` 1/1 Test #3933: nkwebkit_wtf ..................... Passed 0.01 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceNKWebKit/Export.cpp`, `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`, `core/libs/prx/libSceNKWebKit/include/WtfExports.hpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified _ZN3WTF14FileSystemImpl10fileExistsERKNS_6StringE follows symlinks using stat_nid_postfix through Status and safely returns false for null strings, empty strings, and missing paths. - core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified _ZN3WTF14FileSystemImpl10deleteFileERKNS_6StringE and _ZN3WTF14FileSystemImpl20deleteEmptyDirectoryERKNS_6StringE query lstat_nid_postfix and GuestFilesystem::TypeOfMode to discriminate directories from regular files and symlinks before calling unlink_nid_postfix or rmdir_nid_postfix. - core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified _ZN3WTF14FileSystemImpl8moveFileERKNS_6StringES3_ validates that both old and new UTF-8 path representations are non-null before delegating to rename_nid_postfix. - core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified _ZN3WTF14FileSystemImpl19filesHaveSameVolumeERKNS_6StringES3_ rejects null String instances via .impl checks and ensures both file stats succeed before comparing st_dev. - core/libs/prx/libSceNKWebKit/tests/Wtf.cpp: Verified TestFileSystemHelpers exercises existence, deletion, directory removal, volume comparison, and moveFile over guest path aliases, testing boundary values (null String, empty string, non-empty directory, missing file) and properly removing path aliases and temporary directories. - docs/dev/debt/libSceNKWebKit.md: Verified technical debt documentation correctly accounts for unmeasured console ABI and the 1024-byte buffer in realPath, while inventory tables remove the 6 implemented symbols. - **Concerns**: - core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp:1-56: Violates the strict AGENTS.md rule ('No comments in code, except #endif and namespace ends'). Lines 1-3 contain derivation comments and lines 4-56 contain two C-style copyright header comment blocks; provenance notes belong in PR descriptions or docs/dev/debt/libSceNKWebKit.md rather than in source code. - Note: the AI-assisted checkbox can stay. Requesting changes for the points above.
PrivacyOnion commented 2026-11-15 19:17:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-15T19:17:12Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 7b18132687:

  • Conventions: tools/check_conventions.py passed; git diff --check clean.
  • Build: nkwebkit_wtf_tests built cleanly.
  • CTest (nkwebkit_wtf):
    1/1 Test #3933: nkwebkit_wtf .....................   Passed    0.01 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceNKWebKit/Export.cpp, core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, core/libs/prx/libSceNKWebKit/include/WtfExports.hpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified _ZN3WTF14FileSystemImpl10fileExistsERKNS_6StringE follows symlinks using stat_nid_postfix through Status and safely returns false for null strings, empty strings, and missing paths.
    • core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified _ZN3WTF14FileSystemImpl10deleteFileERKNS_6StringE and _ZN3WTF14FileSystemImpl20deleteEmptyDirectoryERKNS_6StringE query lstat_nid_postfix and GuestFilesystem::TypeOfMode to discriminate directories from regular files and symlinks before calling unlink_nid_postfix or rmdir_nid_postfix.
    • core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified ZN3WTF14FileSystemImpl8moveFileERKNS_6StringES3 validates that both old and new UTF-8 path representations are non-null before delegating to rename_nid_postfix.
    • core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified ZN3WTF14FileSystemImpl19filesHaveSameVolumeERKNS_6StringES3 rejects null String instances via .impl checks and ensures both file stats succeed before comparing st_dev.
    • core/libs/prx/libSceNKWebKit/tests/Wtf.cpp: Verified TestFileSystemHelpers exercises existence, deletion, directory removal, volume comparison, and moveFile over guest path aliases, testing boundary values (null String, empty string, non-empty directory, missing file) and properly removing path aliases and temporary directories.
    • docs/dev/debt/libSceNKWebKit.md: Verified technical debt documentation correctly accounts for unmeasured console ABI and the 1024-byte buffer in realPath, while inventory tables remove the 6 implemented symbols.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5912392881 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19822#pullrequestreview-5912392881). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-15T19:17:12Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `7b18132687`: - **Conventions**: `tools/check_conventions.py` passed; `git diff --check` clean. - **Build**: `nkwebkit_wtf_tests` built cleanly. - **CTest** (`nkwebkit_wtf`): ``` 1/1 Test #3933: nkwebkit_wtf ..................... Passed 0.01 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceNKWebKit/Export.cpp`, `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`, `core/libs/prx/libSceNKWebKit/include/WtfExports.hpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified _ZN3WTF14FileSystemImpl10fileExistsERKNS_6StringE follows symlinks using stat_nid_postfix through Status and safely returns false for null strings, empty strings, and missing paths. - core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified _ZN3WTF14FileSystemImpl10deleteFileERKNS_6StringE and _ZN3WTF14FileSystemImpl20deleteEmptyDirectoryERKNS_6StringE query lstat_nid_postfix and GuestFilesystem::TypeOfMode to discriminate directories from regular files and symlinks before calling unlink_nid_postfix or rmdir_nid_postfix. - core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified _ZN3WTF14FileSystemImpl8moveFileERKNS_6StringES3_ validates that both old and new UTF-8 path representations are non-null before delegating to rename_nid_postfix. - core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified _ZN3WTF14FileSystemImpl19filesHaveSameVolumeERKNS_6StringES3_ rejects null String instances via .impl checks and ensures both file stats succeed before comparing st_dev. - core/libs/prx/libSceNKWebKit/tests/Wtf.cpp: Verified TestFileSystemHelpers exercises existence, deletion, directory removal, volume comparison, and moveFile over guest path aliases, testing boundary values (null String, empty string, non-empty directory, missing file) and properly removing path aliases and temporary directories. - docs/dev/debt/libSceNKWebKit.md: Verified technical debt documentation correctly accounts for unmeasured console ABI and the 1024-byte buffer in realPath, while inventory tables remove the 6 implemented symbols. Looks Good To Me
PrivacyOnion commented 2026-11-15 21:19:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-15T21:19:20Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 76e9ef8a1e:

  • Conventions: tools/check_conventions.py passed; git diff --check clean.
  • Build: nkwebkit_wtf_tests built cleanly.
  • CTest (nkwebkit_wtf):
    1/1 Test #4268: nkwebkit_wtf .....................   Passed    0.03 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceNKWebKit/Export.cpp, core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, core/libs/prx/libSceNKWebKit/include/WtfExports.hpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified FileSystemRepresentation and Data safely extract the UTF-8 buffer from WTF::String via _ZNK3WTF6String4utf8ENS_14ConversionModeE and return nullptr when representation.buffer is null.
    • core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified Status checks if (!data) return false; before calling stat_nid_postfix (when followLinks is true, used by fileExists and filesHaveSameVolume) or lstat_nid_postfix (when followLinks is false, used by deleteFile and deleteEmptyDirectory).
    • core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified _ZN3WTF14FileSystemImpl10deleteFileERKNS_6StringE rejects directories (IsDirectory(status)) before calling unlink_nid_postfix, and _ZN3WTF14FileSystemImpl20deleteEmptyDirectoryERKNS_6StringE requires IsDirectory(status) (excluding symlinks via lstat_nid_postfix) before calling rmdir_nid_postfix.
    • core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified _ZN3WTF14FileSystemImpl8moveFileERKNS_6StringES3_ validates non-null UTF-8 representations for both oldPath and newPath before calling RenameGuestPath_nid_no_patch, and _ZN3WTF14FileSystemImpl8realPathERKNS_6StringE passes a 1024-byte stack buffer to realpath_nid_postfix and falls back to returning filePath unchanged on failure.
    • core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified _ZN3WTF14FileSystemImpl19filesHaveSameVolumeERKNS_6StringES3_ checks !fileA.impl || !fileB.impl first and requires Status(..., true) to succeed on both paths before comparing statusA.st_dev == statusB.st_dev.
    • core/libs/prx/libSceNKWebKit/Export.cpp, include/InventoryExports.hpp, include/WtfExports.hpp, and docs/dev/debt/libSceNKWebKit.md: Verified the six symbols are removed from the stub inventory, declared with matching APS5_VABI signatures, and documented in technical debt.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5912981849 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19822#pullrequestreview-5912981849). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-15T21:19:20Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `76e9ef8a1e`: - **Conventions**: `tools/check_conventions.py` passed; `git diff --check` clean. - **Build**: `nkwebkit_wtf_tests` built cleanly. - **CTest** (`nkwebkit_wtf`): ``` 1/1 Test #4268: nkwebkit_wtf ..................... Passed 0.03 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceNKWebKit/Export.cpp`, `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`, `core/libs/prx/libSceNKWebKit/include/WtfExports.hpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified `FileSystemRepresentation` and `Data` safely extract the UTF-8 buffer from `WTF::String` via `_ZNK3WTF6String4utf8ENS_14ConversionModeE` and return `nullptr` when `representation.buffer` is null. - core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified `Status` checks `if (!data) return false;` before calling `stat_nid_postfix` (when `followLinks` is true, used by `fileExists` and `filesHaveSameVolume`) or `lstat_nid_postfix` (when `followLinks` is false, used by `deleteFile` and `deleteEmptyDirectory`). - core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified `_ZN3WTF14FileSystemImpl10deleteFileERKNS_6StringE` rejects directories (`IsDirectory(status)`) before calling `unlink_nid_postfix`, and `_ZN3WTF14FileSystemImpl20deleteEmptyDirectoryERKNS_6StringE` requires `IsDirectory(status)` (excluding symlinks via `lstat_nid_postfix`) before calling `rmdir_nid_postfix`. - core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified `_ZN3WTF14FileSystemImpl8moveFileERKNS_6StringES3_` validates non-null UTF-8 representations for both `oldPath` and `newPath` before calling `RenameGuestPath_nid_no_patch`, and `_ZN3WTF14FileSystemImpl8realPathERKNS_6StringE` passes a 1024-byte stack buffer to `realpath_nid_postfix` and falls back to returning `filePath` unchanged on failure. - core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified `_ZN3WTF14FileSystemImpl19filesHaveSameVolumeERKNS_6StringES3_` checks `!fileA.impl || !fileB.impl` first and requires `Status(..., true)` to succeed on both paths before comparing `statusA.st_dev == statusB.st_dev`. - core/libs/prx/libSceNKWebKit/Export.cpp, include/InventoryExports.hpp, include/WtfExports.hpp, and docs/dev/debt/libSceNKWebKit.md: Verified the six symbols are removed from the stub inventory, declared with matching `APS5_VABI` signatures, and documented in technical debt. Looks Good To Me
PrivacyOnion commented 2026-11-15 23:58:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-15T23:58:44Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 6166cb158b:

  • Conventions: tools/check_conventions.py passed; git diff --check clean.
  • Build: nkwebkit_wtf_tests built cleanly.
  • CTest (nkwebkit_wtf):
    1/1 Test #4271: nkwebkit_wtf .....................   Passed    0.16 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceNKWebKit/Export.cpp, core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, core/libs/prx/libSceNKWebKit/include/WtfExports.hpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified FileSystemRepresentation and Data safely extract the UTF-8 buffer from WTF::String via _ZNK3WTF6String4utf8ENS_14ConversionModeE and return nullptr when representation.buffer is null.
    • core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified Status checks if (!data) return false; before calling stat_nid_postfix (when followLinks is true, used by fileExists and filesHaveSameVolume) or lstat_nid_postfix (when followLinks is false, used by deleteFile and deleteEmptyDirectory).
    • core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified _ZN3WTF14FileSystemImpl10deleteFileERKNS_6StringE rejects directories (IsDirectory(status)) before calling unlink_nid_postfix, and _ZN3WTF14FileSystemImpl20deleteEmptyDirectoryERKNS_6StringE requires IsDirectory(status) (excluding symlinks via lstat_nid_postfix) before calling rmdir_nid_postfix.
    • core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified ZN3WTF14FileSystemImpl8moveFileERKNS_6StringES3 validates non-null UTF-8 representations for both oldPath and newPath before calling RenameGuestPath_nid_no_patch, and _ZN3WTF14FileSystemImpl8realPathERKNS_6StringE passes a 1024-byte stack buffer to realpath_nid_postfix and falls back to returning filePath unchanged on failure.
    • core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified ZN3WTF14FileSystemImpl19filesHaveSameVolumeERKNS_6StringES3 checks !fileA.impl || !fileB.impl first and requires Status(..., true) to succeed on both paths before comparing statusA.st_dev == statusB.st_dev.
    • core/libs/prx/libSceNKWebKit/Export.cpp, include/InventoryExports.hpp, include/WtfExports.hpp, and docs/dev/debt/changes/claude-wtf-fs-existence-delete.md: Verified the six symbols are removed from the stub inventory, declared with matching APS5_VABI signatures, and documented via a technical debt fragment.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5913624849 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19822#pullrequestreview-5913624849). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-15T23:58:44Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `6166cb158b`: - **Conventions**: `tools/check_conventions.py` passed; `git diff --check` clean. - **Build**: `nkwebkit_wtf_tests` built cleanly. - **CTest** (`nkwebkit_wtf`): ``` 1/1 Test #4271: nkwebkit_wtf ..................... Passed 0.16 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceNKWebKit/Export.cpp`, `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`, `core/libs/prx/libSceNKWebKit/include/WtfExports.hpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified FileSystemRepresentation and Data safely extract the UTF-8 buffer from WTF::String via _ZNK3WTF6String4utf8ENS_14ConversionModeE and return nullptr when representation.buffer is null. - core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified Status checks if (!data) return false; before calling stat_nid_postfix (when followLinks is true, used by fileExists and filesHaveSameVolume) or lstat_nid_postfix (when followLinks is false, used by deleteFile and deleteEmptyDirectory). - core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified _ZN3WTF14FileSystemImpl10deleteFileERKNS_6StringE rejects directories (IsDirectory(status)) before calling unlink_nid_postfix, and _ZN3WTF14FileSystemImpl20deleteEmptyDirectoryERKNS_6StringE requires IsDirectory(status) (excluding symlinks via lstat_nid_postfix) before calling rmdir_nid_postfix. - core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified _ZN3WTF14FileSystemImpl8moveFileERKNS_6StringES3_ validates non-null UTF-8 representations for both oldPath and newPath before calling RenameGuestPath_nid_no_patch, and _ZN3WTF14FileSystemImpl8realPathERKNS_6StringE passes a 1024-byte stack buffer to realpath_nid_postfix and falls back to returning filePath unchanged on failure. - core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified _ZN3WTF14FileSystemImpl19filesHaveSameVolumeERKNS_6StringES3_ checks !fileA.impl || !fileB.impl first and requires Status(..., true) to succeed on both paths before comparing statusA.st_dev == statusB.st_dev. - core/libs/prx/libSceNKWebKit/Export.cpp, include/InventoryExports.hpp, include/WtfExports.hpp, and docs/dev/debt/changes/claude-wtf-fs-existence-delete.md: Verified the six symbols are removed from the stub inventory, declared with matching APS5_VABI signatures, and documented via a technical debt fragment. Looks Good To Me
PrivacyOnion commented 2026-11-16 20:09:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-16T20:09:37Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against ea3626604e:

  • Conventions: tools/check_conventions.py passed.
  • Build: nkwebkit_wtf_tests built cleanly.
  • CTest (nkwebkit_wtf):
    1/1 Test #4390: nkwebkit_wtf .....................   Passed    0.13 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceNKWebKit/Export.cpp, core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, core/libs/prx/libSceNKWebKit/include/WtfExports.hpp, core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified FileSystemRepresentation and Data safely extract the UTF-8 buffer from WTF::String via _ZNK3WTF6String4utf8ENS_14ConversionModeE and return nullptr when representation.buffer is null.
    • core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified Status checks if (!data) return false; before calling stat_nid_postfix (when followLinks is true, used by fileExists and filesHaveSameVolume) or lstat_nid_postfix (when followLinks is false, used by deleteFile and deleteEmptyDirectory).
    • core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified _ZN3WTF14FileSystemImpl10deleteFileERKNS_6StringE rejects directories (IsDirectory(status)) before calling unlink_nid_postfix, and _ZN3WTF14FileSystemImpl20deleteEmptyDirectoryERKNS_6StringE requires IsDirectory(status) (excluding symlinks via lstat_nid_postfix) before calling rmdir_nid_postfix.
    • core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified ZN3WTF14FileSystemImpl8moveFileERKNS_6StringES3 checks !Data(...) for both oldPath and newPath before calling RenameGuestPath_nid_no_patch, and _ZN3WTF14FileSystemImpl8realPathERKNS_6StringE passes a 1024-byte stack buffer to realpath_nid_postfix and falls back to returning filePath unchanged on failure.
    • core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified ZN3WTF14FileSystemImpl19filesHaveSameVolumeERKNS_6StringES3 checks !fileA.impl || !fileB.impl first and requires Status(..., true) to succeed on both paths before comparing statusA.st_dev == statusB.st_dev.
    • core/libs/prx/libSceNKWebKit/Export.cpp, include/InventoryExports.hpp, include/WtfExports.hpp, and docs/dev/debt/changes/claude-wtf-fs-existence-delete.md: Verified the six symbols are removed from the stub inventory, declared with matching APS5_VABI signatures, and documented via a technical debt fragment.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5926765555 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19822#pullrequestreview-5926765555). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-16T20:09:37Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `ea3626604e`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `nkwebkit_wtf_tests` built cleanly. - **CTest** (`nkwebkit_wtf`): ``` 1/1 Test #4390: nkwebkit_wtf ..................... Passed 0.13 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceNKWebKit/Export.cpp`, `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`, `core/libs/prx/libSceNKWebKit/include/WtfExports.hpp`, `core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified FileSystemRepresentation and Data safely extract the UTF-8 buffer from WTF::String via _ZNK3WTF6String4utf8ENS_14ConversionModeE and return nullptr when representation.buffer is null. - core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified Status checks if (!data) return false; before calling stat_nid_postfix (when followLinks is true, used by fileExists and filesHaveSameVolume) or lstat_nid_postfix (when followLinks is false, used by deleteFile and deleteEmptyDirectory). - core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified _ZN3WTF14FileSystemImpl10deleteFileERKNS_6StringE rejects directories (IsDirectory(status)) before calling unlink_nid_postfix, and _ZN3WTF14FileSystemImpl20deleteEmptyDirectoryERKNS_6StringE requires IsDirectory(status) (excluding symlinks via lstat_nid_postfix) before calling rmdir_nid_postfix. - core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified _ZN3WTF14FileSystemImpl8moveFileERKNS_6StringES3_ checks !Data(...) for both oldPath and newPath before calling RenameGuestPath_nid_no_patch, and _ZN3WTF14FileSystemImpl8realPathERKNS_6StringE passes a 1024-byte stack buffer to realpath_nid_postfix and falls back to returning filePath unchanged on failure. - core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp: Verified _ZN3WTF14FileSystemImpl19filesHaveSameVolumeERKNS_6StringES3_ checks !fileA.impl || !fileB.impl first and requires Status(..., true) to succeed on both paths before comparing statusA.st_dev == statusB.st_dev. - core/libs/prx/libSceNKWebKit/Export.cpp, include/InventoryExports.hpp, include/WtfExports.hpp, and docs/dev/debt/changes/claude-wtf-fs-existence-delete.md: Verified the six symbols are removed from the stub inventory, declared with matching APS5_VABI signatures, and documented via a technical debt fragment. Looks Good To Me
PrivacyOnion commented 2026-11-16 22:19:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-16T22:19:25Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 0acf163a3f:

  • Conventions: tools/check_conventions.py passed.
  • Build: nkwebkit_wtf_tests built cleanly.
  • CTest (nkwebkit_wtf):
    1/1 Test #4404: nkwebkit_wtf .....................   Passed    0.08 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceNKWebKit/Export.cpp, core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, core/libs/prx/libSceNKWebKit/include/WtfExports.hpp, core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified FileSystemRepresentation and Data properly handle null or empty WTF::String representations via _ZNK3WTF6String4utf8ENS_14ConversionModeE returning nullptr when representation.buffer is null.
    • Verified Status checks if (!data) return false; and routes to stat_nid_postfix or lstat_nid_postfix correctly, properly zero-initializing FileStat.
    • Verified _ZN3WTF14FileSystemImpl10deleteFileERKNS_6StringE and _ZN3WTF14FileSystemImpl20deleteEmptyDirectoryERKNS_6StringE distinguish directories from non-directories via lstat_nid_postfix and GuestFilesystem::TypeOfMode, rejecting directories for deleteFile and requiring them for deleteEmptyDirectory.
    • Verified ZN3WTF14FileSystemImpl8moveFileERKNS_6StringES3 validates both oldPath and newPath before invoking RenameGuestPath_nid_no_patch and checks for != -1.
    • Verified _ZN3WTF14FileSystemImpl8realPathERKNS_6StringE handles realpath_nid_postfix failure and null strings cleanly by returning the input filePath unchanged.
    • Verified ZN3WTF14FileSystemImpl19filesHaveSameVolumeERKNS_6StringES3 rejects null impls and ensures stat succeeds on both files before comparing st_dev.
    • Verified debt fragment docs/dev/debt/changes/claude-wtf-fs-existence-delete.md correctly registers technical debt and removes the 6 functions from InventoryExports.hpp and Export.cpp.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5928817584 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19822#pullrequestreview-5928817584). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-16T22:19:25Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `0acf163a3f`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `nkwebkit_wtf_tests` built cleanly. - **CTest** (`nkwebkit_wtf`): ``` 1/1 Test #4404: nkwebkit_wtf ..................... Passed 0.08 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceNKWebKit/Export.cpp`, `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`, `core/libs/prx/libSceNKWebKit/include/WtfExports.hpp`, `core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified FileSystemRepresentation and Data properly handle null or empty WTF::String representations via _ZNK3WTF6String4utf8ENS_14ConversionModeE returning nullptr when representation.buffer is null. - Verified Status checks if (!data) return false; and routes to stat_nid_postfix or lstat_nid_postfix correctly, properly zero-initializing FileStat. - Verified _ZN3WTF14FileSystemImpl10deleteFileERKNS_6StringE and _ZN3WTF14FileSystemImpl20deleteEmptyDirectoryERKNS_6StringE distinguish directories from non-directories via lstat_nid_postfix and GuestFilesystem::TypeOfMode, rejecting directories for deleteFile and requiring them for deleteEmptyDirectory. - Verified _ZN3WTF14FileSystemImpl8moveFileERKNS_6StringES3_ validates both oldPath and newPath before invoking RenameGuestPath_nid_no_patch and checks for != -1. - Verified _ZN3WTF14FileSystemImpl8realPathERKNS_6StringE handles realpath_nid_postfix failure and null strings cleanly by returning the input filePath unchanged. - Verified _ZN3WTF14FileSystemImpl19filesHaveSameVolumeERKNS_6StringES3_ rejects null impls and ensures stat succeeds on both files before comparing st_dev. - Verified debt fragment docs/dev/debt/changes/claude-wtf-fs-existence-delete.md correctly registers technical debt and removes the 6 functions from InventoryExports.hpp and Export.cpp. Looks Good To Me
PrivacyOnion commented 2026-11-17 01:42:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-17T01:42:57Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against ee5a6f504b:

  • Conventions: tools/check_conventions.py passed.
  • Build: nkwebkit_wtf_tests built cleanly.
  • CTest (nkwebkit_wtf):
    1/1 Test #4414: nkwebkit_wtf .....................   Passed    0.09 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceNKWebKit/Export.cpp, core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, core/libs/prx/libSceNKWebKit/include/WtfExports.hpp, core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified WtfFileSystem.cpp: FileSystemRepresentation safely extracts UTF-8 bytes via _ZNK3WTF6String4utf8ENS_14ConversionModeE, returning null Data() when representation.buffer is null (handles null and empty WTF::String).
    • Verified WtfFileSystem.cpp: deleteFile and deleteEmptyDirectory correctly query lstat_nid_postfix without following symlinks and check GuestFilesystem::TypeOfMode to ensure directories are rejected for deleteFile and required for deleteEmptyDirectory.
    • Verified WtfFileSystem.cpp: moveFile checks both oldPath and newPath buffers before invoking RenameGuestPath_nid_no_patch and validates the return value != -1.
    • Verified WtfFileSystem.cpp: realPath handles realpath_nid_postfix resolution into a 1024-byte buffer and falls back to returning the input filePath unchanged on failure or null input.
    • Verified WtfFileSystem.cpp: filesHaveSameVolume validates that neither StringImpl is null, verifies both stat_nid_postfix calls succeed, and compares st_dev.
    • Verified docs/dev/debt/changes/claude-wtf-fs-existence-delete.md correctly registers technical debt and unregisters the six functions from InventoryExports.hpp and Export.cpp.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5931255043 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19822#pullrequestreview-5931255043). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-17T01:42:57Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `ee5a6f504b`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `nkwebkit_wtf_tests` built cleanly. - **CTest** (`nkwebkit_wtf`): ``` 1/1 Test #4414: nkwebkit_wtf ..................... Passed 0.09 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceNKWebKit/Export.cpp`, `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`, `core/libs/prx/libSceNKWebKit/include/WtfExports.hpp`, `core/libs/prx/libSceNKWebKit/src/WtfFileSystem.cpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified WtfFileSystem.cpp: FileSystemRepresentation safely extracts UTF-8 bytes via _ZNK3WTF6String4utf8ENS_14ConversionModeE, returning null Data() when representation.buffer is null (handles null and empty WTF::String). - Verified WtfFileSystem.cpp: deleteFile and deleteEmptyDirectory correctly query lstat_nid_postfix without following symlinks and check GuestFilesystem::TypeOfMode to ensure directories are rejected for deleteFile and required for deleteEmptyDirectory. - Verified WtfFileSystem.cpp: moveFile checks both oldPath and newPath buffers before invoking RenameGuestPath_nid_no_patch and validates the return value != -1. - Verified WtfFileSystem.cpp: realPath handles realpath_nid_postfix resolution into a 1024-byte buffer and falls back to returning the input filePath unchanged on failure or null input. - Verified WtfFileSystem.cpp: filesHaveSameVolume validates that neither StringImpl is null, verifies both stat_nid_postfix calls succeed, and compares st_dev. - Verified docs/dev/debt/changes/claude-wtf-fs-existence-delete.md correctly registers technical debt and unregisters the six functions from InventoryExports.hpp and Export.cpp. Looks Good To Me
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!19822
No description provided.