Searched refs:dirfd (Results 1 – 13 of 13) sorted by relevance
/system/core/libprocinfo/ |
D | process.cpp | 38 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/ |
D | persistent_properties.cpp | 73 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()
|
D | uevent_listener.cpp | 130 int dfd = dirfd(d); in RegenerateUeventsForDir()
|
D | ueventd.cpp | 174 if (fstatat(dirfd(dir.get()), dent->d_name, &st, 0) == -1) continue; in GenerateRestoreCon()
|
D | first_stage_init.cpp | 59 int dfd = dirfd(dir); in FreeRamdisk()
|
/system/vold/ |
D | Utils.cpp | 621 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()
|
D | main.cpp | 183 dfd = dirfd(d); in do_coldboot()
|
D | Utils.h | 134 bool Readlinkat(int dirfd, const std::string& path, std::string* result);
|
D | VolumeManager.cpp | 472 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/ |
D | KeyStore.cpp | 482 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()
|
D | user_state.cpp | 231 unlinkat(dirfd(dir), file->d_name, 0); in reset()
|
/system/core/debuggerd/crasher/ |
D | crasher.cpp | 275 close(dirfd(d)); in do_action()
|
/system/core/fs_mgr/ |
D | fs_mgr.cpp | 923 openat(dirfd(blockdir.get()), ent->d_name, O_RDONLY | O_CLOEXEC))); in TranslateExtLabels()
|