Lines Matching refs:srcFd
46 static int OpenSrcFile(const std::string &srcPth, std::shared_ptr<FileInfos> infos, int32_t &srcFd)
60 srcFd = dataShareHelper->OpenFile(uri, CommonFunc::GetModeFromFlags(O_RDONLY));
61 if (srcFd < 0) {
62 LOGE("Open media uri by data share fail. ret = %{public}d", srcFd);
66 srcFd = open(srcPth.c_str(), O_RDONLY);
67 if (srcFd < 0) {
425 int32_t srcFd = -1;
426 int32_t ret = OpenSrcFile(src, infos, srcFd);
427 if (srcFd < 0) {
433 close(srcFd);
436 auto srcFdg = FileManagement::CreateUniquePtr<DistributedFS::FDGuard>(srcFd, true);
440 close(srcFd);