fix(libkernel): return guest chmod errors and implement sceKernelFutimes #2787

Merged
tototomate123 merged 2 commits from upstream-pr/2787 into main 2026-10-11 07:19:45 +00:00
tototomate123 commented 2026-10-10 15:00:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by tototomate123 on 2026-10-10T15:00:32Z.


What

Split from #1616, following its review. Return guest errors from kernel chmod and POSIX -1/guest errno from POSIX chmod. Implement sceKernelFutimes while retaining POSIX futimes behavior and timestamp validation. Two commits.

Tested

Linux x86-64, GCC 16.2.1, Release. guest_filesystem passes, including chmod failures, descriptor timestamps and invalid microseconds. Conventions and whitespace checks pass on current main (5edae353).

Depends on

None for build. HFW integration also needs #2785 (relinker), #2786 (loader), #2788 (http), #2789 (apr), #2790 (shader). #1269 (media), #1339 (VRR), #1586 (unwind) and #1436 (imports) are now on main. Local image-table experiments are excluded; open #757 → #758 overlaps them, and #920 is closed without merging. Earlier combined integration reached menu/loading UI; these isolated branches have not been game-tested and gameplay is unverified.

Checklist

  • Based on current main; no duplicate implementation found beyond superseded #1616
  • One topic per PR
  • No code comments except technical debt
  • Unimplemented paths throw; offline HTTP limitations documented
  • No investigation notes, logs or images committed
  • No new third-party dependencies
  • Generic behavior; no title-specific dispatch
  • Depends on: none for build; HFW integration requirements listed above
  • AI-assisted: yes, Codex
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4812129944 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2787). Originally posted by [tototomate123](https://github.com/tototomate123) on 2026-10-10T15:00:32Z. --- ### What Split from #1616, following its review. Return guest errors from kernel chmod and POSIX `-1`/guest errno from POSIX chmod. Implement `sceKernelFutimes` while retaining POSIX futimes behavior and timestamp validation. Two commits. ### Tested Linux x86-64, GCC 16.2.1, Release. `guest_filesystem` passes, including chmod failures, descriptor timestamps and invalid microseconds. Conventions and whitespace checks pass on current main (`5edae353`). ### Depends on None for build. HFW integration also needs #2785 (relinker), #2786 (loader), #2788 (http), #2789 (apr), #2790 (shader). #1269 (media), #1339 (VRR), #1586 (unwind) and #1436 (imports) are now on main. Local image-table experiments are excluded; open #757 → #758 overlaps them, and #920 is closed without merging. Earlier combined integration reached menu/loading UI; these isolated branches have not been game-tested and gameplay is unverified. ### Checklist - [x] Based on current `main`; no duplicate implementation found beyond superseded #1616 - [x] One topic per PR - [x] No code comments except technical debt - [x] Unimplemented paths throw; offline HTTP limitations documented - [x] No investigation notes, logs or images committed - [x] No new third-party dependencies - [x] Generic behavior; no title-specific dispatch - [x] Depends on: none for build; HFW integration requirements listed above - [x] AI-assisted: yes, Codex
github-actions[bot] commented 2026-10-10 15:00:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T15:00:50Z.


Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6098833988 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2787#issuecomment-6098833988). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-10T15:00:50Z. --- Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.
github-actions[bot] commented 2026-10-10 15:01:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T15:01:07Z.


Progress report (5edae35 → 9107be4)

➖ System libraries: 84.52% (+0.0%, +1 implemented functions)

✅ 1 implemented
Library Name
libkernel sceKernelFutimes
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6098837099 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2787#issuecomment-6098837099). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-10T15:01:07Z. --- <!-- progress-report --> ### Progress report (5edae35 → 9107be4) ➖ **System libraries**: 84.52% (+0.0%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libkernel | `sceKernelFutimes` | </details>
adriadam10 commented 2026-10-11 07:19:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T07:19:42Z.


Checked the chmod/futimes error paths against the guest test (guest_filesystem, incl. null path, missing path, EBADF, invalid usec) and the partial build + ctest (94 tests) on Linux; the new test does not link without the change. Merging once CI is green.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6106613502 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2787#issuecomment-6106613502). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-11T07:19:42Z. --- Checked the chmod/futimes error paths against the guest test (`guest_filesystem`, incl. null path, missing path, EBADF, invalid usec) and the partial build + ctest (94 tests) on Linux; the new test does not link without the change. Merging once CI 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!2787
No description provided.