Home
last modified time | relevance | path

Searched refs:dirfd (Results 1 – 13 of 13) sorted by relevance

/system/core/libprocinfo/
Dprocess.cpp38 unique_fd dirfd(open(path, O_DIRECTORY | O_RDONLY)); in GetProcessInfo() local
39 if (dirfd == -1) { in GetProcessInfo()
46 return GetProcessInfoFromProcPidFd(dirfd.get(), process_info, error); in GetProcessInfo()
/system/core/init/
Dpersistent_properties.cpp73 unique_fd fd(openat(dirfd(dir.get()), entry->d_name, O_RDONLY | O_NOFOLLOW | O_CLOEXEC)); in LoadLegacyPersistentProperties()
121 unlinkat(dirfd(dir.get()), entry->d_name, 0); in RemoveLegacyPersistentPropertyFiles()
Duevent_listener.cpp130 int dfd = dirfd(d); in RegenerateUeventsForDir()
Dueventd.cpp174 if (fstatat(dirfd(dir.get()), dent->d_name, &st, 0) == -1) continue; in GenerateRestoreCon()
Dfirst_stage_init.cpp59 int dfd = dirfd(dir); in FreeRamdisk()
/system/vold/
DUtils.cpp621 int dirfd = open(path.c_str(), O_RDONLY | O_DIRECTORY | O_CLOEXEC); in GetTreeBytes() local
622 if (dirfd < 0) { in GetTreeBytes()
626 return calculate_dir_size(dirfd); in GetTreeBytes()
777 bool Readlinkat(int dirfd, const std::string& path, std::string* result) { in Readlinkat() argument
787 ssize_t size = readlinkat(dirfd, path.c_str(), &buf[0], buf.size()); in Readlinkat()
889 int dfd = dirfd(dir); in delete_dir_contents()
Dmain.cpp183 dfd = dirfd(d); in do_coldboot()
DUtils.h134 bool Readlinkat(int dirfd, const std::string& path, std::string* result);
DVolumeManager.cpp472 if (!android::vold::Readlinkat(dirfd(dir), "1/ns/mnt", &rootName)) { in remountUid()
487 pidFd = openat(dirfd(dir), de->d_name, O_RDONLY | O_DIRECTORY | O_CLOEXEC); in remountUid()
/system/security/keystore/
DKeyStore.cpp482 unlinkat(dirfd(dir), file->d_name, 0); in upgradeKeystore()
491 if (renameat(dirfd(dir), file->d_name, dirfd(otherdir), file->d_name) < 0) { in upgradeKeystore()
Duser_state.cpp231 unlinkat(dirfd(dir), file->d_name, 0); in reset()
/system/core/debuggerd/crasher/
Dcrasher.cpp275 close(dirfd(d)); in do_action()
/system/core/fs_mgr/
Dfs_mgr.cpp923 openat(dirfd(blockdir.get()), ent->d_name, O_RDONLY | O_CLOEXEC))); in TranslateExtLabels()