mail-cache.c revision ef5fb27361cc5e15766e85e28355750ff04b13c9
dc0d8d65d35787d30a275895ccad8d8e1b58a5ednd/* Copyright (c) 2003-2009 Dovecot authors, see the included COPYING file */
#include "file-cache.h"
#include "mmap-util.h"
#include "write-full.h"
#include "mail-cache-private.h"
#include <unistd.h>
const char *function)
T_BEGIN {
} T_END;
return FALSE;
return FALSE;
return TRUE;
return TRUE;
return TRUE;
return TRUE;
return FALSE;
return FALSE;
unsigned int cont_percentage;
return FALSE;
return FALSE;
return FALSE;
return FALSE;
return FALSE;
return TRUE;
return FALSE;
return FALSE;
return FALSE;
return TRUE;
if (size == 0)
if (ret < 0) {
if (offset == 0) {
if (offset == 0)
if (offset == 0)
int ret;
if (ret > 0)
if (ret < 0) {
return ret;
return cache;
return cache;
return cache;
int ret;
if (ret < 0) {
if (ret <= 0)
return ret;
TRUE);
bool nonblock)
int i, ret;
(require_same_reset_id || i == 0)) {
ret = 0;
ret = 0;
if (ret > 0) {
sizeof(struct mail_cache_header));
return ret;
int ret = 0;
return ret;
struct mail_cache_view *
return view;
&message_count)) {
return first_new_seq;