open_file_t Struct Reference


Data Fields

char * tempname
char * filename
unsigned rename_on_close:1
unsigned binary:1
int fd
FILE * stdio_file

Detailed Description

Represents a file that we're writing to, with support for atomic commit: we can write into a temporary file, and either remove the file on failure, or replace the original file on success.

Field Documentation

Name of the temporary file.

Referenced by finish_writing_to_file_impl(), and start_writing_to_file().

Name of the original file.

Referenced by fdopen_file(), finish_writing_to_file_impl(), and start_writing_to_file().

Are we using the temporary file or not?

Referenced by finish_writing_to_file_impl(), and start_writing_to_file().

Did we open in binary mode?

Referenced by fdopen_file(), and start_writing_to_file().

fd for the open file.

Referenced by fdopen_file(), finish_writing_to_file_impl(), and start_writing_to_file().

stdio wrapper for fd.

Referenced by fdopen_file(), and finish_writing_to_file_impl().


The documentation for this struct was generated from the following file:

Generated on Tue May 25 00:31:16 2010 for tor by  doxygen 1.5.6