r14831@catbus: nickm | 2007-08-29 14:17:42 -0400
commit8408122222bda77347e46dedafc12abcd2b45e1e
authorNick Mathewson <nickm@torproject.org>
Wed, 29 Aug 2007 19:02:37 +0000 (29 19:02 +0000)
committerNick Mathewson <nickm@torproject.org>
Wed, 29 Aug 2007 19:02:37 +0000 (29 19:02 +0000)
treef2f29a1c3194f5da885334375813c858d9534894
parent91f83cfc2d380aa76fd049d13cf9fb097fecaab6
 r14831@catbus:  nickm | 2007-08-29 14:17:42 -0400
 Refactor write_chunks_to_file_impl: break out the "pick a temporary name if it makes sense, and open the right filename" logic and the "close the file and unlink or rename if necessary" logic.  This will let us write big files in a smarter way than "Build a big string" or "make a list of chunks", once we get around to using it.

svn:r11300
src/common/util.c
src/common/util.h