ZIP_RENAME(3)
β¨ ZIP_RENAME β¨
okay bestie, gather round, we're talking about zip_rename β the obsolete interface for renaming a file inside a zip archive. yes she's old. yes she still works. no we're not gonna be weird about it π
Manual page name: ZIP_RENAME(3). She lives in the Library Functions Manual section, she's a libzip girlie, and she's here to rename your files with zero drama. π
πΈ LIBRARY πΈ
libzip (-lzip)
like, you link against libzip with -lzip and you're in. that's the whole vibe. π«Ά
π SYNOPSIS π
#include <zip.h>
int
zip_rename(zip_t *archive, zip_uint64_t index, const char *name);
so you pull in <zip.h>, and then it's zip_rename() with three lil besties: the archive, the index, and the name. simple. iconic. no cap. β¨
π¦ DESCRIPTION π¦
okay so here's the tea, and it's giving legacy code energy:
zip_rename() is the obsolete version of zip_file_rename(3). like, she's the older sister who's still cool but everyone's moved on.
and what does she actually do? literally the same thing as calling zip_file_rename(3) with an empty flags argument. that's it. that's the whole plot. same behaviour, no extra seasoning, flags just sits there empty like π§
so if you're wondering "should I use this?" β bestie, the answer is right below in the HISTORY section, and it's a soft no. π
π SEE ALSO π
libzip(3)β the main character, the whole libzip manualzip_file_rename(3)β the glow-up version, the one you actually want
π HISTORY π
storytime, because she has lore:
zip_rename()was added in libzip 0.6 β a simpler time, a gentler time πΈ- in libzip 0.10, the type of
indexwas changed frominttozip_uint64_tβ she got a little upgrade, we love growth β¨ - it was deprecated in libzip 0.11 β and the message is clear: use
zip_file_rename()instead, fr fr
β οΈ deprecated means deprecated, bestie. she still works, but you're on your own romantically. new code should be calling zip_file_rename(3), periodt.
π AUTHORS π
the icons who made her:
- Dieter Baron
<dillo@nih.at> - Thomas Klausner
<wiz@gatalith.at>
absolute legends, both of them π
and that's the page!! Debian was the one who shipped this version, dated December 18, 2017, and the footer tag was ZIP_RENAME(3). mwah, go rename something responsibly ππ¦π
π¦ where this page comes from
- arch rolling: libzip 1.11.4-1 Β· BSD
- debian trixie: libzip-dev 1.11.3-2 Β· BSD-3-Clause
- 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 questing: libzip-dev 1.11.3-2
- ubuntu resolute: libzip-dev 1.11.4-2 Β· BSD-3-Clause
- ubuntu stonking: libzip-dev 1.11.4-2build1 Β· BSD-3-Clause
- Copyright (C) 2003-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