zzip_dir_stat(3)

zzip_dir_stat3

Get meta infornation on a zipped element.

Usage

#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)

Overview

The zzip_dir_stat function obtains information about a filename in an opened zip-archive without opening that file first. Mostly used to obtain the uncompressed size of a file inside a zip-archive. see zzip_dir_open.

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.

Releases

11 releases since Debian 3.1 (Sarge); the text changed 6 times.

  1. 3.1–4.0
  2. 5.0
  3. 6.0–7
  4. 8
  5. 9–11
  6. 12
  7. 13

Author

Guido Draheim <[email protected]> Tomi Ollila <[email protected]>

From libzzip-dev 0.13.78+dfsg.1-0.1 in Debian 13 (Trixie). Parsed by carta from the page's man source.