/dovecot/src/lib/ |
H A D | ostream-null.c | 9 const struct const_iovec *iov, unsigned int iov_count) 15 ret += iov[i].iov_len; 8 o_stream_null_sendv(struct ostream_private *stream, const struct const_iovec *iov, unsigned int iov_count) argument
|
H A D | test-ostream-escaped.c | 13 struct const_iovec iov[2]; local 21 iov[0].iov_base = "hello"; 22 iov[0].iov_len = 5; 23 iov[1].iov_base = ", world"; 24 iov[1].iov_len = 7; 25 test_assert(o_stream_sendv(os_encode, iov, 2) == 12);
|
H A D | ostream-hash.c | 16 const struct const_iovec *iov, unsigned int iov_count) 23 if ((ret = o_stream_sendv(stream->parent, iov, iov_count)) < 0) { 30 block_len = iov[i].iov_len <= bytes_left ? 31 iov[i].iov_len : bytes_left; 33 iov[i].iov_base, block_len); 15 o_stream_hash_sendv(struct ostream_private *stream, const struct const_iovec *iov, unsigned int iov_count) argument
|
H A D | ostream-unix.c | 23 const struct const_iovec *iov, 32 return o_stream_file_writev(fstream, iov, iov_count); 38 i_assert(iov[0].iov_len > 0); 40 iov[0].iov_base, iov[0].iov_len); 50 if (sent < iov[0].iov_len || iov_count == 1) { 56 ret = o_stream_file_writev(fstream, &iov[1], iov_count-1); 22 o_stream_unix_writev(struct file_ostream *fstream, const struct const_iovec *iov, unsigned int iov_count) argument
|
H A D | fdpass.c | 107 struct const_iovec iov; local 116 iov.iov_base = data; 117 iov.iov_len = size; 119 msg.msg_iov = (void *)&iov; 157 struct iovec iov; local 166 iov.iov_base = data; 167 iov.iov_len = size; 169 msg.msg_iov = &iov;
|
H A D | ostream-buffer.c | 34 const struct const_iovec *iov, unsigned int iov_count) 46 n = I_MIN(left, iov[i].iov_len); 47 buffer_write(bstream->buf, offset, iov[i].iov_base, n); 50 if (n != iov[i].iov_len) 33 o_stream_buffer_sendv(struct ostream_private *stream, const struct const_iovec *iov, unsigned int iov_count) argument
|
H A D | ostream-escaped.c | 72 const struct const_iovec *iov, unsigned int iov_count) 80 iov[iov_cur].iov_base, iov[iov_cur].iov_len); 84 if ((size_t)ret != iov[iov_cur].iov_len) 71 o_stream_escaped_sendv(struct ostream_private *stream, const struct const_iovec *iov, unsigned int iov_count) argument
|
H A D | ostream-failure-at.c | 26 const struct const_iovec *iov, unsigned int iov_count) 41 blocking_bytes_count += iov[i].iov_len; 61 iov_dup[i] = iov[i]; 25 o_stream_failure_at_sendv(struct ostream_private *stream, const struct const_iovec *iov, unsigned int iov_count) argument
|
H A D | ostream-rawlog.c | 25 const struct const_iovec *iov, unsigned int iov_count) 31 if ((ret = o_stream_sendv(stream->parent, iov, iov_count)) < 0) { 37 if (iov[i].iov_len < (size_t)bytes) { 39 iov[i].iov_base, iov[i].iov_len); 40 bytes -= iov[i].iov_len; 43 iov[i].iov_base, bytes); 24 o_stream_rawlog_sendv(struct ostream_private *stream, const struct const_iovec *iov, unsigned int iov_count) argument
|
H A D | compat.c | 85 ssize_t i_my_writev(int fd, const struct iovec *iov, int iov_len) argument 92 for (i = 0; i < iov_len; i++, iov++) { 93 ret = write(fd, iov->iov_base, iov->iov_len); 98 if ((size_t)ret != iov->iov_len)
|
H A D | iostream-temp.c | 112 const struct const_iovec *iov, unsigned int iov_count) 118 if (write_full(tstream->fd, iov[i].iov_base, iov[i].iov_len) < 0) { 125 buffer_append(tstream->buf, iov[i].iov_base, iov[i].iov_len); 126 bytes += iov[i].iov_len; 127 tstream->ostream.ostream.offset += iov[i].iov_len; 132 bytes += iov[i].iov_len; 133 tstream->ostream.ostream.offset += iov[i].iov_len; 141 const struct const_iovec *iov, unsigne 111 o_stream_temp_fd_sendv(struct temp_ostream *tstream, const struct const_iovec *iov, unsigned int iov_count) argument 140 o_stream_temp_sendv(struct ostream_private *stream, const struct const_iovec *iov, unsigned int iov_count) argument [all...] |
/dovecot/src/lib-fs/ |
H A D | ostream-metawrap.c | 28 const struct const_iovec *iov, unsigned int iov_count) 34 if ((ret = o_stream_sendv(stream->parent, iov, iov_count)) < 0) 27 o_stream_metawrap_sendv(struct ostream_private *stream, const struct const_iovec *iov, unsigned int iov_count) argument
|
H A D | ostream-cmp.c | 48 const struct const_iovec *iov, unsigned int iov_count) 56 if (!stream_cmp_block(cstream->input, iov[i].iov_base, 57 iov[i].iov_len)) { 64 if ((ret = o_stream_sendv(stream->parent, iov, iov_count)) < 0) { 47 o_stream_cmp_sendv(struct ostream_private *stream, const struct const_iovec *iov, unsigned int iov_count) argument
|
/dovecot/src/lib-master/ |
H A D | ipc-client.c | 149 struct const_iovec iov[2]; local 157 iov[0].iov_base = cmd; 158 iov[0].iov_len = strlen(cmd); 159 iov[1].iov_base = "\n"; 160 iov[1].iov_len = 1; 161 o_stream_nsendv(client->output, iov, N_ELEMENTS(iov));
|
H A D | anvil-client.c | 203 struct const_iovec iov[2]; local 210 iov[0].iov_base = cmd; 211 iov[0].iov_len = strlen(cmd); 212 iov[1].iov_base = "\n"; 213 iov[1].iov_len = 1; 214 if (o_stream_sendv(client->output, iov, 2) < 0) {
|
/dovecot/src/plugins/mail-filter/ |
H A D | ostream-ext-filter.c | 38 const struct const_iovec *iov, 52 ret = o_stream_sendv(mstream->ext_out, iov, iov_count); 37 o_stream_mail_filter_sendv(struct ostream_private *stream, const struct const_iovec *iov, unsigned int iov_count) argument
|
/dovecot/src/lib-mail/ |
H A D | ostream-dot.c | 76 const struct const_iovec *iov, unsigned int iov_count) 101 size_t size = iov[i].iov_len, chunk; 102 const char *data = iov[i].iov_base, *p, *pend; 75 o_stream_dot_sendv(struct ostream_private *stream, const struct const_iovec *iov, unsigned int iov_count) argument
|
/dovecot/src/lib-ssl-iostream/ |
H A D | ostream-openssl.c | 33 o_stream_ssl_buffer(struct ssl_ostream *sstream, const struct const_iovec *iov, argument 44 if (skip_left < iov[i].iov_len) 46 skip_left -= iov[i].iov_len; 58 size = I_MIN(iov[i].iov_len - skip_left, avail); 60 CONST_PTR_OFFSET(iov[i].iov_base, skip_left), 64 if (size != iov[i].iov_len) 71 size = I_MIN(iov[i].iov_len, avail); 72 buffer_append(sstream->buffer, iov[i].iov_base, size); 76 if (size != iov[i].iov_len) 152 const struct const_iovec *iov, unsigne 151 o_stream_ssl_sendv(struct ostream_private *stream, const struct const_iovec *iov, unsigned int iov_count) argument [all...] |
/dovecot/src/lib-test/ |
H A D | test-ostream.c | 43 const struct const_iovec *iov, unsigned int iov_count) 60 n = I_MIN(left, iov[i].iov_len); 61 buffer_append(tstream->output_buf, iov[i].iov_base, n); 64 if (n != iov[i].iov_len) { 65 cur_iov.iov_base = CONST_PTR_OFFSET(iov[i].iov_base, n); 66 cur_iov.iov_len = iov[i].iov_len - n; 84 cur_iov = iov[i]; 42 o_stream_test_sendv(struct ostream_private *stream, const struct const_iovec *iov, unsigned int iov_count) argument
|
/dovecot/src/lib-auth/ |
H A D | auth-client-request.c | 152 struct const_iovec iov[3]; local 157 iov[0].iov_base = prefix; 158 iov[0].iov_len = strlen(prefix); 159 iov[1].iov_base = data_base64; 160 iov[1].iov_len = strlen(data_base64); 161 iov[2].iov_base = "\n"; 162 iov[2].iov_len = 1; 164 if (o_stream_sendv(request->conn->output, iov, 3) < 0)
|
/dovecot/src/lib-compression/ |
H A D | ostream-bzlib.c | 157 const struct const_iovec *iov, unsigned int iov_count) 170 ret = o_stream_bzlib_send_chunk(zstream, iov[i].iov_base, 171 iov[i].iov_len); 175 if ((size_t)ret != iov[i].iov_len) 156 o_stream_bzlib_sendv(struct ostream_private *stream, const struct const_iovec *iov, unsigned int iov_count) argument
|
H A D | ostream-lz4.c | 151 const struct const_iovec *iov, unsigned int iov_count) 164 ret = o_stream_lz4_send_chunk(zstream, iov[i].iov_base, 165 iov[i].iov_len); 169 if ((size_t)ret != iov[i].iov_len) 150 o_stream_lz4_sendv(struct ostream_private *stream, const struct const_iovec *iov, unsigned int iov_count) argument
|
H A D | ostream-lzma.c | 165 const struct const_iovec *iov, unsigned int iov_count) 178 ret = o_stream_lzma_send_chunk(zstream, iov[i].iov_base, 179 iov[i].iov_len); 183 if ((size_t)ret != iov[i].iov_len) 164 o_stream_lzma_sendv(struct ostream_private *stream, const struct const_iovec *iov, unsigned int iov_count) argument
|
/dovecot/src/auth/ |
H A D | auth-client-connection.c | 67 struct const_iovec iov[2]; local 69 iov[0].iov_base = cmd; 70 iov[0].iov_len = strlen(cmd); 71 iov[1].iov_base = "\n"; 72 iov[1].iov_len = 1; 73 o_stream_nsendv(conn->output, iov, 2);
|
/dovecot/src/director/ |
H A D | login-connection.c | 113 struct const_iovec iov[2]; local 118 iov[0].iov_base = line; 119 iov[0].iov_len = strlen(line); 120 iov[1].iov_base = "\n"; 121 iov[1].iov_len = 1; 122 o_stream_nsendv(conn->output, iov, N_ELEMENTS(iov));
|