Add epoll headers and syscall stubs#27206
Merged
Merged
Conversation
sbc100
approved these changes
Jun 26, 2026
4aea9a6 to
8f636a6
Compare
Adds the epoll syscall surface without a working implementation, so the boilerplate can land ahead of the host integration: - sys/epoll.h synced from upstream musl, no longer excluded by update_musl.py - musl epoll.c wrappers compiled into libc (epoll_create/epoll_create1/ epoll_ctl/epoll_wait/epoll_pwait) - SYS_epoll_* -> __syscall_epoll_* mappings, declarations and signatures - legacy (non-WASMFS) JS syscalls return -ENOSYS - WASMFS syscalls return -ENOSYS, matching the existing socket stubs The actual readiness/wait-queue host integration follows in a separate commit.
8f636a6 to
27ec7b3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds the epoll syscall surface (headers, libc wrappers, declarations and signatures) with no working implementation, so the boilerplate can land ahead of the host integration. Split out from #27201 so that the larger, more involved host implementation can be reviewed separately.
The syscalls are fully wired in but return
-ENOSYSeverywhere for now:sys/epoll.hsynced from upstream musl, and removed from the exclude list inupdate_musl.pyepoll.cwrappers compiled into libc (epoll_create/epoll_create1/epoll_ctl/epoll_wait/epoll_pwait)SYS_epoll_*->__syscall_epoll_*mappings, declarations inemscripten/syscalls.h, andlibsigs.jssignatures__syscall_epoll_*return-ENOSYS__syscall_epoll_*return-ENOSYS, matching the existing socket stubs insyscalls.cpptools/native_sigs.pyregenerated for the new libc functionsThe actual readiness/wait-queue host integration (the working epoll) follows in a separate PR.