zzip_dir_stat(3)

πŸ“¦
version 0.13.78 Β· 4 versions
, in centos-stream 10, debian trixie, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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 (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 πŸ’‹