relibc: full eventfd() implementation + no-stubs policy in AGENTS.md

Replaced P3-sys-eventfd-create.patch (constants-only stub) with:
- P3-eventfd-impl.patch: full eventfd() opening /scheme/event/eventfd
- P3-bits-eventfd.patch: eventfd_t type
- P3-eventfd-cbindgen.patch: generates sys/eventfd.h C header
- P3-bits-eventfd-mod.patch: wires bits_eventfd into header/mod.rs

libwayland: removed eventfd stub from redox.patch — relibc provides it now.
Only meson.build fix + wl_proxy null guards + MSG_NOSIGNAL guard remain.

Documented zero-tolerance stub policy at top of local/AGENTS.md.
This commit is contained in:
2026-05-06 21:24:05 +01:00
parent f9396e34d8
commit b9698beceb
10 changed files with 117 additions and 3 deletions
+1
View File
@@ -0,0 +1 @@
../../../local/patches/relibc/P3-bits-eventfd-mod.patch
+1
View File
@@ -0,0 +1 @@
../../../local/patches/relibc/P3-bits-eventfd.patch
+1
View File
@@ -0,0 +1 @@
../../../local/patches/relibc/P3-eventfd-cbindgen.patch
+1
View File
@@ -0,0 +1 @@
../../../local/patches/relibc/P3-eventfd-impl.patch
+8 -3
View File
@@ -2,10 +2,15 @@
git = "https://gitlab.redox-os.org/redox-os/relibc.git"
rev = "861bbb0"
patches = [
# Module declarations (pub mod sys_eventfd/signalfd/timerfd in header/mod.rs)
"P3-eventfd-mod.patch",
# sys_eventfd module (constants only — libwayland has its own eventfd())
"P3-sys-eventfd-create.patch",
# Add pub mod bits_eventfd to header/mod.rs
"P3-bits-eventfd-mod.patch",
# bits_eventfd module (eventfd_t type)
"P3-bits-eventfd.patch",
# sys_eventfd module — FULL eventfd() implementation (opens /scheme/event/eventfd)
"P3-eventfd-impl.patch",
# cbindgen.toml for sys/eventfd.h C header generation
"P3-eventfd-cbindgen.patch",
# sys_signalfd module (cbindgen.toml + mod.rs with cbindgen exports)
"P3-signalfd-header.patch",
# signalfd implementation (signal/signalfd.rs + signal/mod.rs wiring)