Home
last modified time | relevance | path

Searched refs:dirfd (Results 1 – 11 of 11) sorted by relevance

/system/vold/
DVolumeManager.cpp526 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 …]
DUtils.cpp497 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()
649 status_t SaneReadLinkAt(int dirfd, const char* path, char* buf, size_t bufsiz) { in SaneReadLinkAt() argument
650 ssize_t len = readlinkat(dirfd, path, buf, bufsiz); in SaneReadLinkAt()
DUtils.h117 status_t SaneReadLinkAt(int dirfd, const char* path, char* buf, size_t bufsiz);
Dmain.cpp171 dfd = dirfd(d); in do_coldboot()
DCommandListener.cpp362 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/
Dkeystore.cpp734 unlinkat(dirfd(dir), file->d_name, 0); in upgradeKeystore()
743 if (renameat(dirfd(dir), file->d_name, dirfd(otherdir), file->d_name) < 0) { in upgradeKeystore()
Duser_state.cpp222 unlinkat(dirfd(dir), file->d_name, 0); in reset()
/system/core/init/
Dproperty_service.cpp420 int fd = openat(dirfd(dir.get()), entry->d_name, O_RDONLY | O_NOFOLLOW); in load_persistent_properties()
Ddevices.cpp938 dfd = dirfd(d); in do_coldboot()
/system/core/fs_mgr/
Dfs_mgr.c400 fd = openat(dirfd(blockdir), ent->d_name, O_RDONLY); in translate_ext_labels()
/system/core/sdcard/
Dsdcard.c1333 fd = dirfd(dh->d); in handle_fsync()