1 .TH "ZIP_OPEN" "3" "December 18, 2017" "NiH" "Library Functions Manual"
6 \fBzip_open_from_source\fR
11 \fB#include <zip.h>\fR
17 \fBzip_open\fR(\fIconst\ char\ *path\fR, \fIint\ flags\fR, \fIint\ *errorp\fR);
24 \fBzip_open_from_source\fR(\fIzip_source_t\ *zs\fR, \fIint\ flags\fR, \fIzip_error_t\ *ze\fR);
29 function opens the zip archive specified by
31 and returns a pointer to a
33 used to manipulate the archive.
38 the following values, or 0 for none of them.
42 Perform additional stricter consistency checks on the archive, and
46 Create the archive if it does not exist.
49 Error if archive already exists.
52 If archive exists, ignore its current contents.
53 In other words, handle it the same way as an empty archive.
56 Open archive in read-only mode.
59 If an error occurs and
63 it will be set to the corresponding error code.
66 \fBzip_open_from_source\fR()
67 function opens a zip archive encapsulated by the zip_source
71 In case of error, the zip_error
75 Upon successful completion
78 \fBzip_open_from_source\fR()
88 to indicate the error, while
89 \fBzip_open_from\fR(\fIsource\fR)
92 to indicate the error.
94 The archive specified by
105 [\fRZIP_ER_INCONS\fR]
106 Inconsistencies were found in the file specified by
108 This error is often caused by specifying
110 but can also happen without it.
118 [\fRZIP_ER_MEMORY\fR]
119 Required memory could not be allocated.
122 The file specified by
129 The file specified by
131 is not a zip archive.
134 The file specified by
139 A read error occurred; see
144 The file specified by
146 does not allow seeks.
155 \fBzip_open_from_source\fR()
156 were added in libzip 1.0.
158 Dieter Baron <\fIdillo@nih.at\fR>
160 Thomas Klausner <\fItk@giga.or.at\fR>