Home
last modified time | relevance | path

Searched refs:dfd (Results 1 – 4 of 4) sorted by relevance

/system/vold/
Dmain.cpp181 int dfd, fd; in do_coldboot() local
183 dfd = dirfd(d); in do_coldboot()
185 fd = openat(dfd, "uevent", O_WRONLY | O_CLOEXEC); in do_coldboot()
198 fd = openat(dfd, de->d_name, O_RDONLY | O_DIRECTORY | O_CLOEXEC); in do_coldboot()
DUtils.cpp584 int64_t calculate_dir_size(int dfd) { in calculate_dir_size() argument
590 d = fdopendir(dfd); in calculate_dir_size()
592 close(dfd); in calculate_dir_size()
598 if (fstatat(dfd, name, &s, AT_SYMLINK_NOFOLLOW) == 0) { in calculate_dir_size()
610 subfd = openat(dfd, name, O_RDONLY | O_DIRECTORY | O_CLOEXEC); in calculate_dir_size()
889 int dfd = dirfd(dir); in delete_dir_contents() local
890 if (dfd < 0) { in delete_dir_contents()
906 openat(dfd, name, O_RDONLY | O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC)); in delete_dir_contents()
920 if (unlinkat(dfd, name, AT_REMOVEDIR) < 0) { in delete_dir_contents()
925 if (unlinkat(dfd, name, 0) < 0) { in delete_dir_contents()
/system/core/init/
Dfirst_stage_init.cpp59 int dfd = dirfd(dir); in FreeRamdisk() local
71 if (fstatat(dfd, de->d_name, &info, AT_SYMLINK_NOFOLLOW) != 0) { in FreeRamdisk()
81 auto fd = openat(dfd, de->d_name, O_RDONLY | O_DIRECTORY | O_CLOEXEC); in FreeRamdisk()
93 unlinkat(dfd, de->d_name, is_dir ? AT_REMOVEDIR : 0); in FreeRamdisk()
Duevent_listener.cpp130 int dfd = dirfd(d); in RegenerateUeventsForDir() local
132 int fd = openat(dfd, "uevent", O_WRONLY | O_CLOEXEC); in RegenerateUeventsForDir()
150 fd = openat(dfd, de->d_name, O_RDONLY | O_DIRECTORY | O_CLOEXEC); in RegenerateUeventsForDir()