Searched defs:rec (Results 1 - 25 of 66) sorted by relevance

123

/dovecot/src/lib-storage/
H A Dmailbox-guid-cache.c18 const struct mailbox_guid_cache_rec *rec; local
24 rec = hash_table_lookup(list->guid_cache, guid_p);
26 rec = hash_table_lookup(list->guid_cache, guid_p);
27 if (rec == NULL && list->guid_cache_updated) {
29 rec = hash_table_lookup(list->guid_cache, guid_p);
32 if (rec == NULL) {
36 *vname_r = rec->vname;
46 struct mailbox_guid_cache_rec *rec; local
76 } else if ((rec = hash_table_lookup(list->guid_cache,
79 info->vname, rec
[all...]
H A Dmail-duplicate.c290 struct mail_duplicate_record_header rec; local
310 i_zero(&rec);
313 rec.stamp = d->time;
314 rec.id_size = d->id_size;
315 rec.user_size = strlen(d->user);
317 o_stream_nsend(output, &rec, sizeof(rec));
318 o_stream_nsend(output, d->id, rec.id_size);
319 o_stream_nsend(output, d->user, rec.user_size);
H A Dmailbox-get.c124 const struct mail_transaction_expunge_guid *rec, *end; local
135 rec = tdata;
136 end = rec + thdr->size / sizeof(*rec);
137 for (; rec != end; rec++) {
138 if (!seq_range_exists(expunged_uids, rec->uid))
140 seq_range_array_remove(expunged_uids, rec->uid);
143 expunge->uid = rec->uid;
144 memcpy(expunge->guid_128, rec
[all...]
/dovecot/src/plugins/fts-lucene/
H A Ddoveadm-fts-lucene.c21 const struct lucene_index_record *rec; local
27 while ((rec = lucene_index_iter_next(iter)) != NULL) {
28 if (memcmp(prev_guid, rec->mailbox_guid,
34 memcpy(prev_guid, rec->mailbox_guid, sizeof(prev_guid));
37 printf("%u", rec->uid);
38 if (rec->part_num != 0)
39 printf("[%u]", rec->part_num);
/dovecot/src/doveadm/
H A Ddoveadm-dump-mailboxlog.c17 struct mailbox_log_record rec; local
22 ret = read(fd, &rec, sizeof(rec));
26 if (ret != sizeof(rec)) {
27 i_fatal("rec read() %"PRIuSIZE_T" != %"PRIuSIZE_T,
28 ret, sizeof(rec));
32 switch (rec.type) {
52 printf(" %s", binary_to_hex(rec.mailbox_guid,
53 sizeof(rec.mailbox_guid)));
55 timestamp = be32_to_cpu_unaligned(rec
80 struct mailbox_log_record rec; local
[all...]
H A Ddoveadm-dump-log.c81 name = "ext-rec";
268 const struct mail_index_record *rec = data; local
271 for (; size > 0; size -= sizeof(*rec), rec++) {
272 printf("%u", rec->uid);
273 if (rec->flags != 0)
274 printf(" (flags=%x)", rec->flags);
350 const struct mail_transaction_ext_rec_update *rec = data, *end; local
354 record_size = (sizeof(*rec) + prev_intro.record_size + 3) & ~3;
355 while (rec < en
367 const struct mail_transaction_ext_atomic_inc *rec = data, *end; local
409 const struct mail_transaction_modseq_update *rec, *end; local
423 const struct mail_transaction_boundary *rec = data; local
[all...]
/dovecot/src/lib-storage/index/mbox/
H A Dmbox-sync-list-index.c26 const struct mbox_list_index_record *rec; local
40 rec = data;
42 if (rec == NULL || expunged || rec->mtime == 0) {
56 if ((time_t)rec->mtime != st.st_mtime ||
57 rec->size != (uint32_t)(st.st_size & 0xffffffffU))
/dovecot/src/plugins/fts/
H A Ddoveadm-dump-fts-expunge-log.c22 struct fts_expunge_log_record rec; local
32 ret = read(fd, &rec, sizeof(rec));
36 if (ret != sizeof(rec))
37 i_fatal("rec read() %d != %d", (int)ret, (int)sizeof(rec));
39 if (rec.record_size < sizeof(rec) + sizeof(uint32_t) ||
40 rec.record_size > INT_MAX) {
42 rec
[all...]
/dovecot/src/lib-index/
H A Dmail-index-map-hdr.c225 struct mail_index_record *rec; local
229 rec = MAIL_INDEX_REC_AT_SEQ(map, seq);
230 rec->flags &= ~MAIL_RECENT;
325 const struct mail_index_record *rec; local
327 rec = MAIL_INDEX_REC_AT_SEQ(map, hdr->messages_count);
328 if (rec->uid == 0) {
332 if (rec->uid >= hdr->next_uid) {
335 rec->uid, hdr->next_uid);
H A Dmailbox-log.c142 void mailbox_log_record_set_timestamp(struct mailbox_log_record *rec, argument
145 cpu32_to_be_unaligned(stamp, rec->timestamp);
148 time_t mailbox_log_record_get_timestamp(const struct mailbox_log_record *rec) argument
150 return (time_t) be32_to_cpu_unaligned(rec->timestamp);
154 const struct mailbox_log_record *rec)
176 ret = write(log->fd, rec, sizeof(*rec));
180 } else if (ret != sizeof(*rec)) {
182 (int)ret, (unsigned int)sizeof(*rec));
233 const struct mailbox_log_record *rec; local
153 mailbox_log_append(struct mailbox_log *log, const struct mailbox_log_record *rec) argument
[all...]
H A Dtest-mail-transaction-log-view.c111 const struct mail_index_record *rec)
118 hdr.size = mail_index_uint32_to_offset(sizeof(hdr) + sizeof(*rec));
121 buffer_append(file->buffer, rec, sizeof(*rec));
123 size = sizeof(hdr) + sizeof(*rec);
131 const struct mail_index_record *rec; local
173 rec = data;
174 test_assert(memcmp(rec, &append_rec, sizeof(*rec)) == 0);
110 add_append_record(struct mail_transaction_log_file *file, const struct mail_index_record *rec) argument
H A Dmail-index-alloc-cache.c87 struct mail_index_alloc_cache_list **indexp, *rec, *match; local
93 rec = *indexp;
98 } else if (rec->refcount == 0 && rec->index->open_count == 0) {
101 } else if (index_dir != NULL && rec->index_dir_ino != 0) {
102 if (index_st->st_ino == rec->index_dir_ino &&
103 CMP_DEV_T(index_st->st_dev, rec->index_dir_dev)) {
107 if (stat(rec->index->dir, &st) < 0 ||
110 rec->destroy_time = 0;
112 match = rec;
173 struct mail_index_alloc_cache_list **list, *rec; local
[all...]
H A Dmail-index-sync-keywords.c209 struct mail_index_record *rec; local
233 rec = MAIL_INDEX_REC_AT_SEQ(view->map, seq1);
234 data = PTR_OFFSET(rec, data_offset);
241 rec = MAIL_INDEX_REC_AT_SEQ(view->map, seq1);
242 data = PTR_OFFSET(rec, data_offset);
254 const struct mail_transaction_keyword_update *rec)
264 i_assert(rec->name_size > 0);
266 seqset_offset = sizeof(*rec) + rec->name_size;
271 uid = CONST_PTR_OFFSET(rec, seqset_offse
252 mail_index_sync_keywords(struct mail_index_sync_map_ctx *ctx, const struct mail_transaction_header *hdr, const struct mail_transaction_keyword_update *rec) argument
322 struct mail_index_record *rec; local
[all...]
H A Dmail-index-transaction-finish.c114 const struct mail_index_record *rec; local
129 rec = mail_index_lookup(t->view, seq);
130 if ((rec->flags & u->add_flags) != u->add_flags ||
131 (rec->flags & u->remove_flags) != 0) {
178 const struct mail_index_record *rec; local
183 rec = mail_index_transaction_lookup(t, seq);
186 rec = MAIL_INDEX_REC_AT_SEQ(t->view->map, seq);
188 i_assert(rec->uid != 0);
189 return rec->uid;
H A Dtest-mail-index-transaction-update.c12 static struct mail_index_record rec; variable in typeref:struct:mail_index_record
24 return &rec;
625 struct mail_index_record *rec; local
640 rec = array_append_space(&t->appends);
641 rec->uid = 9;
/dovecot/src/lib-storage/index/dbox-multi/
H A Dmdbox-mail.c174 struct mdbox_map_mail_index_record rec; local
184 &rec, &refcount) < 0)
H A Dmdbox-map-private.h9 struct mdbox_map_mail_index_record rec; member in struct:dbox_mail_lookup_rec
H A Dmdbox-deleted-storage.c161 struct mdbox_mail_index_record rec; local
186 i_zero(&rec);
187 rec.save_date = ioloop_time;
204 rec.map_uid = mdbox_map_lookup_uid(mbox->storage->map,
208 mbox->ext_id, &rec, NULL);
H A Dmdbox-save.c54 const struct mdbox_mail_index_record *rec; local
59 rec = data;
61 if (mdbox_map_lookup(ctx->mbox->storage->map, rec->map_uid,
250 struct mdbox_mail_index_record rec; local
258 i_zero(&rec);
259 rec.save_date = ioloop_time;
270 rec.map_uid = next_map_uid++;
272 mbox->ext_id, &rec, NULL);
431 struct mdbox_mail_index_record rec; local
442 i_zero(&rec);
[all...]
/dovecot/src/lib-storage/index/
H A Dindex-rebuild.c69 const struct mail_index_record *rec; local
75 rec = mail_index_lookup(view, old_seq);
77 MODIFY_REPLACE, rec->flags);
H A Dindex-sync-pvt.c72 const struct mail_index_record *rec; local
74 rec = mail_index_lookup(ctx->view_shared, seq_shared);
76 rec->flags & mailbox_get_private_flags_mask(ctx->box));
H A Dindex-sync.c437 const struct index_storage_list_index_record *rec; local
450 rec = data;
452 if (rec == NULL || expunged || rec->size == 0 || rec->mtime == 0) {
471 if (rec->size != (st.st_size & 0xffffffffU))
473 if (rec->mtime != (st.st_mtime & 0xffffffffU))
/dovecot/src/login-common/
H A Dlogin-proxy-state.c29 login_proxy_record_hash(const struct login_proxy_record *rec) argument
31 return net_ip_hash(&rec->ip) ^ rec->port;
65 struct login_proxy_record *rec; local
71 while (hash_table_iterate(iter, state->hash, &rec, &rec))
72 i_assert(rec->num_waiting_connections == 0);
86 struct login_proxy_record *rec, key; local
92 rec = hash_table_lookup(state->hash, &key);
93 if (rec
[all...]
/dovecot/src/anvil/
H A Dpenalty.c62 static void penalty_rec_free(struct penalty *penalty, struct penalty_rec *rec) argument
64 DLLIST2_REMOVE(&penalty->oldest, &penalty->newest, rec);
65 if (rec->checksum_is_pointer)
66 i_free(rec->checksum.value_ptr);
67 i_free(rec->ident);
68 i_free(rec);
91 penalty_bump_checksum(struct penalty_rec *rec, unsigned int checksum) argument
96 if (!rec->checksum_is_pointer) {
97 checksums = rec->checksum.value;
100 checksums = rec
117 penalty_add_checksum(struct penalty_rec *rec, unsigned int checksum) argument
149 struct penalty_rec *rec; local
163 struct penalty_rec *rec; local
188 struct penalty_rec *rec; local
235 struct penalty_rec *rec; local
260 const struct penalty_rec *rec; local
[all...]
/dovecot/src/doveadm/dsync/
H A Ddsync-mailbox-tree-fill.c152 const struct mailbox_log_record *rec; local
161 while ((rec = mailbox_log_iter_next(iter)) != NULL) {
162 node = rec->type == MAILBOX_LOG_RECORD_DELETE_MAILBOX ? NULL :
163 dsync_mailbox_tree_find_sha(tree, ns, rec->mailbox_guid);
165 timestamp = mailbox_log_record_get_timestamp(rec);
166 switch (rec->type) {
168 guid_p = rec->mailbox_guid;
177 memcpy(del->guid, rec->mailbox_guid, sizeof(del->guid));
192 memcpy(del->guid, rec->mailbox_guid, sizeof(del->guid));
223 memcpy(del->guid, rec
[all...]

Completed in 107 milliseconds

123