[Overview][Constants][Types][Procedures and functions][Index] |
Add a watch to a notify file descriptor
Source position: linux.pp line 443
function inotify_add_watch( |
fd: cint; |
name: PChar; |
mask: cuint32 |
):cint; |
inotify_add_watch can be used to add a watch to an initialized inotify file descriptor (fd). The file or directory to watch can be specified in the name parameter, and the events that must be reported can be specified in mask. The following flags can be specified:
These events can be OR-ed with some flags, controlling the behaviour of the watch:
On return, the function returns a watch descriptor, which will be reported in the inotify_event structure's wd.
On Error, -1 is returned. fpgeterrno can be used to get more detailed error information.
|
Initialize a new inotify file descriptor |
|
|
Initialize a new inotify file descriptor with extra options. |
|
|
Remove watch from Inotify file descriptor. |
|
|
INotify event structure |