Vendor things
This commit is contained in:
parent
5deceec006
commit
977e3c17e5
19434 changed files with 10682014 additions and 0 deletions
21
third-party/vendor/kqueue/src/os/vnode.rs
vendored
Normal file
21
third-party/vendor/kqueue/src/os/vnode.rs
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
use kqueue_sys::constants::FilterFlag;
|
||||
|
||||
use super::super::Vnode;
|
||||
|
||||
#[cfg(target_os = "freebsd")]
|
||||
pub(crate) fn handle_vnode_extras(ff: FilterFlag) -> Vnode {
|
||||
if ff.contains(FilterFlag::NOTE_CLOSE_WRITE) {
|
||||
Vnode::CloseWrite
|
||||
} else if ff.contains(FilterFlag::NOTE_CLOSE) {
|
||||
Vnode::Close
|
||||
} else if ff.contains(FilterFlag::NOTE_OPEN) {
|
||||
Vnode::Open
|
||||
} else {
|
||||
panic!("not supported")
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(target_os = "freebsd"))]
|
||||
pub(crate) fn handle_vnode_extras(_ff: FilterFlag) -> Vnode {
|
||||
panic!("not supported")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue