Lines Matching refs:pollfds
637 struct pollfd pollfds[1];
645 pollfds[0].fd = inotify_init();
646 pollfds[0].events = POLLIN;
648 if ( pollfds[0].fd < 0 ) {
658 inotify_create_watches(pollfds[0].fd);
664 length = poll(pollfds, 1, timeout);
683 length = read(pollfds[0].fd, buffer, BUF_LEN);
703 inotify_insert_directory(pollfds[0].fd, esc_name, path_buf);
718 inotify_remove_directory(pollfds[0].fd, path_buf);
731 inotify_remove_watches(pollfds[0].fd);
733 close(pollfds[0].fd);