Searched refs:dirfd (Results 1 – 9 of 9) sorted by relevance
/system/vold/ |
D | VolumeManager.cpp | 474 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 …]
|
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()
|
D | main.cpp | 171 dfd = dirfd(d); in do_coldboot()
|
D | CommandListener.cpp | 357 fpathconf(dirfd(d), _PC_NAME_MAX) + 1; in listAsecsInDirectory()
|
/system/core/init/ |
D | property_service.cpp | 456 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 | 395 fd = openat(dirfd(blockdir), ent->d_name, O_RDONLY); in translate_ext_labels()
|
/system/security/keystore/ |
D | keystore.cpp | 1052 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/ |
D | sdcard.c | 1326 fd = dirfd(dh->d); in handle_fsync()
|