User Tools

Site Tools


solaris:archive_write_data.3archive

ARCHIVE_WRITE_DATA


NAME

archive_write_data - functions for creating archives

LIBRARY

Streaming Archive Library (libarchive, -larchive)

SYNOPSIS

#include <archive.h>
la_ssize_t

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 Vt archive_write_disk handle. Clients should treat any value less than zero as an error and consider any non-negative value as success.

ATTRIBUTES

See attributes(7) for descriptions of the following attributes:

SEE ALSO

NOTES

This software was built from source available at https://github.com/oracle/solaris-userland. The original community source was downloaded from http://www.libarchive.org/downloads/libarchive-3.3.1.tar.gz

Further information about this software can be found on the open source community website at http://www.libarchive.org/.


solaris/archive_write_data.3archive.txt · Last modified: 2023/07/19 08:58 by A User Not Logged in