zzip_dir_stat man page

zzip_dir_stat, zzip_file_stat, zzip_fstat — ...

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

The zzip_file_stat function will obtain information about a opened file _within_ a zip-archive. The file is supposed to be open (otherwise -1 is returned). The st_size stat-member contains the uncompressed size. The optional d_name is never set here.

The zzip_fstat function will obtain information about a opened file which may be either real/zipped. The file is supposed to be open (otherwise -1 is returned). The st_size stat-member contains the uncompressed size. The optional d_name is never set here. For a real file, we do set the d_csize := st_size and d_compr := 0 for meaningful defaults.

Author

· Guido Draheim <guidod@gmx.de> Tomi Ollila <Tomi.Ollila@iki.fi>

Referenced By

zzip_file_stat(3) and zzip_fstat(3) are aliases of zzip_dir_stat(3).

0.13.62 zziplib zziplib Function List