Searched defs:bytes (Results 1 - 25 of 28) sorted by relevance

12

/dovecot/src/lib/
H A Drestrict-process-size.c8 void restrict_process_size(rlim_t bytes) argument
12 rlim.rlim_max = rlim.rlim_cur = bytes;
15 (unsigned long long)bytes);
21 (unsigned long long)bytes);
H A Dtest-iostream-proxy.c26 size_t bytes; local
77 test_assert(strcmp((const char*)i_stream_get_data(right_in, &bytes), "hello, world") == 0);
78 i_stream_skip(right_in, bytes);
89 test_assert(strcmp((const char*)i_stream_get_data(left_in, &bytes), "hello, world") == 0);
90 i_stream_skip(left_in, bytes);
H A Dtest-mempool-allocfree.c9 const uint8_t *bytes = mem; local
13 if (bytes[i] != b) {
14 i_debug("bytes[%u] != %u", i, b);
108 test_expect_fatal_string("Trying to allocate 0 bytes");
H A Dtest-mempool-alloconly.c7 const uint8_t *bytes = mem; local
11 if (bytes[i] != b)
67 test_expect_fatal_string("Trying to allocate 0 bytes");
H A Dostream-escaped.c54 if (str_len(estream->buf) + 2 > max_buffer_size) { /* escaping takes at least two bytes */
76 ssize_t ret, bytes = 0; local
83 bytes += ret;
89 return bytes;
H A Dostream-rawlog.c29 ssize_t ret, bytes; local
35 bytes = ret;
36 for (i = 0; i < iov_count && bytes > 0; i++) {
37 if (iov[i].iov_len < (size_t)bytes) {
40 bytes -= iov[i].iov_len;
43 iov[i].iov_base, bytes);
H A Diostream-temp.c114 size_t bytes = 0; local
126 bytes += iov[i].iov_len;
130 return bytes;
132 bytes += iov[i].iov_len;
135 tstream->fd_size += bytes;
136 return bytes;
385 "(Temp file fd %d in %s%s, %"PRIuUOFF_T" bytes)",
391 "(Temp buffer in %s%s, %"PRIuSIZE_T" bytes)",
H A Dbuffer.c379 size_t bytes = ((bits + 7) & -8U)/8; local
382 buffer_set_used_size(buf, I_MIN(bytes, buf->used));
383 unsigned char *ptr = buffer_get_modifiable_data(buf, &bytes);
386 for(size_t i=bytes-1;i>0;i--)
H A Djson-parser.c801 int bytes = 0; local
805 bytes = uni_utf8_get_char_n(src+i, size-i, &chr);
807 i_assert(bytes > 0 && uni_is_valid_ucs4(chr));
809 i += bytes;
H A Dunichar.c90 /* the following bytes must all be 10xxxxxx */
337 int bytes = uni_utf8_get_char_n(input, size, &chr); local
338 if (bytes <= 0) {
345 input += bytes;
346 size -= bytes;
H A Dostream-file.c430 static void o_stream_grow_buffer(struct file_ostream *fstream, size_t bytes) argument
434 size = nearest_power(fstream->buffer_size + bytes);
/dovecot/src/lib-mail/
H A Distream-qp-encoder.c56 size_t new_pos, bytes; local
58 /* only return up to max_buffer_size bytes, even when buffer
68 bytes = new_pos - stream->pos;
70 return (ssize_t)bytes;
H A Distream-qp-decoder.c59 size_t new_pos, bytes; local
61 /* only return up to max_buffer_size bytes, even when buffer
64 bytes = new_pos - stream->pos;
67 return (ssize_t)bytes;
/dovecot/src/lib-compression/
H A Dostream-bzlib.c160 ssize_t ret, bytes = 0; local
174 bytes += ret;
178 stream->ostream.offset += bytes;
183 return bytes;
H A Dostream-lz4.c154 ssize_t ret, bytes = 0; local
168 bytes += ret;
172 stream->ostream.offset += bytes;
173 return bytes;
H A Dostream-lzma.c168 ssize_t ret, bytes = 0; local
182 bytes += ret;
186 stream->ostream.offset += bytes;
191 return bytes;
H A Dostream-zlib.c245 ssize_t ret, bytes = 0; local
259 bytes += ret;
263 stream->ostream.offset += bytes;
272 return bytes;
/dovecot/src/plugins/quota/
H A Dquota-count.c28 const char *vname, uint64_t *bytes, uint64_t *count,
76 *bytes += root->quota->set->vsizes ?
269 uint64_t bytes, count; local
272 ret = quota_count_cached(root, &bytes, &count, error_r);
277 *value_r = bytes;
27 quota_count_mailbox(struct quota_root *root, struct mail_namespace *ns, const char *vname, uint64_t *bytes, uint64_t *count, enum quota_get_result *error_result_r, const char **error_r) argument
H A Dquota-dict.c114 uint64_t bytes, count; local
117 if (quota_count(&root->root, &bytes, &count, &error_res, error_r) < 0)
130 dict_set(dt, DICT_QUOTA_CURRENT_BYTES_PATH, dec2str(bytes));
135 "count=%"PRIu64" bytes=%"PRIu64, count, bytes);
139 *value_r = want_bytes ? bytes : count;
H A Dquota-maildir.c498 /* rest of the lines contains <bytes> <count> diffs */
621 /* If there are any NUL bytes, the file is broken. */
789 uint64_t bytes, count; local
792 bytes = 0;
794 } else if (!maildir_parse_limit(str, &bytes, &count)) {
801 rule->bytes_limit = bytes;
/dovecot/src/lib-http/
H A Dhttp-transfer-chunked.c582 size_t bytes = 0, max_bytes; local
595 /* check how many bytes we want to send */
596 bytes = 0;
598 bytes += iov[i].iov_len;
607 tcstream->chunk_size = bytes > max_bytes ? max_bytes : bytes;
610 bytes = tcstream->chunk_size;
612 for (i = 0; i < iov_count && bytes > 0; i++) {
613 if (bytes <= iov[i].iov_len)
615 bytes
[all...]
/dovecot/src/lib-ssl-iostream/
H A Diostream-openssl.c364 size_t bytes, max_bytes; local
371 while ((bytes = BIO_ctrl_pending(ssl_io->bio_ext)) > 0) {
372 /* bytes contains how many SSL encrypted bytes we should be
375 if (bytes > max_bytes) {
382 bytes = max_bytes;
384 if (bytes > sizeof(buffer))
385 bytes = sizeof(buffer);
387 /* BIO_read() is guaranteed to return all the bytes that
389 ret = BIO_read(ssl_io->bio_ext, buffer, bytes);
439 size_t bytes, size; local
[all...]
/dovecot/src/lib-dcrypt/
H A Distream-decrypt.c662 size_t new_pos, bytes; local
664 /* only return up to max_buffer_size bytes, even when buffer
674 bytes = new_pos - stream->pos;
676 return (ssize_t)bytes;
748 "Header too large (more than %"PRIuSIZE_T" bytes)", size);
/dovecot/src/lib-index/
H A Dmail-index-strmap.c80 /* number of bytes required to store one string idx */
358 const uint8_t *bytes, *p, *end; local
368 bytes = p = (const uint8_t *)data;
369 end = bytes + size;
373 i_stream_skip(ctx->input, p - bytes);
/dovecot/src/imap/
H A Dimap-client.c1297 ssize_t bytes; local
1306 bytes = i_stream_read(client->input);
1307 if (bytes == -1) {
1315 if (!client_handle_input(client) && bytes == -2) {

Completed in 60 milliseconds

12