Home
last modified time | relevance | path

Searched refs:dirfd (Results 1 – 12 of 12) 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.cpp72 unique_fd fd(openat(dirfd(dir.get()), entry->d_name, O_RDONLY | O_NOFOLLOW)); in LoadLegacyPersistentProperties()
120 unlinkat(dirfd(dir.get()), entry->d_name, 0); in RemoveLegacyPersistentPropertyFiles()
Duevent_listener.cpp132 int dfd = dirfd(d); in RegenerateUeventsForDir()
Dfirst_stage_init.cpp56 int dfd = dirfd(dir); in FreeRamdisk()
/system/vold/
DUtils.cpp619 int dirfd = open(path.c_str(), O_RDONLY | O_DIRECTORY | O_CLOEXEC); in GetTreeBytes() local
620 if (dirfd < 0) { in GetTreeBytes()
624 return calculate_dir_size(dirfd); in GetTreeBytes()
775 bool Readlinkat(int dirfd, const std::string& path, std::string* result) { in Readlinkat() argument
785 ssize_t size = readlinkat(dirfd, path.c_str(), &buf[0], buf.size()); in Readlinkat()
856 int dfd = dirfd(dir); in delete_dir_contents()
Dmain.cpp179 dfd = dirfd(d); in do_coldboot()
DUtils.h134 bool Readlinkat(int dirfd, const std::string& path, std::string* result);
DVolumeManager.cpp476 if (!android::vold::Readlinkat(dirfd(dir), "1/ns/mnt", &rootName)) { in remountUid()
491 pidFd = openat(dirfd(dir), de->d_name, O_RDONLY | O_DIRECTORY | O_CLOEXEC); in remountUid()
/system/security/keystore/
DKeyStore.cpp487 unlinkat(dirfd(dir), file->d_name, 0); in upgradeKeystore()
496 if (renameat(dirfd(dir), file->d_name, dirfd(otherdir), file->d_name) < 0) { in upgradeKeystore()
Duser_state.cpp245 unlinkat(dirfd(dir), file->d_name, 0); in reset()
/system/core/debuggerd/crasher/
Dcrasher.cpp274 close(dirfd(d)); in do_action()
/system/core/fs_mgr/
Dfs_mgr.cpp789 openat(dirfd(blockdir.get()), ent->d_name, O_RDONLY | O_CLOEXEC))); in TranslateExtLabels()