rustix/backend/linux_raw/fs/
inotify.rsuse crate::backend::c;
use bitflags::bitflags;
bitflags! {
#[repr(transparent)]
#[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)]
pub struct CreateFlags: c::c_uint {
const CLOEXEC = linux_raw_sys::general::IN_CLOEXEC;
const NONBLOCK = linux_raw_sys::general::IN_NONBLOCK;
const _ = !0;
}
}
bitflags! {
#[repr(transparent)]
#[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)]
pub struct WatchFlags: c::c_uint {
const ACCESS = linux_raw_sys::general::IN_ACCESS;
const ATTRIB = linux_raw_sys::general::IN_ATTRIB;
const CLOSE_NOWRITE = linux_raw_sys::general::IN_CLOSE_NOWRITE;
const CLOSE_WRITE = linux_raw_sys::general::IN_CLOSE_WRITE;
const CREATE = linux_raw_sys::general::IN_CREATE;
const DELETE = linux_raw_sys::general::IN_DELETE;
const DELETE_SELF = linux_raw_sys::general::IN_DELETE_SELF;
const MODIFY = linux_raw_sys::general::IN_MODIFY;
const MOVE_SELF = linux_raw_sys::general::IN_MOVE_SELF;
const MOVED_FROM = linux_raw_sys::general::IN_MOVED_FROM;
const MOVED_TO = linux_raw_sys::general::IN_MOVED_TO;
const OPEN = linux_raw_sys::general::IN_OPEN;
const CLOSE = linux_raw_sys::general::IN_CLOSE;
const MOVE = linux_raw_sys::general::IN_MOVE;
const ALL_EVENTS = linux_raw_sys::general::IN_ALL_EVENTS;
const DONT_FOLLOW = linux_raw_sys::general::IN_DONT_FOLLOW;
const EXCL_UNLINK = linux_raw_sys::general::IN_EXCL_UNLINK;
const MASK_ADD = linux_raw_sys::general::IN_MASK_ADD;
const MASK_CREATE = linux_raw_sys::general::IN_MASK_CREATE;
const ONESHOT = linux_raw_sys::general::IN_ONESHOT;
const ONLYDIR = linux_raw_sys::general::IN_ONLYDIR;
const _ = !0;
}
}
bitflags! {
#[repr(transparent)]
#[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)]
pub struct ReadFlags: c::c_uint {
const ACCESS = linux_raw_sys::general::IN_ACCESS;
const ATTRIB = linux_raw_sys::general::IN_ATTRIB;
const CLOSE_NOWRITE = linux_raw_sys::general::IN_CLOSE_NOWRITE;
const CLOSE_WRITE = linux_raw_sys::general::IN_CLOSE_WRITE;
const CREATE = linux_raw_sys::general::IN_CREATE;
const DELETE = linux_raw_sys::general::IN_DELETE;
const DELETE_SELF = linux_raw_sys::general::IN_DELETE_SELF;
const MODIFY = linux_raw_sys::general::IN_MODIFY;
const MOVE_SELF = linux_raw_sys::general::IN_MOVE_SELF;
const MOVED_FROM = linux_raw_sys::general::IN_MOVED_FROM;
const MOVED_TO = linux_raw_sys::general::IN_MOVED_TO;
const OPEN = linux_raw_sys::general::IN_OPEN;
const IGNORED = linux_raw_sys::general::IN_IGNORED;
const ISDIR = linux_raw_sys::general::IN_ISDIR;
const QUEUE_OVERFLOW = linux_raw_sys::general::IN_Q_OVERFLOW;
const UNMOUNT = linux_raw_sys::general::IN_UNMOUNT;
const _ = !0;
}
}