[PR #3622] [MERGED] Epolls are file descriptors #3618

Closed
opened 2026-02-27 22:04:22 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/3622
Author: @mikusp
Created: 9/18/2025
Status: Merged
Merged: 9/22/2025
Merged by: @georgemoralis

Base: mainHead: epoll_fd2


📝 Commits (5)

  • dc4fabc net: Register epolls in file descriptor table
  • a4ec26d fstat: stub epoll, resolver
  • 3b8f6df Fake async hostname resolution
  • 5317baa net: epoll fixes
  • c046447 epoll: actually close the file descriptor

📊 Changes

11 files changed (+324 additions, -68 deletions)

View changed files

📝 CMakeLists.txt (+2 -0)
📝 src/core/file_sys/fs.cpp (+24 -0)
📝 src/core/file_sys/fs.h (+9 -1)
📝 src/core/libraries/kernel/file_system.cpp (+7 -1)
📝 src/core/libraries/network/net.cpp (+162 -61)
📝 src/core/libraries/network/net.h (+1 -1)
📝 src/core/libraries/network/net_epoll.h (+6 -4)
src/core/libraries/network/net_resolver.cpp (+39 -0)
src/core/libraries/network/net_resolver.h (+38 -0)
📝 src/core/libraries/network/net_util.cpp (+31 -0)
📝 src/core/libraries/network/net_util.h (+5 -0)

📄 Description

  • registers epolls and resolvers in the file descriptor table (on the real hardware, epolls are kqueues and resolvers are sockets)
  • fakes async DNS resolution by storing the call parameters and resolving the address synchronously in sceNetEpollWait
  • handles epoll commands for both sockets and resolvers

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/3622 **Author:** [@mikusp](https://github.com/mikusp) **Created:** 9/18/2025 **Status:** ✅ Merged **Merged:** 9/22/2025 **Merged by:** [@georgemoralis](https://github.com/georgemoralis) **Base:** `main` ← **Head:** `epoll_fd2` --- ### 📝 Commits (5) - [`dc4fabc`](https://github.com/shadps4-emu/shadPS4/commit/dc4fabc09c525b8904ad3c2f8957979c62fa5100) net: Register epolls in file descriptor table - [`a4ec26d`](https://github.com/shadps4-emu/shadPS4/commit/a4ec26dd43b860f54a654201e5f789db76de3e24) fstat: stub epoll, resolver - [`3b8f6df`](https://github.com/shadps4-emu/shadPS4/commit/3b8f6df86b8ee18eba23979082bdf9e83b753501) Fake async hostname resolution - [`5317baa`](https://github.com/shadps4-emu/shadPS4/commit/5317baa1832085857dd355f75a68a0d71f326650) net: epoll fixes - [`c046447`](https://github.com/shadps4-emu/shadPS4/commit/c046447cfc3cc582749e03ed2e7e912d8388bb72) epoll: actually close the file descriptor ### 📊 Changes **11 files changed** (+324 additions, -68 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+2 -0) 📝 `src/core/file_sys/fs.cpp` (+24 -0) 📝 `src/core/file_sys/fs.h` (+9 -1) 📝 `src/core/libraries/kernel/file_system.cpp` (+7 -1) 📝 `src/core/libraries/network/net.cpp` (+162 -61) 📝 `src/core/libraries/network/net.h` (+1 -1) 📝 `src/core/libraries/network/net_epoll.h` (+6 -4) ➕ `src/core/libraries/network/net_resolver.cpp` (+39 -0) ➕ `src/core/libraries/network/net_resolver.h` (+38 -0) 📝 `src/core/libraries/network/net_util.cpp` (+31 -0) 📝 `src/core/libraries/network/net_util.h` (+5 -0) </details> ### 📄 Description - registers epolls and resolvers in the file descriptor table (on the real hardware, epolls are kqueues and resolvers are sockets) - fakes async DNS resolution by storing the call parameters and resolving the address synchronously in sceNetEpollWait - handles epoll commands for both sockets and resolvers --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:04:22 +03:00
Sign in to join this conversation.
No milestone
No project
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.

Dependencies

No dependencies set.

Reference
starred/shadPS4#3618
No description provided.