inotify_init(2) System Calls Manual inotify_init(2) inotify_init, inotify_init1 - inotify LIBRARY Standard C library (libc, -lc) #include int inotify_init(void); int inotify_init1(int flags); inotify inotify(7). inotify_init() inotify , inotify. flags 0, inotify_init1() , inotify_init(). , flags: IN_NONBLOCK O_NONBLOCK ( open(2)), . fcntl(2) . IN_CLOEXEC close-on-exec (FD_CLOEXEC) . O_CLOEXEC open(2) , . . -1 errno . EINVAL (inotify_init1()) flags. EMFILE inotify . EMFILE . ENFILE . ENOMEM . Linux. inotify_init() Linux 2.6.13, glibc 2.4. inotify_init1() Linux 2.6.27, glibc 2.9. . inotify_add_watch(2), inotify_rm_watch(2), inotify(7) Azamat Hackimov , Dmitriy S. Seregin , Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . inotify_init(2)