feat(libSceNet): implement sceNetResolverAbort and sceNetResolverStar… #2557

Closed
rozbh wants to merge 1 commit from upstream-pr/2557 into main
rozbh commented 2026-10-10 05:30:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by rozbh on 2026-10-10T05:30:08Z.


What

Implements two libSceNet exports that threw NotImplemented.

  • sceNetResolverStartNtoaMultipleRecords(rid, hostname, info, timeout, retry, flags) does the lookup sceNetResolverStartNtoaMultipleRecordsEx does for flags 0; both now share one helper. Any flag throws, as Ex already did.
  • sceNetResolverAbort(rid, flags): an unknown resolver id returns EBADF. Flag 1 (NTOA preservation) or 2 (ATON preservation) makes the next lookup of that kind fail with EINTR, reported through sceNetResolverGetError. Without them the call only validates the id. Other flag bits throw.

Signatures and behaviour are from shadPS4 (src/core/libraries/net/net.cpp, net_resolver.cpp), unverified on hardware and recorded in TechnicalDebt. Differences from shadPS4: unknown abort flag bits throw instead of being ignored, and lookup failures keep the single RESOLVER_ENODNS code the other resolver calls here use.

Behaviour change in an existing function: sceNetResEx now checks the resolver id before its arguments
and returns EINVAL for an empty hostname or one l shadPS4 does.
Lookups are synchronous, so an abort never interruplverStartNtoaandsceNetResolverStartAton` stillignore their flags; that is unchanged and left for

Tested

Linux (Manjaro, GCC), full build with -DBUILD_TEST- guest_sce_netandguest_resolverpass.guestl arguments, empty and over-long hostnames, adestroyed resolver, both preservation flags, a doub by rejected calls, isolation between resolvers and
the throwing flag cases.

  • Full suite before the final rebase: 594 of 595 parst_writefailed on my GPU; it does not link libSceNet. Not checked against a cleanmain`.
  • tools/check_conventions.py --base origin/main p
  • Not tested on Windows or with a title.

Checklist

  • Based on current main; no other open PR imp
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (`NotImplemented_nie listed inTechnicalDebt
  • No notes, investigation .md files or imagesach them to this PR)
  • New third-party code is a submodule built fro
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes****
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4808987172 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2557). Originally posted by [rozbh](https://github.com/rozbh) on 2026-10-10T05:30:08Z. --- ### What Implements two libSceNet exports that threw `NotImplemented`. - `sceNetResolverStartNtoaMultipleRecords(rid, hostname, info, timeout, retry, flags)` does the lookup `sceNetResolverStartNtoaMultipleRecordsEx` does for flags 0; both now share one helper. Any flag throws, as Ex already did. - `sceNetResolverAbort(rid, flags)`: an unknown resolver id returns `EBADF`. Flag 1 (NTOA preservation) or 2 (ATON preservation) makes the next lookup of that kind fail with `EINTR`, reported through `sceNetResolverGetError`. Without them the call only validates the id. Other flag bits throw. Signatures and behaviour are from shadPS4 (`src/core/libraries/net/net.cpp`, `net_resolver.cpp`), unverified on hardware and recorded in TechnicalDebt. Differences from shadPS4: unknown abort flag bits throw instead of being ignored, and lookup failures keep the single `RESOLVER_ENODNS` code the other resolver calls here use. Behaviour change in an existing function: `sceNetResEx` now checks the resolver id before its arguments and returns `EINVAL` for an empty hostname or one l shadPS4 does. Lookups are synchronous, so an abort never interruplverStartNtoa` and `sceNetResolverStartAton` stillignore their flags; that is unchanged and left for ### Tested Linux (Manjaro, GCC), full build with `-DBUILD_TEST- `guest_sce_net` and `guest_resolver` pass. `guestl arguments, empty and over-long hostnames, adestroyed resolver, both preservation flags, a doub by rejected calls, isolation between resolvers and the throwing flag cases. - Full suite before the final rebase: 594 of 595 parst_write` failed on my GPU; it does not link libSceNet. Not checked against a clean `main`. - `tools/check_conventions.py --base origin/main` p - Not tested on Windows or with a title. ### Checklist - [x] Based on current `main`; no other open PR imp - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](hAnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nie listed in[TechnicalDebt](https://github.com/boykopovar/AnyPSlDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or imagesach them to this PR) - [x] New third-party code is a submodule built fro - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes****
github-actions[bot] commented 2026-10-10 05:30:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T05:30:18Z.


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:6094225340 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2557#issuecomment-6094225340). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-10T05:30:18Z. --- 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 05:30:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T05:30:34Z.


Progress report (b7bb268 → 048fa85)

📈 System libraries: 85.73% (+0.06%, +2 implemented functions)

✅ 2 implemented
Library Name
libSceNet sceNetResolverAbort
libSceNet sceNetResolverStartNtoaMultipleRecords
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6094227395 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2557#issuecomment-6094227395). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-10T05:30:34Z. --- <!-- progress-report --> ### Progress report (b7bb268 → 048fa85) 📈 **System libraries**: 85.73% (+0.06%, +2 implemented functions) <details> <summary>✅ 2 implemented</summary> | Library | Name | | - | - | | libSceNet | `sceNetResolverAbort` | | libSceNet | `sceNetResolverStartNtoaMultipleRecords` | </details>

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