authorgravatar for evan@jklol.netEvan Silberman <evan@jklol.net> 2025-05-21 14:36:29-07:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-05-22 04:37:57+02:00
log931c6f90f588e5b923e59c38efade9dfd92cd0dd
treee457198b3c006795798ac87cacb329665cdcd666
parenta5861fcddd97bd55249490063dc97102d801bf81

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

1 files changed, 10 insertions(+), 0 deletions(-)

lib/std/c.zig+10
...@@ -9927,7 +9927,9 @@ pub const EVFILT = switch (native_os) {...@@ -9927,7 +9927,9 @@ pub const EVFILT = switch (native_os) {
9927 pub const PROC = -5;9927 pub const PROC = -5;
9928 pub const SIGNAL = -6;9928 pub const SIGNAL = -6;
9929 pub const TIMER = -7;9929 pub const TIMER = -7;
9930 pub const DEVICE = -8;
9930 pub const EXCEPT = -9;9931 pub const EXCEPT = -9;
9932 pub const USER = -10;
9931 },9933 },
9932 else => void,9934 else => void,
9933};9935};
...@@ -10155,6 +10157,14 @@ pub const NOTE = switch (native_os) {...@@ -10155,6 +10157,14 @@ pub const NOTE = switch (native_os) {
10155 pub const CHILD = 0x00000004;10157 pub const CHILD = 0x00000004;
10156 // data/hint flags for EVFILT.DEVICE10158 // data/hint flags for EVFILT.DEVICE
10157 pub const CHANGE = 0x00000001;10159 pub const CHANGE = 0x00000001;
10160 // data/hint flags for EVFILT_USER
10161 pub const FFNOP = 0x00000000;
10162 pub const FFAND = 0x40000000;
10163 pub const FFOR = 0x80000000;
10164 pub const FFCOPY = 0xc0000000;
10165 pub const FFCTRLMASK = 0xc0000000;
10166 pub const FFLAGSMASK = 0x00ffffff;
10167 pub const TRIGGER = 0x01000000;
10158 },10168 },
10159 else => void,10169 else => void,
10160};10170};