/// \param pair File whose dest_fd should be closed
/// \param success If false, the file will be removed from the disk.
///
-/// \return Zero if closing succeeds. On error, -1 is returned and
-/// error message printed.
+/// \return If closing succeeds, false is returned. On error, an error
+/// message is printed and true is returned.
static bool
io_close_dest(file_pair *pair, bool success)
{
/// \param buf Buffer containing the data to be written
/// \param size Size of the buffer; must be at most IO_BUFFER_SIZE
///
-/// \return On success, zero is returned. On error, -1 is returned
-/// and error message printed.
+/// \return On success, false is returned. On error, error message
+/// is printed and true is returned.
extern bool io_write(file_pair *pair, const io_buf *buf, size_t size);