---
name: "zzip_dir_fdopen_ext_io"
section: "3"
platform: "linux"
package: "libzzip-dev"
version: "0.13.78+dfsg.1-0.1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/zzip_dir_fdopen"
---

# zzip\_dir\_fdopen\_ext\_io(3)

fd reopen.

Part of [zzip\_dir\_fdopen(3)](/zzip_dir_fdopen/3.md).

## NAME

zzip\_dir\_fdopen, zzip\_dir\_fdopen\_ext\_io -  fd reopen.

## SYNOPSIS

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

## DESCRIPTION

 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*

## AUTHOR

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

## COPYRIGHT

 Copyright (c) Guido Draheim, use under copyleft (LGPL,MPL)
