Searched refs:srcFdg (Results 1 - 4 of 4) sorted by relevance
/foundation/filemanagement/file_api/interfaces/kits/cj/src/ |
H A D | copy.cpp | 75 static int SendFileCore(std::unique_ptr<DistributedFS::FDGuard> srcFdg, in SendFileCore() argument 87 if (fstat(srcFdg->GetFD(), &srcStat) < 0) { in SendFileCore() 88 LOGE("Failed to get stat of file by fd: %{public}d ,errno = %{public}d", srcFdg->GetFD(), errno); in SendFileCore() 94 ret = uv_fs_sendfile(nullptr, sendFileReq.get(), destFdg->GetFD(), srcFdg->GetFD(), in SendFileCore() 436 auto srcFdg = FileManagement::CreateUniquePtr<DistributedFS::FDGuard>(srcFd, true); in CopyFile() local 438 if (srcFdg == nullptr || destFdg == nullptr) { in CopyFile() 444 return SendFileCore(move(srcFdg), move(destFdg), infos); in CopyFile()
|
H A D | copy_file.cpp | 96 static int SendFileCore(FileInfo& srcFdg, FileInfo& destFdg, struct stat& statbf) in SendFileCore() argument 107 int ret = uv_fs_sendfile(nullptr, sendfile_req.get(), destFdg.fdg->GetFD(), srcFdg.fdg->GetFD(), in SendFileCore()
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/ |
H A D | copy.cpp | 92 static int SendFileCore(std::unique_ptr<DistributedFS::FDGuard> srcFdg, in SendFileCore() argument 104 if (fstat(srcFdg->GetFD(), &srcStat) < 0) { in SendFileCore() 105 HILOGE("Failed to get stat of file by fd: %{public}d ,errno = %{public}d", srcFdg->GetFD(), errno); in SendFileCore() 111 ret = uv_fs_sendfile(nullptr, sendFileReq.get(), destFdg->GetFD(), srcFdg->GetFD(), in SendFileCore() 266 auto srcFdg = CreateUniquePtr<DistributedFS::FDGuard>(srcFd, true); in CopyFile() local 268 if (srcFdg == nullptr || destFdg == nullptr) { in CopyFile() 274 return SendFileCore(move(srcFdg), move(destFdg), infos); in CopyFile()
|
H A D | copy_file.cpp | 63 static NError SendFileCore(FileInfo& srcFdg, FileInfo& destFdg, struct stat& statbf)
in SendFileCore() argument 75 ret = uv_fs_sendfile(nullptr, sendfile_req.get(), destFdg.fdg->GetFD(), srcFdg.fdg->GetFD(),
in SendFileCore()
|
Completed in 4 milliseconds