regen
diff --git a/man/zip_source_function.man b/man/zip_source_function.man index 4a5686b..5b33557 100644 --- a/man/zip_source_function.man +++ b/man/zip_source_function.man
@@ -1,5 +1,5 @@ .\" zip_source_function.mdoc \-- create data source from function -.\" Copyright (C) 2004-2011 Dieter Baron and Thomas Klausner +.\" Copyright (C) 2004-2013 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> @@ -29,7 +29,7 @@ .\" 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 22, 2011" NiH +.TH ZIP_SOURCE_FUNCTION 3 "September 22, 2013" NiH .SH "NAME" zip_source_function \- create data source from function .SH "LIBRARY" @@ -86,11 +86,11 @@ \fBZIP_SOURCE_STAT\fR Get meta information for the input data. \fBdata\fR -points to an initialized +points to an allocated .Vt struct zip_stat, -which should be filled in. -(See -zip_stat_init(3). ) +which should be initialized using +zip_stat_init(3) +and then filled in. Information only available after the source has been read (e.g. size) can be omitted in an earlier call. Return sizeof(struct zip_stat) on success, \-1 on error.
diff --git a/man/zip_stat_init.man b/man/zip_stat_init.man index cfaf4ea..d4d2276 100644 --- a/man/zip_stat_init.man +++ b/man/zip_stat_init.man
@@ -1,5 +1,5 @@ .\" zip_stat_init.mdoc \-- init zip_stat structure -.\" Copyright (C) 2006-2008 Dieter Baron and Thomas Klausner +.\" Copyright (C) 2006-2013 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> @@ -29,7 +29,7 @@ .\" 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 "November 10, 2008" NiH +.TH ZIP_STAT_INIT 3 "September 22, 2013" NiH .SH "NAME" zip_stat_init \- initialize zip_stat structure .SH "LIBRARY" @@ -51,6 +51,12 @@ \fBsb\fR must be allocated before calling zip_stat_init. +.PP +This function should be used by functions provided to +zip_source_function(3) +when returning +\fBZIP_SOURCE_STAT\fR +information to make sure all fields are initialized. .SH "RETURN VALUES" If \fBsb\fR