ostream.c revision d6684856fb99e51bc22a6346e08b2d81c996f963
4a6f9ed8e5412508dcba1eabb58a3680ad5e9b68Timo Sirainen/* Copyright (c) 2002-2017 Dovecot authors, see the included COPYING file */
4a6f9ed8e5412508dcba1eabb58a3680ad5e9b68Timo Sirainenvoid o_stream_set_name(struct ostream *stream, const char *name)
c0435c854a0e7246373b9752d163095cc4fbe985Timo Sirainen stream->real_stream->iostream.name = i_strdup(name);
4d3e576109a91270c04821f8d727cd1afec8c801Timo Sirainenconst char *o_stream_get_name(struct ostream *stream)
4a6f9ed8e5412508dcba1eabb58a3680ad5e9b68Timo Sirainen while (stream->real_stream->iostream.name == NULL) {
struct ostream *s;
if (s->stream_errno == 0)
void (*callback)())
callback);
void *context)
return ret;
static ssize_t
if (total_size == 0)
if (ret < 0) {
return ret;
unsigned int iov_count)
bool overflow;
unsigned int iov_count)
bool overflow;
if (overflow)
switch (res) {
return res;
return res;
return res;
i_unreached();
int ret;
return ret;
const unsigned char *data;
else if (ret == 0)
bool close_parent)
if (set) {
int ret;
return ret;
void *context)
static size_t
static ssize_t
return ret;
static enum ostream_send_istream_result
struct ostream *
return output;
struct ostream *
return output;