head	1.9;
access;
symbols
	libarchive-3-8-10:1.1.1.7
	pkgsrc-2026Q3:1.8.0.16
	pkgsrc-2026Q3-base:1.8
	libarchive-3-8-9:1.1.1.6
	libarchive-3-8-8:1.1.1.6
	pkgsrc-2026Q2:1.8.0.14
	pkgsrc-2026Q2-base:1.8
	libarchive-3-8-7:1.1.1.6
	libarchive-3-8-6:1.1.1.6
	pkgsrc-2026Q1:1.8.0.12
	pkgsrc-2026Q1-base:1.8
	libarchive-3-8-5:1.1.1.6
	libarchive-3-8-4:1.1.1.6
	pkgsrc-2025Q4:1.8.0.10
	pkgsrc-2025Q4-base:1.8
	libarchive-3-8-3:1.1.1.6
	libarchive-3-8-2:1.1.1.6
	pkgsrc-2025Q3:1.8.0.8
	pkgsrc-2025Q3-base:1.8
	libarchive-3-8-1:1.1.1.6
	pkgsrc-2025Q2:1.8.0.6
	pkgsrc-2025Q2-base:1.8
	libarchive-3-8-0:1.1.1.6
	libarchive-3-7-9:1.1.1.6
	pkgsrc-2025Q1:1.8.0.4
	pkgsrc-2025Q1-base:1.8
	pkgsrc-2024Q4:1.8.0.2
	pkgsrc-2024Q4-base:1.8
	libarchive-3-7-7:1.1.1.6
	pkgsrc-2024Q3:1.7.0.6
	pkgsrc-2024Q3-base:1.7
	libarchive-3-7-5:1.1.1.5
	pkgsrc-2024Q2:1.7.0.4
	pkgsrc-2024Q2-base:1.7
	libarchive-3-7-4:1.1.1.5
	libarchive-3-7-3:1.1.1.5
	pkgsrc-2024Q1:1.7.0.2
	pkgsrc-2024Q1-base:1.7
	libarchive-3-7-2:1.1.1.5
	pkgsrc-2023Q4:1.6.0.30
	pkgsrc-2023Q4-base:1.6
	pkgsrc-2023Q3:1.6.0.28
	pkgsrc-2023Q3-base:1.6
	pkgsrc-2023Q2:1.6.0.26
	pkgsrc-2023Q2-base:1.6
	pkgsrc-2023Q1:1.6.0.24
	pkgsrc-2023Q1-base:1.6
	pkgsrc-2022Q4:1.6.0.22
	pkgsrc-2022Q4-base:1.6
	pkgsrc-2022Q3:1.6.0.20
	pkgsrc-2022Q3-base:1.6
	pkgsrc-2022Q2:1.6.0.18
	pkgsrc-2022Q2-base:1.6
	pkgsrc-2022Q1:1.6.0.16
	pkgsrc-2022Q1-base:1.6
	pkgsrc-2021Q4:1.6.0.14
	pkgsrc-2021Q4-base:1.6
	pkgsrc-2021Q3:1.6.0.12
	pkgsrc-2021Q3-base:1.6
	pkgsrc-2021Q2:1.6.0.10
	pkgsrc-2021Q2-base:1.6
	pkgsrc-2021Q1:1.6.0.8
	pkgsrc-2021Q1-base:1.6
	pkgsrc-2020Q4:1.6.0.6
	pkgsrc-2020Q4-base:1.6
	pkgsrc-2020Q3:1.6.0.4
	pkgsrc-2020Q3-base:1.6
	pkgsrc-2020Q2:1.6.0.2
	pkgsrc-2020Q2-base:1.6
	pkgsrc-2020Q1:1.5.0.4
	pkgsrc-2020Q1-base:1.5
	pkgsrc-2019Q4:1.5.0.6
	pkgsrc-2019Q4-base:1.5
	pkgsrc-2019Q3:1.5.0.2
	pkgsrc-2019Q3-base:1.5
	libarchive-3-4-0:1.1.1.4
	libarchive-3-3-3:1.1.1.3
	pkgsrc-2019Q2:1.4.0.18
	pkgsrc-2019Q2-base:1.4
	pkgsrc-2019Q1:1.4.0.16
	pkgsrc-2019Q1-base:1.4
	pkgsrc-2018Q4:1.4.0.14
	pkgsrc-2018Q4-base:1.4
	pkgsrc-2018Q3:1.4.0.12
	pkgsrc-2018Q3-base:1.4
	pkgsrc-2018Q2:1.4.0.10
	pkgsrc-2018Q2-base:1.4
	pkgsrc-2018Q1:1.4.0.8
	pkgsrc-2018Q1-base:1.4
	pkgsrc-2017Q4:1.4.0.6
	pkgsrc-2017Q4-base:1.4
	pkgsrc-2017Q3:1.4.0.4
	pkgsrc-2017Q3-base:1.4
	libarchive-3-3-2:1.1.1.3
	pkgsrc-2017Q2:1.3.0.4
	pkgsrc-2017Q2-base:1.3
	pkgsrc-2017Q1:1.3.0.2
	pkgsrc-2017Q1-base:1.3
	libarchive-3-3-1:1.1.1.2
	pkgsrc-2016Q4:1.2.0.6
	pkgsrc-2016Q4-base:1.2
	pkgsrc-2016Q3:1.2.0.4
	pkgsrc-2016Q3-base:1.2
	pkgsrc-2016Q2:1.2.0.2
	pkgsrc-2016Q2-base:1.2
	libarchive-3-2-1:1.1.1.1
	KIENTZLE:1.1.1
	pkgsrc-2016Q1:1.1.0.10
	pkgsrc-2016Q1-base:1.1
	pkgsrc-2015Q4:1.1.0.8
	pkgsrc-2015Q4-base:1.1
	pkgsrc-2015Q3:1.1.0.6
	pkgsrc-2015Q3-base:1.1
	pkgsrc-2015Q2:1.1.0.4
	pkgsrc-2015Q2-base:1.1
	pkgsrc-2015Q1:1.1.0.2
	pkgsrc-2015Q1-base:1.1;
