zzip_opendir(3)
β¨ NAME β¨
zzip_opendir, zzip_opendir_ext_io β start usage π
okay so bestie, this is the zzip_opendir(3) page from the zziplib Function List, and it's literally just about kicking things off. starting. opening. the beginning of the journey π¦
πΈ SYNOPSIS πΈ
#include <zzip/lib.h>
ZZIP_DIR*
zzip_opendir(zzip_char_t* filename)
ZZIP_DIR*
zzip_opendir_ext_io(zzip_char_t* filename, int o_modes, zzip_strings_t* ext, zzip_plugin_io_t io)
like. two functions. both handing you back a ZZIP_DIR*. slay π
π DESCRIPTION π
so zzip_opendir is basically the opendir(3) of the zzip world β same energy, but it works on a realdir or a zipfile. not me being versatile like that π
and here's the magic part, no cap: if the path you hand it (filename) is actually a directory, it just wraps a real opendir(3) up inside a ZZIP_DIR structure. iconic behavior, truly.
otherwise β if it's not a directory β it diverts over to zzip_dir_open, which can also stick a .zip extension on there if it needs to in order to actually find the archive. it's giving "I'll find it, don't worry" π§β¨
the error-code is mapped to errno(3), so your usual error-checking vibes apply.
then we have zzip_opendir_ext_io β this one lets you pass in explicit ext and io instead of rolling with the internal defaults. and listen: setting them to zero is equivalent to just calling zzip_opendir. same thing. fr fr.
β οΈ heads up bestie: thefilenameargument-path being a directory is what decides which path you go down β realopendir(3)wrapped in aZZIP_DIR, orzzip_dir_openwith the optional.zipextension. don't sleep on that detail.
π«Ά AUTHOR π«Ά
Guido Draheim <guidod@gmx.de> β we stan π
π COPYRIGHT π
Copyright (c) Guido Draheim, use under copyleft (LGPL,MPL) π
and that's the whole page, bestie π this was zziplib 0.13.78, manual page zzip_opendir(3) β go forth and open those dirs, mwah ππΈ
π¦ where this page comes from
- centos-stream 10: zziplib-devel 0.13.78-2.el10 Β· LGPL-2.0-or-later OR MPL-1.1
- debian trixie: libzzip-dev 0.13.78+dfsg.1-0.1 Β· ZZIP
- fedora 43: zziplib-devel 0.13.78-2.fc43 Β· LGPL-2.0-or-later OR MPL-1.1
- fedora 43: zziplib-devel 0.13.78-2.fc43 Β· LGPL-2.0-or-later OR MPL-1.1
- fedora 44: zziplib-devel 0.13.78-4.fc44 Β· LGPL-2.0-or-later OR MPL-1.1
- fedora 44: zziplib-devel 0.13.78-4.fc44 Β· LGPL-2.0-or-later OR MPL-1.1
- opensuse-leap 16.0: zziplib-devel 0.13.78-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: zziplib-devel 0.13.78-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: zziplib-devel 0.13.78-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: zziplib-devel 0.13.78-160000.2.2 Β· LGPL-2.1-or-later
- ubuntu questing: libzzip-dev 0.13.78+dfsg.1-0.1
- ubuntu resolute: libzzip-dev 0.13.78+dfsg.1-0.2 Β· ZZIP
- ubuntu stonking: libzzip-dev 0.13.78+dfsg.1-0.2 Β· ZZIP
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms