Skip to content

Commit 931c6f9

Browse files
silbyalexrp
authored andcommitted
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 parent a5861fc commit 931c6f9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/std/c.zig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9927,7 +9927,9 @@ pub const EVFILT = switch (native_os) {
99279927
pub const PROC = -5;
99289928
pub const SIGNAL = -6;
99299929
pub const TIMER = -7;
9930+
pub const DEVICE = -8;
99309931
pub const EXCEPT = -9;
9932+
pub const USER = -10;
99319933
},
99329934
else => void,
99339935
};
@@ -10155,6 +10157,14 @@ pub const NOTE = switch (native_os) {
1015510157
pub const CHILD = 0x00000004;
1015610158
// data/hint flags for EVFILT.DEVICE
1015710159
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;
1015810168
},
1015910169
else => void,
1016010170
};

0 commit comments

Comments
 (0)