locks; strict;
comment	@# @;


1.9
date	2026.10.19.12.05.17;	author adam;	state Exp;
branches;
next	1.8;
commitid	R3KJfVxz3NuPb50H;

1.8
date	2024.10.19.05.39.57;	author adam;	state Exp;
branches;
next	1.7;
commitid	fYRSlpIWMYluweuF;

1.7
date	2024.01.18.18.00.16;	author adam;	state Exp;
branches;
next	1.6;
commitid	hNXpsHx3SuHqsXUE;

1.6
date	2020.05.26.09.16.41;	author nia;	state Exp;
branches;
next	1.5;
commitid	nNhsdZACz3PjmJ9C;

1.5
date	2019.09.22.09.55.08;	author joerg;	state Exp;
branches;
next	1.4;
commitid	FdPvRjF4OzwBwZDB;

1.4
date	2017.08.01.22.26.23;	author joerg;	state Exp;
branches;
next	1.3;
commitid	32clTfkmVE8bPy1A;

1.3
date	2017.02.25.21.11.19;	author joerg;	state Exp;
branches;
next	1.2;
commitid	rW8QfCWrsCO1snHz;

1.2
date	2016.06.20.17.24.57;	author joerg;	state Exp;
branches;
next	1.1;
commitid	ArUvympBjfBseebz;

1.1
date	2015.01.17.12.44.49;	author adam;	state Exp;
branches
	1.1.1.1;
next	;
commitid	yy7e1hLrfmA2pn6y;

1.1.1.1
date	2016.06.20.17.12.01;	author joerg;	state Exp;
branches;
next	1.1.1.2;
commitid	rRgm3BqbmbI8aebz;

1.1.1.2
date	2017.02.25.20.54.12;	author joerg;	state Exp;
branches;
next	1.1.1.3;
commitid	ReqPI0ibLYjdmnHz;

1.1.1.3
date	2017.08.01.22.21.12;	author joerg;	state Exp;
branches;
next	1.1.1.4;
commitid	XQwPAFJku336Ny1A;

1.1.1.4
date	2019.09.22.09.51.33;	author joerg;	state Exp;
branches;
next	1.1.1.5;
commitid	5kDbfPbiV3INvZDB;

1.1.1.5
date	2024.01.18.17.37.46;	author adam;	state Exp;
branches;
next	1.1.1.6;
commitid	zDULEPUODGjTkXUE;

1.1.1.6
date	2024.10.19.05.27.34;	author adam;	state Exp;
branches;
next	1.1.1.7;
commitid	v1iXM4j1Na52seuF;

1.1.1.7
date	2026.10.19.11.50.40;	author adam;	state Exp;
branches;
next	;
commitid	eS0MvMrTxXQX650H;


desc
@@


1.9
log
@libarchive: updated to 3.8.10

3.8.10

New features:

7z: add Delta, RISCV, ARMTHUMB and IA64 filters for non-lzma archives
libarchive: support digest with nettle 4 and mbedtls 3
tar: add --mode option

Security and Bug Fixes

see ChangeLog
@
text
@4mARCHIVE_READ_DATA24m(3)	 Library Functions Manual      4mARCHIVE_READ_DATA24m(3)

1mNAME0m
       archive_read_data,   archive_read_data_block,   archive_read_data_skip,
       archive_read_data_into_fd — functions for reading streaming archives

1mLIBRARY0m
       Streaming Archive Library (libarchive, -larchive)

