istream.c revision e4c81823af1fc43ca3f2ce9eb4af7fc8f57b13a5
2d0611ffc9f91c5fc2ddccb93f9a3d17791ae650takashi/* Copyright (c) 2002-2009 Dovecot authors, see the included COPYING file */
switch (ret) {
return ret;
return TRUE;
return FALSE;
return NULL;
char *ret;
end = i;
return ret;
return NULL;
char *ret_buf;
size_t i;
return NULL;
return NULL;
return ret_buf;
char *line;
return line;
*size_r = 0;
return NULL;
*size_r = 0;
return NULL;
if (ret > 0)
} while (ret > 0);
if (ret == 0) {
if (read_more) {
return FALSE;
return TRUE;
static const struct stat *
struct istream *
#ifdef STREAM_TEST
/* gcc istream.c -o teststream liblib.a -Wall -DHAVE_CONFIG_H -DSTREAM_TEST -g */
#include <fcntl.h>
#include <unistd.h>
#include "ostream.h"
size_t i;
for (i = 0; i < size; i++)
int main(void)
const unsigned char *data;
lib_init();
if (fd1 < 0)
if (fd2 < 0)
for (i = 0; i < sizeof(buf); i++)