Searched refs:newVec (Results 1 – 4 of 4) sorted by relevance
122 struct iovec newVec[nr + headerLength]; in LogdWrite() local148 newVec[0].iov_base = (unsigned char*)&header; in LogdWrite()149 newVec[0].iov_len = sizeof(header); in LogdWrite()161 newVec[headerLength].iov_base = &buffer; in LogdWrite()162 newVec[headerLength].iov_len = sizeof(buffer); in LogdWrite()164 ret = TEMP_FAILURE_RETRY(writev(logd_socket.sock(), newVec, 2)); in LogdWrite()173 newVec[i].iov_base = vec[i - headerLength].iov_base; in LogdWrite()174 payloadSize += newVec[i].iov_len = vec[i - headerLength].iov_len; in LogdWrite()177 newVec[i].iov_len -= payloadSize - LOGGER_ENTRY_MAX_PAYLOAD; in LogdWrite()178 if (newVec[i].iov_len) { in LogdWrite()[all …]
72 struct iovec newVec[nr + headerLength]; in PmsgWrite() local130 newVec[0].iov_base = (unsigned char*)&pmsgHeader; in PmsgWrite()131 newVec[0].iov_len = sizeof(pmsgHeader); in PmsgWrite()132 newVec[1].iov_base = (unsigned char*)&header; in PmsgWrite()133 newVec[1].iov_len = sizeof(header); in PmsgWrite()136 newVec[i].iov_base = vec[i - headerLength].iov_base; in PmsgWrite()137 payloadSize += newVec[i].iov_len = vec[i - headerLength].iov_len; in PmsgWrite()140 newVec[i].iov_len -= payloadSize - LOGGER_ENTRY_MAX_PAYLOAD; in PmsgWrite()141 if (newVec[i].iov_len) { in PmsgWrite()150 ret = TEMP_FAILURE_RETRY(writev(pmsg_fd, newVec, i)); in PmsgWrite()
160 struct iovec newVec[nr + headerLength]; in statsdWrite() local195 newVec[0].iov_base = (unsigned char*)&header; in statsdWrite()196 newVec[0].iov_len = sizeof(header); in statsdWrite()214 newVec[headerLength].iov_base = &buffer; in statsdWrite()215 newVec[headerLength].iov_len = sizeof(buffer); in statsdWrite()217 ret = TEMP_FAILURE_RETRY(writev(sock, newVec, 2)); in statsdWrite()227 newVec[i].iov_base = vec[i - headerLength].iov_base; in statsdWrite()228 payloadSize += newVec[i].iov_len = vec[i - headerLength].iov_len; in statsdWrite()231 newVec[i].iov_len -= payloadSize - LOGGER_ENTRY_MAX_PAYLOAD; in statsdWrite()232 if (newVec[i].iov_len) { in statsdWrite()[all …]
203 struct iovec newVec[nr + header_length]; in BM_pmsg_short() local205 newVec[0].iov_base = (unsigned char*)&pmsg_header; in BM_pmsg_short()206 newVec[0].iov_len = sizeof(pmsg_header); in BM_pmsg_short()207 newVec[1].iov_base = (unsigned char*)&header; in BM_pmsg_short()208 newVec[1].iov_len = sizeof(header); in BM_pmsg_short()218 newVec[2].iov_base = &buffer; in BM_pmsg_short()219 newVec[2].iov_len = sizeof(buffer); in BM_pmsg_short()224 writev(pstore_fd, newVec, nr); in BM_pmsg_short()