Home
last modified time | relevance | path

Searched refs:destFd (Results 1 - 2 of 2) sorted by relevance

/base/notification/distributed_notification_service/services/ans/src/clone/
H A Dnotification_clone_manager.cpp135 int destFd = open(BACKUP_CONFIG_FILE_PATH, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); in LoadConfig() local
136 if (destFd < 0) { in LoadConfig()
140 if (sendfile(destFd, fd.Get(), nullptr, statBuf.st_size) < 0) { in LoadConfig()
141 ANS_LOGW("LoadConfig fd sendfile(size: %{public}d) to destFd fail.", static_cast<int>(statBuf.st_size)); in LoadConfig()
142 close(destFd); in LoadConfig()
145 close(destFd); in LoadConfig()
/base/hiviewdfx/hiview/service/
H A Dhiview_service.cpp247 int destFd = open(destFilePath.c_str(), O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR | S_IROTH); in CopyFile() local
248 if (destFd == -1) { in CopyFile()
257 ssize_t ret = sendfile(destFd, srcFd, &offset, count); in CopyFile()
267 close(destFd); in CopyFile()
272 close(destFd); in CopyFile()

Completed in 3 milliseconds