Lines Matching refs:wd
149 int wd; member
1383 return spec->wd % tabsize; in wd_hasher()
1391 return spec1->wd == spec2->wd; in wd_comparator()
1448 tail_forever_inotify (int wd, struct File_spec *f, size_t n_files, in tail_forever_inotify() argument
1497 f[i].wd = -1; in tail_forever_inotify()
1509 f[i].parent_wd = inotify_add_watch (wd, dirlen ? f[i].name : ".", in tail_forever_inotify()
1530 f[i].wd = inotify_add_watch (wd, f[i].name, inotify_wd_mask); in tail_forever_inotify()
1532 if (f[i].wd < 0) in tail_forever_inotify()
1649 pfd[0].fd = wd; in tail_forever_inotify()
1663 len = safe_read (wd, evbuf, evlen); in tail_forever_inotify()
1693 if (ev->wd == f[i].parent_wd) in tail_forever_inotify()
1709 if (f[j].parent_wd == ev->wd in tail_forever_inotify()
1726 new_wd = inotify_add_watch (wd, f[j].name, inotify_wd_mask); in tail_forever_inotify()
1746 new_watch = (! deleting) && (fspec->wd < 0 || new_wd != fspec->wd); in tail_forever_inotify()
1750 if (0 <= fspec->wd) in tail_forever_inotify()
1752 inotify_rm_watch (wd, fspec->wd); in tail_forever_inotify()
1756 fspec->wd = new_wd; in tail_forever_inotify()
1769 prev->wd = -1; in tail_forever_inotify()
1783 key.wd = ev->wd; in tail_forever_inotify()
1798 inotify_rm_watch (wd, fspec->wd); in tail_forever_inotify()
2475 int wd = inotify_init (); in main() local
2476 if (0 <= wd) in main()
2485 tail_forever_inotify (wd, F, n_files, sleep_interval, &ht); in main()
2487 close (wd); in main()