inotify_init(2) System Calls Manual inotify_init(2) inotify_init, inotify_init1 - inotify C (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 , Kirill Rekhov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.9.1 2 2024 . inotify_init(2)