structstd.c.solaris.FILE_EVENT[src]

User watchable file events.

Values

ConstantACCESS[src]

Source Code

Source code
pub const ACCESS = 0x00000001

ConstantMODIFIED[src]

Source Code

Source code
pub const MODIFIED = 0x00000002

ConstantATTRIB[src]

Source Code

Source code
pub const ATTRIB = 0x00000004

ConstantDELETE[src]

Source Code

Source code
pub const DELETE = 0x00000010

ConstantRENAME_TO[src]

Source Code

Source code
pub const RENAME_TO = 0x00000020

ConstantRENAME_FROM[src]

Source Code

Source code
pub const RENAME_FROM = 0x00000040

ConstantTRUNC[src]

Source Code

Source code
pub const TRUNC = 0x00100000

ConstantNOFOLLOW[src]

Source Code

Source code
pub const NOFOLLOW = 0x10000000

ConstantUNMOUNTED[src]

The filesystem holding the watched file was unmounted.

Source Code

Source code
pub const UNMOUNTED = 0x20000000

ConstantMOUNTEDOVER[src]

Some other file/filesystem got mounted over the watched file/directory.

Source Code

Source code
pub const MOUNTEDOVER = 0x40000000

Functions

FunctionisException[src]

pub fn isException(event: u32) bool

Parameters

event: u32

Source Code

Source code
pub fn isException(event: u32) bool {
    return event & (UNMOUNTED | DELETE | RENAME_TO | RENAME_FROM | MOUNTEDOVER) > 0;
}

Source Code

Source code
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;
    }
}