Inotify

Inotify fd class

Constructors

this
this()

Constructor.

this
this(InotifyException e)

Constructor. Creates a Inotify file descriptor.

Destructor

~this
~this()

Destructor. Destroys the inotify file descriptor.

Members

Classes

InotifyException
class InotifyException

Exception class, thrown on errors with inotify functions

Functions

addWatch
uint addWatch(char[] path, uint events)

Manipulates the "watch list" associated with an inotify instance. Each item ("watch") in the watch list specifies the pathname of a file or directory, along with some set of events that the kernel should monitor for the file referred to by that pathname. Either creates a new watch item, or modifies an existing watch. Each watch has a unique "watch descriptor", which is returned by this function.

fileHandle
Handle fileHandle()

Required by ISelectable interface.

readEvents
EventsIterator readEvents()

Reads the events associated to the inotify file descriptor, and return in the form of iterator

rmWatch
uint rmWatch(int wd)

Removes the provided item from the inotify instance.

Inherited Members

From ISelectable

fileHandle
Handle fileHandle()

Models a handle-oriented device.

Meta