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
This commit is contained in:
Evan Silberman 2025-05-21 14:36:29 -07:00 committed by Alex Rønne Petersen
parent a5861fcddd
commit 931c6f90f5

View File

@ -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,
};