Files
pkgsrc-ng/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteData3.wiki
2016-11-18 22:39:22 +01:00

40 lines
1.2 KiB
Plaintext

ARCHIVE_WRITE_DATA(3) manual page
== NAME ==
'''archive_write_data'''
- functions for creating archives
== LIBRARY ==
Streaming Archive Library (libarchive, -larchive)
== SYNOPSIS ==
'''<nowiki>#include <archive.h></nowiki>'''
<br>
''la_ssize_t''
<br>
'''archive_write_data'''(''struct archive *'', ''const void *'', ''size_t'');
== DESCRIPTION ==
Write data corresponding to the header just written.
== RETURN VALUES ==
This function returns the number of bytes actually written, or
a negative error code on error.
== ERRORS ==
Detailed error codes and textual descriptions are available from the
'''archive_errno'''()
and
'''archive_error_string'''()
functions.
== BUGS ==
In libarchive 3.x, this function sometimes returns
zero on success instead of returning the number of bytes written.
Specifically, this occurs when writing to an
''archive_write_disk''
handle.
Clients should treat any value less than zero as an error
and consider any non-negative value as success.
== SEE ALSO ==
[[ManPageBsdtar1]],
[[ManPageibarchive3]],
[[ManPagerchiveriteinishntry3]],
[[ManPagerchiveriteetptions3]],
[[ManPageCpio5]],
[[ManPageMtree5]],
[[ManPageTar5]]