ZIP_SOURCE_COMMIT_WRITE(3)
π ZIP_SOURCE_COMMIT_WRITE β the "okay we're DONE here" function π
okay bestie so we're in the Library Functions Manual, section 3, and today's main character is zip_source_commit_write β the function that goes "yeah that's it, that's the whole thing, ship it" π
β¨ NAME β¨
zip_source_commit_write β finalize changes to zip source π¦
no literally that's the whole vibe. you write stuff, then you commit it. periodt.
π LIBRARY π
libzip (-lzip) β yeah you gotta link it, don't forget, i've watched people forget π
πΈ SYNOPSIS πΈ
#include <zip.h>
int
zip_source_commit_write(zip_source_t *source);
π DESCRIPTION π
so the function zip_source_commit_write() finishes writing data to source and replaces the original with the newly written data. β¨
that's it. that's the glow up. you were writing into a temp-ish zone, and this is the moment you go "actually no, this IS the real one now" and the original gets swapped out for the new hotness. it's giving makeover reveal montage π
not me calling it early β if you haven't finished writing, don't commit. that's not in the manual, that's just me being your friend. π
β RETURN VALUES β
- slay β upon successful completion,
0is returned. π«Ά - not slay β otherwise,
-1is returned and the error information in source is set to indicate the error. π
π₯ SEE ALSO π₯
go read these next, bestie, they're the whole friend group:
libzip(3)zip_source(5)zip_source_begin_write(3)zip_source_rollback_write(3)zip_source_seek_write(3)zip_source_tell_write(3)zip_source_write(3)
iykyk π
π§ HISTORY π§
zip_source_commit_write() was added in libzip 1.0. iconic behavior since day one, no cap π
π AUTHORS π
Dieter Baron <dillo@nih.at> and Thomas Klausner <wiz@gatalith.at> β the two legends who wrote this. bow down π
and that's the tea π this page came to you from the Debian crew, dated December 18, 2017, and it lives at page ZIP_SOURCE_COMMIT_WRITE(3) in the Library Functions Manual. mwah, go commit something β¨ππ
π¦ where this page comes from
- arch rolling: libzip 1.11.4-1 Β· BSD
- fedora 43: libzip-devel 1.11.4-2.fc43 Β· BSD-3-Clause
- fedora 43: libzip-devel 1.11.4-2.fc43 Β· BSD-3-Clause
- fedora 44: libzip-devel 1.11.4-3.fc44 Β· BSD-3-Clause
- fedora 44: libzip-devel 1.11.4-3.fc44 Β· BSD-3-Clause
- nixpkgs unstable: libzip 1.11.4
- ubuntu resolute: libzip-dev 1.11.4-2 Β· BSD-3-Clause
- ubuntu stonking: libzip-dev 1.11.4-2build1 Β· BSD-3-Clause
- Copyright (C) 2014-2017 Dieter Baron and Thomas Klausner
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms