First part of API cleanup: no off_t.
Create and install zipconf.h, which contains definition for
fixed-sized integer types: zip_{,u}int{8,16,32,64}_t. On systems
where {,u}int{8,16,32,64}_t are defined, they are typedef'ed to
them, on other systems they are typedef'ed to a suitable integer
type.
XXX: Make use of these types internally.
--HG--
branch : HEAD
diff --git a/man/zip_source_file.mdoc b/man/zip_source_file.mdoc
index d5fdd34..c109a98 100644
--- a/man/zip_source_file.mdoc
+++ b/man/zip_source_file.mdoc
@@ -1,7 +1,7 @@
.\" $NiH: zip_source_file.mdoc,v 1.8 2005/07/15 14:11:16 wiz Exp $
.\"
.\" zip_source_file.mdoc -- create data source from a file
-.\" Copyright (C) 2004, 2005 Dieter Baron and Thomas Klausner
+.\" Copyright (C) 2004-2008 Dieter Baron and Thomas Klausner
.\"
.\" This file is part of libzip, a library to manipulate ZIP archives.
.\" The authors can be contacted at <libzip@nih.at>
@@ -31,7 +31,7 @@
.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd July 20, 2005
+.Dd August 1, 2008
.Dt ZIP_SOURCE_FILE 3
.Os
.Sh NAME
@@ -41,7 +41,8 @@
libzip (-lzip)
.Sh SYNOPSIS
.Ft struct zip_source *
-.Fn zip_source_file "struct zip *archive" "const char *fname" "off_t start" "off_t len"
+.Fn zip_source_file "struct zip *archive" "const char *fname" \
+"zip_uint64_t start" "zip_int64_t len"
.Sh DESCRIPTION
The function
.Fn zip_source_file
@@ -59,6 +60,9 @@
is 0 or \-1, the whole file (starting from
.Ar start )
is used.
+.Pp
+The fie is opened and read when the data from the source is used, usually by
+.Fn zip_close .
.Sh RETURN VALUES
Upon successful completion, the created source is returned.
Otherwise,