ostream-private.h revision 6adf683655750bcb809275cd65dc75fd12214198
#ifndef OSTREAM_PRIVATE_H
#define OSTREAM_PRIVATE_H
#include "ostream.h"
#include "iostream-private.h"
struct ostream_private {
/* inheritance: */
struct iostream_private iostream;
/* methods: */
void *context);
const struct const_iovec *iov,
unsigned int iov_count);
/* data: */
int fd;
void *context;
unsigned int corked:1;
unsigned int closing:1;
unsigned int last_errors_not_checked:1;
unsigned int error_handling_disabled:1;
unsigned int noverflow:1;
};
struct ostream *
ATTR_NULL(2);
/* This should be called before sending data to parent stream. It makes sure
that the parent stream's output buffer doesn't become too large.
Returns 1 if more data can be safely added, 0 if not, -1 if error. */
#endif