iostream-rawlog.c revision 1f696b6f364516a2d79f946ca88149bafdc9d5ad
/* Copyright (c) 2011 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "hostpid.h"
#include "ioloop.h"
#include "write-full.h"
#include "time-util.h"
#include "istream.h"
#include "ostream.h"
#include "istream-rawlog.h"
#include "ostream-rawlog.h"
#include "iostream-private.h"
#include "iostream-rawlog-private.h"
#include "iostream-rawlog.h"
#include <unistd.h>
#include <fcntl.h>
static void
{
return;
i_error("rawlog_istream.write(%s) failed: %m",
}
}
{
(unsigned long)ioloop_timeval.tv_sec,
(unsigned int)ioloop_timeval.tv_usec);
}
{
if (rstream->write_timestamp)
start = i;
}
}
}
{
i_error("rawlog_istream.close(%s) failed: %m",
}
}
}
{
static unsigned int counter = 0;
struct ostream *old_output;
counter++;
if (in_fd == -1) {
return -1;
}
if (out_fd == -1) {
return -1;
}
old_output = *output;
return 0;
}