diff options
author | Kevin Butler <haqkrs@gmail.com> | 2013-09-01 00:24:07 +0100 |
---|---|---|
committer | Kevin Butler <haqkrs@gmail.com> | 2013-09-01 00:24:07 +0100 |
commit | 1bdb391ed0df979bc29ed1b62e7c0f3c9494a8d7 (patch) | |
tree | 1fc47f453def9cba2da8294236a26613ad0163bc /src/common/util.h | |
parent | 00bcc25d05dc0273323a2cae20c6aa62afd4b50a (diff) | |
download | tor-1bdb391ed0df979bc29ed1b62e7c0f3c9494a8d7.tar.gz tor-1bdb391ed0df979bc29ed1b62e7c0f3c9494a8d7.zip |
Added no_tempfile parameter to write_chunks_to_file to do non-atomic writes. Implements #1376.
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.h b/src/common/util.h index 090243ea29..24428ad9dc 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -365,7 +365,7 @@ typedef struct sized_chunk_t { size_t len; } sized_chunk_t; int write_chunks_to_file(const char *fname, const struct smartlist_t *chunks, - int bin); + int bin, int no_tempfile); int append_bytes_to_file(const char *fname, const char *str, size_t len, int bin); int write_bytes_to_new_file(const char *fname, const char *str, size_t len, |