summaryrefslogtreecommitdiffstats
path: root/lib/libarchive/archive_read.3
diff options
context:
space:
mode:
authorcperciva <cperciva@FreeBSD.org>2007-04-05 15:51:19 +0000
committercperciva <cperciva@FreeBSD.org>2007-04-05 15:51:19 +0000
commit44021ff69137e8504972374860163a129e45810a (patch)
tree01fd418bd79b9b11b87128809b14ef6642cf0729 /lib/libarchive/archive_read.3
parent4d2fbcb41b2477001d2ee4af32075a064cfffbd7 (diff)
downloadFreeBSD-src-44021ff69137e8504972374860163a129e45810a.zip
FreeBSD-src-44021ff69137e8504972374860163a129e45810a.tar.gz
Move archive_read_data_into_buffer into archive_read.c, simplify its
implementation, and mark it as deprecated. It will be removed entirely in libarchive 3.0 (in FreeBSD 8.0?) but there's no reason for anyone to use it instead of archive_read_data. Approved by: kientzle
Diffstat (limited to 'lib/libarchive/archive_read.3')
-rw-r--r--lib/libarchive/archive_read.311
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/libarchive/archive_read.3 b/lib/libarchive/archive_read.3
index 46be4d4..21256b2 100644
--- a/lib/libarchive/archive_read.3
+++ b/lib/libarchive/archive_read.3
@@ -50,7 +50,9 @@
.Nm archive_read_data ,
.Nm archive_read_data_block ,
.Nm archive_read_data_skip ,
+.\" #if ARCHIVE_API_VERSION < 3
.Nm archive_read_data_into_buffer ,
+.\" #endif
.Nm archive_read_data_into_fd ,
.Nm archive_read_extract ,
.Nm archive_read_extract_set_progress_callback ,
@@ -103,8 +105,10 @@
.Fn archive_read_data_block "struct archive *" "const void **buff" "size_t *len" "off_t *offset"
.Ft int
.Fn archive_read_data_skip "struct archive *"
+.\" #if ARCHIVE_API_VERSION < 3
.Ft int
.Fn archive_read_data_into_buffer "struct archive *" "void *" "ssize_t len"
+.\" #endif
.Ft int
.Fn archive_read_data_into_fd "struct archive *" "int fd"
.Ft int
@@ -224,11 +228,10 @@ and internal buffer optimizations.
A convenience function that repeatedly calls
.Fn archive_read_data_block
to skip all of the data for this archive entry.
+.\" #if ARCHIVE_API_VERSION < 3
.It Fn archive_read_data_into_buffer
-A convenience function that repeatedly calls
-.Fn archive_read_data_block
-to copy the entire entry into the client-supplied buffer.
-Note that the client is responsible for sizing the buffer appropriately.
+This function is deprecated and should not be used.
+.\" #endif
.It Fn archive_read_data_into_fd
A convenience function that repeatedly calls
.Fn archive_read_data_block
OpenPOWER on IntegriCloud