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() 44 return GetProcessInfoFromProcPidFd(dirfd.get(), process_info); in GetProcessInfo()
|
/system/vold/ |
D | VolumeManager.cpp | 585 if (android::vold::SaneReadLinkAt(dirfd(dir), "1/ns/mnt", rootName, PATH_MAX) == -1) { in remountUid() 596 pidFd = openat(dirfd(dir), de->d_name, O_RDONLY | O_DIRECTORY | O_CLOEXEC); in remountUid() 1012 int dirfd = open(mountPoint, O_DIRECTORY | O_CLOEXEC); in createAsec() local 1013 if (dirfd >= 0) { in createAsec() 1014 if (fchown(dirfd, ownerUid, AID_SYSTEM) in createAsec() 1015 … || fchmod(dirfd, S_IRUSR | S_IWUSR | S_IXUSR | S_ISGID | S_IRGRP | S_IXGRP)) { in createAsec() 1018 close(dirfd); in createAsec() 1332 int dirfd = open(mountPoint, O_DIRECTORY | O_CLOEXEC); in fixupAsecPermissions() local 1333 if (dirfd < 0 || fchmod(dirfd, 0755)) { in fixupAsecPermissions() 1337 close(dirfd); in fixupAsecPermissions() [all …]
|
D | Utils.cpp | 497 int dirfd = open(path.c_str(), O_RDONLY | O_DIRECTORY | O_CLOEXEC); in GetTreeBytes() local 498 if (dirfd < 0) { in GetTreeBytes() 502 uint64_t res = calculate_dir_size(dirfd); in GetTreeBytes() 503 close(dirfd); in GetTreeBytes() 659 status_t SaneReadLinkAt(int dirfd, const char* path, char* buf, size_t bufsiz) { in SaneReadLinkAt() argument 660 ssize_t len = readlinkat(dirfd, path, buf, bufsiz); in SaneReadLinkAt()
|
D | Utils.h | 116 status_t SaneReadLinkAt(int dirfd, const char* path, char* buf, size_t bufsiz);
|
D | main.cpp | 178 dfd = dirfd(d); in do_coldboot()
|
D | CommandListener.cpp | 365 fpathconf(dirfd(d), _PC_NAME_MAX) + 1; in listAsecsInDirectory()
|
/system/security/keystore/ |
D | keystore.cpp | 766 unlinkat(dirfd(dir), file->d_name, 0); in upgradeKeystore() 775 if (renameat(dirfd(dir), file->d_name, dirfd(otherdir), file->d_name) < 0) { in upgradeKeystore()
|
D | user_state.cpp | 224 unlinkat(dirfd(dir), file->d_name, 0); in reset()
|
/system/core/init/ |
D | property_service.cpp | 544 int fd = openat(dirfd(dir.get()), entry->d_name, O_RDONLY | O_NOFOLLOW); in load_persistent_properties()
|
D | devices.cpp | 992 dfd = dirfd(d); in do_coldboot()
|
/system/core/fs_mgr/ |
D | fs_mgr.cpp | 659 fd = openat(dirfd(blockdir), ent->d_name, O_RDONLY); in translate_ext_labels()
|
/system/core/sdcard/ |
D | fuse.cpp | 1138 fd = dirfd(dh->d); in handle_fsync()
|