ostream.c revision 8cb72c59d5ea4e9e5f638d7ec840bb853f5a188e
/* Copyright (c) 2002-2010 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "istream.h"
#include "ostream-internal.h"
{
}
{
}
{
}
{
}
{
}
{
}
void *context)
{
}
{
}
{
max_size);
} else {
}
}
{
return;
else
}
{
return;
else {
(void)o_stream_flush(stream);
}
}
{
int ret = 1;
return -1;
stream->stream_errno = 0;
}
}
return ret;
}
{
return;
}
{
}
{
}
{
return -1;
stream->stream_errno = 0;
}
} else {
return -1;
}
return 1;
}
{
struct const_iovec iov;
}
unsigned int iov_count)
{
unsigned int i;
return -1;
stream->stream_errno = 0;
for (i = 0, total_size = 0; i < iov_count; i++)
if (total_size == 0)
return 0;
if (ret < 0) {
} else {
}
}
return ret;
}
{
}
{
return -1;
outstream->stream_errno = 0;
return ret;
}
{
int ret;
return -1;
/* stream doesn't support seeking */
return -1;
}
}
return ret;
}
{
}
{
}
{
struct const_iovec iov;
const unsigned char *data;
for (;;) {
block_size-1);
/* all sent */
break;
}
if (ret <= 0) {
if (ret == 0)
break;
return -1;
}
break;
}
}