Home
last modified time | relevance | path

Searched refs:notifyFd_ (Results 1 - 4 of 4) sorted by relevance

/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_watcher/
H A Dwatcher_entity.cpp39 return notifyFd_; in GetNotifyId()
44 notifyFd_ = inotify_init(); in InitNotify()
45 if (notifyFd_ < 0) { in InitNotify()
74 if (notifyFd_ < 0) { in StartNotify()
75 HILOGE("Failed to start notify notifyFd_:%{public}d", notifyFd_); in StartNotify()
90 int newWd = inotify_add_watch(notifyFd_, arg->fileName.c_str(), watchEvents); in StartNotify()
103 int newWd = inotify_add_watch(notifyFd_, fileName.c_str(), watchEvents); in NotifyToWatchNewEvents()
120 int fd = notifyFd_; in CloseNotifyFd()
124 notifyFd_ in CloseNotifyFd()
[all...]
H A Dwatcher_entity.h72 int32_t notifyFd_ = -1; member in OHOS::FileManagement::ModuleFileIO::FileWatcher
/foundation/filemanagement/file_api/interfaces/kits/cj/src/
H A Dwatcher_impl.cpp36 return notifyFd_; in GetNotifyId()
41 notifyFd_ = inotify_init(); in InitNotify()
42 if (notifyFd_ < 0) { in InitNotify()
105 if (notifyFd_ < 0) { in StartNotify()
106 LOGE("Failed to start notify notifyFd_:%{public}d", notifyFd_); in StartNotify()
120 int newWd = inotify_add_watch(notifyFd_, arg->fileName.c_str(), watchEvents); in StartNotify()
133 int newWd = inotify_add_watch(notifyFd_, fileName.c_str(), watchEvents); in NotifyToWatchNewEvents()
153 while (((len = read(notifyFd_, &buf, sizeof(buf))) < 0) && (errno == EINTR)) {}; in ReadNotifyEvent()
172 fds[1].fd = notifyFd_; in GetNotifyEvent()
[all...]
H A Dwatcher_impl.h93 int32_t notifyFd_ = -1; member in OHOS::CJSystemapi::FileWatcherManager

Completed in 2 milliseconds