archive_write_finish_entry(3)

archive_write_finish_entry3

Functions for creating archives

Usage

#include <archive.h>

int

archive_write_finish_entry(struct archive *);

Library

Streaming Archive Library (libarchive, -larchive)

Overview

Close out the entry just written. In particular, this writes out the final padding required by some formats. Ordinarily, clients never need to call this, as it is called automatically by archive_write_header() and archive_write_close() as needed. For archive_write_disk handles, this flushes pending file attribute changes like modification time.

Return values

This function returns ARCHIVE_OK on success, or one of several non-zero error codes for errors. Specific error codes include: ARCHIVE_RETRY for operations that might succeed if retried, ARCHIVE_WARN for unusual conditions that do not prevent further operations, and ARCHIVE_FATAL for serious errors that make remaining operations impossible.

Errors

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

Releases

46 releases since FreeBSD 6.3-RELEASE; the text changed 25 times.

  1. 6.3
  2. 6.4
  3. 7.0
  4. 7.1
  5. 7.2
  6. 7.3
  7. 7.4
  8. 8.0
  9. 8.1
  10. 8.2
  11. 8.3
  12. 8.4
  13. 9.0
  14. 9.1
  15. 9.2
  16. 9.3
  17. 10.0–10.3
  18. 10.4
  19. 11.0
  20. 11.1–11.3
  21. 11.4
  22. 12.0–12.1
  23. 12.2–13.3
  24. 13.4–13.5
  25. 14.0
  26. 14.1–16.0

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.