| /dovecot/src/old-stats/ |
| H A D | global-memory.h | 6 void global_memory_alloc(size_t size); 7 void global_memory_free(size_t size);
|
| H A D | global-memory.c | 31 void global_memory_alloc(size_t size) argument 33 i_assert(size < (size_t)-1 - global_used_memory); 34 global_used_memory += size; 42 void global_memory_free(size_t size) argument 44 i_assert(size <= global_used_memory); 45 global_used_memory -= size;
|
| /dovecot/src/lib/ |
| H A D | file-set-size.h | 7 int file_set_size(int fd, off_t size); 8 /* Preallocate file to given size, without actually changing the size 11 int file_preallocate(int fd, off_t size);
|
| H A D | read-full.c | 8 int read_full(int fd, void *data, size_t size) argument 12 while (size > 0) { 13 ret = read(fd, data, size < SSIZE_T_MAX ? size : SSIZE_T_MAX); 18 size -= ret; 24 int pread_full(int fd, void *data, size_t size, off_t offset) argument 28 while (size > 0) { 29 ret = pread(fd, data, size < SSIZE_T_MAX ? 30 size : SSIZE_T_MAX, offset); 35 size [all...] |
| H A D | base64.h | 26 /* max. buffer size required for base64_encode() */ 27 #define MAX_BASE64_ENCODED_SIZE(size) \ 28 (((size) / 3 + ((size) % 3 > 0)) * 4) 29 /* max. buffer size required for base64_decode() */ 30 #define MAX_BASE64_DECODED_SIZE(size) \ 31 ((size) / 4 * 3 + 3)
|
| H A D | hex-binary.h | 5 const char *binary_to_hex(const unsigned char *data, size_t size); 6 const char *binary_to_hex_ucase(const unsigned char *data, size_t size); 9 size_t size);
|
| H A D | safe-memset.c | 6 void safe_memset(void *data, int c, size_t size) argument 11 if (size == 0) 15 memset(data, c, size);
|
| H A D | read-full.h | 6 int read_full(int fd, void *data, size_t size); 7 int pread_full(int fd, void *data, size_t size, off_t offset);
|
| H A D | write-full.h | 7 int write_full(int fd, const void *data, size_t size); 8 int pwrite_full(int fd, const void *data, size_t size, off_t offset);
|
| H A D | safe-memset.h | 6 void safe_memset(void *data, int c, size_t size);
|
| H A D | write-full.c | 8 int write_full(int fd, const void *data, size_t size) argument 12 while (size > 0) { 13 ret = write(fd, data, size < SSIZE_T_MAX ? size : SSIZE_T_MAX); 25 size -= ret; 31 int pwrite_full(int fd, const void *data, size_t size, off_t offset) argument 35 while (size > 0) { 36 ret = pwrite(fd, data, size < SSIZE_T_MAX ? 37 size : SSIZE_T_MAX, offset); 49 size [all...] |
| H A D | hex-binary.c | 9 size_t size, bool ucase) 20 for (i = 0; i < size; i++) { 29 const char *binary_to_hex(const unsigned char *data, size_t size) argument 31 unsigned char *dest = t_malloc_no0(MALLOC_MULTIPLY(size, 2) + 1); 33 binary_to_hex_case(dest, data, size, FALSE); 34 dest[size*2] = '\0'; 38 const char *binary_to_hex_ucase(const unsigned char *data, size_t size) argument 40 unsigned char *dest = t_malloc_no0(MALLOC_MULTIPLY(size, 2) + 1); 42 binary_to_hex_case(dest, data, size, TRUE); 43 dest[size* 8 binary_to_hex_case(unsigned char *dest, const unsigned char *data, size_t size, bool ucase) argument 47 binary_to_hex_append(string_t *dest, const unsigned char *data, size_t size) argument [all...] |
| H A D | fdpass.h | 7 ssize_t fd_send(int handle, int send_fd, const void *data, size_t size); 13 ssize_t fd_read(int handle, void *data, size_t size, int *fd_r);
|
| H A D | test-buffer.c | 13 size_t pos, pos2, size; local 25 size = shadowbuf_size = i_rand_limit(buf->used - 1); 26 buffer_set_used_size(buf, size); 37 size = i_rand_limit(BUF_TEST_SIZE - pos); 39 buffer_write(buf, pos, testdata, size); 40 memcpy(shadowbuf + pos, testdata, size); 42 buffer_write_zero(buf, pos, size); 43 memset(shadowbuf + pos, 0, size); 45 if (pos + size > shadowbuf_size) 46 shadowbuf_size = pos + size; 169 binary_to_10(const unsigned char *data, size_t size) argument [all...] |
| H A D | test-istream.c | 10 size_t size; local 22 data = i_stream_get_data(child1, &size); 23 test_assert(size == 3 && memcmp(data, "123", 3) == 0); 27 data = i_stream_get_data(child1, &size); 28 test_assert(size == 3 && memcmp(data, "456", 3) == 0); 31 data = i_stream_get_data(child2, &size); 32 test_assert(size == 3 && memcmp(data, "123", 3) == 0); 39 data = i_stream_get_data(child1, &size); 40 test_assert(size == 3 && memcmp(data, "789", 3) == 0); 48 data = i_stream_get_data(child2, &size); [all...] |
| H A D | file-cache.c | 57 int file_cache_set_size(struct file_cache *cache, uoff_t size) argument 65 diff = size % page_size; 67 size += page_size - diff; 69 i_assert((size % page_size) == 0); 70 if (size <= cache->mmap_length) 73 if (size > (size_t)-1) { 74 i_error("file_cache_set_size(%s, %"PRIuUOFF_T"): size too large", 75 cache->path, size); 81 cache->mmap_base = mmap_anon(size); 84 cache->path, size); 104 file_cache_read(struct file_cache *cache, uoff_t offset, size_t size) argument 236 file_cache_write(struct file_cache *cache, const void *data, size_t size, uoff_t offset) argument 280 file_cache_invalidate(struct file_cache *cache, uoff_t offset, uoff_t size) argument [all...] |
| H A D | test-istream-chain.c | 12 size_t size; local 25 data = i_stream_get_data(input, &size); 26 test_assert(size == 7 && memcmp(data, "stream1", 7) == 0); 28 data = i_stream_get_data(input, &size); 29 test_assert(size == 7 && memcmp(data, "stream1", 7) == 0); 33 data = i_stream_get_data(input, &size); 34 test_assert(size == 14 && memcmp(data, "stream1STREAM2", 14) == 0); 36 data = i_stream_get_data(input, &size); 37 test_assert(size == 14 && memcmp(data, "stream1STREAM2", 14) == 0); 42 data = i_stream_get_data(input, &size); 90 size_t size; local [all...] |
| H A D | file-set-size.c | 12 #include "file-set-size.h" 22 int file_set_size(int fd, off_t size) argument 32 i_assert(size >= 0); 39 if (size < st.st_size) { 40 if (ftruncate(fd, size) < 0) { 46 if (size == st.st_size) 53 err = posix_fallocate(fd, st.st_size, size - st.st_size); 69 memset(block, 0, I_MIN((ssize_t)sizeof(block), size - offset)); 71 while (offset < size) { 73 I_MIN((ssize_t)sizeof(block), size [all...] |
| H A D | mempool-alloconly.c | 31 size_t size; member in struct:pool_block 55 static void *pool_alloconly_malloc(pool_t pool, size_t size); 62 static void block_alloc(struct alloconly_pool *pool, size_t size); 92 used_size = block->size - block->left; 96 i_panic("mempool-alloconly: saved alloc size broken"); 111 for (; i < block->size; i++) { 120 pool_t pool_alloconly_create(const char *name ATTR_UNUSED, size_t size) argument 136 if (size < min_alloc) 137 size = nearest_power(size 161 pool_alloconly_create_clean(const char *name, size_t size) argument 225 block_alloc(struct alloconly_pool *apool, size_t size) argument 266 pool_alloconly_malloc(pool_t pool, size_t size) argument 315 pool_try_grow(struct alloconly_pool *apool, void *mem, size_t size) argument 413 size_t size = 0; local 426 size_t size = 0; local [all...] |
| /dovecot/src/auth/ |
| H A D | password-scheme-rpa.c | 10 void *ucs2be_str(pool_t pool, const char *str, size_t *size); 15 void *ucs2be_str(pool_t pool, const char *str, size_t *size) argument 24 *size = buf->used; 31 size_t size; local 33 ucs2be_pw = ucs2be_str(unsafe_data_stack_pool, pw, &size); 34 md5_get_digest(ucs2be_pw, size, result); 35 safe_memset(ucs2be_pw, 0, size);
|
| H A D | crypt-blowfish.h | 22 extern int crypt_output_magic(const char *setting, char *output, size_t size); 24 char *output, size_t size); 27 const char *input, size_t size, char *output, size_t output_size);
|
| /dovecot/src/lib-http/ |
| H A D | http-date.h | 5 bool http_date_parse(const unsigned char *data, size_t size, 8 bool http_date_parse_tm(const unsigned char *data, size_t size,
|
| /dovecot/src/lib-mail/ |
| H A D | message-header-decode.h | 9 size_t size, const char *charset, 14 void message_header_decode(const unsigned char *data, size_t size, 19 void message_header_decode_utf8(const unsigned char *data, size_t size,
|
| H A D | istream-nonuls.c | 33 size_t i, size, avail_size; local 39 data = i_stream_get_data(stream->parent, &size); 40 if (!i_stream_try_alloc(stream, size, &avail_size)) 42 if (size > avail_size) 43 size = avail_size; 44 i_assert(size > 0); 46 p = memchr(data, '\0', size); 49 memcpy(stream->w_buffer+stream->pos, data, size); 53 for (; i < size; i++) { 58 stream->pos += size; [all...] |
| H A D | mbox-from.h | 6 int mbox_from_parse(const unsigned char *msg, size_t size,
|