1ZIP_SOURCE_ROLLBACK_W... BSD Library Functions Manual ZIP_SOURCE_ROLLBACK_W...
2
4 zip_source_rollback_write — undo changes to zip source
5
7 libzip (-lzip)
8
10 #include <zip.h>
11
12 void
13 zip_source_rollback_write(zip_source_t *source);
14
16 The function zip_source_rollback_write() reverts changes written to
17 source, restoring the data before zip_source_begin_write(3) was called.
18 Usually this removes temporary files or frees buffers.
19
21 Upon successful completion 0 is returned. Otherwise, -1 is returned and
22 the error information in source is set to indicate the error.
23
25 libzip(3), zip_source(3), zip_source_begin_write(3),
26 zip_source_commit_write(3), zip_source_seek_write(3),
27 zip_source_tell_write(3), zip_source_write(3)
28
30 zip_source_rollback_write() was added in libzip 1.0.
31
33 Dieter Baron <dillo@nih.at> and Thomas Klausner <tk@giga.or.at>
34
35BSD December 18, 2017 BSD