Lines Matching defs:ostream
5 #include "ostream-private.h"
6 #include "ostream-failure-at.h"
9 struct ostream_private ostream;
21 o_stream_unref(&fstream->ostream.parent);
36 if (stream->ostream.blocking) {
37 /* blocking ostream must return either a full success or a
49 if (fstream->failure_offset <= stream->ostream.offset + blocking_bytes_count) {
52 stream->ostream.stream_errno = errno = EIO;
56 bytes_until_failure = fstream->failure_offset - stream->ostream.offset;
75 stream->ostream.offset += ret;
88 stream->ostream.stream_errno = errno = EIO;
94 struct ostream *
95 o_stream_create_failure_at(struct ostream *output, uoff_t failure_offset,
101 fstream->ostream.sendv = o_stream_failure_at_sendv;
102 fstream->ostream.flush = o_stream_failure_at_flush;
103 fstream->ostream.iostream.destroy = o_stream_failure_at_destroy;
106 return o_stream_create(&fstream->ostream, output,
110 struct ostream *
111 o_stream_create_failure_at_flush(struct ostream *output, const char *error_string)
116 fstream->ostream.flush = o_stream_failure_at_flush;
117 fstream->ostream.iostream.destroy = o_stream_failure_at_destroy;
120 return o_stream_create(&fstream->ostream, output,