Searched refs:mmap (Results 1 - 11 of 11) sorted by relevance

/dovecot/src/lib-index/
H A Dmail-index-modseq.c36 struct mail_index_map_modseq *mmap; member in struct:mail_index_modseq_sync
133 struct mail_index_map_modseq *mmap = view->map->rec_map->modseq; local
136 if (mmap != NULL)
137 return mmap;
144 mmap = i_new(struct mail_index_map_modseq, 1);
145 i_array_init(&mmap->metadata_modseqs,
148 view->map->rec_map->modseq = mmap;
149 return mmap;
154 struct mail_index_map_modseq *mmap = mail_index_map_modseq(view); local
161 if (mmap
192 struct mail_index_map_modseq *mmap = mail_index_map_modseq(view); local
217 modseq_idx_lookup(struct mail_index_map_modseq *mmap, unsigned int idx, uint32_t seq) argument
236 struct mail_index_map_modseq *mmap = mail_index_map_modseq(view); local
262 struct mail_index_map_modseq *mmap = mail_index_map_modseq(view); local
638 mail_index_map_modseq_clone(const struct mail_index_map_modseq *mmap) argument
664 struct mail_index_map_modseq *mmap = *_mmap; local
[all...]
H A Dmail-index-modseq.h62 mail_index_map_modseq_clone(const struct mail_index_map_modseq *mmap);
63 void mail_index_map_modseq_free(struct mail_index_map_modseq **mmap);
H A Dmail-index-map-read.c6 #include "mmap-util.h"
47 rec_map->mmap_base = mmap(NULL, file_size, PROT_READ | PROT_WRITE,
54 "mmap(size=%"PRIuUOFF_T")", file_size));
341 mmap isn't disabled don't use it unless the file is large enough */
H A Dmail-transaction-log-file.c10 #include "mmap-util.h"
1671 i_assert(!retry); /* retry happens only with mmap */
1737 file->mmap_base = mmap(NULL, file->mmap_size, PROT_READ, MAP_SHARED,
1744 "mmap(size=%"PRIuSIZE_T")", file->mmap_size));
1746 *reason_r = t_strdup_printf("mmap(size=%"PRIuSIZE_T") failed: %m",
1787 /* we are going to mmap() this file, but it's not necessarily
1813 /* size changed, re-mmap */
1931 /* and lose the mmap */
/dovecot/src/lib/
H A Dmmap-util.c4 #include "mmap-util.h"
29 return mmap(NULL, *length, prot, MAP_SHARED, fd, 0);
H A Dmmap-anon.c6 #include "mmap-util.h"
39 /* mmap()ing /dev/zero should be the same with some platforms */
42 i_fatal("Can't open /dev/zero for creating anonymous mmap: %m");
59 the full mmap. also allocate only page-aligned mmap sizes. */
62 base = mmap(NULL, length, PROT_READ | PROT_WRITE,
168 return mmap(NULL, length, PROT_READ | PROT_WRITE,
H A Dtest-hash-method.c4 #include "mmap-util.h"
41 buf = mmap(NULL, buf_size*2, PROT_READ | PROT_WRITE,
H A Distream-mmap.c6 #include "mmap-util.h"
85 /* more bytes available without needing to mmap() */
114 /* don't bother even trying mmap */
118 mmap(NULL, stream->buffer_size, PROT_READ, MAP_PRIVATE,
127 "mmap() failed: %m");
128 i_error("mmap_istream.mmap(%s) failed: %m",
/dovecot/src/doveadm/
H A Ddoveadm-dump-thread.c4 #include "mmap-util.h"
110 map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
112 i_fatal("mmap() failed: %m");
/dovecot/src/plugins/fts-squat/
H A Dsquat-uidlist.c12 #include "mmap-util.h"
421 uidlist->mmap_base = mmap(NULL, uidlist->mmap_size,
427 i_error("mmap(%s) failed: %m", uidlist->path);
H A Dsquat-trie.c1462 trie->mmap_base = mmap(NULL, trie->mmap_size,
1468 i_error("mmap(%s) failed: %m", trie->path);

Completed in 24 milliseconds