man3000275500017510000000000000000001150666237600121575ustar00guidodroot00000000000000man3/zzip_entry_fclose.3000066400017510000000000000000341150666237500160660ustar00guidodroot00000000000000.so man3/zzip_entry_fopen.3 man3/zzip_entry_findfirst.3000066400017510000000000000000371150666237600166070ustar00guidodroot00000000000000.so man3/zzip_entry_findfile.3 man3/zzip_dir_fdopen_ext_io.3000066400017510000000000000000331150666236200170450ustar00guidodroot00000000000000.so man3/zzip_dir_fdopen.3 man3/zzip_strerror_of.3000066400017510000000000000000311150666235500157330ustar00guidodroot00000000000000.so man3/zzip_strerror.3 man3/__zzip_fetch_disk_trailer.3000066400017510000000000000027471150666237000175250ustar00guidodroot00000000000000'\" t .\" Title: __zzip_fetch_disk_trailer .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "__ZZIP_FETCH_DISK_TR" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" __zzip_fetch_disk_trailer \- \&.\&.\&. .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'int\ __zzip_fetch_disk_trailer('u .BI "int __zzip_fetch_disk_trailer((int\ fd,\ zzip_off_t\ filesize,\ struct\ _disk_trailer\ *_zzip_restrict\ trailer,\ zzip_plugin_io_t\ io));" .SH "DESCRIPTION" .PP (missing description) .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim Tomi Ollila .RE .SH "COPYRIGHT" .PP Copyright (c) 1999,2000,2001,2002,2003 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/zzip_entry_fread_file_header.3000066400017510000000000000000421150666237500202020ustar00guidodroot00000000000000.so man3/zzip_entry_data_offset.3 man3/zzip_fopen.3000066400017510000000000000135721150666235700145140ustar00guidodroot00000000000000'\" t .\" Title: zzip_fopen .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "ZZIP_FOPEN" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" zzip_fopen, zzip_freopen \- .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'ZZIP_FILE\ *\ zzip_fopen('u .BI "ZZIP_FILE * zzip_fopen((zzip_char_t\ *\ filename,\ zzip_char_t\ *\ mode));" .HP \w'ZZIP_FILE\ *\ zzip_freopen('u .BI "ZZIP_FILE * zzip_freopen((zzip_char_t\ *\ filename,\ zzip_char_t\ *\ mode,\ ZZIP_FILE\ *\ stream));" .SH "DESCRIPTION" .PP The \fBzzip_fopen\fR function will \fBfopen(3)\fR a real/zipped file\&. .PP It has some magic functionality builtin \- it will first try to open the given \fIfilename\fR as a normal file\&. If it does not exist, the given path to the filename (if any) is split into its directory\-part and the file\-part\&. A "\&.zip" extension is then added to the directory\-part to create the name of a zip\-archive\&. That zip\-archive (if it exists) is being searched for the file\-part, and if found a zzip\-handle is returned\&. .PP Note that if the file is found in the normal fs\-directory the returned structure is mostly empty and the \fBzzip_read\fR call will use the libc \fBread(2)\fR to obtain data\&. Otherwise a \fBzzip_file_open\fR is performed and any error mapped to \fBerrno(3)\fR\&. .PP unlike the posix\-wrapper \fBzzip_open\fR the mode\-argument is a string which allows for more freedom to support the extra zzip modes called ZZIP_CASEINSENSITIVE and ZZIP_IGNOREPATH\&. Currently, this \fBzzip_fopen\fR call will convert the following characters in the mode\-string into their corrsponding mode\-bits: .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} "r" : O_RDONLY : read\-only .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} "b" : O_BINARY : binary (win32 specific) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} "f" : O_NOCTTY : no char device (unix) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} "i" : ZZIP_CASELESS : inside zip file .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} "*" : ZZIP_NOPATHS : inside zip file only .RE .PP all other modes will be ignored for zip\-contained entries but they are transferred for compatibility and portability, including these extra sugar bits: .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} "x" : O_EXCL : fail if file did exist .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} "s" : O_SYNC : synchronized access .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} "n" : O_NONBLOCK : nonblocking access .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} "z#" : compression level : for zlib .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} "g#" : group access : unix access bits .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} "u#" : owner access : unix access bits .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} "o#" : world access : unix access bits .RE .PP \&.\&.\&. the access bits are in traditional unix bit format with 7 = read/write/execute, 6 = read/write, 4 = read\-only\&. .PP The default access mode is 0664, and the compression level is ignored since the lib can not yet write zip files, otherwise it would be the initialisation value for the zlib deflateInit where 0 = no\-compression, 1 = best\-speed, 9 = best\-compression\&. .PP The \fBzzip_fopen\fR function returns a new zzip\-handle (use \fBzzip_close\fR to return it)\&. On error the \fBzzip_fopen\fR function will return null setting \fBerrno(3)\fR\&. .PP The \fBzzip_freopen\fR function receives an additional argument pointing to a ZZIP_FILE* being already in use\&. If this extra argument is null then the \fBzzip_freopen\fR function is identical with calling \fBzzip_fopen\fR .PP Per default, the old file stream is closed and only the internal structures associated with it are kept\&. These internal structures may be reused for the return value, and this is a lot quicker when the filename matches a zipped file that is incidently in the very same zip arch as the old filename wrapped in the stream struct\&. .PP That\'s simply because the zip arch\'s central directory does not need to be read again\&. As an extension for the \fBzzip_freopen\fR function, if the mode\-string contains a "q" then the old stream is not closed but left untouched, instead it is only given as a hint that a new file handle may share/copy the zip arch structures of the old file handle if that is possible, i\&.e when they are in the same zip arch\&. .PP The \fBzzip_freopen\fR function returns a new zzip\-handle (use \fBzzip_close\fR to return it)\&. On error the \fBzzip_freopen\fR function will return null setting \fBerrno(3)\fR\&. .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim Tomi Ollila .RE .SH "COPYRIGHT" .PP Copyright (c) 1999,2000,2001,2002,2003 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 .SH "SEE ALSO" .PP fopen(2) man3/zzip_realdir.3000066400017510000000000000000321150666235300150060ustar00guidodroot00000000000000.so man3/zzip_file_real.3 man3/zzip_inflate_init.3000066400017510000000000000026431150666236600160470ustar00guidodroot00000000000000'\" t .\" Title: zzip_inflate_init .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "ZZIP_INFLATE_INIT" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" zzip_inflate_init \- \&.\&.\&. .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'static\ int\ zzip_inflate_init('u .BI "static int zzip_inflate_init((ZZIP_FILE\ *\ fp,\ struct\ zzip_dir_hdr\ *hdr));" .SH "DESCRIPTION" .PP (missing description) .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim Tomi Ollila .RE .SH "COPYRIGHT" .PP Copyright (c) 1999,2000,2001,2002,2003 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/zzip_entry_fread.3000066400017510000000000000000341150666237500156740ustar00guidodroot00000000000000.so man3/zzip_entry_fopen.3 man3/zzip_opendir.3000066400017510000000000000032261150666235300150340ustar00guidodroot00000000000000'\" t .\" Title: zzip_opendir .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "ZZIP_OPENDIR" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" zzip_opendir, zzip_opendir_ext_io \- \&.\&.\&. .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'ZZIP_DIR\ *\ zzip_opendir('u .BI "ZZIP_DIR * zzip_opendir((zzip_char_t\ *\ filename));" .HP \w'ZZIP_DIR\ *\ zzip_opendir_ext_io('u .BI "ZZIP_DIR * zzip_opendir_ext_io((zzip_char_t\ *\ filename,\ int\ o_modes,\ zzip_strings_t\ *\ ext,\ zzip_plugin_io_t\ io));" .SH "DESCRIPTION" .PP The \fBzzip_opendir_ext_io\fR function uses explicit ext and io instead of the internal defaults, setting them to zero is equivalent to \fBzzip_opendir\fR .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim .RE .SH "COPYRIGHT" .PP Copyright (c) 1999,2000,2001,2002,2003 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/zzip_disk_buffer.3000066400017510000000000000000321150666237300156510ustar00guidodroot00000000000000.so man3/zzip_disk_mmap.3 man3/zzip_dir_close.3000066400017510000000000000000311150666236100153250ustar00guidodroot00000000000000.so man3/zzip_dir_free.3 man3/zzip_opendir_ext_io.3000066400017510000000000000000301150666235300163710ustar00guidodroot00000000000000.so man3/zzip_opendir.3 man3/zzip_fread.3000066400017510000000000000000251150666236100144460ustar00guidodroot00000000000000.so man3/zzip_read.3 man3/zzip_dir_real.3000066400017510000000000000000321150666235300151450ustar00guidodroot00000000000000.so man3/zzip_file_real.3 man3/zzip_fclose.3000066400017510000000000000026511150666236200146500ustar00guidodroot00000000000000'\" t .\" Title: zzip_fclose .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "ZZIP_FCLOSE" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" zzip_fclose, zzip_close \- \&.\&.\&. .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'int\ zzip_fclose('u .BI "int zzip_fclose((ZZIP_FILE\ *\ fp));" .HP \w'int\ zzip_close('u .BI "int zzip_close((ZZIP_FILE\ *\ fp));" .SH "DESCRIPTION" .PP (missing description) .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim Tomi Ollila .RE .SH "COPYRIGHT" .PP Copyright (c) 1999,2000,2001,2002,2003 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/zzip_seek.3000066400017510000000000000030701150666236000143160ustar00guidodroot00000000000000'\" t .\" Title: zzip_seek .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "ZZIP_SEEK" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" zzip_seek, zzip_seek32 \- \&.\&.\&. .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'zzip_off_t\ zzip_seek('u .BI "zzip_off_t zzip_seek((ZZIP_FILE\ *\ fp,\ zzip_off_t\ offset,\ int\ whence));" .HP \w'long\ zzip_seek32('u .BI "long zzip_seek32((ZZIP_FILE\ *\ fp,\ long\ offset,\ int\ whence));" .SH "DESCRIPTION" .PP The \fBzzip_seek32\fR function is provided for users who can not use any largefile\-mode\&. .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim Tomi Ollila .RE .SH "COPYRIGHT" .PP Copyright (c) 1999,2000,2001,2002,2003 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/zzip_disk_entry_to_data.3000066400017510000000000000061311150666237200172410ustar00guidodroot00000000000000'\" t .\" Title: zzip_disk_entry_to_data .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "ZZIP_DISK_ENTRY_TO_D" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" zzip_disk_entry_to_data, zzip_disk_entry_to_file_header, zzip_disk_entry_strdup_name, zzip_disk_entry_strdup_comment \- helper functions for (mmapped) zip access api .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'zzip_byte_t\ *\ zzip_disk_entry_to_data('u .BI "zzip_byte_t * zzip_disk_entry_to_data((ZZIP_DISK\ *\ disk,\ struct\ zzip_disk_entry\ *\ entry));" .HP \w'struct\ zzip_file_header\ *\ zzip_disk_entry_to_file_header('u .BI "struct zzip_file_header * zzip_disk_entry_to_file_header((ZZIP_DISK\ *\ disk,\ struct\ zzip_disk_entry\ *entry));" .HP \w'zzip__new__\ char\ *\ zzip_disk_entry_strdup_name('u .BI "zzip__new__ char * zzip_disk_entry_strdup_name((ZZIP_DISK\ *\ disk,\ struct\ zzip_disk_entry\ *entry));" .HP \w'zzip__new__\ char\ *\ zzip_disk_entry_strdup_comment('u .BI "zzip__new__ char * zzip_disk_entry_strdup_comment((ZZIP_DISK\ *\ disk,\ struct\ zzip_disk_entry\ *entry));" .SH "DESCRIPTION" .PP The \fBzzip_disk_entry_to_data\fR function augments the other zzip_disk_entry_* helpers: here we move a disk_entry pointer (as returned by _find* functions) into a pointer to the data block right after the file_header\&. Only disk\->buffer would be needed to perform the seek but we check the mmapped range end as well\&. .PP The \fBzzip_disk_entry_to_file_header\fR function does half the job of \fBzzip_disk_entry_to_data\fR where it can augment with \fBzzip_file_header_to_data\fR helper from format/fetch\&.h .PP The \fBzzip_disk_entry_strdup_name\fR function is a big helper despite its little name: in a zip file the encoded filenames are usually NOT zero\-terminated but for common usage with libc we need it that way\&. Secondly, the filename SHOULD be present in the zip central directory but if not then we fallback to the filename given in the file_header of each compressed data portion\&. .PP The \fBzzip_disk_entry_strdup_comment\fR function is similar creating a reference to a zero terminated string but it can only exist in the zip central directory entry\&. .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim .RE .SH "COPYRIGHT" .PP Copyright (c) 2003,2004,2006 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/zzip_disk_findfile.3000066400017510000000000000116711150666237200161720ustar00guidodroot00000000000000'\" t .\" Title: zzip_disk_findfile .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "ZZIP_DISK_FINDFILE" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" zzip_disk_findfile, zzip_disk_findfirst, zzip_disk_findnext, zzip_disk_findmatch \- search for files in the (mmapped) zip central directory .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'struct\ zzip_disk_entry\ *\ zzip_disk_findfile('u .BI "struct zzip_disk_entry * zzip_disk_findfile((ZZIP_DISK\ *\ disk,\ char\ *filename,\ struct\ zzip_disk_entry\ *after,\ zzip_strcmp_fn_t\ compare));" .HP \w'struct\ zzip_disk_entry\ *\ zzip_disk_findfirst('u .BI "struct zzip_disk_entry * zzip_disk_findfirst((ZZIP_DISK\ *\ disk));" .HP \w'struct\ zzip_disk_entry\ *\ zzip_disk_findnext('u .BI "struct zzip_disk_entry * zzip_disk_findnext((ZZIP_DISK\ *\ disk,\ struct\ zzip_disk_entry\ *entry));" .HP \w'struct\ zzip_disk_entry\ *\ zzip_disk_findmatch('u .BI "struct zzip_disk_entry * zzip_disk_findmatch((ZZIP_DISK\ *\ disk,\ char\ *filespec,\ struct\ zzip_disk_entry\ *after,\ zzip_fnmatch_fn_t\ compare,\ int\ flags));" .SH "DESCRIPTION" .PP The \fBzzip_disk_findfile\fR function is given a filename as an additional argument, to find the disk_entry matching a given filename\&. The compare\-function is usually strcmp or strcasecmp or perhaps strcoll, if null then strcmp is used\&. \- use null as argument for "after"\-entry when searching the first matching entry, otherwise the last returned value if you look for other entries with a special "compare" function (if null then a doubled search is rather useless with this variant of _findfile)\&. .PP The \fBzzip_disk_findfirst\fR function is the first call of all the zip access functions here\&. It contains the code to find the first entry of the zip central directory\&. Here we require the mmapped block to represent a real zip file where the disk_trailer is _last_ in the file area, so that its position would be at a fixed offset from the end of the file area if not for the comment field allowed to be of variable length (which needs us to do a little search for the disk_tailer)\&. However, in this simple implementation we disregard any disk_trailer info telling about multidisk archives, so we just return a pointer to the zip central directory\&. .PP For an actual means, we are going to search backwards from the end of the mmaped block looking for the PK\-magic signature of a disk_trailer\&. If we see one then we check the rootseek value to find the first disk_entry of the root central directory\&. If we find the correct PK\-magic signature of a disk_entry over there then we assume we are done and we are going to return a pointer to that label\&. .PP The return value is a pointer to the first zzip_disk_entry being checked to be within the bounds of the file area specified by the arguments\&. If no disk_trailer was found then null is returned, and likewise we only accept a disk_trailer with a seekvalue that points to a disk_entry and both parts have valid PK\-magic parts\&. Beyond some sanity check we try to catch a common brokeness with zip archives that still allows us to find the start of the zip central directory\&. .PP The \fBzzip_disk_findnext\fR function takes an existing disk_entry in the central root directory (e\&.g\&. from zzip_disk_findfirst) and returns the next entry within in the given bounds of the mmapped file area\&. .PP The \fBzzip_disk_findmatch\fR function uses a compare\-function with an additional argument and it is called just like fnmatch(3) from POSIX\&.2 AD:1993), i\&.e\&. the argument filespec first and the ziplocal filename second with the integer\-flags put in as third to the indirect call\&. If the platform has fnmatch available then null\-compare will use that one and otherwise we fall back to mere strcmp, so if you need fnmatch searching then please provide an implementation somewhere else\&. \- use null as argument for "after"\-entry when searching the first matching entry, or the last disk_entry return\-value to find the next entry matching the given filespec\&. .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim .RE .SH "COPYRIGHT" .PP Copyright (c) 2003,2004,2006 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/zzip_file_stat.3000066400017510000000000000000311150666235400153360ustar00guidodroot00000000000000.so man3/zzip_dir_stat.3 man3/zzip_dir_open_ext_io.3000066400017510000000000000000311150666235500165330ustar00guidodroot00000000000000.so man3/zzip_dir_open.3 man3/zzip_compr_str.3000066400017510000000000000025151150666236700154110ustar00guidodroot00000000000000'\" t .\" Title: zzip_compr_str .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "ZZIP_COMPR_STR" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" zzip_compr_str \- \&.\&.\&. .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'zzip_char_t\ *\ zzip_compr_str('u .BI "zzip_char_t * zzip_compr_str((int\ compr));" .SH "DESCRIPTION" .PP (missing description) .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim .RE .SH "COPYRIGHT" .PP Copyright (c) 2000,2001,2002,2003 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/zzip_open_shared_io.3000066400017510000000000000000251150666235200163430ustar00guidodroot00000000000000.so man3/zzip_open.3 man3/zzip_disk_fopen.3000066400017510000000000000065461150666237300155270ustar00guidodroot00000000000000'\" t .\" Title: zzip_disk_fopen .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "ZZIP_DISK_FOPEN" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" zzip_disk_fopen, zzip_disk_entry_fopen, zzip_disk_fread, zzip_disk_fclose, zzip_disk_feof \- openening a file part wrapped within a (mmapped) zip archive .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'zzip__new__\ ZZIP_DISK_FILE\ *\ zzip_disk_fopen('u .BI "zzip__new__ ZZIP_DISK_FILE * zzip_disk_fopen((ZZIP_DISK\ *\ disk,\ char\ *filename));" .HP \w'zzip__new__\ ZZIP_DISK_FILE\ *\ zzip_disk_entry_fopen('u .BI "zzip__new__ ZZIP_DISK_FILE * zzip_disk_entry_fopen((ZZIP_DISK\ *\ disk,\ ZZIP_DISK_ENTRY\ *\ entry));" .HP \w'zzip_size_t\ zzip_disk_fread('u .BI "zzip_size_t zzip_disk_fread((void\ *ptr,\ zzip_size_t\ sized,\ zzip_size_t\ nmemb,\ ZZIP_DISK_FILE\ *\ file));" .HP \w'int\ zzip_disk_fclose('u .BI "int zzip_disk_fclose((ZZIP_DISK_FILE\ *\ file));" .HP \w'int\ zzip_disk_feof('u .BI "int zzip_disk_feof((ZZIP_DISK_FILE\ *\ file));" .SH "DESCRIPTION" .PP The \fBzzip_disk_fopen\fR function opens a file found by name, so it does a search into the zip central directory with \fBzzip_disk_findfile\fR and whatever is found first is given to \fBzzip_disk_entry_fopen\fR .PP the ZZIP_DISK_FILE* is rather simple in just encapsulating the arguments given to the \fBzzip_disk_entry_fopen\fR function plus a zlib deflate buffer\&. Note that the ZZIP_DISK pointer does already contain the full mmapped file area of a zip disk, so open()ing a file part within that area happens to be a lookup of its bounds and encoding\&. That information is memorized on the ZZIP_DISK_FILE so that subsequent _read() operations will be able to get the next data portion or return an eof condition for that file part wrapped in the zip archive\&. .PP The \fBzzip_disk_fread\fR function reads more bytes into the output buffer specified as arguments\&. The return value is null on eof or error, the stdio\-like interface can not distinguish between these so you need to check with \fBzzip_disk_feof\fR for the difference\&. .PP The \fBzzip_disk_fclose\fR function releases any zlib decoder info needed for decompression and dumps the ZZIP_DISK_FILE* then\&. .PP The \fBzzip_disk_feof\fR function allows to distinguish an error from an eof condition\&. Actually, if we found an error but we did already reach eof then we just keep on saying that it was an eof, so the app can just continue\&. .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim .RE .SH "COPYRIGHT" .PP Copyright (c) 2003,2004,2006 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/zzip_dirfd.3000066400017510000000000000000321150666235700144600ustar00guidodroot00000000000000.so man3/zzip_dirhandle.3 man3/zzip_dir_free.3000066400017510000000000000030431150666236100151470ustar00guidodroot00000000000000'\" t .\" Title: zzip_dir_free .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "ZZIP_DIR_FREE" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" zzip_dir_free, zzip_dir_close \- \&.\&.\&. .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'int\ zzip_dir_free('u .BI "int zzip_dir_free((ZZIP_DIR\ *\ dir));" .HP \w'int\ zzip_dir_close('u .BI "int zzip_dir_close((ZZIP_DIR\ *\ dir));" .SH "DESCRIPTION" .PP It will also \fBfree(2)\fR the \fBZZIP_DIR\-handle\fR given\&. the counterpart for \fBzzip_dir_open\fR see also \fBzzip_dir_free\fR .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim Tomi Ollila .RE .SH "COPYRIGHT" .PP Copyright (c) 1999,2000,2001,2002,2003 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/zzip_disk_munmap.3000066400017510000000000000000321150666237300156750ustar00guidodroot00000000000000.so man3/zzip_disk_mmap.3 man3/zzip_dir_alloc_ext_io.3000066400017510000000000000034761150666236300167030ustar00guidodroot00000000000000'\" t .\" Title: zzip_dir_alloc_ext_io .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "ZZIP_DIR_ALLOC_EXT_I" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" zzip_dir_alloc_ext_io, zzip_dir_alloc \- \&.\&.\&. .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'ZZIP_DIR\ *\ zzip_dir_alloc_ext_io('u .BI "ZZIP_DIR * zzip_dir_alloc_ext_io((zzip_strings_t\ *\ ext,\ const\ zzip_plugin_io_t\ io));" .HP \w'ZZIP_DIR\ *\ zzip_dir_alloc('u .BI "ZZIP_DIR * zzip_dir_alloc((zzip_strings_t\ *\ fileext));" .SH "DESCRIPTION" .PP the \fBzzip_dir_alloc\fR function is obsolete \- it was generally used for implementation and exported to let other code build on it\&. It is now advised to use \fBzzip_dir_alloc_ext_io\fR now on explicitly, just set that second argument to zero to achieve the same functionality as the old style\&. .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim Tomi Ollila .RE .SH "COPYRIGHT" .PP Copyright (c) 1999,2000,2001,2002,2003 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/zzip_disk_entry_to_file_header.3000066400017510000000000000000431150666237200205530ustar00guidodroot00000000000000.so man3/zzip_disk_entry_to_data.3 man3/zzip_entry_data_offset.3000066400017510000000000000055141150666237500171020ustar00guidodroot00000000000000'\" t .\" Title: zzip_entry_data_offset .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "ZZIP_ENTRY_DATA_OFFS" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" zzip_entry_data_offset, zzip_entry_fread_file_header, zzip_entry_strdup_name \- helper functions for (fseeko) zip access api .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'zzip_off_t\ zzip_entry_data_offset('u .BI "zzip_off_t zzip_entry_data_offset((ZZIP_ENTRY\ *\ entry));" .HP \w'static\ zzip_off_t\ zzip_entry_fread_file_header('u .BI "static zzip_off_t zzip_entry_fread_file_header((ZZIP_ENTRY\ *\ entry,\ struct\ zzip_file_header\ *file_header));" .HP \w'zzip__new__\ char\ *\ zzip_entry_strdup_name('u .BI "zzip__new__ char * zzip_entry_strdup_name((ZZIP_ENTRY\ *\ entry));" .SH "DESCRIPTION" .PP The \fBzzip_entry_data_offset\fR functions returns the seekval offset of the data portion of the file referenced by the given zzip_entry\&. It requires an intermediate check of the file_header structure (i\&.e\&. it reads it from disk)\&. After this call, the contained diskfile readposition is already set to the data_offset returned here\&. On error \-1 is returned\&. .PP The \fBzzip_entry_fread_file_header\fR functions read the correspoding struct zzip_file_header from the zip disk of the given "entry"\&. The returned off_t points to the end of the file_header where the current fseek pointer has stopped\&. This is used to immediatly parse out any filename/extras block following the file_header\&. The return value is null on error\&. .PP The \fBzzip_entry_strdup_name\fR function is a big helper despite its little name: in a zip file the encoded filenames are usually NOT zero\-terminated but for common usage with libc we need it that way\&. Secondly, the filename SHOULD be present in the zip central directory but if not then we fallback to the filename given in the file_header of each compressed data portion\&. .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim .RE .SH "COPYRIGHT" .PP Copyright (c) 2003,2004 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/zzip_file_real.3000066400017510000000000000041111150666235300153100ustar00guidodroot00000000000000'\" t .\" Title: zzip_file_real .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "ZZIP_FILE_REAL" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" zzip_file_real, zzip_dir_real, zzip_realdir, zzip_realfd \- \&.\&.\&. .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'int\ zzip_file_real('u .BI "int zzip_file_real((ZZIP_FILE\ *\ fp));" .HP \w'int\ zzip_dir_real('u .BI "int zzip_dir_real((ZZIP_DIR\ *\ dir));" .HP \w'void\ *\ zzip_realdir('u .BI "void * zzip_realdir((ZZIP_DIR\ *\ dir));" .HP \w'int\ zzip_realfd('u .BI "int zzip_realfd((ZZIP_FILE\ *\ fp));" .SH "DESCRIPTION" .PP The \fBzzip_dir_real\fR function checks if the ZZIP_DIR\-handle is wrapping a real directory or a zip\-archive\&. Returns 1 for a stat\'able directory, and 0 for a handle to zip\-archive\&. .PP The \fBzzip_realdir\fR function returns the posix DIR* handle (if one exists)\&. Check before with \fBzzip_dir_real\fR if the the ZZIP_DIR points to a real directory\&. .PP The \fBzzip_realfd\fR function returns the posix file descriptor (if one exists)\&. Check before with \fBzzip_file_real\fR if the the ZZIP_FILE points to a real file\&. .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim .RE .SH "COPYRIGHT" .PP Copyright (c) 2000,2001,2002,2003 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/zzip_disk_findmatch.3000066400017510000000000000000361150666237200163400ustar00guidodroot00000000000000.so man3/zzip_disk_findfile.3 man3/zzip_entry_findmatch.3000066400017510000000000000000371150666237600165540ustar00guidodroot00000000000000.so man3/zzip_entry_findfile.3 man3/zzip_open_ext_io.3000066400017510000000000000000251150666235200156750ustar00guidodroot00000000000000.so man3/zzip_open.3 man3/zzip_entry_ffile.3000066400017510000000000000000341150666237500157000ustar00guidodroot00000000000000.so man3/zzip_entry_fopen.3 man3/zzip_entry_findfile.3000066400017510000000000000133321150666237600164010ustar00guidodroot00000000000000'\" t .\" Title: zzip_entry_findfile .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "ZZIP_ENTRY_FINDFILE" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" zzip_entry_findfile, zzip_entry_findfirst, zzip_entry_findnext, zzip_entry_free, zzip_entry_findmatch \- search for files in the (fseeko) zip central directory .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'zzip__new__\ ZZIP_ENTRY\ *\ zzip_entry_findfile('u .BI "zzip__new__ ZZIP_ENTRY * zzip_entry_findfile((FILE\ *\ disk,\ char\ *filename,\ ZZIP_ENTRY\ *\ _zzip_restrict\ entry,\ zzip_strcmp_fn_t\ compare));" .HP \w'zzip__new__\ ZZIP_ENTRY\ *\ zzip_entry_findfirst('u .BI "zzip__new__ ZZIP_ENTRY * zzip_entry_findfirst((FILE\ *\ disk));" .HP \w'zzip__new__\ ZZIP_ENTRY\ *\ zzip_entry_findnext('u .BI "zzip__new__ ZZIP_ENTRY * zzip_entry_findnext((ZZIP_ENTRY\ *\ _zzip_restrict\ entry));" .HP \w'int\ zzip_entry_free('u .BI "int zzip_entry_free((ZZIP_ENTRY\ *\ entry));" .HP \w'zzip__new__\ ZZIP_ENTRY\ *\ zzip_entry_findmatch('u .BI "zzip__new__ ZZIP_ENTRY * zzip_entry_findmatch((FILE\ *\ disk,\ char\ *filespec,\ ZZIP_ENTRY\ *\ _zzip_restrict\ entry,\ zzip_fnmatch_fn_t\ compare,\ int\ flags));" .SH "DESCRIPTION" .PP The \fBzzip_entry_findfile\fR function is given a filename as an additional argument, to find the disk_entry matching a given filename\&. The compare\-function is usually strcmp or strcasecmp or perhaps strcoll, if null then strcmp is used\&. \- use null as argument for "old"\-entry when searching the first matching entry, otherwise the last returned value if you look for other entries with a special "compare" function (if null then a doubled search is rather useless with this variant of _findfile)\&. If no further entry is found then null is returned and any "old"\-entry gets already free()d\&. .PP The \fBzzip_entry_findfirst\fR function is the first call of all the zip access functions here\&. It contains the code to find the first entry of the zip central directory\&. Here we require the stdio handle to represent a real zip file where the disk_trailer is _last_ in the file area, so that its position would be at a fixed offset from the end of the file area if not for the comment field allowed to be of variable length (which needs us to do a little search for the disk_tailer)\&. However, in this simple implementation we disregard any disk_trailer info telling about multidisk archives, so we just return a pointer to the first entry in the zip central directory of that file\&. .PP For an actual means, we are going to search backwards from the end of the mmaped block looking for the PK\-magic signature of a disk_trailer\&. If we see one then we check the rootseek value to find the first disk_entry of the root central directory\&. If we find the correct PK\-magic signature of a disk_entry over there then we assume we are done and we are going to return a pointer to that label\&. .PP The return value is a pointer to the first zzip_disk_entry being checked to be within the bounds of the file area specified by the arguments\&. If no disk_trailer was found then null is returned, and likewise we only accept a disk_trailer with a seekvalue that points to a disk_entry and both parts have valid PK\-magic parts\&. Beyond some sanity check we try to catch a common brokeness with zip archives that still allows us to find the start of the zip central directory\&. .PP The \fBzzip_entry_findnext\fR function takes an existing "entry" in the central root directory (e\&.g\&. from zzip_entry_findfirst) and moves it to point to the next entry\&. On error it returns 0, otherwise the old entry\&. If no further match is found then null is returned and the entry already free()d\&. If you want to stop searching for matches before that case then please call \fBzzip_entry_free\fR on the cursor struct ZZIP_ENTRY\&. .PP the \fBzzip_entry_free\fR function releases the malloc()ed areas needed for zzip_entry, the pointer is invalid afterwards\&. The \fBzzip_entry_free\fR function has #define synonyms of zzip_entry_findlast(), zzip_entry_findlastfile(), zzip_entry_findlastmatch() .PP The \fBzzip_entry_findmatch\fR function uses a compare\-function with an additional argument and it is called just like fnmatch(3) from POSIX\&.2 AD:1993), i\&.e\&. the argument filespec first and the ziplocal filename second with the integer\-flags put in as third to the indirect call\&. If the platform has fnmatch available then null\-compare will use that one and otherwise we fall back to mere strcmp, so if you need fnmatch searching then please provide an implementation somewhere else\&. \- use null as argument for "after"\-entry when searching the first matching entry, or the last disk_entry return\-value to find the next entry matching the given filespec\&. If no further entry is found then null is returned and any "old"\-entry gets already free()d\&. .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim .RE .SH "COPYRIGHT" .PP Copyright (c) 2003,2004 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/zzip_file_open.3000066400017510000000000000026361150666236500153430ustar00guidodroot00000000000000'\" t .\" Title: zzip_file_open .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "ZZIP_FILE_OPEN" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" zzip_file_open \- \&.\&.\&. .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'ZZIP_FILE\ *\ zzip_file_open('u .BI "ZZIP_FILE * zzip_file_open((ZZIP_DIR\ *\ dir,\ zzip_char_t\ *\ name,\ int\ o_mode));" .SH "DESCRIPTION" .PP (missing description) .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim Tomi Ollila .RE .SH "COPYRIGHT" .PP Copyright (c) 1999,2000,2001,2002,2003 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/zzip_error.3000066400017510000000000000027011150666235200145210ustar00guidodroot00000000000000'\" t .\" Title: zzip_error .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "ZZIP_ERROR" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" zzip_error, zzip_seterror \- \&.\&.\&. .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'int\ zzip_error('u .BI "int zzip_error((ZZIP_DIR\ *\ dir));" .HP \w'void\ zzip_seterror('u .BI "void zzip_seterror((ZZIP_DIR\ *\ dir,\ int\ errcode));" .SH "DESCRIPTION" .PP The \fBzzip_seterror\fR function just does dir\->errcode = errcode .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim .RE .SH "COPYRIGHT" .PP Copyright (c) 2000,2001,2002,2003 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/zzip_open.3000066400017510000000000000072231150666235200143350ustar00guidodroot00000000000000'\" t .\" Title: zzip_open .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "ZZIP_OPEN" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" zzip_open, zzip_open_ext_io, zzip_open_shared_io \- \&.\&.\&. .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'ZZIP_FILE\ *\ zzip_open('u .BI "ZZIP_FILE * zzip_open((zzip_char_t\ *\ filename,\ int\ o_flags));" .HP \w'ZZIP_FILE\ *\ zzip_open_ext_io('u .BI "ZZIP_FILE * zzip_open_ext_io((zzip_char_t\ *\ filename,\ int\ o_flags,\ int\ o_modes,\ zzip_strings_t\ *\ ext,\ zzip_plugin_io_t\ io));" .HP \w'ZZIP_FILE\ *\ zzip_open_shared_io('u .BI "ZZIP_FILE * zzip_open_shared_io((ZZIP_FILE\ *\ stream,\ zzip_char_t\ *\ filename,\ int\ o_flags,\ int\ o_modes,\ zzip_strings_t\ *\ ext,\ zzip_plugin_io_t\ io));" .SH "DESCRIPTION" .PP The \fBzzip_open_ext_io\fR function uses explicit ext and io instead of the internal defaults, setting them to zero is equivalent to \fBzzip_open\fR .PP note that the two flag types have been split into an o_flags (for fcntl\-like openflags) and o_modes where the latter shall carry the zzip_flags and possibly accessmodes for unix filesystems\&. Since this version of zziplib can not write zipfiles, it is not yet used for anything else than zzip\-specific modeflags\&. .PP The \fBzzip_open_ext_io\fR function returns a new zzip\-handle (use \fBzzip_close\fR to return it)\&. On error the \fBzzip_open_ext_io\fR function will return null setting \fBerrno(3)\fR\&. .PP If any ext_io handlers were used then the referenced structure should be static as the allocated ZZIP_FILE does not copy them\&. .PP The \fBzzip_open_shared_io\fR function takes an extra stream argument \- if a handle has been then ext/io can be left null and the new stream handle will pick up the ext/io\&. This should be used only in specific environment however since \fBzzip_file_real\fR does not store any ext\-sequence\&. .PP The benefit for the \fBzzip_open_shared_io\fR function comes in when the old file handle was openened from a file within a zip archive\&. When the new file is in the same zip archive then the internal zzip_dir structures will be shared\&. It is even quicker, as no check needs to be done anymore trying to guess the zip archive place in the filesystem, here we just check whether the zip archive\'s filepath is a prefix part of the filename to be opened\&. .PP Note that the \fBzzip_open_shared_io\fR function is also used by \fBzzip_freopen\fR that will unshare the old handle, thereby possibly closing the handle\&. .PP The \fBzzip_open_shared_io\fR function returns a new zzip\-handle (use \fBzzip_close\fR to return it)\&. On error the \fBzzip_open_shared_io\fR function will return null setting \fBerrno(3)\fR\&. .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim Tomi Ollila .RE .SH "COPYRIGHT" .PP Copyright (c) 1999,2000,2001,2002,2003 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/zzip_rewind.3000066400017510000000000000025311150666236700146670ustar00guidodroot00000000000000'\" t .\" Title: zzip_rewind .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "ZZIP_REWIND" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" zzip_rewind \- \&.\&.\&. .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'int\ zzip_rewind('u .BI "int zzip_rewind((ZZIP_FILE\ *\ fp));" .SH "DESCRIPTION" .PP (missing description) .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim Tomi Ollila .RE .SH "COPYRIGHT" .PP Copyright (c) 1999,2000,2001,2002,2003 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/zzip_entry_fopen.3000066400017510000000000000066441150666237500157370ustar00guidodroot00000000000000'\" t .\" Title: zzip_entry_fopen .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "ZZIP_ENTRY_FOPEN" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" zzip_entry_fopen, zzip_entry_ffile, zzip_entry_fread, zzip_entry_fclose, zzip_entry_feof \- open a file within a zip disk for reading .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'zzip__new__\ ZZIP_ENTRY_FILE\ *\ zzip_entry_fopen('u .BI "zzip__new__ ZZIP_ENTRY_FILE * zzip_entry_fopen((ZZIP_ENTRY\ *\ entry,\ int\ takeover));" .HP \w'zzip__new__\ ZZIP_ENTRY_FILE\ *\ zzip_entry_ffile('u .BI "zzip__new__ ZZIP_ENTRY_FILE * zzip_entry_ffile((FILE\ *\ disk,\ char\ *filename));" .HP \w'zzip_size_t\ zzip_entry_fread('u .BI "zzip_size_t zzip_entry_fread((void\ *ptr,\ zzip_size_t\ sized,\ zzip_size_t\ nmemb,\ ZZIP_ENTRY_FILE\ *\ file));" .HP \w'int\ zzip_entry_fclose('u .BI "int zzip_entry_fclose((ZZIP_ENTRY_FILE\ *\ file));" .HP \w'int\ zzip_entry_feof('u .BI "int zzip_entry_feof((ZZIP_ENTRY_FILE\ *\ file));" .SH "DESCRIPTION" .PP The \fBzzip_entry_fopen\fR function does take an "entry" argument and copies it (or just takes it over as owner) to a new ZZIP_ENTRY_FILE handle structure\&. That structure contains also a zlib buffer for decoding\&. The \fBzzip_entry_fopen\fR function does seek to the file_header of the given "entry" and validates it for the data buffer following it\&. We do also prefetch some data from the data buffer thereby trying to match the disk pagesize for faster access later\&. The \fBzzip_entry_fread\fR will then read in chunks of pagesizes which is the size of the internal readahead buffer\&. If an error occurs then null is returned\&. .PP The \fBzzip_entry_ffile\fR function opens a file found by name, so it does a search into the zip central directory with \fBzzip_entry_findfile\fR and whatever is found first is given to \fBzzip_entry_fopen\fR .PP The \fBzzip_entry_fread\fR function reads more bytes into the output buffer specified as arguments\&. The return value is null on eof or error, the stdio\-like interface can not distinguish between these so you need to check with \fBzzip_entry_feof\fR for the difference\&. .PP The \fBzzip_entry_fclose\fR function releases any zlib decoder info needed for decompression and dumps the ZZIP_ENTRY_FILE struct then\&. .PP The \fBzzip_entry_feof\fR function allows to distinguish an error from an eof condition\&. Actually, if we found an error but we did already reach eof then we just keep on saying that it was an eof, so the app can just continue\&. .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim .RE .SH "COPYRIGHT" .PP Copyright (c) 2003,2004 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/zzip_closedir.3000066400017510000000000000024761150666236400152100ustar00guidodroot00000000000000'\" t .\" Title: zzip_closedir .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "ZZIP_CLOSEDIR" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" zzip_closedir \- \&.\&.\&. .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'int\ zzip_closedir('u .BI "int zzip_closedir((ZZIP_DIR\ *\ dir));" .SH "DESCRIPTION" .PP (missing description) .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim .RE .SH "COPYRIGHT" .PP Copyright (c) 1999,2000,2001,2002,2003 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/zzip_dir_read.3000066400017510000000000000000311150666235500151360ustar00guidodroot00000000000000.so man3/zzip_dir_open.3 man3/zzip_seek32.3000066400017510000000000000000251150666236000144600ustar00guidodroot00000000000000.so man3/zzip_seek.3 man3/zzip_freopen.3000066400017510000000000000000261150666235700150310ustar00guidodroot00000000000000.so man3/zzip_fopen.3 man3/zzip_get_default_io.3000066400017510000000000000000301150666235600163370ustar00guidodroot00000000000000.so man3/zzip_init_io.3 man3/zzip_entry_free.3000066400017510000000000000000371150666237600155400ustar00guidodroot00000000000000.so man3/zzip_entry_findfile.3 man3/zzip_dir_open.3000066400017510000000000000041361150666235500151760ustar00guidodroot00000000000000'\" t .\" Title: zzip_dir_open .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "ZZIP_DIR_OPEN" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" zzip_dir_open, zzip_dir_open_ext_io, zzip_dir_read \- \&.\&.\&. .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'ZZIP_DIR\ *\ zzip_dir_open('u .BI "ZZIP_DIR * zzip_dir_open((zzip_char_t\ *\ filename,\ zzip_error_t\ *\ e));" .HP \w'ZZIP_DIR\ *\ zzip_dir_open_ext_io('u .BI "ZZIP_DIR * zzip_dir_open_ext_io((zzip_char_t\ *\ filename,\ zzip_error_t\ *\ e,\ zzip_strings_t\ *\ ext,\ zzip_plugin_io_t\ io));" .HP \w'int\ zzip_dir_read('u .BI "int zzip_dir_read((ZZIP_DIR\ *\ dir,\ ZZIP_DIRENT\ *\ d));" .SH "DESCRIPTION" .PP the \fBzzip_dir_open_ext_io\fR function uses explicit ext and io instead of the internal defaults\&. Setting these to zero is equivalent to \fBzzip_dir_open\fR Note that the referenced ext_io plugin handlers structure must be static as it is not copied to the returned ZZIP_DIR structure\&. .PP fills the dirent\-argument with the values and increments the read\-pointer of the dir\-argument\&. .PP returns 0 if there no entry (anymore)\&. .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim Tomi Ollila .RE .SH "COPYRIGHT" .PP Copyright (c) 1999,2000,2001,2002,2003 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/zzip_telldir.3000066400017510000000000000000321150666235600150260ustar00guidodroot00000000000000.so man3/zzip_rewinddir.3 man3/zzip_dirhandle.3000066400017510000000000000032201150666235700153240ustar00guidodroot00000000000000'\" t .\" Title: zzip_dirhandle .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "ZZIP_DIRHANDLE" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" zzip_dirhandle, zzip_dirfd \- \&.\&.\&. .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'ZZIP_DIR\ *\ zzip_dirhandle('u .BI "ZZIP_DIR * zzip_dirhandle((ZZIP_FILE\ *\ fp));" .HP \w'int\ zzip_dirfd('u .BI "int zzip_dirfd((ZZIP_DIR\ *\ dir));" .SH "DESCRIPTION" .PP The \fBzzip_dirfd\fR function will just return dir\->fd .PP If a ZZIP_DIR does point to a zipfile then the file\-descriptor of that zipfile is returned, otherwise a NULL is returned and the ZZIP_DIR wraps a real directory DIR (if you have dirent on your system)\&. .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim .RE .SH "COPYRIGHT" .PP Copyright (c) 2000,2001,2002,2003 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/zzip_seekdir32.3000066400017510000000000000000321150666235600151620ustar00guidodroot00000000000000.so man3/zzip_rewinddir.3 man3/zzip_telldir32.3000066400017510000000000000000321150666235600151730ustar00guidodroot00000000000000.so man3/zzip_rewinddir.3 man3/zzip_errno.3000066400017510000000000000025201150666236400145170ustar00guidodroot00000000000000'\" t .\" Title: zzip_errno .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "ZZIP_ERRNO" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" zzip_errno \- \&.\&.\&. .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'int\ zzip_errno('u .BI "int zzip_errno((int\ errcode));" .SH "DESCRIPTION" .PP (missing description) .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim Tomi Ollila .RE .SH "COPYRIGHT" .PP Copyright (c) 1999,2000,2001,2002,2003 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/zzip_entry_findnext.3000066400017510000000000000000371150666237600164360ustar00guidodroot00000000000000.so man3/zzip_entry_findfile.3 man3/__zzip_parse_root_directory.3000066400017510000000000000027551150666237000201400ustar00guidodroot00000000000000'\" t .\" Title: __zzip_parse_root_directory .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "__ZZIP_PARSE_ROOT_DI" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" __zzip_parse_root_directory \- \&.\&.\&. .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'int\ __zzip_parse_root_directory('u .BI "int __zzip_parse_root_directory((int\ fd,\ struct\ _disk_trailer\ *trailer,\ struct\ zzip_dir_hdr\ **hdr_return,\ zzip_plugin_io_t\ io));" .SH "DESCRIPTION" .PP (missing description) .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim Tomi Ollila .RE .SH "COPYRIGHT" .PP Copyright (c) 1999,2000,2001,2002,2003 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/zzip_rewinddir.3000066400017510000000000000046031150666235600153660ustar00guidodroot00000000000000'\" t .\" Title: zzip_rewinddir .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "ZZIP_REWINDDIR" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" zzip_rewinddir, zzip_telldir, zzip_seekdir, zzip_telldir32, zzip_seekdir32 \- .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'void\ zzip_rewinddir('u .BI "void zzip_rewinddir((ZZIP_DIR\ *\ dir));" .HP \w'zzip_off_t\ zzip_telldir('u .BI "zzip_off_t zzip_telldir((ZZIP_DIR\ *\ dir));" .HP \w'void\ zzip_seekdir('u .BI "void zzip_seekdir((ZZIP_DIR\ *\ dir,\ zzip_off_t\ offset));" .HP \w'long\ zzip_telldir32('u .BI "long zzip_telldir32((ZZIP_DIR\ *\ dir));" .HP \w'void\ zzip_seekdir32('u .BI "void zzip_seekdir32((ZZIP_DIR\ *\ dir,\ long\ offset));" .SH "DESCRIPTION" .PP The \fBzzip_rewinddir\fR function is the equivalent of a \fBrewinddir(2)\fR for a realdir or the zipfile in place of a directory\&. The ZZIP_DIR handle returned from \fBzzip_opendir\fR has a flag saying realdir or zipfile\&. As for a zipfile, the filenames will include the filesubpath, so take care\&. .PP The \fBzzip_telldir\fR function is the equivalent of \fBtelldir(2)\fR for a realdir or zipfile\&. .PP The \fBzzip_seekdir\fR function is the equivalent of \fBseekdir(2)\fR for a realdir or zipfile\&. .PP The \fBzzip_telldir32\fR function is provided for users who can not use any largefile\-mode\&. .PP The \fBzzip_seekdir32\fR function is provided for users who can not use any largefile\-mode\&. .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim .RE .SH "COPYRIGHT" .PP Copyright (c) 1999,2000,2001,2002,2003 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/zzip_fstat.3000066400017510000000000000000311150666235400145050ustar00guidodroot00000000000000.so man3/zzip_dir_stat.3 man3/zzip_dir_alloc.3000066400017510000000000000000411150666236300153150ustar00guidodroot00000000000000.so man3/zzip_dir_alloc_ext_io.3 man3/zzip_disk_findnext.3000066400017510000000000000000361150666237200162220ustar00guidodroot00000000000000.so man3/zzip_disk_findfile.3 man3/zzip_disk_feof.3000066400017510000000000000000331150666237300153200ustar00guidodroot00000000000000.so man3/zzip_disk_fopen.3 man3/zzip_readdir.3000066400017510000000000000025161150666236300150100ustar00guidodroot00000000000000'\" t .\" Title: zzip_readdir .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "ZZIP_READDIR" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" zzip_readdir \- \&.\&.\&. .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'ZZIP_DIRENT\ *\ zzip_readdir('u .BI "ZZIP_DIRENT * zzip_readdir((ZZIP_DIR\ *\ dir));" .SH "DESCRIPTION" .PP (missing description) .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim .RE .SH "COPYRIGHT" .PP Copyright (c) 1999,2000,2001,2002,2003 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/zzip_disk_fread.3000066400017510000000000000000331150666237300154620ustar00guidodroot00000000000000.so man3/zzip_disk_fopen.3 man3/zzip_tell32.3000066400017510000000000000000251150666235400144740ustar00guidodroot00000000000000.so man3/zzip_tell.3 man3/zzip_disk_close.3000066400017510000000000000000321150666237300155050ustar00guidodroot00000000000000.so man3/zzip_disk_mmap.3 man3/zzip_entry_strdup_name.3000066400017510000000000000000421150666237500171330ustar00guidodroot00000000000000.so man3/zzip_entry_data_offset.3 man3/zzip_disk_entry_fopen.3000066400017510000000000000000331150666237300167310ustar00guidodroot00000000000000.so man3/zzip_disk_fopen.3 man3/zzip_strerror.3000066400017510000000000000032061150666235500152560ustar00guidodroot00000000000000'\" t .\" Title: zzip_strerror .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "ZZIP_STRERROR" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" zzip_strerror, zzip_strerror_of \- \&.\&.\&. .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'zzip_char_t\ *\ zzip_strerror('u .BI "zzip_char_t * zzip_strerror((int\ errcode));" .HP \w'zzip_char_t\ *\ zzip_strerror_of('u .BI "zzip_char_t * zzip_strerror_of((ZZIP_DIR\ *\ dir));" .SH "DESCRIPTION" .PP The \fBzzip_strerror_of\fR function fetches the errorcode from the \fBDIR\-handle\fR and runs it through \fBzzip_strerror\fR to obtain the static string describing the error\&. .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim Tomi Ollila .RE .SH "COPYRIGHT" .PP Copyright (c) 1999,2000,2001,2002,2003 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/zzip_entry_feof.3000066400017510000000000000000341150666237500155320ustar00guidodroot00000000000000.so man3/zzip_entry_fopen.3 man3/zzip_disk_mmap.3000066400017510000000000000073741150666237300153520ustar00guidodroot00000000000000'\" t .\" Title: zzip_disk_mmap .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "ZZIP_DISK_MMAP" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" zzip_disk_mmap, zzip_disk_init, zzip_disk_new, zzip_disk_munmap, zzip_disk_open, zzip_disk_buffer, zzip_disk_close \- turn a filehandle into a mmapped zip disk archive handle .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'zzip__new__\ ZZIP_DISK\ *\ zzip_disk_mmap('u .BI "zzip__new__ ZZIP_DISK * zzip_disk_mmap((int\ fd));" .HP \w'int\ zzip_disk_init('u .BI "int zzip_disk_init((ZZIP_DISK\ *\ disk,\ void\ *buffer,\ zzip_size_t\ buflen));" .HP \w'zzip__new__\ ZZIP_DISK\ *\ zzip_disk_new('u .BI "zzip__new__ ZZIP_DISK * zzip_disk_new((void));" .HP \w'int\ zzip_disk_munmap('u .BI "int zzip_disk_munmap((ZZIP_DISK\ *\ disk));" .HP \w'zzip__new__\ ZZIP_DISK\ *\ zzip_disk_open('u .BI "zzip__new__ ZZIP_DISK * zzip_disk_open((char\ *filename));" .HP \w'zzip__new__\ ZZIP_DISK\ *\ zzip_disk_buffer('u .BI "zzip__new__ ZZIP_DISK * zzip_disk_buffer((void\ *buffer,\ size_t\ buflen));" .HP \w'int\ zzip_disk_close('u .BI "int zzip_disk_close((ZZIP_DISK\ *\ disk));" .SH "DESCRIPTION" .PP The \fBzzip_disk_mmap\fR function uses the given file\-descriptor to detect the length of the file and calls the system \fBmmap(2)\fR to put it in main memory\&. If it is successful then a newly allocated ZZIP_DISK* is returned with disk\->buffer pointing to the mapview of the zipdisk content\&. .PP The \fBzzip_disk_init\fR function does primary initialization of a disk\-buffer struct\&. .PP The \fBzzip_disk_new\fR function allocates a new disk\-buffer with \fBmalloc(3)\fR .PP The \fBzzip_disk_munmap\fR function is the inverse of \fBzzip_disk_mmap\fR and using the system munmap(2) on the buffer area and \fBfree(3)\fR on the ZZIP_DISK structure\&. .PP The \fBzzip_disk_open\fR function opens the given archive by name and turn the filehandle to \fBzzip_disk_mmap\fR for bringing it to main memory\&. If it can not be \fBmmap(2)\fR\'ed then we slurp the whole file into a newly \fBmalloc(2)\fR\'ed memory block\&. Only if that fails too then we return null\&. Since handling of disk\->buffer is ambigous it should not be snatched away please\&. .PP The \fBzzip_disk_buffer\fR function will attach a buffer with a zip image that was acquired from another source than a file\&. Note that if zzip_disk_mmap fails then zzip_disk_open will fall back and try to read the full file to memory wrapping a ZZIP_DISK around the memory buffer just as the \fBzzip_disk_buffer\fR function will do\&. Note that the \fBzzip_disk_buffer\fR function will not own the buffer, it will neither be written nor free()d\&. .PP The \fBzzip_disk_close\fR function will release all data needed to access a (mmapped) zip archive, including any malloc()ed blocks, sharedmem mappings and it dumps the handle struct as well\&. .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim .RE .SH "COPYRIGHT" .PP Copyright (c) 2003,2004,2006 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/zzip_file_read.3000066400017510000000000000026321150666236600153120ustar00guidodroot00000000000000'\" t .\" Title: zzip_file_read .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "ZZIP_FILE_READ" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" zzip_file_read \- \&.\&.\&. .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'zzip_ssize_t\ zzip_file_read('u .BI "zzip_ssize_t zzip_file_read((ZZIP_FILE\ *\ fp,\ void\ *buf,\ zzip_size_t\ len));" .SH "DESCRIPTION" .PP (missing description) .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim Tomi Ollila .RE .SH "COPYRIGHT" .PP Copyright (c) 1999,2000,2001,2002,2003 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/zzip_disk_findfirst.3000066400017510000000000000000361150666237200163730ustar00guidodroot00000000000000.so man3/zzip_disk_findfile.3 man3/zzip_tell.3000066400017510000000000000027701150666235400143400ustar00guidodroot00000000000000'\" t .\" Title: zzip_tell .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "ZZIP_TELL" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" zzip_tell, zzip_tell32 \- \&.\&.\&. .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'zzip_off_t\ zzip_tell('u .BI "zzip_off_t zzip_tell((ZZIP_FILE\ *\ fp));" .HP \w'long\ zzip_tell32('u .BI "long zzip_tell32((ZZIP_FILE\ *\ fp));" .SH "DESCRIPTION" .PP The \fBzzip_tell32\fR function is provided for users who can not use any largefile\-mode\&. .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim Tomi Ollila .RE .SH "COPYRIGHT" .PP Copyright (c) 1999,2000,2001,2002,2003 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/zzip_dir_stat.3000066400017510000000000000043231150666235400152050ustar00guidodroot00000000000000'\" t .\" Title: zzip_dir_stat .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "ZZIP_DIR_STAT" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" zzip_dir_stat, zzip_file_stat, zzip_fstat \- \&.\&.\&. .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'int\ zzip_dir_stat('u .BI "int zzip_dir_stat((ZZIP_DIR\ *\ dir,\ zzip_char_t\ *\ name,\ ZZIP_STAT\ *\ zs,\ int\ flags));" .HP \w'int\ zzip_file_stat('u .BI "int zzip_file_stat((ZZIP_FILE\ *\ file,\ ZZIP_STAT\ *\ zs));" .HP \w'int\ zzip_fstat('u .BI "int zzip_fstat((ZZIP_FILE\ *\ file,\ ZZIP_STAT\ *\ zs));" .SH "DESCRIPTION" .PP The \fBzzip_file_stat\fR function will obtain information about a opened file _within_ a zip\-archive\&. The file is supposed to be open (otherwise \-1 is returned)\&. The st_size stat\-member contains the uncompressed size\&. The optional d_name is never set here\&. .PP The \fBzzip_fstat\fR function will obtain information about a opened file which may be either real/zipped\&. The file is supposed to be open (otherwise \-1 is returned)\&. The st_size stat\-member contains the uncompressed size\&. The optional d_name is never set here\&. For a real file, we do set the d_csize := st_size and d_compr := 0 for meaningful defaults\&. .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim Tomi Ollila .RE .SH "COPYRIGHT" .PP Copyright (c) 1999,2000,2001,2002 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/zzip_read.3000066400017510000000000000030311150666236100143000ustar00guidodroot00000000000000'\" t .\" Title: zzip_read .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "ZZIP_READ" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" zzip_read, zzip_fread \- \&.\&.\&. .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'zzip_ssize_t\ zzip_read('u .BI "zzip_ssize_t zzip_read((ZZIP_FILE\ *\ fp,\ void\ *buf,\ zzip_size_t\ len));" .HP \w'zzip_size_t\ zzip_fread('u .BI "zzip_size_t zzip_fread((void\ *ptr,\ zzip_size_t\ size,\ zzip_size_t\ nmemb,\ ZZIP_FILE\ *\ file));" .SH "DESCRIPTION" .PP (missing description) .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim Tomi Ollila .RE .SH "COPYRIGHT" .PP Copyright (c) 1999,2000,2001,2002,2003 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/zzip_disk_init.3000066400017510000000000000000321150666237300153430ustar00guidodroot00000000000000.so man3/zzip_disk_mmap.3 man3/zzip_dir_fdopen.3000066400017510000000000000033401150666236200155020ustar00guidodroot00000000000000'\" t .\" Title: zzip_dir_fdopen .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "ZZIP_DIR_FDOPEN" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" zzip_dir_fdopen, zzip_dir_fdopen_ext_io \- \&.\&.\&. .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'ZZIP_DIR\ *\ zzip_dir_fdopen('u .BI "ZZIP_DIR * zzip_dir_fdopen((int\ fd,\ zzip_error_t\ *\ errcode_p));" .HP \w'ZZIP_DIR\ *\ zzip_dir_fdopen_ext_io('u .BI "ZZIP_DIR * zzip_dir_fdopen_ext_io((int\ fd,\ zzip_error_t\ *\ errcode_p,\ zzip_strings_t\ *\ ext,\ const\ zzip_plugin_io_t\ io));" .SH "DESCRIPTION" .PP the \fBzzip_dir_fdopen_ext_io\fR function uses explicit ext and io instead of the internal defaults, setting these to zero is equivalent to \fBzzip_dir_fdopen\fR .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim Tomi Ollila .RE .SH "COPYRIGHT" .PP Copyright (c) 1999,2000,2001,2002,2003 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/zzip_seterror.3000066400017510000000000000000261150666235200152330ustar00guidodroot00000000000000.so man3/zzip_error.3 man3/zzip_file_close.3000066400017510000000000000025551150666236500155070ustar00guidodroot00000000000000'\" t .\" Title: zzip_file_close .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "ZZIP_FILE_CLOSE" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" zzip_file_close \- \&.\&.\&. .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'int\ zzip_file_close('u .BI "int zzip_file_close((ZZIP_FILE\ *\ fp));" .SH "DESCRIPTION" .PP (missing description) .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim Tomi Ollila .RE .SH "COPYRIGHT" .PP Copyright (c) 1999,2000,2001,2002,2003 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/__zzip_try_open.3000066400017510000000000000026531150666237100155340ustar00guidodroot00000000000000'\" t .\" Title: __zzip_try_open .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "__ZZIP_TRY_OPEN" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" __zzip_try_open \- \&.\&.\&. .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'int\ __zzip_try_open('u .BI "int __zzip_try_open((zzip_char_t\ *\ filename,\ int\ filemode,\ zzip_strings_t\ *\ ext,\ zzip_plugin_io_t\ io));" .SH "DESCRIPTION" .PP (missing description) .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim Tomi Ollila .RE .SH "COPYRIGHT" .PP Copyright (c) 1999,2000,2001,2002,2003 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/zzip_disk_entry_strdup_comment.3000066400017510000000000000000431150666237200206650ustar00guidodroot00000000000000.so man3/zzip_disk_entry_to_data.3 man3/zzip_init_io.3000066400017510000000000000032511150666235600150270ustar00guidodroot00000000000000'\" t .\" Title: zzip_init_io .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 0.13.60 .\" Manual: zziplib Function List .\" Source: zziplib .\" Language: English .\" .TH "ZZIP_INIT_IO" "3" "0\&.13\&.60" "zziplib" "zziplib Function List" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" zzip_init_io, zzip_get_default_io \- \&.\&.\&. .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'int\ zzip_init_io('u .BI "int zzip_init_io((zzip_plugin_io_handlers_t\ io,\ int\ flags));" .HP \w'zzip_plugin_io_t\ zzip_get_default_io('u .BI "zzip_plugin_io_t zzip_get_default_io((void));" .SH "DESCRIPTION" .PP The \fBzzip_get_default_io\fR function returns a zzip_plugin_io_t handle to static defaults wrapping the posix io file functions for actual file access\&. The returned structure is shared by all threads in the system\&. .SH "AUTHOR" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Guido Draheim Mike Nordell .RE .SH "COPYRIGHT" .PP Copyright (c) 2002,2003 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1\&.1 man3/zzip_disk_open.3000066400017510000000000000000321150666237300153410ustar00guidodroot00000000000000.so man3/zzip_disk_mmap.3 man3/zzip_disk_entry_strdup_name.3000066400017510000000000000000431150666237200201430ustar00guidodroot00000000000000.so man3/zzip_disk_entry_to_data.3 man3/zzip_close.3000066400017510000000000000000271150666236200144750ustar00guidodroot00000000000000.so man3/zzip_fclose.3 man3/zzip_disk_fclose.3000066400017510000000000000000331150666237300156540ustar00guidodroot00000000000000.so man3/zzip_disk_fopen.3 man3/zzip_disk_new.3000066400017510000000000000000321150666237300151710ustar00guidodroot00000000000000.so man3/zzip_disk_mmap.3 man3/zzip_seekdir.3000066400017510000000000000000321150666235600150150ustar00guidodroot00000000000000.so man3/zzip_rewinddir.3 man3/zzip_realfd.3000066400017510000000000000000321150666235300146210ustar00guidodroot00000000000000.so man3/zzip_file_real.3