This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository x2goclient-contrib. commit 391f94e592dc748d279bcebe0eb85f3b64e2c01b Author: Mike DePaulo <mikedep333@gmail.com> Date: Sat Jan 10 19:56:48 2015 -0500 add libzip x86-mingw4-0.9.3 --- libzip/note-about-0.9.3_bin.txt | 8 + libzip/x86-mingw4-0.9.3_bin/bin/libzip.dll | Bin 0 -> 38912 bytes .../manifest/libzip-x86-mingw4-0.9.3-bin.mft | 39 +++ .../manifest/libzip-x86-mingw4-0.9.3-bin.ver | 2 + .../x86-mingw4-0.9.3_bin/share/man/man1/zipcmp.1 | 83 +++++++ .../x86-mingw4-0.9.3_bin/share/man/man1/zipmerge.1 | 90 +++++++ .../x86-mingw4-0.9.3_bin/share/man/man3/libzip.3 | 106 +++++++++ .../x86-mingw4-0.9.3_bin/share/man/man3/zip_add.3 | 128 ++++++++++ .../share/man/man3/zip_add_dir.3 | 88 +++++++ .../share/man/man3/zip_close.3 | 122 ++++++++++ .../share/man/man3/zip_delete.3 | 74 ++++++ .../share/man/man3/zip_error_clear.3 | 65 +++++ .../share/man/man3/zip_error_get.3 | 84 +++++++ .../share/man/man3/zip_error_get_sys_type.3 | 73 ++++++ .../share/man/man3/zip_error_to_str.3 | 90 +++++++ .../share/man/man3/zip_errors.3 | 128 ++++++++++ .../share/man/man3/zip_fclose.3 | 63 +++++ .../share/man/man3/zip_file_strerror.3 | 83 +++++++ .../share/man/man3/zip_fopen.3 | 136 +++++++++++ .../share/man/man3/zip_fread.3 | 66 ++++++ .../share/man/man3/zip_get_archive_comment.3 | 81 +++++++ .../share/man/man3/zip_get_file_comment.3 | 92 +++++++ .../share/man/man3/zip_get_name.3 | 96 ++++++++ .../share/man/man3/zip_get_num_files.3 | 64 +++++ .../share/man/man3/zip_name_locate.3 | 93 ++++++++ .../x86-mingw4-0.9.3_bin/share/man/man3/zip_open.3 | 150 ++++++++++++ .../share/man/man3/zip_rename.3 | 88 +++++++ .../share/man/man3/zip_set_archive_comment.3 | 85 +++++++ .../share/man/man3/zip_set_file_comment.3 | 94 ++++++++ .../share/man/man3/zip_source_buffer.3 | 94 ++++++++ .../share/man/man3/zip_source_file.3 | 102 ++++++++ .../share/man/man3/zip_source_filep.3 | 96 ++++++++ .../share/man/man3/zip_source_free.3 | 76 ++++++ .../share/man/man3/zip_source_function.3 | 164 +++++++++++++ .../share/man/man3/zip_source_zip.3 | 125 ++++++++++ .../x86-mingw4-0.9.3_bin/share/man/man3/zip_stat.3 | 123 ++++++++++ .../share/man/man3/zip_stat_init.3 | 63 +++++ .../share/man/man3/zip_unchange.3 | 76 ++++++ .../share/man/man3/zip_unchange_all.3 | 63 +++++ .../share/man/man3/zip_unchange_archive.3 | 63 +++++ libzip/x86-mingw4-0.9.3_bin_set-timestamps.sh | 39 +++ libzip/x86-mingw4-0.9.3_lib/include/zip.h | 250 ++++++++++++++++++++ libzip/x86-mingw4-0.9.3_lib/lib/libzip.dll.a | Bin 0 -> 26014 bytes .../manifest/libzip-x86-mingw4-0.9.3-lib.mft | 4 + .../manifest/libzip-x86-mingw4-0.9.3-lib.ver | 2 + libzip/x86-mingw4-0.9.3_lib_set-timestamps.sh | 4 + .../libzip-x86-mingw4-0.9.3-src.tar.bz2 | Bin 0 -> 341080 bytes 47 files changed, 3715 insertions(+) diff --git a/libzip/note-about-0.9.3_bin.txt b/libzip/note-about-0.9.3_bin.txt new file mode 100644 index 0000000..df1a77d --- /dev/null +++ b/libzip/note-about-0.9.3_bin.txt @@ -0,0 +1,8 @@ +The file on winkde.org: +ftp://winkde.org/kde/ports/win32/releases/stable/latest/libzip-x86-mingw4-0.9.3-bin.tar.bz2 +as a 2013-05-12 timestamp and is different from the file on code.x2go.org (timestamp: 2013-03-19) +http://code.x2go.org/releases/binary-win32/3rd-party/libzip/libzip-x86-mingw... +The x86-mingw4-0.9.3_bin directory comes from the former. +the 0.9.3 directory comes from the latter. +I am not sure what the difference is. + diff --git a/libzip/x86-mingw4-0.9.3_bin/bin/libzip.dll b/libzip/x86-mingw4-0.9.3_bin/bin/libzip.dll new file mode 100755 index 0000000..499c170 Binary files /dev/null and b/libzip/x86-mingw4-0.9.3_bin/bin/libzip.dll differ diff --git a/libzip/x86-mingw4-0.9.3_bin/manifest/libzip-x86-mingw4-0.9.3-bin.mft b/libzip/x86-mingw4-0.9.3_bin/manifest/libzip-x86-mingw4-0.9.3-bin.mft new file mode 100755 index 0000000..fd22d12 --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/manifest/libzip-x86-mingw4-0.9.3-bin.mft @@ -0,0 +1,39 @@ +a008c1a770597bee6ba97bfb7d4c73d4b82646e3 bin/libzip.dll +59ddb94fdbcb4a55854e88a1853963063a36818c share/man/man1/zipcmp.1 +d5143af02f94e202472241391d9d2236d74cb504 share/man/man1/zipmerge.1 +751041625b16eeed6537805d3306fbd43b04ac24 share/man/man3/libzip.3 +863291a630dd14030651d6263376c3e1fa5fc19a share/man/man3/zip_add.3 +06f84845570aab23d84ce4a18dbae71cf97dc328 share/man/man3/zip_add_dir.3 +d69a6058f1adcca4f023de5e46c72de4954c1a53 share/man/man3/zip_close.3 +d2647cc1618c808bb757689671673a3fbde204ad share/man/man3/zip_delete.3 +4961af96cb2b0edabb2ecc18a01876a292a24b09 share/man/man3/zip_error_clear.3 +ba37306132a15ba95492ee7a2670b1d97a5117b6 share/man/man3/zip_error_get.3 +c86603459bb0f9e3991d9fa5ce970d12dc3a8e97 share/man/man3/zip_error_get_sys_type.3 +2088d7fdfe681674fad5fc653640acba3c55b4e0 share/man/man3/zip_error_to_str.3 +8d9dbd5196734d4d73c2d758e2b06daa1857e782 share/man/man3/zip_errors.3 +0dcb5d4e1adb1d5d6cdcac4d6900779af47372c8 share/man/man3/zip_fclose.3 +65a678816e15f54ad81a37f9d73bbe042b6e3d23 share/man/man3/zip_file_strerror.3 +eceb849e4f3405b4219a34cce6b3ce34ae258b1b share/man/man3/zip_fopen.3 +822a550adc66a30cc50736dfdf5cd8cfd1a9ed41 share/man/man3/zip_fread.3 +d7dc4a59008baeb97dfae3e193d6d329805a4244 share/man/man3/zip_get_archive_comment.3 +9776895b61b059346e58393cf3550fabdeaf3951 share/man/man3/zip_get_file_comment.3 +2c0f3a3a345e1525e2fef5a1656acc48846b4de4 share/man/man3/zip_get_name.3 +338cea5ac7d4347dd9f35204549b8e36a61db2d6 share/man/man3/zip_get_num_files.3 +f9bf7892b67f0b5bf6b057db75799656217a13fb share/man/man3/zip_name_locate.3 +fbc48762fc991862e1fa1e2293b8c9a465f36919 share/man/man3/zip_open.3 +aa6dec027427a69de387bb21f6431d252e64ee02 share/man/man3/zip_rename.3 +a615af331a161032a20a8b750471d714afd3fa73 share/man/man3/zip_set_archive_comment.3 +7fc669b5bdcff72d82398dd3d19cb770643d80c0 share/man/man3/zip_set_file_comment.3 +20a9e3371d2665dea7fbbed978c8130d72f726ff share/man/man3/zip_source_buffer.3 +8617ac824b54e033da3a8d98df167e6d5426193a share/man/man3/zip_source_file.3 +82901a31c39675750b8f3129e09f146ca68dc98f share/man/man3/zip_source_filep.3 +8eebea338089f65a3067d36eeacf5e1d93211362 share/man/man3/zip_source_free.3 +1aa6c745e9fea18d9728bfa532be53a3ad9b26c2 share/man/man3/zip_source_function.3 +fce290d55d8e757951a4d862cbbb1111d2ee2664 share/man/man3/zip_source_zip.3 +27017ef5c72897abf952c8a9c57a42058384089f share/man/man3/zip_stat.3 +996ea69b7b57f34c97d5047a99296097eaf152a7 share/man/man3/zip_stat_init.3 +32d69e8f32791e813353ea1caf139f669925fcfc share/man/man3/zip_unchange.3 +79e339c3a883a6b5cb3cc1bf9a2d16afd757206d share/man/man3/zip_unchange_all.3 +8799bd18825541f30b93a6019805d23a36ad2096 share/man/man3/zip_unchange_archive.3 +manifest/libzip-x86-mingw4-0.9.3-bin.mft +manifest/libzip-x86-mingw4-0.9.3-bin.ver diff --git a/libzip/x86-mingw4-0.9.3_bin/manifest/libzip-x86-mingw4-0.9.3-bin.ver b/libzip/x86-mingw4-0.9.3_bin/manifest/libzip-x86-mingw4-0.9.3-bin.ver new file mode 100755 index 0000000..6bd2e1b --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/manifest/libzip-x86-mingw4-0.9.3-bin.ver @@ -0,0 +1,2 @@ +libzip-x86-mingw4 0.9.3 binaries +win32libs/libzip:0.9.3:unknown diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man1/zipcmp.1 b/libzip/x86-mingw4-0.9.3_bin/share/man/man1/zipcmp.1 new file mode 100755 index 0000000..ee3e09d --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man1/zipcmp.1 @@ -0,0 +1,83 @@ +.\" zipcmp.mdoc \-- compare zip archives +.\" Copyright (C) 2003, 2005, 2008 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP archives. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.TH ZIPCMP 1 "June 4, 2008" NiH +.SH "NAME" +zipcmp \- compare contents of zip archives +.SH "SYNOPSIS" +.B zipcmp +[\fB-hiqVv\fR] +\fBzip1 zip2\fR +.SH "DESCRIPTION" +.B zipcmp +compares the zip archives +\fBzip1\fR +and +\fBzip2\fR +and checks if they contain the same files, comparing their names, +uncompressed sizes, and CRCs. +File order and compressed size differences are ignored. +.PP +Supported options: +.RS +.TP 5 +\fB-h\fR +Display a short help message and exit. +.TP 5 +\fB-i\fR +Compare names ignoring case distinctions. +.TP 5 +\fB-q\fR +Quiet mode. +Compare +\fB-v\fR. +.TP 5 +\fB-v\fR +Verbose mode. +Print details about differences to stdout. +(This is the default.) +.TP 5 +\fB-V\fR +Display version information and exit. +.RE +.SH "EXIT STATUS" +.B zipcmp +exits 0 if the two zip archives contain the same files, 1 if they differ, +and \*[Gt]1 if an error occurred. +.SH "SEE ALSO" +zipmerge(1), +ziptorrent(1), +libzip(3) +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man1/zipmerge.1 b/libzip/x86-mingw4-0.9.3_bin/share/man/man1/zipmerge.1 new file mode 100755 index 0000000..20fdd42 --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man1/zipmerge.1 @@ -0,0 +1,90 @@ +.\" zipmerge.mdoc \-- merge zip archives +.\" Copyright (C) 2004, 2005, 2008 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP archives. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.TH ZIPMERGE 1 "June 4, 2008" NiH +.SH "NAME" +zipmerge \- merge zip archives +.SH "SYNOPSIS" +.B zipmerge +[\fB-DhIiSsV\fR] +\fBtarget-zip\fR +\fBsource-zip Op \fBsource-zip ...\fR\fR +.SH "DESCRIPTION" +.B zipmerge +merges the source zip archives +\fBsource-zip\fR +into the target zip archive +\fBtarget-zip.\fR +By default, files in the source zip archives overwrite +existing files of the same name in the target zip archive. +.PP +Supported options: +.RS +.TP 5 +\fB-D\fR +Ignore directory components in file name comparisons. +.TP 5 +\fB-h\fR +Display a short help message and exit. +.TP 5 +\fB-I\fR +Ignore case in file name comparisons +.TP 5 +\fB-i\fR +Ask before overwriting files. +See also +\fB-s\fR. +.TP 5 +\fB-S\fR +Do not overwrite files that have the same size and +CRC32 in both the source and target archives. +.TP 5 +\fB-s\fR +When +\fB-i\fR +is given, do not before overwriting files that have the same size +and CRC32. +.TP 5 +\fB-V\fR +Display version information and exit. +.RE +.SH "EXIT STATUS" +.B zipmerge +exits 0 on success and \*[Gt]1 if an error occurred. +.SH "SEE ALSO" +zipcmp(1), +ziptorrent(1), +libzip(3) +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man3/libzip.3 b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/libzip.3 new file mode 100755 index 0000000..d3df817 --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/libzip.3 @@ -0,0 +1,106 @@ +.\" Converted with mdoc2man 0.2 +.\" from NiH: libzip.mdoc,v 1.7 2006/04/23 12:50:32 wiz Exp +.\" $NiH: libzip.mdoc,v 1.7 2006/04/23 12:50:32 wiz Exp $ +.\" +.\" libzip.mdoc \-- general overview of available functions +.\" Copyright (C) 2005, 2006 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP archives. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.TH LIBZIP 3 "June 11, 2008" NiH +.SH "NAME" +libzip \- library for manipulating zip archives +.SH "LIBRARY" +libzip (-lzip) +.SH "SYNOPSIS" +#include <zip.h> +.SH "DESCRIPTION" +.B libzip +is a library for reading, creating, and modifying zip archives. +.PP +Below there are two sections listing functions: one for how to read +from zip archives and one for how to create/modify them. +.SH "READING ZIP ARCHIVES" +.SS "open archive" +zip_open(3) +.SS "find files" +zip_name_locate(3) +.SS "read files" +zip_fopen(3) +zip_fopen_index(3) +zip_fread(3) +zip_fclose(3) +.SS "close archive" +zip_close(3) +.SS "miscellaneous" +zip_stat(3) +zip_get_archive_comment(3) +zip_get_archive_flag(3) +zip_get_file_comment(3) +zip_get_name(3) +zip_get_num_files(3) +.SH "CREATING/MODIFYING ZIP ARCHIVES" +.SS "create/open archive" +zip_open(3) +.SS "add/change files and directories" +zip_add(3) +zip_add_dir(3) +zip_replace(3) +zip_set_file_comment(3) +zip_source_buffer(3) +zip_source_file(3) +zip_source_filep(3) +zip_source_function(3) +zip_source_zip(3) +zip_source_free(3) +.SS "rename files" +zip_rename(3) +.SS "delete files" +zip_delete(3) +.SS "revert changes" +zip_unchange(3) +zip_unchange_all(3) +zip_unchange_archive(3) +.SS "close archive" +zip_close(3) +.SS "miscellaneous" +zip_set_archive_comment(3) +zip_set_archive_flag(3) +.SH "ERROR HANDLING" +zip_error_to_str(3) +zip_strerror(3) +zip_file_strerror(3) +zip_error_get(3) +zip_error_get_sys_type(3) +zip_errors(3) +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_add.3 b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_add.3 new file mode 100755 index 0000000..1ede21c --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_add.3 @@ -0,0 +1,128 @@ +.\" Converted with mdoc2man 0.2 +.\" from NiH: zip_add.mdoc,v 1.9 2005/06/09 21:14:54 wiz Exp +.\" $NiH: zip_add.mdoc,v 1.9 2005/06/09 21:14:54 wiz Exp $ +.\" +.\" zip_add.mdoc \-- add files to zip archive +.\" Copyright (C) 2004, 2005, 2006 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP archives. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.TH ZIP_ADD 3 "April 9, 2006" NiH +.SH "NAME" +zip_add , \- .Nm zip_replace +add file to zip archive or replace file in zip archive +.SH "LIBRARY" +libzip (-lzip) +.SH "SYNOPSIS" +#include <zip.h> +.PP +int +zip_add(struct zip *archive, const char *name); \ +"struct zip_source *source" +.PP +int +zip_replace(struct zip *archive, int index); \ +"struct zip_source *source" +.SH "DESCRIPTION" +The function +zip_add +adds a file to a zip archive, while +zip_replace +replaces an existing file in a zip archive. +The argument +\fBarchive\fR +specifies the zip archive to which the file should be added. +\fBname\fR +is the file's name in the zip archive (for +zip_add ), +while +\fBindex\fR +specifies which file should be replaced (for +zip_replace ). +The data is obtained from the +\fBsource\fR +argument. +See the +zip_source_* +functions cited in +SEE ALSO. +.SH "RETURN VALUES" +Upon successful completion, the index of the new file in the archive +is returned. +Otherwise, \-1 is returned and the error code in +\fBarchive\fR +is set to indicate the error. +.SH "EXAMPLES" +.Bd \-literal \-offset indent +struct zip_source *s; + +if ((s=zip_source_buffer(archive, buffer, len)) == NULL || + zip_add(archive, name, s) \*[Lt] 0) { + zip_source_free(s); + printf("error adding file: %s\n", zip_strerror(archive)); +} +.Ed +.SH "ERRORS" +zip_add +and +zip_replace +fail if: +.RS +.TP 4 +[ZIP_ER_EXISTS] +There is already a file called +\fBname\fR +in the archive. +(Only applies to +zip_add ). +.TP 4 +[ZIP_ER_INVAL] +\fBsource\fR +or +\fBname\fR +are +\fBNULL,\fR +or +\fBindex\fR +is invalid. +.TP 4 +[ZIP_ER_MEMORY] +Required memory could not be allocated. +.RE +.SH "SEE ALSO" +libzip(3), +zip_source_file(3), +zip_source_filep(3), +zip_source_function(3), +zip_source_zip(3) +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_add_dir.3 b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_add_dir.3 new file mode 100755 index 0000000..5472cc0 --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_add_dir.3 @@ -0,0 +1,88 @@ +.\" Converted with mdoc2man 0.2 +.\" from NiH: zip_add_dir.mdoc,v 1.1 2006/10/03 18:55:51 wiz Exp +.\" $NiH: zip_add_dir.mdoc,v 1.1 2006/10/03 18:55:51 wiz Exp $ +.\" +.\" zip_add_dir.mdoc \-- add directory to zip archive +.\" Copyright (C) 2006 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP archives. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.TH ZIP_ADD_DIR 3 "October 3, 2006" NiH +.SH "NAME" +zip_add_dir \- add directory to zip archive +.SH "LIBRARY" +libzip (-lzip) +.SH "SYNOPSIS" +#include <zip.h> +.PP +int +zip_add_dir(struct zip *archive, const char *name); +.SH "DESCRIPTION" +The function +zip_add_dir +adds a directory to a zip archive. +The argument +\fBarchive\fR +specifies the zip archive to which the directory should be added. +\fBname\fR +is the directory's name in the zip archive. +.SH "RETURN VALUES" +Upon successful completion, the index of the new entry in the archive +is returned. +Otherwise, \-1 is returned and the error code in +\fBarchive\fR +is set to indicate the error. +.SH "ERRORS" +zip_add_dir +fails if: +.RS +.TP 4 +[ZIP_ER_EXISTS] +There is already an entry called +\fBname\fR +in the archive. +.TP 4 +[ZIP_ER_INVAL] +\fBarchive\fR +or +\fBname\fR +are +\fBNULL.\fR +.TP 4 +[ZIP_ER_MEMORY] +Required memory could not be allocated. +.RE +.SH "SEE ALSO" +libzip(3), +zip_add(3) +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_close.3 b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_close.3 new file mode 100755 index 0000000..49aeaa0 --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_close.3 @@ -0,0 +1,122 @@ +.\" Converted with mdoc2man 0.2 +.\" from NiH: zip_close.mdoc,v 1.13 2005/06/09 21:13:12 wiz Exp +.\" $NiH: zip_close.mdoc,v 1.13 2005/06/09 21:13:12 wiz Exp $ +.\" +.\" zip_close.mdoc \-- close zip archive +.\" Copyright (C) 2003, 2005 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP archives. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.TH ZIP_CLOSE 3 "July 24, 2008" NiH +.SH "NAME" +zip_close \- close zip archive +.SH "LIBRARY" +libzip (-lzip) +.SH "SYNOPSIS" +#include <zip.h> +.PP +int +zip_close(struct zip *archive); +.SH "DESCRIPTION" +The +zip_close +function closes +\fBarchive\fR +and frees the memory allocated for it. +If any files within were changed, those changes are written to disk +first. +If writing changes fails, +zip_close +fails and +\fBarchive\fR +is left unchanged. +If +\fBarchive\fR +contains no files, the file is completely removed (no empty archive is +written). +.SH "RETURN VALUES" +Upon successful completion 0 is returned. +Otherwise, \-1 is returned and the error code in +\fBarchive\fR +is set to indicate the error. +.SH "ERRORS" +zip_close +will fail if: +.RS +.TP 4 +[ZIP_ER_EOF] +Unexpected end-of-file found while reading from a file. +.TP 4 +[ZIP_ER_INTERNAL] +The callback function of an added or replaced file returned an +error but failed to report which. +.TP 4 +[ZIP_ER_INVAL] +The +\fBpath\fR +argument is +\fBNULL.\fR +.TP 4 +[ZIP_ER_MEMORY] +Required memory could not be allocated. +.TP 4 +[ZIP_ER_NOZIP] +File is not a zip archive. +.TP 4 +[ZIP_ER_READ] +A file read failed. +.TP 4 +[ZIP_ER_RENAME] +A temporary file could not be renamed to its final name. +.TP 4 +[ZIP_ER_SEEK] +A file seek failed. +.TP 4 +[ZIP_ER_TMPOPEN] +A temporary file could not be created. +.TP 4 +[ZIP_ER_WRITE] +A file write failed. +.TP 4 +[ZIP_ER_ZLIB] +An error occurred while (de)compressing a stream with +zlib(3). +.RE +Additionally, any errors returned by the callback function +for added or replaced files will be passed back. +.SH "SEE ALSO" +libzip(3), +zip_error_get(3), +zip_open(3), +zip_strerror(3) +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_delete.3 b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_delete.3 new file mode 100755 index 0000000..6689e72 --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_delete.3 @@ -0,0 +1,74 @@ +.\" Converted with mdoc2man 0.2 +.\" from NiH: zip_delete.mdoc,v 1.10 2005/06/09 21:13:12 wiz Exp +.\" $NiH: zip_delete.mdoc,v 1.10 2005/06/09 21:13:12 wiz Exp $ +.\" +.\" zip_delete.mdoc \-- delete files from zip archive +.\" Copyright (C) 2003, 2005 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP archives. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.TH ZIP_DELETE 3 "October 3, 2003" NiH +.SH "NAME" +zip_delete \- delete file from zip archive +.SH "LIBRARY" +libzip (-lzip) +.SH "SYNOPSIS" +#include <zip.h> +.PP +int +zip_delete(struct zip *archive, int index); +.SH "DESCRIPTION" +The file at position +\fBindex\fR +in the zip archive +\fBarchive\fR +is marked as deleted. +.SH "RETURN VALUES" +Upon successful completion 0 is returned. +Otherwise, \-1 is returned and the error code in +\fBarchive\fR +is set to indicate the error. +.SH "ERRORS" +zip_delete +fails if: +.RS +.TP 4 +[ZIP_ER_INVAL] +\fBindex\fR +is not a valid file index in +\fBarchive.\fR +.RE +.SH "SEE ALSO" +libzip(3), +zip_unchange(3) +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_error_clear.3 b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_error_clear.3 new file mode 100755 index 0000000..4435a6a --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_error_clear.3 @@ -0,0 +1,65 @@ +.\" $NiH$ +.\" +.\" zip_clear_error.mdoc \-- clear error state for archive or file +.\" Copyright (C) 2006 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP archives. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.TH ZIP_CLEAR_ERROR 3 "October 4, 2006" NiH +.SH "NAME" +zip_error_clear , \- .Nm zip_file_error_clear +clear error state for archive or file +.SH "LIBRARY" +libzip (-lzip) +.SH "SYNOPSIS" +#include <zip.h> +.PP +void +zip_error_clear(struct zip *archive); +.PP +void +zip_file_error_clear(struct zip_file *file); +.SH "DESCRIPTION" +The +zip_error_clear +function clears the error state for the zip archive +\fBarchive.\fR +.PP +The +zip_file_error_clear +function does the same for the zip file +\fBfile.\fR +.SH "SEE ALSO" +libzip(3), +zip_error_get(3) +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_error_get.3 b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_error_get.3 new file mode 100755 index 0000000..e5b988b --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_error_get.3 @@ -0,0 +1,84 @@ +.\" Converted with mdoc2man 0.2 +.\" from NiH: zip_error_get.mdoc,v 1.9 2006/04/23 12:45:10 wiz Exp +.\" $NiH: zip_error_get.mdoc,v 1.9 2006/04/23 12:45:10 wiz Exp $ +.\" +.\" zip_error_get.mdoc \-- get error codes for archive or file +.\" Copyright (C) 2004, 2005 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP archives. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.TH ZIP_ERROR_GET 3 "October 4, 2006" NiH +.SH "NAME" +zip_error_get , \- .Nm zip_file_error_get +get error codes for archive or file +.SH "LIBRARY" +libzip (-lzip) +.SH "SYNOPSIS" +#include <zip.h> +.PP +void +zip_error_get(struct zip *archive, int *zep, int *sep); +.PP +void +zip_file_error_get(struct zip_file *file, int *zep, int *sep); +.SH "DESCRIPTION" +The +zip_error_get +function returns the error codes for the zip archive +\fBarchive.\fR +If +\fBzep\fR +is not +\fBNULL,\fR +\fB*zep\fR +will be filled in with the error code from libzip. +Similarly, +\fB*sep\fR +will contain the corresponding system error code, if +\fBsep\fR +is not +\fBNULL;\fR +use +zip_error_get_sys_type +to determine the type of system error code. +.PP +The +zip_file_error_get +function does the same for the zip file +\fBfile.\fR +.SH "SEE ALSO" +libzip(3), +zip_error_clear(3), +zip_error_get_sys_type(3), +zip_error_to_str(3) +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_error_get_sys_type.3 b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_error_get_sys_type.3 new file mode 100755 index 0000000..c86e380 --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_error_get_sys_type.3 @@ -0,0 +1,73 @@ +.\" Converted with mdoc2man 0.2 +.\" from NiH: zip_error_get_sys_type.mdoc,v 1.4 2005/06/09 21:13:12 wiz Exp +.\" $NiH: zip_error_get_sys_type.mdoc,v 1.4 2005/06/09 21:13:12 wiz Exp $ +.\" +.\" zip_error_get_sys_type.mdoc \-- get type of error +.\" Copyright (C) 2004, 2005 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP archives. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.TH ZIP_ERROR_SYS_TYPE 3 "November 30, 2004" NiH +.SH "NAME" +zip_error_get_sys_type \- get type of system error code +.SH "LIBRARY" +libzip (-lzip) +.SH "SYNOPSIS" +#include <zip.h> +.PP +int +zip_error_get_sys_type(int ze); +.SH "DESCRIPTION" +The +zip_error_get_sys_type +function returns the type of the system error code for the libzip error +\fBze.\fR +Possible types are: +.RS +.TP 16 +\fBZIP_ET_NONE\fR +System error code is unused. +.TP 16 +\fBZIP_ET_SYS\fR +System error code is an errno value. +.TP 16 +\fBZIP_ET_ZLIB\fR +System error code is from +zlib(3). +.RE +.SH "SEE ALSO" +libzip(3), +zip_error_get(3), +zip_error_to_str(3), +zip_file_error_get(3) +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_error_to_str.3 b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_error_to_str.3 new file mode 100755 index 0000000..3563b4a --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_error_to_str.3 @@ -0,0 +1,90 @@ +.\" Converted with mdoc2man 0.2 +.\" from NiH: zip_error_to_str.mdoc,v 1.7 2005/06/09 21:13:12 wiz Exp +.\" $NiH: zip_error_to_str.mdoc,v 1.7 2005/06/09 21:13:12 wiz Exp $ +.\" +.\" zip_error_to_str.mdoc \-- get string representation of zip error code +.\" Copyright (C) 2003, 2004, 2005 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP archives. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.TH ZIP_ERROR_TO_STR 3 "November 24, 2004" NiH +.SH "NAME" +zip_error_to_str \- get string representation of zip error +.SH "LIBRARY" +libzip (-lzip) +.SH "SYNOPSIS" +#include <zip.h> +.PP +int +zip_error_to_str(char *buf, int len, int ze, int se); +.SH "DESCRIPTION" +The +zip_error_to_str +function stores a string describing the libzip error code +\fBze\fR +in the user-provided buffer +\fBbuf\fR +which has size +\fBlen.\fR +The buffer is always NUL-terminated. +\fBse\fR +should be the value of the global variable +\fBerrno\fR +at the time of the error or the zlib error code, depending on +\fBze.\fR +.PP +zip_error_to_str +is especially useful if +zip_open +failed, since then there is no +.Vt struct zip +is available to store the error code; otherwise +zip_strerror +or +zip_file_strerror +are more convenient. +.SH "RETURN VALUES" +zip_error_to_str +returns the number of characters that would have been written to a +sufficiently sized +\fBbuf,\fR +excluding the terminating NUL character. +.SH "SEE ALSO" +libzip(3), +zip_error_get(3), +zip_error_get_sys_type(3), +zip_file_error_get(3), +zip_file_strerror(3), +zip_open(3), +zip_strerror(3) +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_errors.3 b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_errors.3 new file mode 100755 index 0000000..0012a52 --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_errors.3 @@ -0,0 +1,128 @@ +.\" Converted with mdoc2man 0.2 +.\" from NiH: zip_errors.mdoc,v 1.5 2005/06/09 21:13:12 wiz Exp +.\" $NiH: zip_errors.mdoc,v 1.5 2005/06/09 21:13:12 wiz Exp $ +.\" +.\" zip_errors.mdoc \-- list of all libzip error codes +.\" Copyright (C) 2004, 2005 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP archives. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.\" This file was generated automatically by./make_zip_errors.sh +.\" from./../lib/zip.h; make changes there. +.\" NiH: make_zip_errors.sh,v 1.3 2005/01/20 21:03:36 dillo Exp +.\" NiH: zip.h,v 1.48 2005/01/20 21:00:29 dillo Exp +.\" +.TH ZIP_ERRORS 3 "January 20, 2005" NiH +.SH "NAME" +zip_errors \- list of all libzip error codes +.SH "LIBRARY" +libzip (-lzip) +.SH "SYNOPSIS" +#include <zip.h> +.SH "DESCRIPTION" +The following error codes are used by libzip: +.RS +.TP 23 +[ZIP_ER_OK] +No error. +.TP 23 +[ZIP_ER_MULTIDISK] +Multi-disk zip archives not supported. +.TP 23 +[ZIP_ER_RENAME] +Renaming temporary file failed. +.TP 23 +[ZIP_ER_CLOSE] +Closing zip archive failed. +.TP 23 +[ZIP_ER_SEEK] +Seek error. +.TP 23 +[ZIP_ER_READ] +Read error. +.TP 23 +[ZIP_ER_WRITE] +Write error. +.TP 23 +[ZIP_ER_CRC] +CRC error. +.TP 23 +[ZIP_ER_ZIPCLOSED] +Containing zip archive was closed. +.TP 23 +[ZIP_ER_NOENT] +No such file. +.TP 23 +[ZIP_ER_EXISTS] +File already exists. +.TP 23 +[ZIP_ER_OPEN] +Can't open file. +.TP 23 +[ZIP_ER_TMPOPEN] +Failure to create temporary file. +.TP 23 +[ZIP_ER_ZLIB] +Zlib error. +.TP 23 +[ZIP_ER_MEMORY] +Malloc failure. +.TP 23 +[ZIP_ER_CHANGED] +Entry has been changed. +.TP 23 +[ZIP_ER_COMPNOTSUPP] +Compression method not supported. +.TP 23 +[ZIP_ER_EOF] +Premature EOF. +.TP 23 +[ZIP_ER_INVAL] +Invalid argument. +.TP 23 +[ZIP_ER_NOZIP] +Not a zip archive. +.TP 23 +[ZIP_ER_INTERNAL] +Internal error. +.TP 23 +[ZIP_ER_INCONS] +Zip archive inconsistent. +.TP 23 +[ZIP_ER_REMOVE] +Can't remove file. +.TP 23 +[ZIP_ER_DELETED] +Entry has been deleted. +.RE +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_fclose.3 b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_fclose.3 new file mode 100755 index 0000000..102456f --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_fclose.3 @@ -0,0 +1,63 @@ +.\" Converted with mdoc2man 0.2 +.\" from NiH: zip_fclose.mdoc,v 1.8 2005/06/09 21:13:12 wiz Exp +.\" $NiH: zip_fclose.mdoc,v 1.8 2005/06/09 21:13:12 wiz Exp $ +.\" +.\" zip_fclose.mdoc \-- close file in zip archive +.\" Copyright (C) 2003, 2005 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP archives. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.TH ZIP_FCLOSE 3 "October 3, 2003" NiH +.SH "NAME" +zip_fclose \- close file in zip archive +.SH "LIBRARY" +libzip (-lzip) +.SH "SYNOPSIS" +#include <zip.h> +.PP +int +zip_fclose(struct zip_file *file); +.SH "DESCRIPTION" +The +zip_fclose +function closes +\fBfile\fR +and frees the memory allocated for it. +.SH "RETURN VALUES" +Upon successful completion 0 is returned. +Otherwise, the error code is returned. +.SH "SEE ALSO" +libzip(3), +zip_fopen(3), +zip_fread(3) +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_file_strerror.3 b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_file_strerror.3 new file mode 100755 index 0000000..31d6633 --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_file_strerror.3 @@ -0,0 +1,83 @@ +.\" Converted with mdoc2man 0.2 +.\" from NiH: zip_file_strerror.mdoc,v 1.6 2005/06/09 21:13:12 wiz Exp +.\" $NiH: zip_file_strerror.mdoc,v 1.6 2005/06/09 21:13:12 wiz Exp $ +.\" +.\" zip_file_strerror.mdoc \-- get string representation for a zip error +.\" Copyright (C) 2003, 2005 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP archives. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.TH ZIP_FILE_STRERROR 3 "December 27, 2004" NiH +.SH "NAME" +zip_file_strerror , \- .Nm zip_strerror +get string representation for a zip error +.SH "LIBRARY" +libzip (-lzip) +.SH "SYNOPSIS" +#include <zip.h> +.PP +const char * +zip_file_strerror(struct zip_file *file); +.PP +const char * +zip_strerror(struct zip *archive); +.SH "DESCRIPTION" +The +zip_strerror +function returns a string describing the last error for the zip archive +\fBarchive,\fR +while the +zip_file_strerror +function does the same for a zip file +\fBfile\fR +(one file in an archive). +The returned string must not be modified or freed, and becomes invalid when +\fBarchive\fR +or +\fBfile,\fR +respectively, +is closed or on the next call to +zip_strerror +or +zip_file_strerror, +respectively, +for the same archive. +.SH "RETURN VALUES" +zip_file_strerror +and +zip_strerror +return a pointer to the error string. +.SH "SEE ALSO" +libzip(3), +zip_error_to_str(3) +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_fopen.3 b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_fopen.3 new file mode 100755 index 0000000..9392e78 --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_fopen.3 @@ -0,0 +1,136 @@ +.\" Converted with mdoc2man 0.2 +.\" from NiH: zip_fopen.mdoc,v 1.13 2005/06/09 21:13:12 wiz Exp +.\" $NiH: zip_fopen.mdoc,v 1.13 2005/06/09 21:13:12 wiz Exp $ +.\" +.\" zip_fopen.mdoc \-- open file in zip archive for reading +.\" Copyright (C) 2003, 2004, 2005 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP archives. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.TH ZIP_FOPEN 3 "April 14, 2004" NiH +.SH "NAME" +zip_fopen , \- .Nm zip_fopen_index +open file in zip archive for reading +.SH "LIBRARY" +libzip (-lzip) +.SH "SYNOPSIS" +#include <zip.h> +.PP +struct zip_file * +zip_fopen(struct zip *archive, const char *fname, int flags); +.PP +struct zip_file * +zip_fopen_index(struct zip *archive, int index, int flags); +.SH "DESCRIPTION" +The +zip_fopen +function opens the file name +\fBfname\fR +in +\fBarchive.\fR +The +\fBflags\fR +argument specifies how the name lookup should be done, according to +the values are described in +zip_name_locate(3). +Also, the following values may be +.I or'ed +to it. +.RS +.TP 19 +\fBZIP_FL_COMPRESSED\fR +Read the compressed data. +Otherwise the data is uncompressed by +zip_fread. +.TP 19 +\fBZIP_FL_UNCHANGED\fR +Read the original data from the zip archive, ignoring any changes made +to the file. +.RE +.PP +The +zip_fopen_index +function opens the file at position +\fBindex.\fR +.SH "RETURN VALUES" +Upon successful completion, a +.PP +struct zip_file +pointer is returned. +Otherwise, +\fBNULL\fR +is returned and the error code in +\fBarchive\fR +is set to indicate the error. +.SH "ERRORS" +.RS +.TP 4 +[ZIP_ER_CHANGED] +The file data has been changed. +.TP 4 +[ZIP_ER_COMPNOTSUPP] +The compression method used is not supported. +.TP 4 +[ZIP_ER_MEMORY] +Required memory could not be allocated. +.TP 4 +[ZIP_ER_READ] +A file read error occurred. +.TP 4 +[ZIP_ER_SEEK] +A file seek error occurred. +.TP 4 +[ZIP_ER_ZLIB] +Initializing the zlib stream failed. +.RE +.PP +The function +zip_fopen +may also fail and set +.Va zip_err +for any of the errors specified for the routine +zip_name_locate(3). +.PP +The function +zip_fopen_index +may also fail with +ZIP_ER_INVAL +if +\fBindex\fR +is invalid. +.SH "SEE ALSO" +libzip(3), +zip_fclose(3), +zip_fread(3), +zip_name_locate(3) +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_fread.3 b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_fread.3 new file mode 100755 index 0000000..edae35b --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_fread.3 @@ -0,0 +1,66 @@ +.\" Converted with mdoc2man 0.2 +.\" from NiH: zip_fread.mdoc,v 1.8 2005/06/09 21:13:12 wiz Exp +.\" $NiH: zip_fread.mdoc,v 1.8 2005/06/09 21:13:12 wiz Exp $ +.\" +.\" zip_fread.mdoc \-- read from file +.\" Copyright (C) 2003, 2005 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP archives. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.TH ZIP_FREAD 3 "October 3, 2003" NiH +.SH "NAME" +zip_fread \- read from file +.SH "LIBRARY" +libzip (-lzip) +.SH "SYNOPSIS" +#include <zip.h> +.PP +int +zip_fread(struct zip_file *file, void *buf, int nbytes); +.SH "DESCRIPTION" +The +zip_fread +function reads at most +\fBnbytes\fR +bytes from +\fBfile\fR +into +\fBbuf.\fR +.SH "RETURN VALUES" +If successful, the number of bytes actually read is returned. +Otherwise, \-1 is returned. +.SH "SEE ALSO" +libzip(3), +zip_fclose(3), +zip_fopen(3) +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_get_archive_comment.3 b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_get_archive_comment.3 new file mode 100755 index 0000000..08ad66c --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_get_archive_comment.3 @@ -0,0 +1,81 @@ +.\" Converted with mdoc2man 0.2 +.\" from NiH: zip_get_archive_comment.mdoc,v 1.1 2006/04/09 19:05:48 wiz Exp +.\" $NiH: zip_get_archive_comment.mdoc,v 1.1 2006/04/09 19:05:48 wiz Exp $ +.\" +.\" zip_get_archive_comment.mdoc \-- get zip archive comment +.\" Copyright (C) 2006 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP archives. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.TH ZIP_GET_ARCHIVE_COMMENT 3 "April 23, 2006" NiH +.SH "NAME" +zip_get_archive_comment \- get zip archive comment +.SH "LIBRARY" +libzip (-lzip) +.SH "SYNOPSIS" +#include <zip.h> +.PP +const char * +zip_get_archive_comment(struct zip *archive, int *lenp, int flags); +.SH "DESCRIPTION" +The +zip_get_archive_comment +function returns the comment for the entire zip archive. +This pointer should not be modified or +free(3) +Ap d. +If +\fBlenp\fR +is not +\fBNULL,\fR +the integer to which it points will be set to the length of the +comment. +If +\fBflags\fR +is set to +\fBZIP_FL_UNCHANGED,\fR +the original unchanged comment is returned. +.SH "RETURN VALUES" +Upon successful completion, a pointer to the comment is returned, +or +\fBNULL\fR +if there is no comment. +.\" In case of an error, +.\" \fBNULL\fR +.\" is returned and the error code in +.\" \fBarchive\fR +.\" is set to indicate the error. +.SH "SEE ALSO" +libzip(3), +zip_get_file_comment(3) +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_get_file_comment.3 b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_get_file_comment.3 new file mode 100755 index 0000000..dcc6a03 --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_get_file_comment.3 @@ -0,0 +1,92 @@ +.\" Converted with mdoc2man 0.2 +.\" from NiH: zip_get_file_comment.mdoc,v 1.3 2006/04/23 12:45:31 wiz Exp +.\" $NiH: zip_get_file_comment.mdoc,v 1.3 2006/04/23 12:45:31 wiz Exp $ +.\" +.\" zip_get_file_comment.mdoc \-- get comment for file in zip +.\" Copyright (C) 2006 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP files. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.TH ZIP_GET_FILE_COMMENT 3 "April 23, 2006" NiH +.SH "NAME" +zip_get_file_comment \- get comment for file in zip +.SH "LIBRARY" +libzip (-lzip) +.SH "SYNOPSIS" +#include <zip.h> +.PP +const char * +zip_get_file_comment(struct zip *archive, int index, int *lenp, int flags); +.SH "DESCRIPTION" +The +zip_get_file_comment +function returns the comment for the file at position +\fBindex\fR +in the zip archive. +This pointer should not be modified or +free(3) +Ap d. +If +\fBlenp\fR +is not +\fBNULL,\fR +the integer to which it points will be set to the length of the +comment. +If +\fBflags\fR +is set to +\fBZIP_FL_UNCHANGED,\fR +the original unchanged comment is returned. +.SH "RETURN VALUES" +Upon successful completion, a pointer to the comment is returned, +or +\fBNULL\fR +if there is no comment. +In case of an error, +\fBNULL\fR +is returned and the error code in +\fBarchive\fR +is set to indicate the error. +.SH "ERRORS" +zip_get_file_comment +fails if: +.RS +.TP 4 +[ZIP_ER_INVAL] +\fBindex\fR +is not a valid file index in +\fBarchive.\fR +.SH "SEE ALSO" +libzip(3), +zip_get_archive_comment(3) +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_get_name.3 b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_get_name.3 new file mode 100755 index 0000000..78c609d --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_get_name.3 @@ -0,0 +1,96 @@ +.\" Converted with mdoc2man 0.2 +.\" from NiH: zip_get_name.mdoc,v 1.9 2005/06/09 21:13:12 wiz Exp +.\" $NiH: zip_get_name.mdoc,v 1.9 2005/06/09 21:13:12 wiz Exp $ +.\" +.\" zip_get_name.mdoc \-- get name of file by index +.\" Copyright (C) 2003, 2004, 2005 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP archives. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.TH ZIP_GET_NAME 3 "January 20, 2005" NiH +.SH "NAME" +zip_get_name \- get name of file by index +.SH "LIBRARY" +libzip (-lzip) +.SH "SYNOPSIS" +#include <zip.h> +.PP +const char * +zip_get_name(struct zip *archive, int index, int flags); +.SH "DESCRIPTION" +The +zip_get_name +function returns the name of the file at position +\fBindex\fR +in +\fBarchive.\fR +If +\fBflags\fR +is set to +\fBZIP_FL_UNCHANGED,\fR +the original unchanged filename is returned. +The returned string must not be modified or freed, and becomes invalid when +\fBarchive\fR +is closed. +.SH "RETURN VALUES" +Upon successful completion, a pointer to the name is returned. +Otherwise, +\fBNULL\fR +and the error code in +\fBarchive\fR +is set to indicate the error. +.SH "ERRORS" +zip_get_name +fails if: +.RS +.TP 4 +[ZIP_ER_DELETED] +\fBindex\fR +refers to a file that has been deleted +(see +zip_delete(3) +). +.TP 4 +[ZIP_ER_INVAL] +\fBindex\fR +is not a valid file index in +\fBarchive,\fR +or +\fBindex\fR +points to an added file and +\fBZIP_FL_UNCHANGED\fR +is set. +.SH "SEE ALSO" +libzip(3), +zip_name_locate(3) +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_get_num_files.3 b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_get_num_files.3 new file mode 100755 index 0000000..f470c11 --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_get_num_files.3 @@ -0,0 +1,64 @@ +.\" Converted with mdoc2man 0.2 +.\" from NiH: zip_get_num_files.mdoc,v 1.4 2005/06/09 21:13:12 wiz Exp +.\" $NiH: zip_get_num_files.mdoc,v 1.4 2005/06/09 21:13:12 wiz Exp $ +.\" +.\" zip_get_num_files.mdoc \-- get number of files in archive +.\" Copyright (C) 2003, 2005 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP archives. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.TH ZIP_GET_NUM_FILES 3 "December 27, 2003" NiH +.SH "NAME" +zip_get_num_files \- get number of files in archive +.SH "LIBRARY" +libzip (-lzip) +.SH "SYNOPSIS" +#include <zip.h> +.PP +int +zip_get_num_files(struct zip *archive); +.SH "DESCRIPTION" +The +zip_get_num_files +function returns the number of files in +\fBarchive.\fR +.SH "RETURN VALUES" +zip_get_num_files +returns the number of files in the zip archive, +or \-1 if +\fBarchive\fR +is +\fBNULL.\fR +.SH "SEE ALSO" +libzip(3) +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_name_locate.3 b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_name_locate.3 new file mode 100755 index 0000000..a60117c --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_name_locate.3 @@ -0,0 +1,93 @@ +.\" Converted with mdoc2man 0.2 +.\" from NiH: zip_name_locate.mdoc,v 1.8 2005/06/09 21:14:54 wiz Exp +.\" $NiH: zip_name_locate.mdoc,v 1.8 2005/06/09 21:14:54 wiz Exp $ +.\" +.\" zip_name_locate.mdoc \-- get index of file by name +.\" Copyright (C) 2003, 2005 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP archives. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.TH ZIP_NAME_LOCATE 3 "October 4, 2006" NiH +.SH "NAME" +zip_name_locate \- get index of file by name +.SH "LIBRARY" +libzip (-lzip) +.SH "SYNOPSIS" +#include <zip.h> +.PP +int +zip_name_locate(struct zip *archive, const char *fname, int flags); +.SH "DESCRIPTION" +The +zip_name_locate +function returns the index of the file named +\fBfname\fR +in +\fBarchive.\fR +If +\fBarchive\fR +does not contain a file with that name, \-1 is returned. +The +.Fa flags +are specified by +.I or'ing +the following values, or 0 for none of them. +.RS +.TP 15 +\fBZIP_FL_NOCASE\fR +Ignore case distinctions. +.TP 15 +\fBZIP_FL_NODIR\fR +Ignore directory part of file name in archive. +.RE +.SH "RETURN VALUES" +zip_name_locate +returns the index of the file named +\fBfname\fR +or \-1, if +\fBarchive\fR +does not contain an entry of that name. +.SH "ERRORS" +The +zip_name_locate +function fails and sets the error information to +ZIP_ER_NOENT +if no entry of the name +\fBfname\fR +is found in the archive. +If one of the arguments is invalid, the error information is set to +ZIP_ER_INVAL. +.SH "SEE ALSO" +libzip(3), +zip_get_name(3) +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_open.3 b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_open.3 new file mode 100755 index 0000000..baa4c39 --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_open.3 @@ -0,0 +1,150 @@ +.\" Converted with mdoc2man 0.2 +.\" from NiH: zip_open.mdoc,v 1.21 2005/06/09 21:13:12 wiz Exp +.\" $NiH: zip_open.mdoc,v 1.21 2005/06/09 21:13:12 wiz Exp $ +.\" +.\" zip_open.mdoc \-- open zip archive +.\" Copyright (C) 2003, 2005 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP archives. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.TH ZIP_OPEN 3 "December 27, 2003" NiH +.SH "NAME" +zip_open \- open zip archive +.SH "LIBRARY" +libzip (-lzip) +.SH "SYNOPSIS" +#include <zip.h> +.PP +struct zip * +zip_open(const char *path, int flags, int *errorp); +.SH "DESCRIPTION" +The zip archive specified by +\fBpath\fR +is opened and a pointer to a +.PP +struct zip, +used to manipulate the archive, is returned. +The +.Fa flags +are specified by +.I or'ing +the following values, or 0 for none of them. +.RS +.TP 15 +\fBZIP_CREATE\fR +Create the archive if it does not exist. +.TP 15 +\fBZIP_EXCL\fR +Error if archive already exists. +.TP 15 +\fBZIP_CHECKCONS\fR +Perform additional consistency checks on the archive, and error if +they fail. +.RE +.PP +If an error occurs and +\fBerrorp\fR +is non-NULL, it will be set to the corresponding error code. +.SH "RETURN VALUES" +Upon successful completion +zip_open +returns a +.PP +struct zip +pointer. +Otherwise, +\fBNULL\fR +is returned and +\fB*errorp\fR +is set to indicate the error. +.SH "ERRORS" +The archive specified by +\fBpath\fR +is opened unless: +.RS +.TP 4 +[ZIP_ER_EXISTS] +The file specified by +\fBpath\fR +exists and +\fBZIP_EXCL\fR +is set. +.TP 4 +[ZIP_ER_INCONS] +Inconsistencies were found in the file specified by +\fBpath\fR +and +\fBZIP_CHECKCONS\fR +was specified. +.TP 4 +[ZIP_ER_INVAL] +The +\fBpath\fR +argument is +\fBNULL.\fR +.TP 4 +[ZIP_ER_MEMORY] +Required memory could not be allocated. +.TP 4 +[ZIP_ER_NOENT] +The file specified by +\fBpath\fR +does not exist and +\fBZIP_CREATE\fR +is not set. +.TP 4 +[ZIP_ER_NOZIP] +The file specified by +\fBpath\fR +is not a zip archive. +.TP 4 +[ZIP_ER_OPEN] +The file specified by +\fBpath\fR +could not be opened. +.TP 4 +[ZIP_ER_READ] +A read error occurred; see +.Va errno +for details. +.TP 4 +[ZIP_ER_SEEK] +The file specified by +\fBpath\fR +does not allow seeks. +.RE +.SH "SEE ALSO" +libzip(3), +zip_close(3), +zip_error_to_str(3) +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_rename.3 b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_rename.3 new file mode 100755 index 0000000..2f1acd6 --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_rename.3 @@ -0,0 +1,88 @@ +.\" Converted with mdoc2man 0.2 +.\" from NiH: zip_rename.mdoc,v 1.7 2005/06/09 21:13:12 wiz Exp +.\" $NiH: zip_rename.mdoc,v 1.7 2005/06/09 21:13:12 wiz Exp $ +.\" +.\" zip_rename.mdoc \-- rename file in zip archive +.\" Copyright (C) 2003-2008 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP archives. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.TH ZIP_RENAME 3 "July 24, 2008" NiH +.SH "NAME" +zip_rename \- rename file in zip archive +.SH "LIBRARY" +libzip (-lzip) +.SH "SYNOPSIS" +#include <zip.h> +.PP +int +zip_rename(struct zip *archive, int index, const char *name); +.SH "DESCRIPTION" +The file at position +\fBindex\fR +in the zip archive +\fBarchive\fR +is renamed to +\fBname.\fR +.SH "RETURN VALUES" +Upon successful completion 0 is returned. +Otherwise, \-1 is returned and the error code in +\fBarchive\fR +is set to indicate the error. +.SH "ERRORS" +zip_rename +fails if: +.RS +.TP 4 +[ZIP_ER_DELETED] +The file to be renamed has been deleted from the archive. +.TP 4 +[ZIP_ER_EXISTS] +There is already a file called +\fBname\fR +in the archive. +.TP 4 +[ZIP_ER_INVAL] +\fBindex\fR +is not a valid file index in +\fBarchive,\fR +\fBname is\fR +\fBNULL\fR +or the empty string. +Also a file cannot be renamed to a directory or vice versa. +Directories are denoted by a trailing slash. +.RE +.SH "SEE ALSO" +libzip(3), +zip_unchange(3) +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_set_archive_comment.3 b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_set_archive_comment.3 new file mode 100755 index 0000000..57433a5 --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_set_archive_comment.3 @@ -0,0 +1,85 @@ +.\" Converted with mdoc2man 0.2 +.\" from NiH: zip_set_archive_comment.mdoc,v 1.1 2006/04/23 12:47:30 wiz Exp +.\" $NiH: zip_set_archive_comment.mdoc,v 1.1 2006/04/23 12:47:30 wiz Exp $ +.\" +.\" zip_set_archive_comment.mdoc \-- set zip archive comment +.\" Copyright (C) 2006 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP archives. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.TH ZIP_SET_ARCHIVE_COMMENT 3 "April 23, 2006" NiH +.SH "NAME" +zip_set_archive_comment \- set zip archive comment +.SH "LIBRARY" +libzip (-lzip) +.SH "SYNOPSIS" +#include <zip.h> +.PP +int +zip_set_archive_comment(struct zip *archive); \ +"const char *comment" "int *lenp" +.SH "DESCRIPTION" +The +zip_set_archive_comment +function sets the comment for the entire zip archive. +If +\fBcomment\fR +is +\fBNULL\fR +and +\fBlen\fR +is 0, the archive comment will be removed. +.SH "RETURN VALUES" +Upon successful completion 0 is returned. +Otherwise, \-1 is returned and the error information in +\fBarchive\fR +is set to indicate the error. +.SH "ERRORS" +zip_set_archive_comment +fails if: +.RS +.TP 4 +[ZIP_ER_INVAL] +\fBlen\fR +is less than 0 or longer than the maximum comment length in a zip file +(65535). +.TP 4 +[ZIP_ER_MEMORY] +Required memory could not be allocated. +.RE +.SH "SEE ALSO" +libzip(3), +zip_get_archive_comment(3), +zip_get_file_comment(3), +zip_set_file_comment(3) +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_set_file_comment.3 b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_set_file_comment.3 new file mode 100755 index 0000000..8a9d56e --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_set_file_comment.3 @@ -0,0 +1,94 @@ +.\" Converted with mdoc2man 0.2 +.\" from NiH: zip_set_file_comment.mdoc,v 1.1 2006/04/23 12:47:30 wiz Exp +.\" $NiH: zip_set_file_comment.mdoc,v 1.1 2006/04/23 12:47:30 wiz Exp $ +.\" +.\" zip_set_file_comment.mdoc \-- set comment for file in zip +.\" Copyright (C) 2006 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP files. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.TH ZIP_SET_FILE_COMMENT 3 "April 23, 2006" NiH +.SH "NAME" +zip_set_file_comment \- set comment for file in zip +.SH "LIBRARY" +libzip (-lzip) +.SH "SYNOPSIS" +#include <zip.h> +.PP +int +zip_set_file_comment(struct zip *archive, int index); \ +"const char *comment" "int len" +.SH "DESCRIPTION" +The +zip_set_file_comment +function sets the comment for the file at position +\fBindex\fR +in the zip archive to +\fBcomment\fR +of length +\fBlen.\fR +If +\fBcomment\fR +is +\fBNULL\fR +and +\fBlen\fR +is 0, the file comment will be removed. +.SH "RETURN VALUES" +Upon successful completion 0 is returned. +Otherwise, \-1 is returned and the error information in +\fBarchive\fR +is set to indicate the error. +.SH "ERRORS" +zip_set_file_comment +fails if: +.RS +.TP 4 +[ZIP_ER_INVAL] +\fBindex\fR +is not a valid file index in +\fBarchive,\fR +or +\fBlen\fR +is less than 0 or longer than the maximum comment length in a zip file +(65535). +.TP 4 +[ZIP_ER_MEMORY] +Required memory could not be allocated. +.RE +.SH "SEE ALSO" +libzip(3), +zip_get_archive_comment(3), +zip_get_file_comment(3), +zip_set_archive_comment(3) +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_source_buffer.3 b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_source_buffer.3 new file mode 100755 index 0000000..38a1378 --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_source_buffer.3 @@ -0,0 +1,94 @@ +.\" Converted with mdoc2man 0.2 +.\" from NiH: zip_source_buffer.mdoc,v 1.5 2005/06/09 21:14:54 wiz Exp +.\" $NiH: zip_source_buffer.mdoc,v 1.5 2005/06/09 21:14:54 wiz Exp $ +.\" +.\" zip_source_buffer.mdoc \-- create zip data source from buffer +.\" Copyright (C) 2004, 2005 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP archives. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.TH ZIP_SOURCE_DATA 3 "July 20, 2005" NiH +.SH "NAME" +zip_source_buffer \- create zip data source from buffer +.SH "LIBRARY" +libzip (-lzip) +.SH "SYNOPSIS" +#include <zip.h> +.PP +struct zip_source * +zip_source_buffer(struct zip *archive, const void *data, off_t len); \ +"int freep" +.SH "DESCRIPTION" +The function +zip_source_buffer +creates a zip source from the buffer +\fBdata\fR +of size +\fBlen.\fR +If +\fBfreep\fR +is non-zero, the buffer will be freed when it is no longer needed. +.SH "RETURN VALUES" +Upon successful completion, the created source is returned. +Otherwise, +\fBNULL\fR +is returned and the error code in +\fBarchive\fR +is set to indicate the error. +.SH "ERRORS" +zip_source_buffer +fails if: +.RS +.TP 4 +[ZIP_ER_INVAL] +\fBlen\fR +is negative, or +\fBlen\fR +is greater than zero and +\fBdata\fR +is +\fBNULL.\fR +.TP 4 +[ZIP_ER_MEMORY] +Required memory could not be allocated. +.RE +.SH "SEE ALSO" +libzip(3), +zip_add(3), +zip_replace(3), +zip_source_file(3), +zip_source_filep(3), +zip_source_free(3), +zip_source_function(3), +zip_source_zip(3) +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_source_file.3 b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_source_file.3 new file mode 100755 index 0000000..f3c404a --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_source_file.3 @@ -0,0 +1,102 @@ +.\" Converted with mdoc2man 0.2 +.\" from NiH: zip_source_file.mdoc,v 1.8 2005/07/15 14:11:16 wiz Exp +.\" $NiH: zip_source_file.mdoc,v 1.8 2005/07/15 14:11:16 wiz Exp $ +.\" +.\" zip_source_file.mdoc \-- create data source from a file +.\" Copyright (C) 2004, 2005 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP archives. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.TH ZIP_SOURCE_FILE 3 "July 20, 2005" NiH +.SH "NAME" +zip_source_file \- create data source from a file +.SH "LIBRARY" +libzip (-lzip) +.SH "SYNOPSIS" +.PP +struct zip_source * +zip_source_file(struct zip *archive, const char *fname, off_t start, off_t len); +.SH "DESCRIPTION" +The function +zip_source_file +creates a zip source from a file. +zip_source_file +opens +\fBfname\fR +and reads +\fBlen\fR +bytes from offset +\fBstart\fR +from it. +If +\fBlen\fR +is 0 or \-1, the whole file (starting from +\fBstart )\fR +is used. +.SH "RETURN VALUES" +Upon successful completion, the created source is returned. +Otherwise, +\fBNULL\fR +is returned and the error code in +\fBarchive\fR +is set to indicate the error. +.SH "ERRORS" +zip_source_file +fails if: +.RS +.TP 4 +[ZIP_ER_INVAL] +\fBfname,\fR +\fBstart,\fR +or +\fBlen\fR +are invalid. +.TP 4 +[ZIP_ER_MEMORY] +Required memory could not be allocated. +.TP 4 +[ZIP_ER_OPEN] +Opening +\fBfname\fR +failed. +.RE +.SH "SEE ALSO" +libzip(3), +zip_add(3), +zip_replace(3), +zip_source_buffer(3), +zip_source_filep(3), +zip_source_free(3), +zip_source_function(3), +zip_source_zip(3) +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_source_filep.3 b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_source_filep.3 new file mode 100755 index 0000000..fee3c11 --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_source_filep.3 @@ -0,0 +1,96 @@ +.\" Converted with mdoc2man 0.2 +.\" from NiH: zip_source_filep.mdoc,v 1.6 2005/06/09 21:14:54 wiz Exp +.\" $NiH: zip_source_filep.mdoc,v 1.6 2005/06/09 21:14:54 wiz Exp $ +.\" +.\" zip_source_filep.mdoc \-- create data source from a file stream +.\" Copyright (C) 2004, 2005 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP archives. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.TH ZIP_SOURCE_FILEP 3 "July 20, 2005" NiH +.SH "NAME" +zip_source_filep \- create data source from FILE * +.SH "LIBRARY" +libzip (-lzip) +.SH "SYNOPSIS" +.PP +struct zip_source * +zip_source_filep(struct zip *archive, FILE *file, off_t start, off_t len); +.SH "DESCRIPTION" +The function +zip_source_filep +creates a zip source from a file stream. +zip_source_filep +reads +\fBlen\fR +bytes from offset +\fBstart\fR +from the open file stream +\fBfile.\fR +If +\fBlen\fR +is 0 or \-1, the whole file (starting from +\fBstart )\fR +is used. +.SH "RETURN VALUES" +Upon successful completion, the created source is returned. +Otherwise, +\fBNULL\fR +is returned and the error code in +\fBarchive\fR +is set to indicate the error. +.SH "ERRORS" +zip_source_filep +fails if: +.RS +.TP 4 +[ZIP_ER_INVAL] +\fBfile,\fR +\fBstart,\fR +or +\fBlen\fR +are invalid. +.TP 4 +[ZIP_ER_MEMORY] +Required memory could not be allocated. +.RE +.SH "SEE ALSO" +libzip(3), +zip_add(3), +zip_replace(3), +zip_source_buffer(3), +zip_source_file(3), +zip_source_free(3), +zip_source_function(3), +zip_source_zip(3) +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_source_free.3 b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_source_free.3 new file mode 100755 index 0000000..2195790 --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_source_free.3 @@ -0,0 +1,76 @@ +.\" Converted with mdoc2man 0.2 +.\" from NiH: zip_source_free.mdoc,v 1.6 2005/06/09 21:14:54 wiz Exp +.\" $NiH: zip_source_free.mdoc,v 1.6 2005/06/09 21:14:54 wiz Exp $ +.\" +.\" zip_source_free.mdoc \-- free zip data source +.\" Copyright (C) 2004, 2005, 2006 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP archives. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.TH ZIP_SOURCE_FREE 3 "April 23, 2006" NiH +.SH "NAME" +zip_source_free \- free zip data source +.SH "LIBRARY" +libzip (-lzip) +.SH "SYNOPSIS" +#include <zip.h> +.PP +void +zip_source_free(struct zip_source *source); +.SH "DESCRIPTION" +The function +zip_source_free +frees the zip data source +\fBsource.\fR +If +\fBsource\fR +is +\fBNULL,\fR +it does nothing. +.PP +.I NOTE : +This function should not be called on a +\fBsource\fR +after it was used successfully in a +zip_add(3) +or +zip_replace(3) +call. +.SH "SEE ALSO" +libzip(3), +zip_source_buffer(3), +zip_source_file(3), +zip_source_filep(3), +zip_source_function(3), +zip_source_zip(3) +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_source_function.3 b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_source_function.3 new file mode 100755 index 0000000..fef0dac --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_source_function.3 @@ -0,0 +1,164 @@ +.\" Converted with mdoc2man 0.2 +.\" from NiH: zip_source_function.mdoc,v 1.17 2006/12/16 10:12:58 wiz Exp +.\" $NiH: zip_source_function.mdoc,v 1.17 2006/12/16 10:12:58 wiz Exp $ +.\" +.\" zip_source_function.mdoc \-- create data source from function +.\" Copyright (C) 2004-2006 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP archives. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.TH ZIP_SOURCE_FUNCTION 3 "March 4, 2007" NiH +.SH "NAME" +zip_source_function \- create data source from function +.SH "LIBRARY" +libzip (-lzip) +.SH "SYNOPSIS" +#include <zip.h> +.PP +struct zip_source * +zip_source_function(struct zip *archive, zip_source_callback fn, void *userdata); +.SH "DESCRIPTION" +The function +zip_source_function +creates a zip source from the user-provided function +\fBfn,\fR +which must be of the following type: +.Bd \-literal +typedef ssize_t (*zip_source_callback)(void *state, + void *data, size_t len, enum zip_source_cmd cmd); +.Ed +.PP +When called by the library, the first argument is the +\fBuserdata\fR +argument supplied to +zip_source_function. +The next two arguments are a buffer +\fBdata\fR +of size +\fBlen\fR +when data is expected to be returned, or else +\fBNULL\fR +and 0. +The last argument, +\fBcmd,\fR +specifies which action the function should perform: +.RS +.TP 21 +\fBZIP_SOURCE_OPEN\fR +Prepare for reading. +Return 0 on success, \-1 on error. +.TP 21 +\fBZIP_SOURCE_READ\fR +Read data into the buffer +\fBdata\fR +of size +\fBlen.\fR +Return the number of bytes placed into +\fBdata\fR +on success, \-1 on error. +.TP 21 +\fBZIP_SOURCE_CLOSE\fR +Reading is done. +.TP 21 +\fBZIP_SOURCE_STAT\fR +Get meta information for the input data. +\fBdata\fR +points to a struct zip_stat, which should be filled in. +(See +zip_stat_init(3). ) +Usually, for uncompressed data, after +zip_stat_init(3), +only the mtime and size struct members will need to be set. +Return sizeof(struct zip_stat) on success, \-1 on error. +.TP 21 +\fBZIP_SOURCE_ERROR\fR +Get error information. +\fBdata\fR +points to an array of two ints, which should be filled with the libzip +error code and the corresponding system error code for the error that +occurred. +See +zip_errors(3) +for details on the error codes. +Return return(2 * sizeof(int)). +.TP 21 +\fBZIP_SOURCE_FREE\fR +Clean up and free all resources. +Return 0. +.RE +.PP +The library will always issue +\fBZIP_SOURCE_OPEN\fR +before issuing +\fBZIP_SOURCE_READ.\fR +When it no longer wishes to read from this source, it will issue +\fBZIP_SOURCE_CLOSE.\fR +If the library wishes to read the data again, it will issue +\fBZIP_SOURCE_OPEN\fR +a second time. +If the function is unable to provide the data again, it should +return \-1. +.PP +\fBZIP_SOURCE_STAT\fR +can be issued at any time. +\fBZIP_SOURCE_ERROR\fR +will only be issued in response to the function +returning \-1. +\fBZIP_SOURCE_FREE\fR +will be the last command issued. +.SH "RETURN VALUES" +Upon successful completion, the created source is returned. +Otherwise, +\fBNULL\fR +is returned and the error code in +\fBarchive\fR +is set to indicate the error. +.SH "ERRORS" +zip_source_function +fails if: +.RS +.TP 4 +[ZIP_ER_MEMORY] +Required memory could not be allocated. +.RE +.SH "SEE ALSO" +libzip(3), +zip_add(3), +zip_replace(3), +zip_source_buffer(3), +zip_source_file(3), +zip_source_filep(3), +zip_source_free(3), +zip_source_zip(3), +zip_stat_init(3) +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_source_zip.3 b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_source_zip.3 new file mode 100755 index 0000000..b817995 --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_source_zip.3 @@ -0,0 +1,125 @@ +.\" zip_source_zip.mdoc \-- create data source from zip file +.\" Copyright (C) 2004, 2005, 2008 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP archives. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.TH ZIP_SOURCE_ZIP 3 "June 4, 2008" NiH +.SH "NAME" +zip_source_zip \- create data source from zip file +.SH "LIBRARY" +libzip (-lzip) +.SH "SYNOPSIS" +#include <zip.h> +.PP +struct zip_source * +zip_source_zip(struct zip *archive, struct zip *srcarchive); \ +"int srcidx" "int flags" "off_t start" "off_t len" +.SH "DESCRIPTION" +The function +zip_source_zip +creates a zip source from a file in a zip archive. +The +\fBsrcarchive\fR +argument is the (open) zip archive containing the source zip file +at index +\fBsrcidx.\fR +\fBlen\fR +bytes from offset +\fBstart\fR +will be used in the zip_source. +If +\fBlen\fR +is 0 or \-1, the rest of the file, starting from +\fBstart,\fR +is used. +If +\fBstart\fR +is zero and +\fBlen\fR +is \-1, the whole file will be copied without decompressing it. +.PP +Supported flags are: +.RS +.TP 23 +\fBZIP_FL_UNCHANGED\fR +Try to get the original data without any changes that may have been +made to +\fBsrcarchive\fR +after opening it. +.TP 23 +\fBZIP_FL_RECOMPRESS\fR +When adding the data from +\fBsrcarchive,\fR +re-compress it using the current settings instead of copying the +compressed data. +.RE +.SH "RETURN VALUES" +Upon successful completion, the created source is returned. +Otherwise, +\fBNULL\fR +is returned and the error code in +\fBarchive\fR +is set to indicate the error. +.SH "ERRORS" +zip_source_zip +fails if: +.RS +.TP 4 +[ZIP_ER_CHANGED] +Unchanged data was requested, but it is not available. +.TP 4 +[ZIP_ER_INVAL] +\fBsrcarchive,\fR +\fBsrcidx,\fR +\fBstart,\fR +or +\fBlen\fR +are invalid. +.TP 4 +[ZIP_ER_MEMORY] +Required memory could not be allocated. +.RE +Additionally, it can return all error codes from +zip_stat_index +and +zip_fopen_index. +.SH "SEE ALSO" +libzip(3), +zip_add(3), +zip_replace(3), +zip_source_buffer(3), +zip_source_file(3), +zip_source_filep(3), +zip_source_free(3), +zip_source_function(3) +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_stat.3 b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_stat.3 new file mode 100755 index 0000000..82e4e30 --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_stat.3 @@ -0,0 +1,123 @@ +.\" Converted with mdoc2man 0.2 +.\" from NiH: zip_stat.mdoc,v 1.12 2006/12/16 10:12:58 wiz Exp +.\" $NiH: zip_stat.mdoc,v 1.12 2006/12/16 10:12:58 wiz Exp $ +.\" +.\" zip_stat.mdoc \-- get information about file +.\" Copyright (C) 2003, 2004, 2005, 2006 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP archives. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.TH ZIP_STAT 3 "December 16, 2006" NiH +.SH "NAME" +zip_stat , \- .Nm zip_stat_index +get information about file +.SH "LIBRARY" +libzip (-lzip) +.SH "SYNOPSIS" +#include <zip.h> +.PP +int +zip_stat(struct zip *archive, const char *fname, int flags, struct zip_stat *sb); +.PP +int +zip_stat_index(struct zip *archive, int index, int flags, struct zip_stat *sb); +.SH "DESCRIPTION" +The +zip_stat +function obtains information about the file named +\fBfname\fR +in +\fBarchive.\fR +The +\fBflags\fR +argument specifies how the name lookup should be done. +Its values are described in +zip_name_locate(3). +Also, +\fBZIP_FL_UNCHANGED\fR +may be +.I or'ed +to it to request information about the original file in the archive, +ignoring any changes made. +.PP +The +zip_stat_index +function obtains information about the file at position +\fBindex.\fR +.PP +The +\fBsb\fR +argument is a pointer to a +.PP +struct zip_stat +(shown below), into which information about the file is placed. +.Bd \-literal +struct zip_stat { + const char *name; /* name of the file */ + int index; /* index within archive */ + unsigned int crc; /* crc of file data */ + unsigned int size; /* size of file (uncompressed) */ + time_t mtime; /* modification time */ + unsigned int comp_size; /* size of file (compressed) */ + unsigned short comp_method; /* compression method used */ + unsigned short encryption_method; /* encryption method used */ +}; +.Ed +.SH "RETURN VALUES" +Upon successful completion 0 is returned. +Otherwise, \-1 is returned and the error information in +\fBarchive\fR +is set to indicate the error. +.SH "ERRORS" +The function +zip_stat +can fail for any of the errors specified for the routine +zip_name_locate(3). +.PP +The function +zip_stat_index +fails and sets the error information to +ZIP_ER_INVAL +if +\fBindex\fR +is invalid. +If +\fBZIP_FL_UNCHANGED\fR +is not set and no information can be obtained from the source +callback, the error information is set to +ZIP_ER_CHANGED. +.SH "SEE ALSO" +libzip(3), +zip_name_locate(3), +zip_stat_init(3) +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_stat_init.3 b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_stat_init.3 new file mode 100755 index 0000000..8202c86 --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_stat_init.3 @@ -0,0 +1,63 @@ +.\" $NiH$ +.\" +.\" zip_stat_init.mdoc \-- init zip_stat structure +.\" Copyright (C) 2006 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP archives. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.TH ZIP_STAT_INIT 3 "December 16, 2006" NiH +.SH "NAME" +zip_stat_init \- initialize zip_stat structure +.SH "LIBRARY" +libzip (-lzip) +.SH "SYNOPSIS" +#include <zip.h> +.PP +void +zip_stat_init(struct zip_stat *sb); +.SH "DESCRIPTION" +The +zip_stat_init +function initializes the members of a struct zip_stat. +The current members are described in +zip_stat(3), +but this function should be used to initialize it to +make sure none are missed. +.SH "RETURN VALUES" +If +\fBsb\fR +is valid, the function is always successful. +.SH "SEE ALSO" +libzip(3), +zip_stat(3) +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_unchange.3 b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_unchange.3 new file mode 100755 index 0000000..2b10867 --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_unchange.3 @@ -0,0 +1,76 @@ +.\" Converted with mdoc2man 0.2 +.\" from NiH: zip_unchange.mdoc,v 1.11 2005/06/09 21:14:54 wiz Exp +.\" $NiH: zip_unchange.mdoc,v 1.11 2005/06/09 21:14:54 wiz Exp $ +.\" +.\" zip_unchange.mdoc \-- undo changes to file in zip archive +.\" Copyright (C) 2003, 2005, 2006 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP archives. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.TH ZIP_UNCHANGE 3 "April 23, 2006" NiH +.SH "NAME" +zip_unchange \- undo changes to file in zip archive +.SH "LIBRARY" +libzip (-lzip) +.SH "SYNOPSIS" +#include <zip.h> +.PP +int +zip_unchange(struct zip *archive, int index); +.SH "DESCRIPTION" +Changes to the file at position +\fBindex\fR +are reverted. +.SH "RETURN VALUES" +Upon successful completion 0 is returned. +Otherwise, \-1 is returned and the error code in +\fBarchive\fR +is set to indicate the error. +.SH "ERRORS" +zip_unchange +fails if: +.RS +.TP 4 +[ZIP_ER_EXISTS] +Unchanging the name would result in a duplicate name in the archive. +.TP 4 +[ZIP_ER_INVAL] +\fBindex\fR +is not a valid file index in +\fBzip.\fR +.RE +.SH "SEE ALSO" +libzip(3), +zip_unchange_all(3), +zip_unchange_archive(3) +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_unchange_all.3 b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_unchange_all.3 new file mode 100755 index 0000000..5edfb33 --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_unchange_all.3 @@ -0,0 +1,63 @@ +.\" Converted with mdoc2man 0.2 +.\" from NiH: zip_unchange_all.mdoc,v 1.10 2005/06/09 21:14:54 wiz Exp +.\" $NiH: zip_unchange_all.mdoc,v 1.10 2005/06/09 21:14:54 wiz Exp $ +.\" +.\" zip_unchange_all.mdoc \-- undo changes to all files in zip archive +.\" Copyright (C) 2003, 2005, 2006 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP archives. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.TH ZIP_UNCHANGE_ALL 3 "April 23, 2006" NiH +.SH "NAME" +zip_unchange_all \- undo all changes in a zip archive +.SH "LIBRARY" +libzip (-lzip) +.SH "SYNOPSIS" +#include <zip.h> +.PP +int +zip_unchange_all(struct zip *archive); +.SH "DESCRIPTION" +All changes to files and global information in +\fBarchive\fR +are reverted. +.SH "RETURN VALUES" +Upon successful completion 0 is returned. +Otherwise, \-1 is returned and the error code in +\fBarchive\fR +is set to indicate the error. +.SH "SEE ALSO" +libzip(3), +zip_unchange(3), +zip_unchange_archive(3) +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_unchange_archive.3 b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_unchange_archive.3 new file mode 100755 index 0000000..1f03b06 --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin/share/man/man3/zip_unchange_archive.3 @@ -0,0 +1,63 @@ +.\" Converted with mdoc2man 0.2 +.\" from NiH: zip_unchange_all.mdoc,v 1.10 2005/06/09 21:14:54 wiz Exp +.\" $NiH: zip_unchange_all.mdoc,v 1.10 2005/06/09 21:14:54 wiz Exp $ +.\" +.\" zip_unchange_archive.mdoc \-- undo changes to all files in zip archive +.\" Copyright (C) 2006-2008 Dieter Baron and Thomas Klausner +.\" +.\" This file is part of libzip, a library to manipulate ZIP archives. +.\" The authors can be contacted at <libzip@nih.at> +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in +.\" the documentation and/or other materials provided with the +.\" distribution. +.\" 3. The names of the authors may not be used to endorse or promote +.\" products derived from this software without specific prior +.\" written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS +.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY +.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.TH ZIP_UNCHANGE_ARCHIVE 3 "May 14, 2008" NiH +.SH "NAME" +zip_unchange_archive \- undo global changes to zip archive +.SH "LIBRARY" +libzip (-lzip) +.SH "SYNOPSIS" +#include <zip.h> +.PP +int +zip_unchange_archive(struct zip *archive); +.SH "DESCRIPTION" +Revert all global changes to the archive +\fBarchive.\fR +This reverts changes to the archive comment and global flags. +.SH "RETURN VALUES" +Upon successful completion 0 is returned. +Otherwise, \-1 is returned and the error code in +\fBarchive\fR +is set to indicate the error. +.SH "SEE ALSO" +libzip(3), +zip_unchange(3), +zip_unchange_all(3) +.SH "AUTHORS" + +Dieter Baron <dillo@giga.or.at> +and +Thomas Klausner <tk@giga.or.at> diff --git a/libzip/x86-mingw4-0.9.3_bin_set-timestamps.sh b/libzip/x86-mingw4-0.9.3_bin_set-timestamps.sh new file mode 100755 index 0000000..b7eb407 --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_bin_set-timestamps.sh @@ -0,0 +1,39 @@ +touch --no-create -d "2013-05-02 16:20:22.000000000 -0400" "x86-mingw4-0.9.3_bin/bin/libzip.dll" +touch --no-create -d "2013-05-02 16:20:22.000000000 -0400" "x86-mingw4-0.9.3_bin/manifest/libzip-x86-mingw4-0.9.3-bin.mft" +touch --no-create -d "2013-05-02 16:20:22.000000000 -0400" "x86-mingw4-0.9.3_bin/manifest/libzip-x86-mingw4-0.9.3-bin.ver" +touch --no-create -d "2010-01-31 17:00:30.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man1/zipcmp.1" +touch --no-create -d "2010-01-31 17:00:30.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man1/zipmerge.1" +touch --no-create -d "2010-02-01 04:10:29.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man3/libzip.3" +touch --no-create -d "2010-02-01 04:10:29.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man3/zip_add.3" +touch --no-create -d "2010-02-01 04:10:29.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man3/zip_add_dir.3" +touch --no-create -d "2010-02-01 04:10:29.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man3/zip_close.3" +touch --no-create -d "2010-02-01 04:10:29.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man3/zip_delete.3" +touch --no-create -d "2010-02-01 04:10:29.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man3/zip_errors.3" +touch --no-create -d "2010-02-01 04:10:29.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man3/zip_error_clear.3" +touch --no-create -d "2010-02-01 04:10:29.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man3/zip_error_get.3" +touch --no-create -d "2010-02-01 04:10:29.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man3/zip_error_get_sys_type.3" +touch --no-create -d "2010-02-01 04:10:29.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man3/zip_error_to_str.3" +touch --no-create -d "2010-02-01 04:10:29.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man3/zip_fclose.3" +touch --no-create -d "2010-02-01 04:10:29.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man3/zip_file_strerror.3" +touch --no-create -d "2010-02-01 04:10:29.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man3/zip_fopen.3" +touch --no-create -d "2010-02-01 04:10:29.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man3/zip_fread.3" +touch --no-create -d "2010-02-01 04:10:29.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man3/zip_get_archive_comment.3" +touch --no-create -d "2010-02-01 04:10:29.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man3/zip_get_file_comment.3" +touch --no-create -d "2010-02-01 04:10:29.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man3/zip_get_name.3" +touch --no-create -d "2010-02-01 04:10:29.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man3/zip_get_num_files.3" +touch --no-create -d "2010-02-01 04:10:29.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man3/zip_name_locate.3" +touch --no-create -d "2010-02-01 04:10:29.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man3/zip_open.3" +touch --no-create -d "2010-02-01 04:10:29.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man3/zip_rename.3" +touch --no-create -d "2010-02-01 04:10:29.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man3/zip_set_archive_comment.3" +touch --no-create -d "2010-02-01 04:10:29.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man3/zip_set_file_comment.3" +touch --no-create -d "2010-02-01 04:10:29.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man3/zip_source_buffer.3" +touch --no-create -d "2010-02-01 04:10:29.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man3/zip_source_file.3" +touch --no-create -d "2010-02-01 04:10:29.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man3/zip_source_filep.3" +touch --no-create -d "2010-02-01 04:10:29.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man3/zip_source_free.3" +touch --no-create -d "2010-02-01 04:10:29.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man3/zip_source_function.3" +touch --no-create -d "2010-02-01 04:10:29.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man3/zip_source_zip.3" +touch --no-create -d "2010-02-01 04:10:29.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man3/zip_stat.3" +touch --no-create -d "2010-02-01 04:10:29.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man3/zip_stat_init.3" +touch --no-create -d "2010-02-01 04:10:29.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man3/zip_unchange.3" +touch --no-create -d "2010-02-01 04:10:29.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man3/zip_unchange_all.3" +touch --no-create -d "2010-02-01 04:10:29.000000000 -0500" "x86-mingw4-0.9.3_bin/share/man/man3/zip_unchange_archive.3" diff --git a/libzip/x86-mingw4-0.9.3_lib/include/zip.h b/libzip/x86-mingw4-0.9.3_lib/include/zip.h new file mode 100755 index 0000000..388ee00 --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_lib/include/zip.h @@ -0,0 +1,250 @@ +#ifndef _HAD_ZIP_H +#define _HAD_ZIP_H + +/* + zip.h -- exported declarations. + Copyright (C) 1999-2008 Dieter Baron and Thomas Klausner + + This file is part of libzip, a library to manipulate ZIP archives. + The authors can be contacted at <libzip@nih.at> + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + 3. The names of the authors may not be used to endorse or promote + products derived from this software without specific prior + written permission. + + THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS + OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY + DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER + IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR + OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + + +#ifndef ZIP_EXTERN +#ifdef _WIN32 +#ifdef zip_EXPORTS +#define ZIP_EXTERN __declspec(dllexport) +#else +#define ZIP_EXTERN __declspec(dllimport) +#endif +#else +#define ZIP_EXTERN +#endif +#endif + +#ifdef _MSC_VER +#include <windows.h> +# ifndef _SIZE_T_DEFINED +# define _SIZE_T_DEFINED +typedef SIZE_T size_t; +# endif + +# ifndef _SSIZE_T_DEFINED +# define _SSIZE_T_DEFINED +typedef SSIZE_T ssize_t; +# endif + +# ifndef _MODE_T_DEFINED +# define _MODE_T_DEFINED +typedef int mode_t; +# endif +#endif +#ifdef __cplusplus +extern "C" { +#endif + +#include <sys/types.h> +#include <stdio.h> +#include <time.h> + +/* flags for zip_open */ + +#define ZIP_CREATE 1 +#define ZIP_EXCL 2 +#define ZIP_CHECKCONS 4 + + +/* flags for zip_name_locate, zip_fopen, zip_stat, ... */ + +#define ZIP_FL_NOCASE 1 /* ignore case on name lookup */ +#define ZIP_FL_NODIR 2 /* ignore directory component */ +#define ZIP_FL_COMPRESSED 4 /* read compressed data */ +#define ZIP_FL_UNCHANGED 8 /* use original data, ignoring changes */ +#define ZIP_FL_RECOMPRESS 16 /* force recompression of data */ + +/* archive global flags flags */ + +#define ZIP_AFL_TORRENT 1 /* torrent zipped */ + +/* libzip error codes */ + +#define ZIP_ER_OK 0 /* N No error */ +#define ZIP_ER_MULTIDISK 1 /* N Multi-disk zip archives not supported */ +#define ZIP_ER_RENAME 2 /* S Renaming temporary file failed */ +#define ZIP_ER_CLOSE 3 /* S Closing zip archive failed */ +#define ZIP_ER_SEEK 4 /* S Seek error */ +#define ZIP_ER_READ 5 /* S Read error */ +#define ZIP_ER_WRITE 6 /* S Write error */ +#define ZIP_ER_CRC 7 /* N CRC error */ +#define ZIP_ER_ZIPCLOSED 8 /* N Containing zip archive was closed */ +#define ZIP_ER_NOENT 9 /* N No such file */ +#define ZIP_ER_EXISTS 10 /* N File already exists */ +#define ZIP_ER_OPEN 11 /* S Can't open file */ +#define ZIP_ER_TMPOPEN 12 /* S Failure to create temporary file */ +#define ZIP_ER_ZLIB 13 /* Z Zlib error */ +#define ZIP_ER_MEMORY 14 /* N Malloc failure */ +#define ZIP_ER_CHANGED 15 /* N Entry has been changed */ +#define ZIP_ER_COMPNOTSUPP 16 /* N Compression method not supported */ +#define ZIP_ER_EOF 17 /* N Premature EOF */ +#define ZIP_ER_INVAL 18 /* N Invalid argument */ +#define ZIP_ER_NOZIP 19 /* N Not a zip archive */ +#define ZIP_ER_INTERNAL 20 /* N Internal error */ +#define ZIP_ER_INCONS 21 /* N Zip archive inconsistent */ +#define ZIP_ER_REMOVE 22 /* S Can't remove file */ +#define ZIP_ER_DELETED 23 /* N Entry has been deleted */ + + +/* type of system error value */ + +#define ZIP_ET_NONE 0 /* sys_err unused */ +#define ZIP_ET_SYS 1 /* sys_err is errno */ +#define ZIP_ET_ZLIB 2 /* sys_err is zlib error code */ + +/* compression methods */ + +#define ZIP_CM_DEFAULT -1 /* better of deflate or store */ +#define ZIP_CM_STORE 0 /* stored (uncompressed) */ +#define ZIP_CM_SHRINK 1 /* shrunk */ +#define ZIP_CM_REDUCE_1 2 /* reduced with factor 1 */ +#define ZIP_CM_REDUCE_2 3 /* reduced with factor 2 */ +#define ZIP_CM_REDUCE_3 4 /* reduced with factor 3 */ +#define ZIP_CM_REDUCE_4 5 /* reduced with factor 4 */ +#define ZIP_CM_IMPLODE 6 /* imploded */ +/* 7 - Reserved for Tokenizing compression algorithm */ +#define ZIP_CM_DEFLATE 8 /* deflated */ +#define ZIP_CM_DEFLATE64 9 /* deflate64 */ +#define ZIP_CM_PKWARE_IMPLODE 10 /* PKWARE imploding */ +/* 11 - Reserved by PKWARE */ +#define ZIP_CM_BZIP2 12 /* compressed using BZIP2 algorithm */ +/* 13 - Reserved by PKWARE */ +#define ZIP_CM_LZMA 14 /* LZMA (EFS) */ +/* 15-17 - Reserved by PKWARE */ +#define ZIP_CM_TERSE 18 /* compressed using IBM TERSE (new) */ +#define ZIP_CM_LZ77 19 /* IBM LZ77 z Architecture (PFS) */ +#define ZIP_CM_WAVPACK 97 /* WavPack compressed data */ +#define ZIP_CM_PPMD 98 /* PPMd version I, Rev 1 */ + +/* encryption methods */ + +#define ZIP_EM_NONE 0 /* not encrypted */ +#define ZIP_EM_TRAD_PKWARE 1 /* traditional PKWARE encryption */ +#if 0 /* Strong Encryption Header not parsed yet */ +#define ZIP_EM_DES 0x6601 /* strong encryption: DES */ +#define ZIP_EM_RC2_OLD 0x6602 /* strong encryption: RC2, version < 5.2 */ +#define ZIP_EM_3DES_168 0x6603 +#define ZIP_EM_3DES_112 0x6609 +#define ZIP_EM_AES_128 0x660e +#define ZIP_EM_AES_192 0x660f +#define ZIP_EM_AES_256 0x6610 +#define ZIP_EM_RC2 0x6702 /* strong encryption: RC2, version >= 5.2 */ +#define ZIP_EM_RC4 0x6801 +#endif +#define ZIP_EM_UNKNOWN 0xffff /* unknown algorithm */ + + + +enum zip_source_cmd { + ZIP_SOURCE_OPEN, /* prepare for reading */ + ZIP_SOURCE_READ, /* read data */ + ZIP_SOURCE_CLOSE, /* reading is done */ + ZIP_SOURCE_STAT, /* get meta information */ + ZIP_SOURCE_ERROR, /* get error information */ + ZIP_SOURCE_FREE /* cleanup and free resources */ +}; +typedef ssize_t (*zip_source_callback)(void *state, void *data, + size_t len, enum zip_source_cmd cmd); + +struct zip_stat { + const char *name; /* name of the file */ + int index; /* index within archive */ + unsigned int crc; /* crc of file data */ + time_t mtime; /* modification time */ + off_t size; /* size of file (uncompressed) */ + off_t comp_size; /* size of file (compressed) */ + unsigned short comp_method; /* compression method used */ + unsigned short encryption_method; /* encryption method used */ +}; + +struct zip; +struct zip_file; +struct zip_source; + + + +ZIP_EXTERN int zip_add(struct zip *, const char *, struct zip_source *); +ZIP_EXTERN int zip_add_dir(struct zip *, const char *); +ZIP_EXTERN int zip_close(struct zip *); +ZIP_EXTERN int zip_delete(struct zip *, int); +ZIP_EXTERN void zip_error_clear(struct zip *); +ZIP_EXTERN void zip_error_get(struct zip *, int *, int *); +ZIP_EXTERN int zip_error_get_sys_type(int); +ZIP_EXTERN int zip_error_to_str(char *, size_t, int, int); +ZIP_EXTERN int zip_fclose(struct zip_file *); +ZIP_EXTERN void zip_file_error_clear(struct zip_file *); +ZIP_EXTERN void zip_file_error_get(struct zip_file *, int *, int *); +ZIP_EXTERN const char *zip_file_strerror(struct zip_file *); +ZIP_EXTERN struct zip_file *zip_fopen(struct zip *, const char *, int); +ZIP_EXTERN struct zip_file *zip_fopen_index(struct zip *, int, int); +ZIP_EXTERN ssize_t zip_fread(struct zip_file *, void *, size_t); +ZIP_EXTERN const char *zip_get_archive_comment(struct zip *, int *, int); +ZIP_EXTERN int zip_get_archive_flag(struct zip *, int, int); +ZIP_EXTERN const char *zip_get_file_comment(struct zip *, int, int *, int); +ZIP_EXTERN const char *zip_get_name(struct zip *, int, int); +ZIP_EXTERN int zip_get_num_files(struct zip *); +ZIP_EXTERN int zip_name_locate(struct zip *, const char *, int); +ZIP_EXTERN struct zip *zip_open(const char *, int, int *); +ZIP_EXTERN int zip_rename(struct zip *, int, const char *); +ZIP_EXTERN int zip_replace(struct zip *, int, struct zip_source *); +ZIP_EXTERN int zip_set_archive_comment(struct zip *, const char *, int); +ZIP_EXTERN int zip_set_archive_flag(struct zip *, int, int); +ZIP_EXTERN int zip_set_file_comment(struct zip *, int, const char *, int); +ZIP_EXTERN struct zip_source *zip_source_buffer(struct zip *, const void *, + off_t, int); +ZIP_EXTERN struct zip_source *zip_source_file(struct zip *, const char *, + off_t, off_t); +ZIP_EXTERN struct zip_source *zip_source_filep(struct zip *, FILE *, + off_t, off_t); +ZIP_EXTERN void zip_source_free(struct zip_source *); +ZIP_EXTERN struct zip_source *zip_source_function(struct zip *, + zip_source_callback, void *); +ZIP_EXTERN struct zip_source *zip_source_zip(struct zip *, struct zip *, + int, int, off_t, off_t); +ZIP_EXTERN int zip_stat(struct zip *, const char *, int, struct zip_stat *); +ZIP_EXTERN int zip_stat_index(struct zip *, int, int, struct zip_stat *); +ZIP_EXTERN void zip_stat_init(struct zip_stat *); +ZIP_EXTERN const char *zip_strerror(struct zip *); +ZIP_EXTERN int zip_unchange(struct zip *, int); +ZIP_EXTERN int zip_unchange_all(struct zip *); +ZIP_EXTERN int zip_unchange_archive(struct zip *); + +#ifdef __cplusplus +} +#endif + +#endif /* _HAD_ZIP_H */ diff --git a/libzip/x86-mingw4-0.9.3_lib/lib/libzip.dll.a b/libzip/x86-mingw4-0.9.3_lib/lib/libzip.dll.a new file mode 100755 index 0000000..01c50a0 Binary files /dev/null and b/libzip/x86-mingw4-0.9.3_lib/lib/libzip.dll.a differ diff --git a/libzip/x86-mingw4-0.9.3_lib/manifest/libzip-x86-mingw4-0.9.3-lib.mft b/libzip/x86-mingw4-0.9.3_lib/manifest/libzip-x86-mingw4-0.9.3-lib.mft new file mode 100755 index 0000000..5145c70 --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_lib/manifest/libzip-x86-mingw4-0.9.3-lib.mft @@ -0,0 +1,4 @@ +c35f77a91c9e14853ff77c5c9ea45d10d311a2dd lib/libzip.dll.a +ddf99fadb2bd1c645ab153d2dc8e66dee286bd0f include/zip.h +manifest/libzip-x86-mingw4-0.9.3-lib.mft +manifest/libzip-x86-mingw4-0.9.3-lib.ver diff --git a/libzip/x86-mingw4-0.9.3_lib/manifest/libzip-x86-mingw4-0.9.3-lib.ver b/libzip/x86-mingw4-0.9.3_lib/manifest/libzip-x86-mingw4-0.9.3-lib.ver new file mode 100755 index 0000000..f9d52fc --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_lib/manifest/libzip-x86-mingw4-0.9.3-lib.ver @@ -0,0 +1,2 @@ +libzip-x86-mingw4 0.9.3 developer files +win32libs/libzip:0.9.3:unknown diff --git a/libzip/x86-mingw4-0.9.3_lib_set-timestamps.sh b/libzip/x86-mingw4-0.9.3_lib_set-timestamps.sh new file mode 100755 index 0000000..31efd10 --- /dev/null +++ b/libzip/x86-mingw4-0.9.3_lib_set-timestamps.sh @@ -0,0 +1,4 @@ +touch --no-create -d "2013-05-02 16:14:30.000000000 -0400" "x86-mingw4-0.9.3_lib/include/zip.h" +touch --no-create -d "2013-05-02 16:14:48.000000000 -0400" "x86-mingw4-0.9.3_lib/lib/libzip.dll.a" +touch --no-create -d "2013-05-02 16:20:22.000000000 -0400" "x86-mingw4-0.9.3_lib/manifest/libzip-x86-mingw4-0.9.3-lib.mft" +touch --no-create -d "2013-05-02 16:20:22.000000000 -0400" "x86-mingw4-0.9.3_lib/manifest/libzip-x86-mingw4-0.9.3-lib.ver" diff --git a/libzip/x86-mingw4-0.9.3_src/libzip-x86-mingw4-0.9.3-src.tar.bz2 b/libzip/x86-mingw4-0.9.3_src/libzip-x86-mingw4-0.9.3-src.tar.bz2 new file mode 100755 index 0000000..5c029c9 Binary files /dev/null and b/libzip/x86-mingw4-0.9.3_src/libzip-x86-mingw4-0.9.3-src.tar.bz2 differ -- Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient-contrib.git