#ifndef IOSTREAM_TEMP_H
#define IOSTREAM_TEMP_H
enum iostream_temp_flags {
/* if o_stream_send_istream() is called with a readable fd, don't
actually copy the input stream, just have iostream_temp_finish()
return a new iostream pointing to the fd dup()ed */
};
/* Start writing to given output stream. The data is initially written to
memory, and later to a temporary file that is immediately unlinked. */
enum iostream_temp_flags flags);
enum iostream_temp_flags flags,
const char *name);
enum iostream_temp_flags flags,
const char *name,
/* Finished writing to stream. Return input stream for it and free the
output stream. (It's also possible to abort iostream-temp by simply
destroying the ostream.) */
/* For internal testing: */
#endif