tor
master
|
Data Fields | |
char * | tempname |
char * | filename |
unsigned | rename_on_close:1 |
unsigned | binary:1 |
int | fd |
FILE * | stdio_file |
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.
unsigned binary |
Did we open in binary mode?
int fd |
fd for the open file.
char* filename |
Name of the original file.
unsigned rename_on_close |
Are we using the temporary file or not?
FILE* stdio_file |
stdio wrapper for fd.
char* tempname |
Name of the temporary file.