Skip to content

feat(libSceNet): accept sceNetClearDnsCache with no library DNS cache to drop - #8013

Merged
oneandonlydean merged 1 commit into
boykopovar:mainfrom
MarrasFederico:feat/sce-net-clear-dns-cache
Oct 20, 2026
Merged

oneandonlydean merged 1 commit into
boykopovar:mainfrom
MarrasFederico:feat/sce-net-clear-dns-cache

Conversation

@MarrasFederico

Copy link
Copy Markdown
Contributor

What

sceNetClearDnsCache threw not implemented, and its debt entry listed the signature as unknown. SharpProspero Socket.cs documents it as int sceNetClearDnsCache(int flags), which drops the resolver's DNS cache.

Every sceNetResolverStart* lookup in AnyPS5 goes to the host resolver, so the library keeps no cache of its own, and a later lookup already sees what the host resolver returns. sceNetClearDnsCache(0) therefore returns 0 without doing anything, and leaves the host's own cache alone. Nonzero flags throw, as in sceNetResolverStartNtoa6, because their meaning is unknown. The debt entry now records this.

Tested

Ubuntu 26.04.1, kernel 7.0.0-38, GCC 15.2.0, Release, full build with BUILD_TESTING=ON. Windows was not compiled. No title was run.

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

@github-actions

Copy link
Copy Markdown

Progress report (e90a1d1 → 1537dff)

📈 System libraries: 79.9% (+0.02%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceNet sceNetClearDnsCache

@github-actions

github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

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 5836 core/libs/prx/libSceNet/Export.cpp
core/libs/tests/GuestSceNet.cpp
docs/dev/debt/libSceNet.md
PR 6044 core/libs/tests/GuestSceNet.cpp
PR 7201 core/libs/prx/libSceNet/Export.cpp
PR 7332 core/libs/prx/libSceNet/Export.cpp
core/libs/tests/GuestSceNet.cpp
PR 7959 core/libs/prx/libSceNet/Export.cpp
core/libs/tests/GuestSceNet.cpp
docs/dev/debt/libSceNet.md
PR 8106 core/libs/prx/libSceNet/Export.cpp
docs/dev/debt/libSceNet.md

@wachi35676

Copy link
Copy Markdown
Contributor

Windows run (the description says Windows was not compiled): Windows 11 Home 26300, Ryzen 5 9600X, WinLibs GCC 15.2.0, Release, BUILD_TESTING=ON. This PR merged onto main 9127ea3.

AI-assisted: yes (Claude Code); results above were run on this machine.

@oneandonlydean oneandonlydean self-assigned this Oct 20, 2026
@oneandonlydean
oneandonlydean merged commit ca5cd31 into boykopovar:main Oct 20, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants