Files
RedBear-OS/recipes/libs/libarchive/source/doc/wiki/ManPageArchiveReadHeader3.wiki
vasilito facf0c92e0 feat: track all source trees in git — full fork offline-first model
Red Bear OS is a full fork. All sources must be available from git clone
with zero network access. Removed gitignore rules that excluded fetched
source trees under recipes/*/source/, local/recipes/kde/*/source/,
local/recipes/qt/*/source/, and vendor source trees.

Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded.

127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt
frameworks, mesa, wayland, DRM drivers, and every other recipe source.
2026-05-14 10:55:53 +01:00

64 lines
1.8 KiB
Plaintext

ARCHIVE_READ_HEADER(3) manual page
== NAME ==
'''archive_read_next_header''',
'''archive_read_next_header2'''
- functions for reading streaming archives
== LIBRARY ==
Streaming Archive Library (libarchive, -larchive)
== SYNOPSIS ==
'''<nowiki>#include <archive.h></nowiki>'''
<br>
''int''
<br>
'''archive_read_next_header'''(''struct archive *'', ''struct archive_entry **'');
<br>
''int''
<br>
'''archive_read_next_header2'''(''struct archive *'', ''struct archive_entry *'');
== DESCRIPTION ==
<dl>
<dt>'''archive_read_next_header'''()</dt><dd>
Read the header for the next entry and return a pointer to
a
'''struct archive_entry .'''
This is a convenience wrapper around
'''archive_read_next_header2'''()
that reuses an internal
'''struct archive_entry'''
object for each request.
</dd><dt>'''archive_read_next_header2'''()</dt><dd>
Read the header for the next entry and populate the provided
'''struct archive_entry .'''
</dd></dl>
== RETURN VALUES ==
These functions return
'''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).
== ERRORS ==
Detailed error codes and textual descriptions are available from the
'''archive_errno'''()
and
'''archive_error_string'''()
functions.
== SEE ALSO ==
[[ManPageBsdtar1]],
[[ManPageArchiveRead3]],
[[ManPageArchiveReadData3]],
[[ManPageArchiveReadExtract3]],
[[ManPageArchiveReadFilter3]],
[[ManPageArchiveReadFormat3]],
[[ManPageArchiveReadOpen3]],
[[ManPageArchiveReadSetOptions3]],
[[ManPageArchiveUtil3]],
[[ManPageLibarchive3]],
[[ManPageTar5]]