cydir-mail.c revision a757f31393b9d6fc7760a9dec8363404ab3ae576
/* Copyright (c) 2007 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;
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 */
};