Skip to content

Add EVFILT_USER and friends for OpenBSD #23953

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions lib/std/c.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down Expand Up @@ -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,
};
Expand Down