1 .TH ARCHIVE_WRITE_DATA 3 "February 28, 2017" ""
4 \fB\%archive_write_data\fP,
5 \fB\%archive_write_data_block\fP
6 \- functions for creating archives
9 Streaming Archive Library (libarchive, -larchive)
12 \fB#include <archive.h>\fP
16 \fB\%archive_write_data\fP(\fI\%struct\ archive\ *\fP, \fI\%const\ void\ *\fP, \fI\%size_t\fP);
20 \fB\%archive_write_data_block\fP(\fI\%struct\ archive\ *\fP, \fI\%const\ void\ *\fP, \fI\%size_t\ size\fP, \fI\%int64_t\ offset\fP);
25 \fB\%archive_write_data\fP()
26 Write data corresponding to the header just written.
28 \fB\%archive_write_data_block\fP()
29 Write data corresponding to the header just written.
31 \fB\%archive_write_data\fP()
32 except that it performs a seek on the file being
33 written to the specified offset before writing the data.
34 This is useful when restoring sparse files from archive
35 formats that support sparse files.
36 Returns number of bytes written or -1 on error.
37 (Note: This is currently not supported for
45 This function returns the number of bytes actually written, or
46 a negative error code on error.
49 Detailed error codes and textual descriptions are available from the
50 \fB\%archive_errno\fP()
52 \fB\%archive_error_string\fP()
56 In libarchive 3.x, this function sometimes returns
57 zero on success instead of returning the number of bytes written.
58 Specifically, this occurs when writing to an
61 Clients should treat any value less than zero as an error
62 and consider any non-negative value as success.
66 \fBarchive_write_finish_entry\fP(3),
67 \fBarchive_write_set_options\fP(3),