summaryrefslogtreecommitdiffstats
path: root/lib/libarchive/archive.h.in
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2004-06-27 01:15:31 +0000
committerkientzle <kientzle@FreeBSD.org>2004-06-27 01:15:31 +0000
commitfc2f6ee069a5f363320dec62ccf54b12ece0d438 (patch)
treed31c911cb53635ed8be6eeea16ab388e7e4a8941 /lib/libarchive/archive.h.in
parent4731df16a26e51f2f571e0222cbf4aa767d23583 (diff)
downloadFreeBSD-src-fc2f6ee069a5f363320dec62ccf54b12ece0d438.zip
FreeBSD-src-fc2f6ee069a5f363320dec62ccf54b12ece0d438.tar.gz
Read gtar-style sparse archives.
This change also pointed out one API deficiency: the archive_read_data_into_XXX functions were originally defined to return the total bytes read. This is, of course, ambiguous when dealing with non-contiguous files. Change it to just return a status value.
Diffstat (limited to 'lib/libarchive/archive.h.in')
-rw-r--r--lib/libarchive/archive.h.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libarchive/archive.h.in b/lib/libarchive/archive.h.in
index c8f5e94..4bef0c9 100644
--- a/lib/libarchive/archive.h.in
+++ b/lib/libarchive/archive.h.in
@@ -180,12 +180,12 @@ int archive_read_data_block(struct archive *a,
* Some convenience functions that are built on archive_read_data:
* 'skip': skips entire entry
* 'into_buffer': writes data into memory buffer that you provide
- * 'into_file': writes data to specified filedes
+ * 'into_fd': writes data to specified filedes
*/
int archive_read_data_skip(struct archive *);
-ssize_t archive_read_data_into_buffer(struct archive *, void *buffer,
+int archive_read_data_into_buffer(struct archive *, void *buffer,
ssize_t len);
-ssize_t archive_read_data_into_fd(struct archive *, int fd);
+int archive_read_data_into_fd(struct archive *, int fd);
/*-
* Convenience function to recreate the current entry (whose header
OpenPOWER on IntegriCloud