Home
last modified time | relevance | path

Searched refs:p2p_sharing_fd_ (Results 1 – 2 of 2) sorted by relevance

/system/update_engine/payload_consumer/
Ddownload_action.cc57 p2p_sharing_fd_(-1), in DownloadAction()
63 if (p2p_sharing_fd_ != -1) { in CloseP2PSharingFd()
64 if (close(p2p_sharing_fd_) != 0) { in CloseP2PSharingFd()
67 p2p_sharing_fd_ = -1; in CloseP2PSharingFd()
95 p2p_sharing_fd_ = open(path.value().c_str(), O_WRONLY); in SetupP2PSharingFd()
96 if (p2p_sharing_fd_ == -1) { in SetupP2PSharingFd()
107 if (fchmod(p2p_sharing_fd_, 0644) != 0) { in SetupP2PSharingFd()
122 if (p2p_sharing_fd_ == -1) { in WriteToP2PFile()
137 off_t p2p_size = utils::FileSize(p2p_sharing_fd_); in WriteToP2PFile()
150 off_t cur_file_offset = lseek(p2p_sharing_fd_, file_offset, SEEK_SET); in WriteToP2PFile()
[all …]
Ddownload_action.h183 int p2p_sharing_fd_; variable