Searched refs:dfd (Results 1 – 3 of 3) sorted by relevance
126 android::base::unique_fd dfd(openat(dirfd(dir.get()), pevent->name, O_RDONLY)); in inotify_cb() local127 if (dfd == -1) { in inotify_cb()131 if (!should_add_input_device(dfd, g_allow_touch_inputs)) { in inotify_cb()136 ev_add_fd(std::move(dfd), g_saved_input_cb); in inotify_cb()
453 android::base::unique_fd dfd(open(dir_name.c_str(), O_RDONLY | O_DIRECTORY)); in ProductBlockMap() local454 if (dfd == -1) { in ProductBlockMap()458 if (fsync(dfd) == -1) { in ProductBlockMap()462 if (close(dfd.release()) == -1) { in ProductBlockMap()
128 android::base::unique_fd dfd(TEMP_FAILURE_RETRY(open(dirname.c_str(), O_RDONLY | O_DIRECTORY))); in FsyncDir() local129 if (dfd == -1) { in FsyncDir()134 if (fsync(dfd) == -1) { in FsyncDir()