diff options
| author | Evan Silberman <evan@jklol.net> | 2025-05-21 14:36:29 -0700 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-05-22 04:37:57 +0200 |
| commit | 931c6f90f588e5b923e59c38efade9dfd92cd0dd (patch) | |
| tree | e457198b3c006795798ac87cacb329665cdcd666 /lib/std/c.zig | |
| parent | a5861fcddd97bd55249490063dc97102d801bf81 (diff) | |
| download | zig-931c6f90f588e5b923e59c38efade9dfd92cd0dd.tar.gz zig-931c6f90f588e5b923e59c38efade9dfd92cd0dd.zip | |
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 (limited to 'lib/std/c.zig')
| -rw-r--r-- | lib/std/c.zig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/std/c.zig b/lib/std/c.zig index 1cfd441072..69b4b443f1 100644 --- 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, }; |
