cydir-mail.c revision bddd52cb7f3e5a894c080f60750aa76b5aeaf103
/* Copyright (c) 2007-2009 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "istream.h"
#include "index-mail.h"
#include "cydir-storage.h"
#include <fcntl.h>
#include <unistd.h>
{
const char *dir;
}
{
const char *path;
return mail_set_aborted(mail);
p->stats_stat_lookup_count++;
else {
"stat(%s) failed: %m", path);
}
return -1;
}
return 0;
}
{
return 0;
return -1;
return 0;
}
{
return 0;
return (time_t)-1;
return 0;
}
{
return 0;
return -1;
return 0;
}
static int
{
const char *path;
int fd;
if (fd == -1) {
else {
"open(%s) failed: %m", path);
}
return -1;
}
}
}
struct mail_vfuncs cydir_mail_vfuncs = {
cydir_mail_get_physical_size, /* physical = virtual in our case */
};