1mSYNOPSIS0m
       1m#include <archive.h>0m

       4mla_ssize_t0m
       1marchive_read_data22m(4mstruct24m 4marchive24m 4m*24m, 4mvoid24m 4m*buff24m, 4msize_t24m 4mlen24m);

       4mint0m
       1marchive_read_data_block22m(4mstruct24m 4marchive24m 4m*24m,		4mconst24m 4mvoid24m 4m**buff24m,
	   4msize_t24m 4m*len24m, 4moff_t24m 4m*offset24m);

       4mint0m
       1marchive_read_data_skip22m(4mstruct24m 4marchive24m 4m*24m);

       4mint0m
       1marchive_read_data_into_fd22m(4mstruct24m 4marchive24m 4m*24m, 4mint24m 4mfd24m);

1mDESCRIPTION0m
       1marchive_read_data22m()
	       Read  data  associated  with the header just read.  Internally,
	       this    is    a	   convenience	   function	that	 calls
	       1marchive_read_data_block22m() and fills any gaps with nulls so that
	       callers see a single continuous stream of data.
       1marchive_read_data_block22m()
	       Return the next available block of data for this entry.	Unlike
	       1marchive_read_data22m(),   the	1marchive_read_data_block22m()	function
	       avoids copying data and allows you to correctly	handle	sparse
	       files, as supported by some archive formats.  The library guar‐
	       antees  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 com‐
	       pression and internal buffer optimizations.  All three of 4mbuff24m,
	       4mlen24m and  4moffset24m  are  written	whenever  the  function	 returns
	       1mARCHIVE_OK  22mor 1mARCHIVE_EOF22m.  At the end of an entry 4mlen24m is zero
	       and 4moffset24m is the end of the  entry's  data,  which	 is  how  a
	       trailing sparse hole is reported.
       1marchive_read_data_skip22m()
	       A     convenience     function	  that	   repeatedly	 calls
	       1marchive_read_data_block22m() to skip all  of  the  data  for  this
	       archive	entry.	 Note  that this function is invoked automati‐
	       cally by 1marchive_read_next_header222m() if the previous entry	was
	       not completely consumed.
       1marchive_read_data_into_fd22m()
	       A     convenience     function	  that	   repeatedly	 calls
	       1marchive_read_data_block22m() to copy the entire entry to the  pro‐
	       vided file descriptor.

1mRETURN VALUES0m
       Most functions return zero on success, non-zero on error.  The possible
       return	codes	include:   1mARCHIVE_OK	  22m(the   operation	succeeded),
       1mARCHIVE_WARN 22m(the operation succeeded but a non-critical error was	en‐
       countered), 1mARCHIVE_EOF 22m(end-of-archive was encountered), 1mARCHIVE_RETRY0m
       (the operation failed but can be retried), and 1mARCHIVE_FATAL 22m(there was
       a fatal error; the archive should be closed immediately).

       1marchive_read_data22m()	 returns  a count of bytes actually read or zero at
       the  end	 of  the  entry.   On  error,  a   value   of	1mARCHIVE_FATAL22m,
       1mARCHIVE_WARN22m, or 1mARCHIVE_RETRY 22mis returned.

1mERRORS0m
       Detailed	 error	codes  and textual descriptions are available from the
       1marchive_errno22m() and 1marchive_error_string22m() functions.

1mSEE ALSO0m
       4mtar24m(1),	       4marchive_read24m(3),		4marchive_read_extract24m(3),
       4marchive_read_filter24m(3), 4marchive_read_format24m(3), 4marchive_read_header24m(3),
       4marchive_read_open24m(3),   4marchive_read_set_options24m(3),	4marchive_util24m(3),
       4mlibarchive24m(3), 4mtar24m(5)

Debian			       February 2, 2012		  4mARCHIVE_READ_DATA24m(3)
@


1.8
log
@libarchive: updated to 3.7.7

Libarchive 3.7.7 is a bugfix and security release

Security fixes:

gzip: prevent a hang when processing a malformed gzip inside a gzip
tar: don't crash on truncated tar archives
tar: fix two leaks in tar header parsing

Important bugfixes:

7-zip: read/write symlink paths as UTF-8
cpio: exit with an error code if an entry could not be extracted
rar5: report encrypted entries
tar: fix truncation of entry pathnames in specific archives
windows: fix ARCHIVE_EXTRACT_SECURE_NOABSOLUTEPATHS


Libarchive 3.7.6 is a bugfix and security release.
This release fixes a tar regression introduced in libarchive 3.7.5

Important bugfixes.

tar: clean up linkpath between entries
tar: fix memory leaks when processing symlinks or parsing pax headers
iso: be more cautious about parsing ISO-9660 timestamps
@
text
@d40 5
a44 1
	       pression and internal buffer optimizations.
d46 4
a49 4
	       A    convenience	    function	 that	  repeatedly	 calls
	       1marchive_read_data_block22m()  to  skip	 all  of  the data for this
	       archive entry.  Note that this function	is  invoked  automati‐
	       cally  by 1marchive_read_next_header222m() if the previous entry was
