ManPageArchiveReadHeader3.wiki 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. ARCHIVE_READ_HEADER(3) manual page
  2. == NAME ==
  3. '''archive_read_next_header''',
  4. '''archive_read_next_header2'''
  5. - functions for reading streaming archives
  6. == LIBRARY ==
  7. Streaming Archive Library (libarchive, -larchive)
  8. == SYNOPSIS ==
  9. '''<nowiki>#include <archive.h></nowiki>'''
  10. <br>
  11. ''int''
  12. <br>
  13. '''archive_read_next_header'''(''struct archive *'', ''struct archive_entry **'');
  14. <br>
  15. ''int''
  16. <br>
  17. '''archive_read_next_header2'''(''struct archive *'', ''struct archive_entry *'');
  18. == DESCRIPTION ==
  19. <dl>
  20. <dt>'''archive_read_next_header'''()</dt><dd>
  21. Read the header for the next entry and return a pointer to
  22. a
  23. '''struct archive_entry .'''
  24. This is a convenience wrapper around
  25. '''archive_read_next_header2'''()
  26. that reuses an internal
  27. '''struct archive_entry'''
  28. object for each request.
  29. </dd><dt>'''archive_read_next_header2'''()</dt><dd>
  30. Read the header for the next entry and populate the provided
  31. '''struct archive_entry .'''
  32. </dd></dl>
  33. == RETURN VALUES ==
  34. These functions return
  35. '''ARCHIVE_OK'''
  36. (the operation succeeded),
  37. '''ARCHIVE_WARN'''
  38. (the operation succeeded but a non-critical error was encountered),
  39. '''ARCHIVE_EOF'''
  40. (end-of-archive was encountered),
  41. '''ARCHIVE_RETRY'''
  42. (the operation failed but can be retried),
  43. and
  44. '''ARCHIVE_FATAL'''
  45. (there was a fatal error; the archive should be closed immediately).
  46. == ERRORS ==
  47. Detailed error codes and textual descriptions are available from the
  48. '''archive_errno'''()
  49. and
  50. '''archive_error_string'''()
  51. functions.
  52. == SEE ALSO ==
  53. [[ManPageBsdtar1]],
  54. [[ManPageArchiveRead3]],
  55. [[ManPageArchiveReadData3]],
  56. [[ManPageArchiveReadExtract3]],
  57. [[ManPageArchiveReadFilter3]],
  58. [[ManPageArchiveReadFormat3]],
  59. [[ManPageArchiveReadOpen3]],
  60. [[ManPageArchiveReadSetOptions3]],
  61. [[ManPageArchiveUtil3]],
  62. [[ManPageLibarchive3]],
  63. [[ManPageTar5]]