inotify_init

Name

inotify_init -- instantiate inotify

Synopsis

#include <sys/inotify.h>

int inotify_init(void);

Description

inotify_init() shall create one instance of inotify.

Return Value

On success, inotify_init() shall return a file descriptor pointing to the new inotify instance.

On failure, inotify_init() shall return -1 and set errno to an appropriate value.

Errors

EMFILE 

The maximum number of inotify instances has been created for this user.

ENFILE 

The maximum number of file descriptors has been created on the system.

ENOMEM 

There is not enough kernel memory available.

See Also

inotify_add_watch(), inotify_rm_watch()