istream-limit.c revision bcd286622779a93f809b11993db0550f8c7cc9b5
/* Copyright (c) 2003-2017 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "istream-private.h"
struct limit_istream {
struct istream_private istream;
};
{
/* get to same position in parent stream */
}
}
{
return -1;
}
ret = 0;
else do {
return -2;
}
}
(ret == 0 ? 0 : -1);
return ret;
}
static int
{
return -1;
}
return 0;
}
{
return 1;
}
return -1;
return 0;
return 1;
}
{
struct limit_istream *lstream;
i_stream_get_fd(input), 0);
}
{
return ret;
}