Skip to content
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

netbsd 10 event api update. #3080

Merged
merged 1 commit into from
Jan 22, 2023
Merged
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions libc-test/semver/netbsd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,13 @@ ETIME
ETOOMANYREFS
EUSERS
EVFILT_AIO
EVFILT_EMPTY
EVFILT_FS
EVFILT_PROC
EVFILT_READ
EVFILT_SIGNAL
EVFILT_TIMER
EVFILT_USER
EVFILT_VNODE
EVFILT_WRITE
EV_ADD
Expand Down Expand Up @@ -720,6 +723,7 @@ NI_WITHSCOPEID
NOEXPR
NOKERNINFO
NOSTR
NOTE_ABSTIME
NOTE_ATTRIB
NOTE_CHILD
NOTE_DELETE
Expand All @@ -729,12 +733,15 @@ NOTE_EXTEND
NOTE_FORK
NOTE_LINK
NOTE_LOWAT
NOTE_MSECONDS
NOTE_NSECONDS
NOTE_PCTRLMASK
NOTE_PDATAMASK
NOTE_RENAME
NOTE_REVOKE
NOTE_TRACK
NOTE_TRACKERR
NOTE_USECONDS
NOTE_WRITE
NTP_API
OFIOGETBMAP
Expand Down
8 changes: 8 additions & 0 deletions src/unix/bsd/netbsdlike/netbsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1926,6 +1926,9 @@ pub const EVFILT_SIGNAL: u32 = 5;
pub const EVFILT_TIMER: u32 = 6;
pub const EVFILT_VNODE: u32 = 3;
pub const EVFILT_WRITE: u32 = 1;
pub const EVFILT_FS: u32 = 7;
pub const EVFILT_USER: u32 = 8;
pub const EVFILT_EMPTY: u32 = 9;

pub const EV_ADD: u32 = 0x1;
pub const EV_DELETE: u32 = 0x2;
Expand Down Expand Up @@ -1956,6 +1959,11 @@ pub const NOTE_PCTRLMASK: u32 = 0xf0000000;
pub const NOTE_TRACK: u32 = 0x00000001;
pub const NOTE_TRACKERR: u32 = 0x00000002;
pub const NOTE_CHILD: u32 = 0x00000004;
pub const NOTE_MSECONDS: u32 = 0x00000000;
pub const NOTE_SECONDS: u32 = 0x00000001;
pub const NOTE_USECONDS: u32 = 0x00000002;
pub const NOTE_NSECONDS: u32 = 0x00000003;
pub const NOTE_ABSTIME: u32 = 0x000000010;

pub const TMP_MAX: ::c_uint = 308915776;

Expand Down