summaryrefslogtreecommitdiffstats
path: root/vendor/rustix/src/event/kqueue.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/rustix/src/event/kqueue.rs')
-rw-r--r--vendor/rustix/src/event/kqueue.rs20
1 files changed, 19 insertions, 1 deletions
diff --git a/vendor/rustix/src/event/kqueue.rs b/vendor/rustix/src/event/kqueue.rs
index ff0ffddc0..05ee4d71b 100644
--- a/vendor/rustix/src/event/kqueue.rs
+++ b/vendor/rustix/src/event/kqueue.rs
@@ -99,6 +99,12 @@ impl Event {
self.inner.udata as _
}
+ /// Get the raw data for this event.
+ pub fn data(&self) -> i64 {
+ // On some bsds, data is an isize and not an i64
+ self.inner.data as _
+ }
+
/// Get the filter of this event.
pub fn filter(&self) -> EventFilter {
match self.inner.filter as _ {
@@ -256,6 +262,9 @@ bitflags::bitflags! {
/// TODO
const ERROR = c::EV_ERROR as _;
+
+ /// <https://docs.rs/bitflags/latest/bitflags/#externally-defined-flags>
+ const _ = !0;
}
}
@@ -284,6 +293,9 @@ bitflags::bitflags! {
/// The link count of the file has changed.
const LINK = c::NOTE_LINK;
+
+ /// <https://docs.rs/bitflags/latest/bitflags/#externally-defined-flags>
+ const _ = !0;
}
}
@@ -301,11 +313,14 @@ bitflags::bitflags! {
/// The process executed a new process.
const EXEC = c::NOTE_EXEC;
- /// Follow the process through `fork()` calls (write only).
+ /// Follow the process through `fork` calls (write only).
const TRACK = c::NOTE_TRACK;
/// An error has occurred with following the process.
const TRACKERR = c::NOTE_TRACKERR;
+
+ /// <https://docs.rs/bitflags/latest/bitflags/#externally-defined-flags>
+ const _ = !0;
}
}
@@ -335,6 +350,9 @@ bitflags::bitflags! {
/// Trigger the event.
const TRIGGER = c::NOTE_TRIGGER;
+
+ /// <https://docs.rs/bitflags/latest/bitflags/#externally-defined-flags>
+ const _ = !0;
}
}