zzip_dir_stat(3)
β¨ zzip_dir_stat β¨
okay bestie, welcome to the zziplib Function List π this is the page for zzip_dir_stat, zzip_file_stat and zzip_fstat β the trio that goes "hey, what's the meta info on this zipped thing??" π
πΈ NAME πΈ
zzip_dir_stat, zzip_file_stat, zzip_fstat β get meta infornation on a zipped element.
yes the original says "infornation", we are leaving it exactly as-is, no cap π«Ά
β¨ SYNOPSIS β¨
#include <zzip/lib.h>
int
zzip_dir_stat(ZZIP_DIR* dir, zzip_char_t* name, ZZIP_STAT* zs, int flags)
int
zzip_file_stat(ZZIP_FILE* file, ZZIP_STAT* zs)
int
zzip_fstat(ZZIP_FILE* file, ZZIP_STAT* zs)
π DESCRIPTION π
okay so, three functions, three whole vibes, let's get into it π
zzip_dir_stat β this one obtains information about a filename in an opened zip-archive without opening that file first. it's mostly used to obtain the uncompressed size of a file inside a zip-archive. see zzip_dir_open. β¨
zzip_file_stat β this one will obtain information about an opened file _within_ a zip-archive. the file is supposed to be open (otherwise -1 is returned, rip π). the st_size stat-member contains the uncompressed size. the optional d_name is never set here. periodt.
zzip_fstat β this one will obtain information about an opened file which may be either real/zipped. the file is supposed to be open (otherwise -1 is returned, same energy π). the st_size stat-member contains the uncompressed size. the optional d_name is never set here either. and for a real file, we do set the d_csize := st_size and d_compr := 0 for meaningful defaults. slay π₯
π AUTHOR π
- Guido Draheim
<guidod@gmx.de> - Tomi Ollila
<Tomi.Ollila@iki.fi>
two icons, no notes π
π¦ COPYRIGHT π¦
Copyright (c) Guido Draheim, use under copyleft (LGPL,MPL)
and that's the whole page bestie, ty for coming to my ted talk π this was zzip_dir_stat(3) from zziplib version 0.13.78, 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