inotify_rm_watch()

QNX SDP8.0C Library ReferenceAPIDeveloper

Remove the watch associated with the given watch descriptor

Synopsis:

#include <sys/inotify.h>

int inotify_rm_watch( int fd,
                      int32_t wd );

Arguments:

fd
A valid file descriptor returned by inotify_init().
wd
A valid watch description returned by inotify_add_watch().

Library:

libfsnotify

Use the -l fsnotify option to qcc to link against this library.

Description:

The inotify_rm_watch() function removes a watch that you earlier set to watch for filesystem events. For you to use this function, the filesystem event manager (fsevmgr) manager needs to be running.

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 OS implementations. Currently, only io-blk.so-based filesystems and devf-ram-based filesystems support inotify.

Returns:

0 on success, or -1 if an error occurred (errno is set).

Classification:

Linux

Safety:
Cancellation pointNo
Signal handlerNo
ThreadYes
Page updated: