from small one page howto to huge articles all in one place
 

search text in:





Poll
Which screen resolution do you use?










poll results

Last additions:
using iotop to find disk usage hogs

using iotop to find disk usage hogs

words:

887

views:

195651

userrating:

average rating: 1.7 (102 votes) (1=very good 6=terrible)


May 25th. 2007:
Words

486

Views

252057

why adblockers are bad


Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

words:

161

views:

140922

userrating:

average rating: 1.4 (42 votes) (1=very good 6=terrible)


April, 26th. 2006:

Druckversion
You are here: manpages





ARCHIVE_READ_DATA

Section: C Library Functions (3)
Index Return to Main Contents

BSD mandoc
 

NAME

archive_read_data archive_read_data_block archive_read_data_skip archive_read_data_into_fd - functions for reading streaming archives  

LIBRARY

Streaming Archive Library (libarchive, -larchive)  

SYNOPSIS

In archive.h Ft la_ssize_t Fn archive_read_data struct archive * void *buff size_t len Ft int Fo archive_read_data_block Fa struct archive * Fa const void **buff Fa size_t *len Fa off_t *offset Fc Ft int Fn archive_read_data_skip struct archive * Ft int Fn archive_read_data_into_fd struct archive * int fd  

DESCRIPTION

Fn archive_read_data
Read data associated with the header just read. Internally, this is a convenience function that calls Fn archive_read_data_block and fills any gaps with nulls so that callers see a single continuous stream of data.
Fn archive_read_data_block
Return the next available block of data for this entry. Unlike Fn archive_read_data , the Fn archive_read_data_block function avoids copying data and allows you to correctly handle sparse files, as supported by some archive formats. The library guarantees that offsets will increase and that blocks will not overlap. Note that the blocks returned from this function can be much larger than the block size read from disk, due to compression and internal buffer optimizations.
Fn archive_read_data_skip
A convenience function that repeatedly calls Fn archive_read_data_block to skip all of the data for this archive entry. Note that this function is invoked automatically by Fn archive_read_next_header2 if the previous entry was not completely consumed.
Fn archive_read_data_into_fd
A convenience function that repeatedly calls Fn archive_read_data_block to copy the entire entry to the provided file descriptor.

 

RETURN VALUES

Most functions return zero on success, non-zero on error. The possible return codes include: ARCHIVE_OK (the operation succeeded), ARCHIVE_WARN (the operation succeeded but a non-critical error was encountered), ARCHIVE_EOF (end-of-archive was encountered), ARCHIVE_RETRY (the operation failed but can be retried), and ARCHIVE_FATAL (there was a fatal error; the archive should be closed immediately).

Fn archive_read_data returns a count of bytes actually read or zero at the end of the entry. On error, a value of ARCHIVE_FATAL ARCHIVE_WARN or ARCHIVE_RETRY is returned.  

ERRORS

Detailed error codes and textual descriptions are available from the Fn archive_errno and Fn archive_error_string functions.  

SEE ALSO

tar(1), libarchive(3), archive_read3, archive_read_extract3, archive_read_filter3, archive_read_format3, archive_read_header3, archive_read_open3, archive_read_set_options3, archive_util3, tar(5)


 

Index

NAME
LIBRARY
SYNOPSIS
DESCRIPTION
RETURN VALUES
ERRORS
SEE ALSO





Support us on Content Nation
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2020 Sascha Nitsch Unternehmensberatung GmbH
Valid XHTML1.1 : Valid CSS : buttonmaker
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 14.4 ms