| /dovecot/src/lib-storage/index/dbox-common/ |
| H A D | dbox-mail.h | 10 uoff_t offset; member in struct:dbox_mail
|
| /dovecot/src/lib/ |
| H A D | read-full.c | 24 int pread_full(int fd, void *data, size_t size, off_t offset) argument 30 size : SSIZE_T_MAX, offset); 36 offset += ret;
|
| H A D | write-full.c | 31 int pwrite_full(int fd, const void *data, size_t size, off_t offset) argument 37 size : SSIZE_T_MAX, offset); 50 offset += ret;
|
| H A D | file-set-size.c | 28 off_t offset; local 68 offset = 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 - offset), 74 offset); 80 offset += ret;
|
| H A D | sendfile-util.c | 19 ssize_t safe_sendfile(int out_fd, int in_fd, uoff_t *offset, size_t count) argument 28 /* make sure given offset fits into off_t */ 31 if (*offset >= 2147483647L) { 35 if (count > 2147483647L - *offset) 36 count = 2147483647L - *offset; 42 if (*offset >= OFF_T_MAX) { 46 if (count > OFF_T_MAX - *offset) 47 count = OFF_T_MAX - *offset; 50 safe_offset = (off_t)*offset; 53 *offset 62 safe_sendfile(int out_fd, int in_fd, uoff_t *offset, size_t count) argument 98 safe_sendfile(int out_fd, int in_fd, uoff_t *offset, size_t count) argument [all...] |
| H A D | test-ostream-buffer.c | 17 unsigned int i, offset, size; local 32 offset = i_rand_limit(MAX_BUFSIZE * 3); 35 memcpy(buf + offset, randbuf, size); 36 test_assert(o_stream_pwrite(output, randbuf, size, offset) == 0); 92 test_assert(output->offset == str_len(str));
|
| H A D | var-expand-private.h | 11 /* last offset, negative counts from end*/ 12 int offset; member in struct:var_expand_context
|
| H A D | ostream.h | 24 bytes could be counted from the parent ostream's offset. 26 Seeking to a specified offset only makes sense if there is no 29 uoff_t offset; member in struct:ostream 57 /* Create an output stream from a regular file which begins at given offset. 58 If offset==(uoff_t)-1, the current offset isn't known. */ 60 o_stream_create_fd_file(int fd, uoff_t offset, bool autoclose_fd); 61 struct ostream *o_stream_create_fd_file_autoclose(int *fd, uoff_t offset); 156 int o_stream_seek(struct ostream *stream, uoff_t offset); 210 /* Write data to specified offset [all...] |
| H A D | test-ostream-file.c | 21 unsigned int i, offset, size; local 39 offset = i_rand_limit(MAX_BUFSIZE * 3); 42 memcpy(buf + offset, randbuf, size); 43 test_assert(o_stream_pwrite(output, randbuf, size, offset) == 0); 99 test_assert(output->offset == 4); 113 test_assert(output->offset == 3); 125 test_assert(output->offset == 5); 163 test_assert(output->offset == 4);
|
| H A D | istream-file.c | 47 uoff_t offset; local 60 offset = stream->istream.v_offset + (stream->pos - stream->skip); 64 size, offset); 93 " offset=%"PRIuUOFF_T") failed: %m", 94 size, offset);
|
| H A D | ostream-buffer.c | 13 static int o_stream_buffer_seek(struct ostream_private *stream, uoff_t offset) argument 18 stream->ostream.offset = offset; 24 const void *data, size_t size, uoff_t offset) 28 buffer_write(bstream->buf, offset, data, size); 37 size_t left, n, offset; local 41 offset = bstream->seeked ? stream->ostream.offset : bstream->buf->used; 45 stream->ostream.offset; 47 buffer_write(bstream->buf, offset, io 23 o_stream_buffer_write_at(struct ostream_private *stream, const void *data, size_t size, uoff_t offset) argument [all...] |
| H A D | test-istream-base64-encoder.c | 77 unsigned int offset, len = strlen(textout); local 89 for (offset = 0; offset < len; offset++) { 90 i_stream_seek(input, offset); 95 test_assert(size == len-offset); 96 test_assert(memcmp(data, textout+offset, size) == 0);
|
| H A D | test-istream-concat.c | 64 unsigned int i, j, offset, stream_count, data_len, simult; local 68 for (i = 0, offset = 0; i < stream_count; i++) { 72 w_data[j] = offset++; 77 i_assert(offset > 0); 92 i_stream_seek(input, i_rand_limit(offset)); 98 } else if (input->v_offset + size != offset) { 100 test_assert(input->v_offset + ret <= offset);
|
| H A D | test-istream-seekable.c | 74 unsigned int i, j, offset, stream_count, data_len, buffer_size; local 78 for (i = 0, offset = 0; i < stream_count; i++) { 82 w_data[j] = offset++; 88 i_assert(offset > 0); 102 i_stream_seek(input, i_rand_limit(offset)); 105 if (input->v_offset + size == offset) 111 test_assert(input->v_offset + ret <= offset);
|
| H A D | test-str-find.c | 13 unsigned int i, j, pos, max, offset; local 23 pos = 0; offset = 0; ret = FALSE; 30 offset += j-pos + 1; 46 offset - strlen(key);
|
| /dovecot/src/lib-old-stats/ |
| H A D | stats-parser.h | 13 unsigned int offset; member in struct:stats_parser_field
|
| /dovecot/src/lib-settings/ |
| H A D | settings.h | 13 size_t offset; member in struct:setting_def
|
| /dovecot/src/lib-storage/index/dbox-multi/ |
| H A D | mdbox-map.h | 22 uint32_t offset; member in struct:mdbox_map_mail_index_record 28 uint32_t offset; member in struct:mdbox_map_file_msg 50 /* Look up file_id and offset for given map UID. Returns 1 if ok, 0 if UID 95 offset and unlock. */
|
| /dovecot/src/doveadm/ |
| H A D | doveadm-dump-mailboxlog.c | 15 off_t offset; local 20 offset = lseek(fd, 0, SEEK_CUR); 31 printf("#%"PRIuUOFF_T": ", offset);
|
| /dovecot/src/lib-index/ |
| H A D | mail-index-util.c | 8 uint32_t mail_index_uint32_to_offset(uint32_t offset) argument 10 i_assert(offset < 0x40000000); 11 i_assert((offset & 3) == 0); 13 offset >>= 2; 14 offset = 0x00000080 | ((offset & 0x0000007f)) | 15 0x00008000 | ((offset & 0x00003f80) >> 7 << 8) | 16 0x00800000 | ((offset & 0x001fc000) >> 14 << 16) | 17 0x80000000 | ((offset & 0x0fe00000) >> 21 << 24); 19 return cpu32_to_be(offset); 22 mail_index_offset_to_uint32(uint32_t offset) argument [all...] |
| H A D | mail-transaction-log-append.c | 122 uint32_t offset; local 124 unsigned char update_data[sizeof(*u) + sizeof(offset)]; 127 /* this is a non-syncing transaction. update the tail offset 139 /* we're synced all the way to tail offset, so this sync 140 transaction can also be included in the same tail offset. */ 148 can't rely on this. then write non-changed offset + check 149 real offset + rewrite the new offset if other transactions 152 sizeof(*hdr) + sizeof(*u) + sizeof(offset); 156 we may need to update the tail offset eve [all...] |
| /dovecot/src/lib-storage/index/mbox/ |
| H A D | mbox-file.c | 154 "Cached message offset lost for seq %u in mbox", seq); 167 uoff_t offset; local 170 ret = mbox_file_lookup_offset(mbox, view, seq, &offset); 177 if (istream_raw_mbox_seek(mbox->mbox_stream, offset) < 0) { 178 if (offset == 0) { 190 "Cached message offset %s is invalid for mbox", 191 dec2str(offset)); 202 ret = istream_raw_mbox_seek(mbox->mbox_stream, offset);
|
| /dovecot/src/lib-mail/ |
| H A D | message-date.c | 5 #include "utc-offset.h" 33 int offset; local 37 /* numeric offset */ 42 offset = ((str[1]-'0') * 10 + (str[2]-'0')) * 60 + 44 return *str == '+' ? offset : -offset; 75 offset = -5 * 60; 78 offset = -6 * 60; 81 offset = -7 * 60; 84 offset 263 int offset; local [all...] |
| H A D | test-istream-dot.c | 24 uoff_t offset; local 54 offset = test_input->v_offset; 57 i_stream_seek(test_input, offset - 1); 59 test_istream_set_size(test_input, offset); 62 test_istream_set_size(test_input, offset + 1); 117 uoff_t offset; local 133 offset = test_input->v_offset; 136 i_stream_seek(test_input, offset - 1); 138 test_istream_set_size(test_input, offset); 141 test_istream_set_size(test_input, offset [all...] |
| /dovecot/src/plugins/fts/ |
| H A D | doveadm-dump-fts-expunge-log.c | 23 off_t offset; local 30 offset = lseek(fd, 0, SEEK_CUR); 41 i_fatal("Invalid record_size=%u at offset %"PRIuUOFF_T, 42 rec.record_size, offset); 51 printf("#%"PRIuUOFF_T":\n", offset);
|