authorgravatar for iku.iwasa@gmail.comIku Iwasa <iku.iwasa@gmail.com> 2026-02-15 10:41:28+09:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-02-15 23:08:11+01:00
log8c83acd3d4e753c0fe52462068c2758ac3762095
tree6ec16a969c9c7c2f27dc43ae12181a20a7ddfdb3
parentc8f54a2f07fd4b1bc6ba83c618d0e6f6de265b5c

Add missing EV flags for NetBSD

- Add FLAG1, ERROR and EOF.

1 files changed, 7 insertions(+), 4 deletions(-)

lib/std/c.zig+7-4
...@@ -9812,13 +9812,16 @@ pub const EV = switch (native_os) {...@@ -9812,13 +9812,16 @@ pub const EV = switch (native_os) {
9812 pub const ONESHOT = 0x0010;9812 pub const ONESHOT = 0x0010;
9813 /// clear event state after reporting9813 /// clear event state after reporting
9814 pub const CLEAR = 0x0020;9814 pub const CLEAR = 0x0020;
9815 /// force immediate event output9815 /// force EV_ERROR on success, data=0
9816 /// ... with or without ERROR
9817 /// ... use KEVENT_FLAG_ERROR_EVENTS
9818 /// on syscalls supporting flags
9819 pub const RECEIPT = 0x0040;9816 pub const RECEIPT = 0x0040;
9820 /// disable event after reporting9817 /// disable event after reporting
9821 pub const DISPATCH = 0x0080;9818 pub const DISPATCH = 0x0080;
9819 /// filter-specific flag
9820 pub const FLAG1 = 0x2000;
9821 /// error, data contains errno
9822 pub const ERROR = 0x4000;
9823 /// EOF detected
9824 pub const EOF = 0x8000;
9822 },9825 },
9823 .freebsd => struct {9826 .freebsd => struct {
9824 /// add event to kq (implies enable)9827 /// add event to kq (implies enable)