d52 2
a53 2
	       A    convenience	    function	 that	  repeatedly	 calls
	       1marchive_read_data_block22m()  to copy the entire entry to the pro‐
d59 1
a59 1
       1mARCHIVE_WARN  22m(the operation succeeded but a non-critical error was en‐
d64 2
a65 2
       1marchive_read_data22m() returns a count of bytes actually read or  zero	 at
       the   end   of	the  entry.   On  error,  a  value  of	1mARCHIVE_FATAL22m,
d69 1
a69 1
       Detailed error codes and textual descriptions are  available  from  the
@


1.7
log
@libarchive: updated to 3.7.2

Libarchive 3.7.2 is a security, bugfix and feature release.

Security fixes:

Multiple vulnerabilities have been fixed in the PAX writer (1b4e0d0)
Important bugfixes:

bsdunzip(1) now correctly handles arguments following an -x after the zipfile
New features:

bsdunzip(1) now supports the "--version" flag
7-zip reader now translates Windows permissions into UNIX permissions
uudecode filter in raw mode now supports file name and file mode
zstd filter now supports the "long" write option


Libarchive 3.7.1 is a security, feature and bugfix release.

Security fixes:

SEGV and stack buffer overflow in verbose mode of cpio
Feature updates:

bsdunzip updated to match latest upstream code
Important bugfixes:

miscellaneous functional bugfixes
build fixes on multiple platforms


Libarchive 3.7.0 is a feature and bugfix release.

New features:

bsdunzip: new tool ported from FreeBSD
drop-in replacement for Info-ZIP unzip, not yet ported for Windows
7zip reader: support for Zstandard compression
7zip reader: support for ARM64 filter
zstd filter: support for multi-frame zstd archives
Other notable bugfixes and improvements:

pax: fix year 2038 problem on platforms with 64-bit time_t
Windows: Universal Windows Platform (UWP) fixes and improvements
Windows: bcrypt usage fixes and improvements
Windows: time function usage fixes and improvements
@
text
@d1 1
a1 1
ARCHIVE_READ_DATA(3)	 BSD Library Functions Manual	  ARCHIVE_READ_DATA(3)
d3 70
a72 69
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
     #include <archive.h>

     la_ssize_t
     archive_read_data(struct archive *, void *buff, size_t len);

     int
     archive_read_data_block(struct archive *, const void **buff, size_t *len,
	 off_t *offset);

     int
     archive_read_data_skip(struct archive *);

     int
     archive_read_data_into_fd(struct archive *, int fd);

DESCRIPTION
     archive_read_data()
	     Read data associated with the header just read.  Internally, this
	     is a convenience function that calls archive_read_data_block()
	     and fills any gaps with nulls so that callers see a single con‐
	     tinuous stream of data.
     archive_read_data_block()
	     Return the next available block of data for this entry.  Unlike
	     archive_read_data(), the archive_read_data_block() function
	     avoids copying data and allows you to correctly handle sparse
	     files, as supported by some archive formats.  The library guaran‐
	     tees 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.
     archive_read_data_skip()
	     A convenience function that repeatedly calls
	     archive_read_data_block() to skip all of the data for this ar‐
	     chive entry.  Note that this function is invoked automatically by
	     archive_read_next_header2() if the previous entry was not com‐
	     pletely consumed.
     archive_read_data_into_fd()
	     A convenience function that repeatedly calls
	     archive_read_data_block() to copy the entire entry to the pro‐
	     vided 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 opera‐
     tion failed but can be retried), and ARCHIVE_FATAL (there was a fatal er‐
     ror; the archive should be closed immediately).

     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
     archive_errno() and archive_error_string() functions.

SEE ALSO
     tar(1), archive_read(3), archive_read_extract(3), archive_read_filter(3),
     archive_read_format(3), archive_read_header(3), archive_read_open(3),
     archive_read_set_options(3), archive_util(3), libarchive(3), tar(5)
d74 1
a74 1
BSD			       February 2, 2012				   BSD
@


1.6
log
@libarchive: Update to 3.4.3

Libarchive 3.4.3 is a feature and bugfix release.

