ARCHIVE_WRITE_FINISH_ENTRY(3)
π ARCHIVE_WRITE_FINISH_ENTRY(3) π
okay bestie, welcome to the Library Functions Manual, section 3 β this one's literally called archive_write_finish_entry, and it's giving "functions for creating archives". no cap.
β¨ NAME β¨
archive_write_finish_entry β functions for creating archives π
π LIBRARY π
Streaming Archive Library (libarchive, -larchive) π¦
πΈ SYNOPSIS πΈ
#include <archive.h>
int
archive_write_finish_entry(struct archive *);
π DESCRIPTION π
So what this does is close out the entry you just wrote. iconic behavior. specifically, it writes out the final padding that some formats require β like, the lil finishing touch bestie, the ribbon on the gift. π
Ordinarily, clients never need to call this, because archive_write_header() and archive_write_close() call it automatically as needed. so like, it's the friend who shows up to the party without being invited, but in a helpful way. π«Ά
For archive_write_disk handles, though? this one flushes pending file attribute changes β things like modification time. the way that it just... commits the vibe. β°β¨
π₯ RETURN VALUES π₯
This function returns ARCHIVE_OK on success, or one of several non-zero error codes when things go sideways. π specific error codes include:
ARCHIVE_RETRYβ for operations that might succeed if retried. (so like... try again bestie, it might slay the second time π)ARCHIVE_WARNβ for unusual conditions that do not prevent further operations. (weird but we move πΆβοΈ)ARCHIVE_FATALβ for serious errors that make remaining operations impossible. (it's over, no notes, we cannot recover π)
π ERRORS π
Detailed error codes and textual descriptions are available from the archive_errno() and archive_error_string() functions. go read those, they'll tell you exactly what went wrong. π
π SEE ALSO π
tar(1), archive_write_data(3), archive_write_set_options(3), libarchive(3), cpio(5), mtree(5), tar(5) π
mwah, that's the whole page bestie β every flag, every code, every vibe, untouched. periodt. π
this lil gem came from Debian, dated February 28, 2017, and it lives in the Library Functions Manual section 3. stan an icon, stan ARCHIVE_WRITE_FINISH_ENTRY(3). πβ¨
π¦ where this page comes from
- alpine 3.22: libarchive-doc 3.8.10-r0 Β· BSD-2-Clause AND BSD-3-Clause AND Public-Domain
- alpine 3.22: libarchive-doc 3.8.11-r0 Β· BSD-2-Clause AND BSD-3-Clause AND Public-Domain
- alpine 3.23: libarchive-doc 3.8.10-r0 Β· BSD-2-Clause AND BSD-3-Clause AND Public-Domain
- alpine 3.23: libarchive-doc 3.8.11-r0 Β· BSD-2-Clause AND BSD-3-Clause AND Public-Domain
- alpine 3.24: libarchive-doc 3.8.10-r0 Β· BSD-2-Clause AND BSD-3-Clause AND Public-Domain
- alpine 3.24: libarchive-doc 3.8.11-r0 Β· BSD-2-Clause AND BSD-3-Clause AND Public-Domain
- arch rolling: libarchive 3.8.10-1
- arch rolling: libarchive 3.8.11-1 Β· BSD-2-Clause AND BSD-4-Clause-UC AND Apache-2.0 OR CC0-1.0 OR OpenSSL
- arch rolling: libarchive 3.8.9-1
- centos-stream 10: libarchive-devel 3.7.7-11.el10 Β· BSD-2-Clause AND FSFULLR AND GPL-2.0-or-later WITH Libtool-exception AND BSD-3-Clause AND FSFUL
- debian trixie: libarchive-dev 3.7.4-4+deb13u1 Β· BSD-2-Clause
- fedora 43: libarchive-devel 3.8.1-3.fc43 Β· BSD-2-Clause AND FSFULLR AND GPL-2.0-or-later WITH Libtool-exception AND BSD-3-Clause AND FSFUL
- fedora 43: libarchive-devel 3.8.1-3.fc43 Β· BSD-2-Clause AND FSFULLR AND GPL-2.0-or-later WITH Libtool-exception AND BSD-3-Clause AND FSFUL
- fedora 43: libarchive-devel 3.8.4-1.fc43 Β· BSD-2-Clause AND FSFULLR AND GPL-2.0-or-later WITH Libtool-exception AND BSD-3-Clause AND FSFUL
- fedora 43: libarchive-devel 3.8.4-1.fc43 Β· BSD-2-Clause AND FSFULLR AND GPL-2.0-or-later WITH Libtool-exception AND BSD-3-Clause AND FSFUL
- fedora 44: libarchive-devel 3.8.4-2.fc44 Β· BSD-2-Clause AND FSFULLR AND GPL-2.0-or-later WITH Libtool-exception AND BSD-3-Clause AND FSFUL
- fedora 44: libarchive-devel 3.8.4-2.fc44 Β· BSD-2-Clause AND FSFULLR AND GPL-2.0-or-later WITH Libtool-exception AND BSD-3-Clause AND FSFUL
- fedora 44: libarchive-devel 3.8.7-1.fc44 Β· BSD-2-Clause AND FSFULLR AND GPL-2.0-or-later WITH Libtool-exception AND BSD-3-Clause AND FSFUL
- fedora 44: libarchive-devel 3.8.7-1.fc44 Β· BSD-2-Clause AND FSFULLR AND GPL-2.0-or-later WITH Libtool-exception AND BSD-3-Clause AND FSFUL
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixos 26.05: libarchive 3.8.9
- nixpkgs unstable: libarchive 3.8.9
- opensuse-leap 16.0: libarchive-devel 3.8.1-160000.4.1 Β· BSD-2-Clause
- opensuse-leap 16.0: libarchive-devel 3.8.1-160000.4.1 Β· BSD-2-Clause
- opensuse-leap 16.0: libarchive-devel 3.8.1-160000.4.1 Β· BSD-2-Clause
- opensuse-leap 16.0: libarchive-devel 3.8.1-160000.4.1 Β· BSD-2-Clause
- ubuntu questing: libarchive-dev 3.7.7-0ubuntu3
- ubuntu questing: libarchive-dev 3.7.7-0ubuntu3.2
- ubuntu resolute: libarchive-dev 3.8.5-1ubuntu2 Β· BSD-2-Clause
- ubuntu resolute: libarchive-dev 3.8.5-1ubuntu2.3 Β· BSD-2-Clause
- ubuntu stonking: libarchive-dev 3.8.9-1 Β· BSD-2-Clause
- Copyright (c) 2003-2011 Tim Kientzle
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms