Lines Matching refs:wd
30 int wd; member
84 ptr->wd = inotify_add_watch(fd, dir, IN_CREATE | IN_MOVED_TO); in watch_list_add()
85 if (ptr->wd == -1) { in watch_list_add()
104 printf("%d: Dir=%s, File=%s\n", ptr->wd, ptr->dir, file); in watch_list_add()
116 int watch_list_find(int wd, const char *file) in watch_list_find() argument
123 printf("%d: File=%s\n", wd, file); in watch_list_find()
125 if (ptr->wd == wd) { in watch_list_find()
157 inotify_rm_watch(fd, ptr->wd); in watch_list_free()
192 event->wd, event->mask, in watch()
195 if (event->wd == master_wd) in watch()
198 switch (utmpwatcher_handle(fd, event->wd)) { in watch()
201 watch_list_find(event->wd, event->name); in watch()