ARCHIVE_WRITE_BLOCKSIZE(3) | Library Functions Manual | ARCHIVE_WRITE_BLOCKSIZE(3) |
archive_write_get_bytes_per_block
,
archive_write_set_bytes_per_block
,
archive_write_get_bytes_in_last_block
,
archive_write_set_bytes_in_last_block
—
functions for creating archives
Streaming Archive Library (libarchive, -larchive)
#include
<archive.h>
int
archive_write_get_bytes_per_block
(struct
archive *);
int
archive_write_set_bytes_per_block
(struct
archive *, int
bytes_per_block);
int
archive_write_get_bytes_in_last_block
(struct
archive *);
int
archive_write_set_bytes_in_last_block
(struct
archive *,
int);
archive_write_set_bytes_per_block
()archive_write_get_bytes_per_block
()archive_write_set_bytes_in_last_block
()archive_write_open_filename
()
will set this based on the file type). Unlike the other
“set” functions, this function can be called after the
archive is opened.archive_write_get_bytes_in_last_block
()archive_write_set_bytes_per_block
() and
archive_write_set_bytes_in_last_block
() return
ARCHIVE_OK
on success, or
ARCHIVE_FATAL
.
archive_write_get_bytes_per_block
() and
archive_write_get_bytes_in_last_block
() return
currently configured block size (-1
indicates the
default block size), or ARCHIVE_FATAL
.
Detailed error codes and textual descriptions are available from
the archive_errno
() and
archive_error_string
() functions.
tar(1), archive_write_set_options(3), libarchive(3), cpio(5), mtree(5), tar(5)
February 2, 2012 | x86_64 |