rustix/backend/linux_raw/fs/
inotify.rs1use crate::backend::c;
4use bitflags::bitflags;
5
6bitflags! {
7 #[repr(transparent)]
11 #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)]
12 pub struct CreateFlags: c::c_uint {
13 const CLOEXEC = linux_raw_sys::general::IN_CLOEXEC;
15 const NONBLOCK = linux_raw_sys::general::IN_NONBLOCK;
17
18 const _ = !0;
20 }
21}
22
23bitflags! {
24 #[repr(transparent)]
28 #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)]
29 pub struct WatchFlags: c::c_uint {
30 const ACCESS = linux_raw_sys::general::IN_ACCESS;
32 const ATTRIB = linux_raw_sys::general::IN_ATTRIB;
34 const CLOSE_NOWRITE = linux_raw_sys::general::IN_CLOSE_NOWRITE;
36 const CLOSE_WRITE = linux_raw_sys::general::IN_CLOSE_WRITE;
38 const CREATE = linux_raw_sys::general::IN_CREATE;
40 const DELETE = linux_raw_sys::general::IN_DELETE;
42 const DELETE_SELF = linux_raw_sys::general::IN_DELETE_SELF;
44 const MODIFY = linux_raw_sys::general::IN_MODIFY;
46 const MOVE_SELF = linux_raw_sys::general::IN_MOVE_SELF;
48 const MOVED_FROM = linux_raw_sys::general::IN_MOVED_FROM;
50 const MOVED_TO = linux_raw_sys::general::IN_MOVED_TO;
52 const OPEN = linux_raw_sys::general::IN_OPEN;
54
55 const CLOSE = linux_raw_sys::general::IN_CLOSE;
57 const MOVE = linux_raw_sys::general::IN_MOVE;
59 const ALL_EVENTS = linux_raw_sys::general::IN_ALL_EVENTS;
61
62 const DONT_FOLLOW = linux_raw_sys::general::IN_DONT_FOLLOW;
64 const EXCL_UNLINK = linux_raw_sys::general::IN_EXCL_UNLINK;
66 const MASK_ADD = linux_raw_sys::general::IN_MASK_ADD;
68 const MASK_CREATE = linux_raw_sys::general::IN_MASK_CREATE;
70 const ONESHOT = linux_raw_sys::general::IN_ONESHOT;
72 const ONLYDIR = linux_raw_sys::general::IN_ONLYDIR;
74
75 const _ = !0;
77 }
78}
79
80bitflags! {
81 #[repr(transparent)]
85 #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)]
86 pub struct ReadFlags: c::c_uint {
87 const ACCESS = linux_raw_sys::general::IN_ACCESS;
89 const ATTRIB = linux_raw_sys::general::IN_ATTRIB;
91 const CLOSE_NOWRITE = linux_raw_sys::general::IN_CLOSE_NOWRITE;
93 const CLOSE_WRITE = linux_raw_sys::general::IN_CLOSE_WRITE;
95 const CREATE = linux_raw_sys::general::IN_CREATE;
97 const DELETE = linux_raw_sys::general::IN_DELETE;
99 const DELETE_SELF = linux_raw_sys::general::IN_DELETE_SELF;
101 const MODIFY = linux_raw_sys::general::IN_MODIFY;
103 const MOVE_SELF = linux_raw_sys::general::IN_MOVE_SELF;
105 const MOVED_FROM = linux_raw_sys::general::IN_MOVED_FROM;
107 const MOVED_TO = linux_raw_sys::general::IN_MOVED_TO;
109 const OPEN = linux_raw_sys::general::IN_OPEN;
111
112 const IGNORED = linux_raw_sys::general::IN_IGNORED;
114 const ISDIR = linux_raw_sys::general::IN_ISDIR;
116 const QUEUE_OVERFLOW = linux_raw_sys::general::IN_Q_OVERFLOW;
118 const UNMOUNT = linux_raw_sys::general::IN_UNMOUNT;
120
121 const _ = !0;
123 }
124}