|
Packit Service |
1d0348 |
ARCHIVE_WRITE_DATA(3) BSD Library Functions Manual ARCHIVE_WRITE_DATA(3)
|
|
Packit Service |
1d0348 |
|
|
Packit Service |
1d0348 |
NAME
|
|
Packit Service |
1d0348 |
archive_write_data, archive_write_data_block — functions for creating ar‐
|
|
Packit Service |
1d0348 |
chives
|
|
Packit Service |
1d0348 |
|
|
Packit Service |
1d0348 |
LIBRARY
|
|
Packit Service |
1d0348 |
Streaming Archive Library (libarchive, -larchive)
|
|
Packit Service |
1d0348 |
|
|
Packit Service |
1d0348 |
SYNOPSIS
|
|
Packit Service |
1d0348 |
#include <archive.h>
|
|
Packit Service |
1d0348 |
|
|
Packit Service |
1d0348 |
la_ssize_t
|
|
Packit Service |
1d0348 |
archive_write_data(struct archive *, const void *, size_t);
|
|
Packit Service |
1d0348 |
|
|
Packit Service |
1d0348 |
la_ssize_t
|
|
Packit Service |
1d0348 |
archive_write_data_block(struct archive *, const void *, size_t size,
|
|
Packit Service |
1d0348 |
int64_t offset);
|
|
Packit Service |
1d0348 |
|
|
Packit Service |
1d0348 |
DESCRIPTION
|
|
Packit Service |
1d0348 |
archive_write_data()
|
|
Packit Service |
1d0348 |
Write data corresponding to the header just written.
|
|
Packit Service |
1d0348 |
|
|
Packit Service |
1d0348 |
archive_write_data_block()
|
|
Packit Service |
1d0348 |
Write data corresponding to the header just written. This is
|
|
Packit Service |
1d0348 |
like archive_write_data() except that it performs a seek on the
|
|
Packit Service |
1d0348 |
file being written to the specified offset before writing the
|
|
Packit Service |
1d0348 |
data. This is useful when restoring sparse files from archive
|
|
Packit Service |
1d0348 |
formats that support sparse files. Returns number of bytes writ‐
|
|
Packit Service |
1d0348 |
ten or -1 on error. (Note: This is currently not supported for
|
|
Packit Service |
1d0348 |
archive_write handles, only for archive_write_disk handles.
|
|
Packit Service |
1d0348 |
|
|
Packit Service |
1d0348 |
RETURN VALUES
|
|
Packit Service |
1d0348 |
This function returns the number of bytes actually written, or a negative
|
|
Packit Service |
1d0348 |
error code on error.
|
|
Packit Service |
1d0348 |
|
|
Packit Service |
1d0348 |
ERRORS
|
|
Packit Service |
1d0348 |
Detailed error codes and textual descriptions are available from the
|
|
Packit Service |
1d0348 |
archive_errno() and archive_error_string() functions.
|
|
Packit Service |
1d0348 |
|
|
Packit Service |
1d0348 |
BUGS
|
|
Packit Service |
1d0348 |
In libarchive 3.x, this function sometimes returns zero on success
|
|
Packit Service |
1d0348 |
instead of returning the number of bytes written. Specifically, this
|
|
Packit Service |
1d0348 |
occurs when writing to an archive_write_disk handle. Clients should
|
|
Packit Service |
1d0348 |
treat any value less than zero as an error and consider any non-negative
|
|
Packit Service |
1d0348 |
value as success.
|
|
Packit Service |
1d0348 |
|
|
Packit Service |
1d0348 |
SEE ALSO
|
|
Packit Service |
1d0348 |
tar(1), libarchive(3), archive_write_finish_entry(3),
|
|
Packit Service |
1d0348 |
archive_write_set_options(3), cpio(5), mtree(5), tar(5)
|
|
Packit Service |
1d0348 |
|
|
Packit Service |
1d0348 |
BSD February 28, 2017 BSD
|