Home
last modified time | relevance | path

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

/system/core/libprocinfo/
Dprocess.cpp38 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/
DVolumeManager.cpp585 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 …]
DUtils.cpp497 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()
DUtils.h116 status_t SaneReadLinkAt(int dirfd, const char* path, char* buf, size_t bufsiz);
Dmain.cpp178 dfd = dirfd(d); in do_coldboot()
DCommandListener.cpp365 fpathconf(dirfd(d), _PC_NAME_MAX) + 1; in listAsecsInDirectory()
/system/security/keystore/
Dkeystore.cpp766 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()
Duser_state.cpp224 unlinkat(dirfd(dir), file->d_name, 0); in reset()
/system/core/init/
Dproperty_service.cpp544 int fd = openat(dirfd(dir.get()), entry->d_name, O_RDONLY | O_NOFOLLOW); in load_persistent_properties()
Ddevices.cpp992 dfd = dirfd(d); in do_coldboot()
/system/core/fs_mgr/
Dfs_mgr.cpp659 fd = openat(dirfd(blockdir), ent->d_name, O_RDONLY); in translate_ext_labels()
/system/core/sdcard/
Dfuse.cpp1138 fd = dirfd(dh->d); in handle_fsync()