From: espie Date: Tue, 16 May 2023 10:51:36 +0000 (+0000) Subject: reflect reality better: document set_description and friends X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=60c7d814d6c5267abe0bb19a2d2e069681a9048e;p=openbsd reflect reality better: document set_description and friends --- diff --git a/usr.sbin/pkg_add/OpenBSD/Ustar.pod b/usr.sbin/pkg_add/OpenBSD/Ustar.pod index 1888abb0e48..d96941eba02 100644 --- a/usr.sbin/pkg_add/OpenBSD/Ustar.pod +++ b/usr.sbin/pkg_add/OpenBSD/Ustar.pod @@ -1,4 +1,4 @@ -$OpenBSD: Ustar.pod,v 1.1 2020/12/20 15:30:58 daniel Exp $ +$OpenBSD: Ustar.pod,v 1.2 2023/05/16 10:51:36 espie Exp $ =head1 NAME @@ -99,13 +99,21 @@ In case of errors, the archive will call C<$state-Efatal> with a suitable error message that contains the last index name processed. The user may set an optional archive description with C. -The C method can take an optional C<$callback> argument, which will -be called regularly while extracting large objects, as C<&$callback($donesize)>, -with C<$donesize> the number of bytes already extracted. +The archive object can take a description through C<$arc-Eset_description> +which will be used in error messages related to archive extraction or creation. + +The archive object can be embued with a C<$callback> through +C<$arch-Eset_callback>, which will be called regularly while +extracting large objects, as C<&$callback($donesize)>, +with C<$donesize> the number of bytes already extracted, for use in +progressmeter-style user interactions. Small files can also be directly extracted to a scalar using C<$v = $o-Econtents>. +Actual file objects can also be directly extracted to a temporary file using +C<$oEextract_to_fh($fh)>. + Actual writing is performed through C<$o-Ewrite> and is not mandatory either.