ostream-buffer.c revision bcb4e51a409d94ae670de96afb8483a4f7855294
/* Copyright (c) 2002-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "buffer.h"
#include "ostream-private.h"
struct buffer_ostream {
struct ostream_private ostream;
bool seeked;
};
{
return 1;
}
static int
{
return 0;
}
static ssize_t
{
unsigned int i;
for (i = 0; i < iov_count; i++) {
ret += n;
break;
}
return ret;
}
static size_t
{
}
{
struct buffer_ostream *bstream;
/* we don't set buffer as blocking, because if max_buffer_size is
changed it can get truncated. this is used in various places in
unit tests. */
return output;
}