Remove the watch associated with the given watch descriptor
#include <sys/inotify.h>
int inotify_rm_watch( int fd,
int32_t wd );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The inotify_rm_watch() function removes a watch that you earlier set to watch for filesystem events.
For an overview of inotify, see http://www.linuxjournal.com/article/8478?page=0,0 in the Linux Journal, but note that there are differences between the Linux and QNX Neutrino implementations.
0 on success, or -1 if an error occurred (errno is set).
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |