/dovecot/src/lib/ |
H A D | restrict-process-size.c | 8 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 D | test-iostream-proxy.c | 26 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 D | test-mempool-allocfree.c | 9 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 D | test-mempool-alloconly.c | 7 const uint8_t *bytes = mem; local 11 if (bytes[i] != b) 67 test_expect_fatal_string("Trying to allocate 0 bytes");
|
H A D | ostream-escaped.c | 54 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 D | ostream-rawlog.c | 29 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 D | iostream-temp.c | 114 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 D | buffer.c | 379 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 D | json-parser.c | 801 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 D | unichar.c | 90 /* 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 D | ostream-file.c | 430 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 D | istream-qp-encoder.c | 56 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 D | istream-qp-decoder.c | 59 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 D | ostream-bzlib.c | 160 ssize_t ret, bytes = 0; local 174 bytes += ret; 178 stream->ostream.offset += bytes; 183 return bytes;
|
H A D | ostream-lz4.c | 154 ssize_t ret, bytes = 0; local 168 bytes += ret; 172 stream->ostream.offset += bytes; 173 return bytes;
|
H A D | ostream-lzma.c | 168 ssize_t ret, bytes = 0; local 182 bytes += ret; 186 stream->ostream.offset += bytes; 191 return bytes;
|
H A D | ostream-zlib.c | 245 ssize_t ret, bytes = 0; local 259 bytes += ret; 263 stream->ostream.offset += bytes; 272 return bytes;
|
/dovecot/src/plugins/quota/ |
H A D | quota-count.c | 28 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 D | quota-dict.c | 114 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 D | quota-maildir.c | 498 /* 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 D | http-transfer-chunked.c | 582 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 D | iostream-openssl.c | 364 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 D | istream-decrypt.c | 662 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 D | mail-index-strmap.c | 80 /* 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 D | imap-client.c | 1297 ssize_t bytes; local 1306 bytes = i_stream_read(client->input); 1307 if (bytes == -1) { 1315 if (!client_handle_input(client) && bytes == -2) {
|