summaryrefslogtreecommitdiff
path: root/src/unix/bsd/netbsdlike/netbsd/mod.rs
diff options
context:
space:
mode:
authorVal Packett <val@packett.cool>2023-03-13 14:43:15 -0300
committerVal Packett <val@packett.cool>2023-03-29 18:08:31 -0300
commitb3853e8b6ddba68be14c9299256f51985c577af5 (patch)
tree93c939ef336dcf086d0d777bfb0c1f5a1258a968 /src/unix/bsd/netbsdlike/netbsd/mod.rs
parent68e06adafa8f793b094a23b210d39b27c813600c (diff)
downloadrust-libc-b3853e8b6ddba68be14c9299256f51985c577af5.tar.gz
Add missing kqueue constants across BSDs
While here, reorder some to match the C headers
Diffstat (limited to 'src/unix/bsd/netbsdlike/netbsd/mod.rs')
-rw-r--r--src/unix/bsd/netbsdlike/netbsd/mod.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/unix/bsd/netbsdlike/netbsd/mod.rs b/src/unix/bsd/netbsdlike/netbsd/mod.rs
index 87132e2587..fd7175583e 100644
--- a/src/unix/bsd/netbsdlike/netbsd/mod.rs
+++ b/src/unix/bsd/netbsdlike/netbsd/mod.rs
@@ -1986,6 +1986,13 @@ pub const EV_ERROR: u32 = 0x4000;
pub const EV_EOF: u32 = 0x8000;
pub const EV_SYSFLAGS: u32 = 0xf000;
+pub const NOTE_TRIGGER: u32 = 0x01000000;
+pub const NOTE_FFNOP: u32 = 0x00000000;
+pub const NOTE_FFAND: u32 = 0x40000000;
+pub const NOTE_FFOR: u32 = 0x80000000;
+pub const NOTE_FFCOPY: u32 = 0xc0000000;
+pub const NOTE_FFCTRLMASK: u32 = 0xc0000000;
+pub const NOTE_FFLAGSMASK: u32 = 0x00ffffff;
pub const NOTE_LOWAT: u32 = 0x00000001;
pub const NOTE_DELETE: u32 = 0x00000001;
pub const NOTE_WRITE: u32 = 0x00000002;