Searched refs:dirfd (Results 1 – 12 of 12) 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 | 72 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()
|
D | uevent_listener.cpp | 132 int dfd = dirfd(d); in RegenerateUeventsForDir()
|
D | first_stage_init.cpp | 56 int dfd = dirfd(dir); in FreeRamdisk()
|
/system/vold/ |
D | Utils.cpp | 619 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()
|
D | main.cpp | 179 dfd = dirfd(d); in do_coldboot()
|
D | Utils.h | 134 bool Readlinkat(int dirfd, const std::string& path, std::string* result);
|
D | VolumeManager.cpp | 476 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/ |
D | KeyStore.cpp | 487 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()
|
D | user_state.cpp | 245 unlinkat(dirfd(dir), file->d_name, 0); in reset()
|
/system/core/debuggerd/crasher/ |
D | crasher.cpp | 274 close(dirfd(d)); in do_action()
|
/system/core/fs_mgr/ |
D | fs_mgr.cpp | 789 openat(dirfd(blockdir.get()), ent->d_name, O_RDONLY | O_CLOEXEC))); in TranslateExtLabels()
|