Searched refs:dirfd (Results 1 – 11 of 11) sorted by relevance
/system/vold/ |
D | VolumeManager.cpp | 526 if (android::vold::SaneReadLinkAt(dirfd(dir), "1/ns/mnt", rootName, PATH_MAX) == -1) { in remountUid() 537 pidFd = openat(dirfd(dir), de->d_name, O_RDONLY | O_DIRECTORY | O_CLOEXEC); in remountUid() 941 int dirfd = open(mountPoint, O_DIRECTORY | O_CLOEXEC); in createAsec() local 942 if (dirfd >= 0) { in createAsec() 943 if (fchown(dirfd, ownerUid, AID_SYSTEM) in createAsec() 944 … || fchmod(dirfd, S_IRUSR | S_IWUSR | S_IXUSR | S_ISGID | S_IRGRP | S_IXGRP)) { in createAsec() 947 close(dirfd); in createAsec() 1263 int dirfd = open(mountPoint, O_DIRECTORY | O_CLOEXEC); in fixupAsecPermissions() local 1264 if (dirfd < 0 || fchmod(dirfd, 0755)) { in fixupAsecPermissions() 1268 close(dirfd); in fixupAsecPermissions() [all …]
|
D | Utils.cpp | 497 int dirfd = open(path.c_str(), O_DIRECTORY, O_RDONLY); in GetTreeBytes() local 498 if (dirfd < 0) { in GetTreeBytes() 502 uint64_t res = calculate_dir_size(dirfd); in GetTreeBytes() 503 close(dirfd); in GetTreeBytes() 670 status_t SaneReadLinkAt(int dirfd, const char* path, char* buf, size_t bufsiz) { in SaneReadLinkAt() argument 671 ssize_t len = readlinkat(dirfd, path, buf, bufsiz); in SaneReadLinkAt()
|
D | Utils.h | 119 status_t SaneReadLinkAt(int dirfd, const char* path, char* buf, size_t bufsiz);
|
D | main.cpp | 177 dfd = dirfd(d); in do_coldboot()
|
D | CommandListener.cpp | 362 fpathconf(dirfd(d), _PC_NAME_MAX) + 1; in listAsecsInDirectory() 692 openat(dirfd(dir.get()), pid_str.c_str(), O_RDONLY | O_DIRECTORY | O_CLOEXEC)); in runCommandInNamespace() 717 android::vold::SaneReadLinkAt(dirfd(dir.get()), "1/ns/mnt", rootName, PATH_MAX); in runCommandInNamespace()
|
/system/security/keystore/ |
D | keystore.cpp | 757 unlinkat(dirfd(dir), file->d_name, 0); in upgradeKeystore() 766 if (renameat(dirfd(dir), file->d_name, dirfd(otherdir), file->d_name) < 0) { in upgradeKeystore()
|
D | user_state.cpp | 222 unlinkat(dirfd(dir), file->d_name, 0); in reset()
|
/system/core/init/ |
D | property_service.cpp | 420 int fd = openat(dirfd(dir.get()), entry->d_name, O_RDONLY | O_NOFOLLOW); in load_persistent_properties()
|
D | devices.cpp | 938 dfd = dirfd(d); in do_coldboot()
|
/system/core/fs_mgr/ |
D | fs_mgr.c | 400 fd = openat(dirfd(blockdir), ent->d_name, O_RDONLY); in translate_ext_labels()
|
/system/core/sdcard/ |
D | sdcard.c | 1339 fd = dirfd(dh->d); in handle_fsync()
|