zzip_dir_fdopen(3)

zzip_dir_fdopen3

Fd reopen.

Usage

#include <zzip/lib.h>

ZZIP_DIR*
zzip_dir_fdopen(int fd, zzip_error_t* errcode_p)
ZZIP_DIR*
zzip_dir_fdopen_ext_io(int fd, zzip_error_t* errcode_p, zzip_strings_t* ext,
                       const zzip_plugin_io_t io)

Overview

The zzip_dir_fdopen function is used by the zzip_dir_open and zzip_opendir(2) call. Opens the zip-archive as specified with the fd which points to an already openend file. The zzip_dir_fdopen function then search and parse the zip's central directory.

NOTE: refcount is zero, so an _open/_close pair will also delete this _dirhandle

the zzip_dir_fdopen_ext_io function uses explicit ext and io instead of the internal defaults, setting these to zero is equivalent to zzip_dir_fdopen

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.