Home
last modified time | relevance | path

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

/system/vold/
DVolumeManager.cpp474 static int sane_readlinkat(int dirfd, const char* path, char* buf, size_t bufsiz) { in sane_readlinkat() argument
475 ssize_t len = readlinkat(dirfd, path, buf, bufsiz); in sane_readlinkat()
532 if (sane_readlinkat(dirfd(dir), "1/ns/mnt", rootName, PATH_MAX) == -1) { in remountUid()
543 pidFd = openat(dirfd(dir), de->d_name, O_RDONLY | O_DIRECTORY | O_CLOEXEC); in remountUid()
947 int dirfd = open(mountPoint, O_DIRECTORY | O_CLOEXEC); in createAsec() local
948 if (dirfd >= 0) { in createAsec()
949 if (fchown(dirfd, ownerUid, AID_SYSTEM) in createAsec()
950 … || fchmod(dirfd, S_IRUSR | S_IWUSR | S_IXUSR | S_ISGID | S_IRGRP | S_IXGRP)) { in createAsec()
953 close(dirfd); in createAsec()
1269 int dirfd = open(mountPoint, O_DIRECTORY | O_CLOEXEC); in fixupAsecPermissions() local
[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()
Dmain.cpp171 dfd = dirfd(d); in do_coldboot()
DCommandListener.cpp357 fpathconf(dirfd(d), _PC_NAME_MAX) + 1; in listAsecsInDirectory()
/system/core/init/
Dproperty_service.cpp456 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.c395 fd = openat(dirfd(blockdir), ent->d_name, O_RDONLY); in translate_ext_labels()
/system/security/keystore/
Dkeystore.cpp1052 unlinkat(dirfd(dir), file->d_name, 0); in reset()
1825 unlinkat(dirfd(dir), file->d_name, 0); in upgradeKeystore()
1834 if (renameat(dirfd(dir), file->d_name, dirfd(otherdir), file->d_name) < 0) { in upgradeKeystore()
/system/core/sdcard/
Dsdcard.c1326 fd = dirfd(dh->d); in handle_fsync()