/* Copyright (c) 2013-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "istream-private.h"
#include "istream-try.h"
struct try_istream {
unsigned int try_input_count;
unsigned int try_idx;
};
{
for (unsigned int i = 0; i < tstream->try_input_count; i++) {
}
tstream->try_input_count = 0;
}
bool close_parent)
{
if (close_parent) {
for (unsigned int i = 0; i < tstream->try_input_count; i++) {
}
}
}
{
/* See if one of the parent istreams have their buffer full.
This is mainly intended to check with istream-tee whether its
parent is full. That means that the try_input has already seen
a full buffer of input, but it hasn't decided to return anything
yet. But it also hasn't failed, so we'll assume that the input is
correct for it and it simply needs a lot more input before it can
return anything (e.g. istream-bzlib). */
return TRUE;
}
return FALSE;
}
{
int ret;
ret = 1;
if (ret > 0) {
return 1;
}
if (ret == 0)
return 0;
"Unexpected error while detecting stream format: %s",
return -1;
}
}
/* All streams failed with EINVAL. */
"Failed to detect stream format");
return -1;
}
static ssize_t
{
int ret;
return ret;
}
}
{
unsigned int count;
}
}