Vendor things

This commit is contained in:
John Doty 2024-03-08 11:03:01 -08:00
parent 5deceec006
commit 977e3c17e5
19434 changed files with 10682014 additions and 0 deletions

View 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")
}