Searched refs:notifyFd (Results 1 - 4 of 4) sorted by relevance
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/ |
H A D | copy.h | 47 int32_t notifyFd = -1; member 63 if (notifyFd == -1) { in CloseFd() 67 inotify_rm_watch(notifyFd, item.first); in CloseFd() 69 close(notifyFd); in CloseFd() 70 notifyFd = -1; in CloseFd() 86 int32_t notifyFd = -1; member
|
H A D | copy.cpp | 302 if (infos->notifyFd >= 0) { in CopySubDir() 303 int newWd = inotify_add_watch(infos->notifyFd, destPath.c_str(), watchEvents); in CopySubDir() 476 infos->notifyFd = inotify_init(); in SubscribeLocalListener() 477 if (infos->notifyFd < 0) { in SubscribeLocalListener() 486 callback->notifyFd = infos->notifyFd; in SubscribeLocalListener() 488 int newWd = inotify_add_watch(infos->notifyFd, infos->destPath.c_str(), IN_MODIFY); in SubscribeLocalListener() 491 HILOGE("Failed to add watch, errno = %{public}d, notifyFd: %{public}d, destPath: %{public}s", errno, in SubscribeLocalListener() 492 infos->notifyFd, infos->destPath.c_str()); in SubscribeLocalListener() 499 inotify_rm_watch(infos->notifyFd, newW in SubscribeLocalListener() [all...] |
/foundation/filemanagement/file_api/interfaces/kits/cj/src/ |
H A D | copy.h | 52 int32_t notifyFd = -1; member 75 if (notifyFd == -1) { in CloseFd() 79 inotify_rm_watch(notifyFd, item.first); in CloseFd() 81 close(notifyFd); in CloseFd() 82 notifyFd = -1; in CloseFd() 96 int32_t notifyFd = -1; member
|
H A D | copy.cpp | 238 if (infos->notifyFd >= 0) { in CopySubDir() 239 int newWd = inotify_add_watch(infos->notifyFd, destPath.c_str(), watchEvents); in CopySubDir() 495 while (((len = read(infos->notifyFd, &buf, sizeof(buf))) < 0) && (errno == EINTR)) {} in ReadNotifyEvent() 533 fds[1].fd = infos->notifyFd; in GetNotifyEvent() 534 while (infos->run && infos->exceptionCode == ERRNO_NOERR && infos->eventFd != -1 && infos->notifyFd != -1) { in GetNotifyEvent() 663 infos->notifyFd = inotify_init(); in SubscribeLocalListener() 664 if (infos->notifyFd < 0) { in SubscribeLocalListener() 673 callback->notifyFd = infos->notifyFd; in SubscribeLocalListener() 675 int newWd = inotify_add_watch(infos->notifyFd, info in SubscribeLocalListener() [all...] |
Completed in 4 milliseconds