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.cpp944 int64_t calculate_dir_size(int dfd) { in calculate_dir_size() argument
950 d = fdopendir(dfd); in calculate_dir_size()
952 close(dfd); in calculate_dir_size()
958 if (fstatat(dfd, name, &s, AT_SYMLINK_NOFOLLOW) == 0) { in calculate_dir_size()
967 subfd = openat(dfd, name, O_RDONLY | O_DIRECTORY | O_CLOEXEC); in calculate_dir_size()
1275 int dfd = dirfd(dir); in delete_dir_contents() local
1276 if (dfd < 0) { in delete_dir_contents()
1289 openat(dfd, name, O_RDONLY | O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC)); in delete_dir_contents()
1303 if (unlinkat(dfd, name, AT_REMOVEDIR) < 0) { in delete_dir_contents()
1308 if (unlinkat(dfd, name, 0) < 0) { in delete_dir_contents()
/system/core/init/
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()
Dfirst_stage_init.cpp61 int dfd = dirfd(dir); in FreeRamdisk() local
73 if (fstatat(dfd, de->d_name, &info, AT_SYMLINK_NOFOLLOW) != 0) { in FreeRamdisk()
83 auto fd = openat(dfd, de->d_name, O_RDONLY | O_DIRECTORY | O_CLOEXEC); in FreeRamdisk()
101 unlinkat(dfd, de->d_name, is_dir ? AT_REMOVEDIR : 0); in FreeRamdisk()