New features:

    support for pzstd compressed files (#1357)
    support for RHT.security.selinux tar extended attribute (#1348)

Important bugfixes:

    various zstd fixes and improvements (#1342 #1352 #1359)
    child process handling fixes (#1372)

Libarchive 3.4.2 is a feature and security release.

New features:

    support for atomic file extraction (bsdtar -x --safe-writes) (#1289)
    support for mbed TLS (PolarSSL) (#1301)

Important bugfixes:

    security fixes in RAR5 reader (#1280 #1326)
    compression buffer fix in XAR writer (#1317)
    fix uname and gname longer than 32 characters in PAX writer (#1319)
    fix segfault when archiving hard links in ISO9660 and XAR writers (#1325)
    fix support for extracting 7z archive entries with Delta filter (#987)

Libarchive 3.4.1 is a feature and security release.

New features:

    Unicode filename support for reading lha/lzh archives
    New pax write option "xattrhdr"

Important bugfixes:

    security fixes in wide string processing (#1276 #1298)
    security fixes in RAR5 reader (#1212 #1217 #1296)
    security fixes and optimizations to write filter logic (#351)
    security fix related to use of readlink(2) (1dae5a5)
    sparse file handling fixes (#1218 #1260)

Thanks to all contributors and bug reporters.
Special thanks to Christos Zoulas (@@zoulasc) from NetBSD for the atomic file extraction feature.
@
text
@d5 1
a5 1
     archive_read_data_into_fd -- functions for reading streaming archives
d30 1
a30 1
	     and fills any gaps with nulls so that callers see a single con-
d36 1
a36 1
	     files, as supported by some archive formats.  The library guaran-
d43 1
a43 1
	     archive_read_data_block() to skip all of the data for this ar-
d45 1
a45 1
	     archive_read_next_header2() if the previous entry was not com-
d49 1
a49 1
	     archive_read_data_block() to copy the entire entry to the pro-
d56 3
a58 3
     ARCHIVE_EOF (end-of-archive was encountered), ARCHIVE_RETRY (the opera-
     tion failed but can be retried), and ARCHIVE_FATAL (there was a fatal
     error; the archive should be closed immediately).
d73 1
a73 1
BSD			       February 2, 2012 			   BSD
@


1.5
log
@Update for libarchive-3.4.0:
- improvements for Android APK and JAR archives
- better support for non-recursive list and extract
- tar --exclude-vcs support
- fixes for file attributes and flags handling
- zipx support
- rar 5.0 reader
@
text
@d4 2
a5 2
     archive_read_data archive_read_data_block, archive_read_data_skip,
     archive_read_data_into_fd — functions for reading streaming archives
d30 1
a30 1
	     and fills any gaps with nulls so that callers see a single con‐
d36 1
a36 1
	     files, as supported by some archive formats.  The library guaran‐
d43 1
a43 1
	     archive_read_data_block() to skip all of the data for this ar‐
d45 1
a45 1
	     archive_read_next_header2() if the previous entry was not com‐
d49 1
a49 1
	     archive_read_data_block() to copy the entire entry to the pro‐
d56 3
a58 3
     ARCHIVE_EOF (end-of-archive was encountered), ARCHIVE_RETRY (the opera‐
     tion failed but can be retried), and ARCHIVE_FATAL (there was a fatal er‐
     ror; the archive should be closed immediately).
d69 3
a71 4
     tar(1), libarchive(3), archive_read(3), archive_read_extract(3),
     archive_read_filter(3), archive_read_format(3), archive_read_header(3),
     archive_read_open(3), archive_read_set_options(3), archive_util(3),
     tar(5)
@


1.4
log
@Merge for libarchive-3.3.2.
@
text
@d57 2
a58 2
     tion failed but can be retried), and ARCHIVE_FATAL (there was a fatal
     error; the archive should be closed immediately).
@


1.3
log
@Merge libarchive-3.3.1.
@
text
@d3 3
a5 3
1mNAME0m
     1marchive_read_data archive_read_data_block22m, 1marchive_read_data_skip22m,
     1marchive_read_data_into_fd 22m— functions for reading streaming archives
d7 1
a7 1
1mLIBRARY0m
d10 2
a11 2
1mSYNOPSIS0m
     1m#include <archive.h>0m
d13 2
a14 2
     4mla_ssize_t0m
     1marchive_read_data22m(4mstruct24m 4marchive24m 4m*24m, 4mvoid24m 4m*buff24m, 4msize_t24m 4mlen24m);
d16 3
a18 3
     4mint0m
     1marchive_read_data_block22m(4mstruct24m 4marchive24m 4m*24m, 4mconst24m 4mvoid24m 4m**buff24m, 4msize_t24m 4m*len24m,
	 4moff_t24m 4m*offset24m);
d20 2
a21 2
     4mint0m
     1marchive_read_data_skip22m(4mstruct24m 4marchive24m 4m*24m);
d23 2
a24 2
     4mint0m
     1marchive_read_data_into_fd22m(4mstruct24m 4marchive24m 4m*24m, 4mint24m 4mfd24m);
d26 2
a27 2
1mDESCRIPTION0m
     1marchive_read_data22m()
d29 1
a29 1
	     is a convenience function that calls 1marchive_read_data_block22m()
d32 1
a32 1
     1marchive_read_data_block22m()
d34 1
a34 1
	     1marchive_read_data22m(), the 1marchive_read_data_block22m() function
d41 1
a41 1
     1marchive_read_data_skip22m()
d43 1
a43 1
	     1marchive_read_data_block22m() to skip all of the data for this ar‐
d45 1
a45 1
	     1marchive_read_next_header222m() if the previous entry was not com‐
d47 1
a47 1
     1marchive_read_data_into_fd22m()
d49 1
a49 1
	     1marchive_read_data_block22m() to copy the entire entry to the pro‐
d52 1
a52 1
1mRETURN VALUES0m
d54 1
a54 1
     return codes include: 1mARCHIVE_OK 22m(the operation succeeded), 1mARCHIVE_WARN0m
d56 2
a57 2
     1mARCHIVE_EOF 22m(end-of-archive was encountered), 1mARCHIVE_RETRY 22m(the opera‐
     tion failed but can be retried), and 1mARCHIVE_FATAL 22m(there was a fatal
d60 3
a62 3
     1marchive_read_data22m() returns a count of bytes actually read or zero at the
     end of the entry.	On error, a value of 1mARCHIVE_FATAL22m, 1mARCHIVE_WARN22m, or
     1mARCHIVE_RETRY 22mis returned.
d64 1
a64 1
1mERRORS0m
d66 1
a66 1
     1marchive_errno22m() and 1marchive_error_string22m() functions.
d68 1
a68 1
1mSEE ALSO0m
@


1.2
log
@Update for libarchive 3.2.1.
@
text
@d3 3
a5 3
NAME
     archive_read_data archive_read_data_block, archive_read_data_skip,
     archive_read_data_into_fd — functions for reading streaming archives
d7 1
a7 1
LIBRARY
d10 2
a11 2
SYNOPSIS
     #include <archive.h>
d13 2
a14 2
     la_ssize_t
     archive_read_data(struct archive *, void *buff, size_t len);
d16 3
a18 3
     int
     archive_read_data_block(struct archive *, const void **buff, size_t *len,
	 off_t *offset);
d20 2
a21 2
     int
     archive_read_data_skip(struct archive *);
d23 2
a24 2
     int
     archive_read_data_into_fd(struct archive *, int fd);
d26 2
a27 2
DESCRIPTION
     archive_read_data()
d29 1
a29 1
	     is a convenience function that calls archive_read_data_block()
d32 1
a32 1
     archive_read_data_block()
d34 1
a34 1
	     archive_read_data(), the archive_read_data_block() function
d41 1
a41 1
     archive_read_data_skip()
d43 1
a43 1
	     archive_read_data_block() to skip all of the data for this ar‐
d45 1
a45 1
	     archive_read_next_header2() if the previous entry was not com‐
d47 1
a47 1
     archive_read_data_into_fd()
d49 1
a49 1
	     archive_read_data_block() to copy the entire entry to the pro‐
d52 1
a52 1
RETURN VALUES
d54 1
a54 1
     return codes include: ARCHIVE_OK (the operation succeeded), ARCHIVE_WARN
d56 2
a57 2
     ARCHIVE_EOF (end-of-archive was encountered), ARCHIVE_RETRY (the opera‐
     tion failed but can be retried), and ARCHIVE_FATAL (there was a fatal
d60 3
a62 3
     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.
d64 1
a64 1
ERRORS
d66 1
a66 1
     archive_errno() and archive_error_string() functions.
d68 1
a68 1
SEE ALSO
@


1.1
log
@Changes 3.1.2:
This is a maintenance update to fix issues with the new RAR seeking
feature. This new release also contains fixes for build failures when
building libarchive using Visual Studio 2012 and MinGW.
@
text
@d13 1
a13 1
     ssize_t
@


1.1.1.1
log
@Import libarchive-3.2.1:
- security fixes and other bugfixes
- support for multhreading in xz 5.2+
@
text
@d13 1
a13 1
     la_ssize_t
@


1.1.1.2
log
@Import libarchive-3.3.1.
@
text
@d3 3
a5 3
1mNAME0m
     1marchive_read_data archive_read_data_block22m, 1marchive_read_data_skip22m,
     1marchive_read_data_into_fd 22m— functions for reading streaming archives
d7 1
a7 1
1mLIBRARY0m
d10 2
a11 2
1mSYNOPSIS0m
     1m#include <archive.h>0m
d13 2
a14 2
     4mla_ssize_t0m
     1marchive_read_data22m(4mstruct24m 4marchive24m 4m*24m, 4mvoid24m 4m*buff24m, 4msize_t24m 4mlen24m);
d16 3
a18 3
     4mint0m
     1marchive_read_data_block22m(4mstruct24m 4marchive24m 4m*24m, 4mconst24m 4mvoid24m 4m**buff24m, 4msize_t24m 4m*len24m,
	 4moff_t24m 4m*offset24m);
d20 2
a21 2
     4mint0m
     1marchive_read_data_skip22m(4mstruct24m 4marchive24m 4m*24m);
d23 2
a24 2
     4mint0m
     1marchive_read_data_into_fd22m(4mstruct24m 4marchive24m 4m*24m, 4mint24m 4mfd24m);
d26 2
a27 2
1mDESCRIPTION0m
     1marchive_read_data22m()
d29 1
a29 1
	     is a convenience function that calls 1marchive_read_data_block22m()
d32 1
a32 1
     1marchive_read_data_block22m()
d34 1
a34 1
	     1marchive_read_data22m(), the 1marchive_read_data_block22m() function
d41 1
a41 1
     1marchive_read_data_skip22m()
d43 1
a43 1
	     1marchive_read_data_block22m() to skip all of the data for this ar‐
d45 1
a45 1
	     1marchive_read_next_header222m() if the previous entry was not com‐
d47 1
a47 1
     1marchive_read_data_into_fd22m()
d49 1
a49 1
	     1marchive_read_data_block22m() to copy the entire entry to the pro‐
d52 1
a52 1
1mRETURN VALUES0m
d54 1
a54 1
     return codes include: 1mARCHIVE_OK 22m(the operation succeeded), 1mARCHIVE_WARN0m
d56 2
a57 2
     1mARCHIVE_EOF 22m(end-of-archive was encountered), 1mARCHIVE_RETRY 22m(the opera‐
     tion failed but can be retried), and 1mARCHIVE_FATAL 22m(there was a fatal
d60 3
a62 3
     1marchive_read_data22m() returns a count of bytes actually read or zero at the
     end of the entry.	On error, a value of 1mARCHIVE_FATAL22m, 1mARCHIVE_WARN22m, or
     1mARCHIVE_RETRY 22mis returned.
d64 1
a64 1
1mERRORS0m
d66 1
a66 1
     1marchive_errno22m() and 1marchive_error_string22m() functions.
d68 1
a68 1
1mSEE ALSO0m
@


1.1.1.3
log
@Import libarchive-3.3.2 + 9de5f3 + f9dacbf:
- Support NFS4 ACLs on Linux
- Bugfixes
@
text
@d3 3
a5 3
NAME
     archive_read_data archive_read_data_block, archive_read_data_skip,
     archive_read_data_into_fd — functions for reading streaming archives
d7 1
a7 1
LIBRARY
d10 2
a11 2
SYNOPSIS
     #include <archive.h>
d13 2
a14 2
     la_ssize_t
     archive_read_data(struct archive *, void *buff, size_t len);
d16 3
a18 3
     int
     archive_read_data_block(struct archive *, const void **buff, size_t *len,
	 off_t *offset);
d20 2
a21 2
     int
     archive_read_data_skip(struct archive *);
d23 2
a24 2
     int
     archive_read_data_into_fd(struct archive *, int fd);
d26 2
a27 2
DESCRIPTION
     archive_read_data()
d29 1
a29 1
	     is a convenience function that calls archive_read_data_block()
d32 1
a32 1
     archive_read_data_block()
d34 1
a34 1
	     archive_read_data(), the archive_read_data_block() function
d41 1
a41 1
     archive_read_data_skip()
d43 1
a43 1
	     archive_read_data_block() to skip all of the data for this ar‐
d45 1
a45 1
	     archive_read_next_header2() if the previous entry was not com‐
d47 1
a47 1
     archive_read_data_into_fd()
d49 1
a49 1
	     archive_read_data_block() to copy the entire entry to the pro‐
d52 1
a52 1
RETURN VALUES
d54 1
a54 1
     return codes include: ARCHIVE_OK (the operation succeeded), ARCHIVE_WARN
d56 2
a57 2
     ARCHIVE_EOF (end-of-archive was encountered), ARCHIVE_RETRY (the opera‐
     tion failed but can be retried), and ARCHIVE_FATAL (there was a fatal
d60 3
a62 3
     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.
d64 1
a64 1
ERRORS
d66 1
a66 1
     archive_errno() and archive_error_string() functions.
d68 1
a68 1
SEE ALSO
@


1.1.1.4
log
@Import libarchive 3.4.0
@
text
@d57 2
a58 2
     tion failed but can be retried), and ARCHIVE_FATAL (there was a fatal er‐
     ror; the archive should be closed immediately).
@


1.1.1.5
log
@Import libarchive 3.7.2
@
text
@d4 1
a4 1
     archive_read_data, archive_read_data_block, archive_read_data_skip,
d69 4
a72 3
     tar(1), archive_read(3), archive_read_extract(3), archive_read_filter(3),
     archive_read_format(3), archive_read_header(3), archive_read_open(3),
     archive_read_set_options(3), archive_util(3), libarchive(3), tar(5)
d74 1
a74 1
BSD			       February 2, 2012				   BSD
@


1.1.1.6
log
@libarchove: import version 3.7.7
@
text
@d1 1
a1 1
4mARCHIVE_READ_DATA24m(3)	 Library Functions Manual      4mARCHIVE_READ_DATA24m(3)
d3 69
a71 70
1mNAME0m
       archive_read_data,   archive_read_data_block,   archive_read_data_skip,
       archive_read_data_into_fd — functions for reading streaming archives

1mLIBRARY0m
       Streaming Archive Library (libarchive, -larchive)

1mSYNOPSIS0m
       1m#include <archive.h>0m

       4mla_ssize_t0m
       1marchive_read_data22m(4mstruct24m 4marchive24m 4m*24m, 4mvoid24m 4m*buff24m, 4msize_t24m 4mlen24m);

       4mint0m
       1marchive_read_data_block22m(4mstruct24m 4marchive24m 4m*24m,		4mconst24m 4mvoid24m 4m**buff24m,
	   4msize_t24m 4m*len24m, 4moff_t24m 4m*offset24m);

       4mint0m
       1marchive_read_data_skip22m(4mstruct24m 4marchive24m 4m*24m);

       4mint0m
       1marchive_read_data_into_fd22m(4mstruct24m 4marchive24m 4m*24m, 4mint24m 4mfd24m);

1mDESCRIPTION0m
       1marchive_read_data22m()
	       Read  data  associated  with the header just read.  Internally,
	       this    is    a	   convenience	   function	that	 calls
	       1marchive_read_data_block22m() and fills any gaps with nulls so that
	       callers see a single continuous stream of data.
       1marchive_read_data_block22m()
	       Return the next available block of data for this entry.	Unlike
	       1marchive_read_data22m(),   the	1marchive_read_data_block22m()	function
	       avoids copying data and allows you to correctly	handle	sparse
	       files, as supported by some archive formats.  The library guar‐
	       antees  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 com‐
	       pression and internal buffer optimizations.
       1marchive_read_data_skip22m()
	       A    convenience	    function	 that	  repeatedly	 calls
	       1marchive_read_data_block22m()  to  skip	 all  of  the data for this
	       archive entry.  Note that this function	is  invoked  automati‐
	       cally  by 1marchive_read_next_header222m() if the previous entry was
	       not completely consumed.
       1marchive_read_data_into_fd22m()
	       A    convenience	    function	 that	  repeatedly	 calls
	       1marchive_read_data_block22m()  to copy the entire entry to the pro‐
	       vided file descriptor.

1mRETURN VALUES0m
       Most functions return zero on success, non-zero on error.  The possible
       return	codes	include:   1mARCHIVE_OK	  22m(the   operation	succeeded),
       1mARCHIVE_WARN  22m(the operation succeeded but a non-critical error was en‐
       countered), 1mARCHIVE_EOF 22m(end-of-archive was encountered), 1mARCHIVE_RETRY0m
       (the operation failed but can be retried), and 1mARCHIVE_FATAL 22m(there was
       a fatal error; the archive should be closed immediately).

       1marchive_read_data22m() returns a count of bytes actually read or  zero	 at
       the   end   of	the  entry.   On  error,  a  value  of	1mARCHIVE_FATAL22m,
       1mARCHIVE_WARN22m, or 1mARCHIVE_RETRY 22mis returned.

1mERRORS0m
       Detailed error codes and textual descriptions are  available  from  the
       1marchive_errno22m() and 1marchive_error_string22m() functions.

1mSEE ALSO0m
       4mtar24m(1),	       4marchive_read24m(3),		4marchive_read_extract24m(3),
       4marchive_read_filter24m(3), 4marchive_read_format24m(3), 4marchive_read_header24m(3),
       4marchive_read_open24m(3),   4marchive_read_set_options24m(3),	4marchive_util24m(3),
       4mlibarchive24m(3), 4mtar24m(5)
d73 1
a73 1
Debian			       February 2, 2012		  4mARCHIVE_READ_DATA24m(3)
@


1.1.1.7
log
@libarchive: import version 3.8.10
@
text
@d40 1
a40 5
	       pression and internal buffer optimizations.  All three of 4mbuff24m,
	       4mlen24m and  4moffset24m  are  written	whenever  the  function	 returns
	       1mARCHIVE_OK  22mor 1mARCHIVE_EOF22m.  At the end of an entry 4mlen24m is zero
	       and 4moffset24m is the end of the  entry's  data,  which	 is  how  a
	       trailing sparse hole is reported.
d42 4
a45 4
	       A     convenience     function	  that	   repeatedly	 calls
	       1marchive_read_data_block22m() to skip all  of  the  data  for  this
	       archive	entry.	 Note  that this function is invoked automati‐
	       cally by 1marchive_read_next_header222m() if the previous entry	was
d48 2
a49 2
	       A     convenience     function	  that	   repeatedly	 calls
	       1marchive_read_data_block22m() to copy the entire entry to the  pro‐
d55 1
a55 1
       1mARCHIVE_WARN 22m(the operation succeeded but a non-critical error was	en‐
d60 2
a61 2
       1marchive_read_data22m()	 returns  a count of bytes actually read or zero at
       the  end	 of  the  entry.   On  error,  a   value   of	1mARCHIVE_FATAL22m,
d65 1
a65 1
       Detailed	 error	codes  and textual descriptions are available from the
@


