ZIP_FDOPEN(3) | Library Functions Manual | ZIP_FDOPEN(3) |
zip_fdopen
—
#include <zip.h>
zip_t *
zip_fdopen
(int
fd, int flags,
int *errorp);
zip_fdopen
the archive can only be opened in read-only
mode. The fd argument may not be used any longer after
calling zip_fdopen
. The flags
are specified by or'ing the
following values, or 0 for none of them.
ZIP_CHECKCONS
If an error occurs and errorp is
non-NULL
, it will be set to
the corresponding error code.
zip_fdopen
() returns a
struct zip pointer, and fd should
not be used any longer, nor passed to
close(2). Otherwise,
NULL
is returned and *errorp is
set to indicate the error. In the error case, fd remains
unchanged.
ZIP_ER_INCONS
]ZIP_CHECKCONS
but can also happen without it.ZIP_ER_INVAL
]zip_fdopen
, see
DESCRIPTION.ZIP_ER_MEMORY
]ZIP_ER_NOZIP
]ZIP_ER_OPEN
]ZIP_ER_READ
]ZIP_ER_SEEK
]zip_fdopen
() was added in libzip 1.0.
December 18, 2017 | NetBSD 8.99.35 |