mail-index-map.c revision 91add6e26ed2b91e15276c96ffe02d9f71476d71
830N/A#include "nfs-workarounds.h"
830N/A#include "mmap-util.h"
830N/A#include "read-full.h"
830N/A#include "mail-index-private.h"
830N/A#include "mail-index-sync-private.h"
830N/A#include "mail-transaction-log-private.h"
830N/A unsigned int initial_count)
830N/A#define EXT_GLOBAL_ALLOC_SIZE \
830N/A#define EXT_PER_ALLOC_SIZE \
unsigned int i, old_count;
const char *name;
for (i = 0; i < old_count; i++)
t_push();
t_pop();
t_pop();
t_pop();
t_pop();
t_pop();
#ifndef WORDS_BIGENDIAN
return FALSE;
return FALSE;
return FALSE;
return FALSE;
return FALSE;
return TRUE;
sizeof(struct mail_index_record));
unsigned int records_count;
int ret;
pos = 0;
if (ret > 0)
return ret;
const void *buf;
pos);
if (ret > 0) {
extra = 0;
extra);
if (ret < 0) {
if (ret == 0) {
unsigned int i, count;
int ret;
for (i = 0; i < count; i++)
ret = 0;
if (ret <= 0) {
if (ret == 0) {
return ret;
#ifndef WORDS_BIGENDIAN
unsigned int lock_id;
bool use_mmap;
int ret;
if (ret <= 0) {
if (ret < 0)
if (use_mmap) {
if (ret > 0) {
if (ret >= 0) {
if (ret > 0) {
if (ret == 0)
else if (ret < 0)
ret = 0;
if (ret <= 0) {
return ret;
int ret;
ret = 0;
if (ret == 0) {
return ret;
unsigned int i, count;
for (i = 0; i < count; i++) {
i_unreached();
unsigned int record_size)
static struct mail_index_record_map *
return rec_map;
unsigned int i, count;
for (i = 0; i < count; i++) {
return mem_map;
return FALSE;