commit 931c6f90f588e5b923e59c38efade9dfd92cd0dd (tree)
parent a5861fcddd97bd55249490063dc97102d801bf81
Author: Evan Silberman <evan@jklol.net>
Date: Wed, 21 May 2025 14:36:29 -0700
Add EVFILT_USER and friends for OpenBSD
OpenBSD -current grew EVFILT_USER. See commit message [1] and and
current sys/event.h [2]
Also EVFILT_DEVICE was missing.
Closes #23930
[1]: https://marc.info/?l=openbsd-cvs&m=174686993115485&w=2
[2]: https://codeberg.org/OpenBSD/src/src/branch/master/sys/sys/event.h
Diffstat:
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/lib/std/c.zig b/lib/std/c.zig
@@ -9927,7 +9927,9 @@ pub const EVFILT = switch (native_os) {
pub const PROC = -5;
pub const SIGNAL = -6;
pub const TIMER = -7;
+ pub const DEVICE = -8;
pub const EXCEPT = -9;
+ pub const USER = -10;
},
else => void,
};
@@ -10155,6 +10157,14 @@ pub const NOTE = switch (native_os) {
pub const CHILD = 0x00000004;
// data/hint flags for EVFILT.DEVICE
pub const CHANGE = 0x00000001;
+ // data/hint flags for EVFILT_USER
+ pub const FFNOP = 0x00000000;
+ pub const FFAND = 0x40000000;
+ pub const FFOR = 0x80000000;
+ pub const FFCOPY = 0xc0000000;
+ pub const FFCTRLMASK = 0xc0000000;
+ pub const FFLAGSMASK = 0x00ffffff;
+ pub const TRIGGER = 0x01000000;
},
else => void,
};