feat(libkernel): implement dup #1855

Closed
kallmek3nny wants to merge 1 commit from upstream-pr/1855 into main
kallmek3nny commented 2026-10-08 22:09:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by kallmek3nny on 2026-10-08T22:09:25Z.


What

Implements dup in libkernel for native descriptors and guest sockets. Duplicated sockets share the existing socket object, and duplicated Windows directory descriptors share their iteration state. Addresses one unresolved import reported for EVO-PLAYER in #1578.

Tested

The repository convention check and git diff --check passed. Build and runtime tests were not run.

Checklist

  • Based on current main; no other open PR implements dup
  • One topic per PR; follow-ups go in a new PR
  • No comments in code added
  • No unimplemented paths or silent stubs changed
  • No notes, investigation files or images added
  • No third-party code added
  • Generic behavior, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4793381609 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1855). Originally posted by [kallmek3nny](https://github.com/kallmek3nny) on 2026-10-08T22:09:25Z. --- ### What Implements `dup` in `libkernel` for native descriptors and guest sockets. Duplicated sockets share the existing socket object, and duplicated Windows directory descriptors share their iteration state. Addresses one unresolved import reported for EVO-PLAYER in #1578. ### Tested The repository convention check and `git diff --check` passed. Build and runtime tests were not run. ### Checklist - [x] Based on current `main`; no other open PR implements `dup` - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code added - [x] No unimplemented paths or silent stubs changed - [x] No notes, investigation files or images added - [x] No third-party code added - [x] Generic behavior, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-08 22:09:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T22:09:53Z.


Progress report (ae91d97 → 9e2ebf1)

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

✅ 1 implemented
Library Name
libkernel dup_nid_postfix
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6070017677 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1855#issuecomment-6070017677). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-08T22:09:53Z. --- <!-- progress-report --> ### Progress report (ae91d97 → 9e2ebf1) ➖ **System libraries**: 84.76% (+0.0%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libkernel | `dup_nid_postfix` | </details>
oneandonlydean commented 2026-10-09 09:30:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T09:30:10Z.


Closing: EVO-PLAYER imports dup but stops at other imports on main first, and the change has no test and hasn't been built. Reopen when it's a title's next stop on main, with the log line and a test.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6078237184 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1855#issuecomment-6078237184). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-09T09:30:10Z. --- Closing: EVO-PLAYER imports `dup` but stops at other imports on main first, and the change has no test and hasn't been built. Reopen when it's a title's next stop on main, with the log line and a test.

Pull request closed

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!1855
No description provided.