Lines Matching refs:wd
148 #define FAMCancelMonitor(fd, wd) \ argument
149 inotify_rm_watch(*(fd), *(wd))
154 #define FAMMonitorDirectory(fd, fn, wd, userData) \ argument
155 ((*(wd) = inotify_add_watch(*(fd), (fn), (fam_watch_mask))) < 0)
174 static int FAMCancelMonitor (const int * const fd, int * const wd) in FAMCancelMonitor() argument
177 if (-1 == *wd) return 0; in FAMCancelMonitor()
180 EV_SET(&kev, *wd, EVFILT_VNODE, EV_DELETE, 0, 0, 0); in FAMCancelMonitor()
182 close(*wd); in FAMCancelMonitor()
183 *wd = -1; in FAMCancelMonitor()
186 static int FAMMonitorDirectory (int * const fd, char * const fn, int * const wd, void * const userD… in FAMMonitorDirectory() argument
188 *wd = fdevent_open_dirname(fn, 1); /*(note: follows symlinks)*/ in FAMMonitorDirectory()
189 if (-1 == *wd) return -1; in FAMMonitorDirectory()
195 EV_SET(&kev, *wd, EVFILT_VNODE, kev_flags, kev_fflags, 0, userData); in FAMMonitorDirectory()
392 scf->wds = splaytree_splay(scf->wds, in->wd); in stat_cache_handle_fdevent_in()
393 if (!scf->wds || scf->wds->key != in->wd) in stat_cache_handle_fdevent_in()
398 if (fam_dir->req != in->wd) /*(should not happen)*/ in stat_cache_handle_fdevent_in()