From 8c83acd3d4e753c0fe52462068c2758ac3762095 Mon Sep 17 00:00:00 2001 From: Iku Iwasa Date: Sun, 15 Feb 2026 10:41:28 +0900 Subject: [PATCH] Add missing EV flags for NetBSD - Add FLAG1, ERROR and EOF. --- lib/std/c.zig | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/std/c.zig b/lib/std/c.zig index 67d0540676b16cb4d3c545b04cff120ff0fd46a0..f4bdf3969c08e90969862b18a1c5ca6fcc970229 100644 --- a/lib/std/c.zig +++ b/lib/std/c.zig @@ -9812,13 +9812,16 @@ pub const EV = switch (native_os) { pub const ONESHOT = 0x0010; /// clear event state after reporting pub const CLEAR = 0x0020; - /// force immediate event output - /// ... with or without ERROR - /// ... use KEVENT_FLAG_ERROR_EVENTS - /// on syscalls supporting flags + /// force EV_ERROR on success, data=0 pub const RECEIPT = 0x0040; /// disable event after reporting pub const DISPATCH = 0x0080; + /// filter-specific flag + pub const FLAG1 = 0x2000; + /// error, data contains errno + pub const ERROR = 0x4000; + /// EOF detected + pub const EOF = 0x8000; }, .freebsd => struct { /// add event to kq (implies enable) -- 2.54.0