iostream-temp.h revision 8a8a3b43987b5ade914f22765e51c9e3de8179d3
8aacc9e7c84f8376822823ec98c2f551d4919b2eTimo Sirainen /* if o_stream_send_istream() is called with a readable fd, don't
1098fc409a45e7603701dc94635927a673bee0c1Timo Sirainen actually copy the input stream, just have iostream_temp_finish()
fd2f5fbc1f07aa93e2214a28cdf02437fb7d06c8Timo Sirainen return a new iostream pointing to the fd dup()ed */
d22390f33eedbd2413debabc0662dde5241b1aa6Timo Sirainen/* Start writing to given output stream. The data is initially written to
992a13add4eea0810e4db0f042a595dddf85536aTimo Sirainen memory, and later to a temporary file that is immediately unlinked. */
992a13add4eea0810e4db0f042a595dddf85536aTimo Sirainenstruct ostream *iostream_temp_create(const char *temp_path_prefix,
e015e2f7e7f48874495f9df8b0dd192b7ffcb5ccTimo Sirainenstruct ostream *iostream_temp_create_named(const char *temp_path_prefix,
992a13add4eea0810e4db0f042a595dddf85536aTimo Sirainen const char *name);
dd4b5f14b71b01a84af942e720a2d6e5f15ee1a7Timo Sirainenstruct ostream *iostream_temp_create_sized(const char *temp_path_prefix,
dd4b5f14b71b01a84af942e720a2d6e5f15ee1a7Timo Sirainen/* Finished writing to stream. Return input stream for it and free the
72e9e7ad158101d46860b42c4080e894485c78c3Timo Sirainen output stream. (It's also possible to abort iostream-temp by simply
dd4b5f14b71b01a84af942e720a2d6e5f15ee1a7Timo Sirainen destroying the ostream.) */