struct FILE_EVENT [src]
Alias for std.c.solaris.FILE_EVENT
User watchable file events.
Members
- ACCESS (Constant)
- ATTRIB (Constant)
- DELETE (Constant)
- isException (Function)
- MODIFIED (Constant)
- MOUNTEDOVER (Constant)
- NOFOLLOW (Constant)
- RENAME_FROM (Constant)
- RENAME_TO (Constant)
- TRUNC (Constant)
- UNMOUNTED (Constant)
Source
pub const FILE_EVENT = struct {
pub const ACCESS = 0x00000001;
pub const MODIFIED = 0x00000002;
pub const ATTRIB = 0x00000004;
pub const DELETE = 0x00000010;
pub const RENAME_TO = 0x00000020;
pub const RENAME_FROM = 0x00000040;
pub const TRUNC = 0x00100000;
pub const NOFOLLOW = 0x10000000;
/// The filesystem holding the watched file was unmounted.
pub const UNMOUNTED = 0x20000000;
/// Some other file/filesystem got mounted over the watched file/directory.
pub const MOUNTEDOVER = 0x40000000;
pub fn isException(event: u32) bool {
return event & (UNMOUNTED | DELETE | RENAME_TO | RENAME_FROM | MOUNTEDOVER) > 0;
}
}