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/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/vold/
Dmain.cpp179 dfd = dirfd(d); in do_coldboot()
DUtils.cpp975 int dirfd = open(path.c_str(), O_RDONLY | O_DIRECTORY | O_CLOEXEC); in GetTreeBytes() local
976 if (dirfd < 0) { in GetTreeBytes()
980 return calculate_dir_size(dirfd); in GetTreeBytes()
1149 bool Readlinkat(int dirfd, const std::string& path, std::string* result) { in Readlinkat() argument
1159 ssize_t size = readlinkat(dirfd, path.c_str(), &buf[0], buf.size()); in Readlinkat()
1261 int dfd = dirfd(dir); in delete_dir_contents()
DUtils.h163 bool Readlinkat(int dirfd, const std::string& path, std::string* result);
DVolumeManager.cpp650 if (!android::vold::Readlinkat(dirfd(dir), "1/ns/mnt", &rootName)) { in scanProcProcesses()
666 pidFd = openat(dirfd(dir), de->d_name, O_RDONLY | O_DIRECTORY | O_CLOEXEC); in scanProcProcesses()
/system/core/debuggerd/crasher/
Dcrasher.cpp275 close(dirfd(d)); in do_action()
/system/core/fs_mgr/
Dfs_mgr.cpp919 openat(dirfd(blockdir.get()), ent->d_name, O_RDONLY | O_CLOEXEC))); in TranslateExtLabels()