diff options
Diffstat (limited to 'archivers/libarchive/files/doc')
177 files changed, 4606 insertions, 3320 deletions
diff --git a/archivers/libarchive/files/doc/html/Makefile b/archivers/libarchive/files/doc/html/Makefile index e045e7c3ffa..c3da36a9d67 100644 --- a/archivers/libarchive/files/doc/html/Makefile +++ b/archivers/libarchive/files/doc/html/Makefile @@ -104,15 +104,15 @@ archive_write_set_passphrase.3.html: ../../libarchive/archive_write_set_passphra cpio.5.html: ../../libarchive/cpio.5 groff -mdoc -T html ../../libarchive/cpio.5 > cpio.5.html +libarchive-formats.5.html: ../../libarchive/libarchive-formats.5 + groff -mdoc -T html ../../libarchive/libarchive-formats.5 > libarchive-formats.5.html + libarchive.3.html: ../../libarchive/libarchive.3 groff -mdoc -T html ../../libarchive/libarchive.3 > libarchive.3.html libarchive_changes.3.html: ../../libarchive/libarchive_changes.3 groff -mdoc -T html ../../libarchive/libarchive_changes.3 > libarchive_changes.3.html -libarchive-formats.5.html: ../../libarchive/libarchive-formats.5 - groff -mdoc -T html ../../libarchive/libarchive-formats.5 > libarchive-formats.5.html - libarchive_internals.3.html: ../../libarchive/libarchive_internals.3 groff -mdoc -T html ../../libarchive/libarchive_internals.3 > libarchive_internals.3.html @@ -127,4 +127,4 @@ bsdtar.1.html: ../../tar/bsdtar.1 bsdcpio.1.html: ../../cpio/bsdcpio.1 groff -mdoc -T html ../../cpio/bsdcpio.1 > bsdcpio.1.html -all: archive_entry.3.html archive_entry_acl.3.html archive_entry_linkify.3.html archive_entry_paths.3.html archive_entry_perms.3.html archive_entry_stat.3.html archive_entry_time.3.html archive_read.3.html archive_read_add_passphrase.3.html archive_read_data.3.html archive_read_disk.3.html archive_read_extract.3.html archive_read_filter.3.html archive_read_format.3.html archive_read_free.3.html archive_read_header.3.html archive_read_new.3.html archive_read_open.3.html archive_read_set_options.3.html archive_util.3.html archive_write.3.html archive_write_blocksize.3.html archive_write_data.3.html archive_write_disk.3.html archive_write_filter.3.html archive_write_finish_entry.3.html archive_write_format.3.html archive_write_free.3.html archive_write_header.3.html archive_write_new.3.html archive_write_open.3.html archive_write_set_options.3.html archive_write_set_passphrase.3.html cpio.5.html libarchive.3.html libarchive_changes.3.html libarchive-formats.5.html libarchive_internals.3.html mtree.5.html tar.5.html bsdtar.1.html bsdcpio.1.html +all: archive_entry.3.html archive_entry_acl.3.html archive_entry_linkify.3.html archive_entry_paths.3.html archive_entry_perms.3.html archive_entry_stat.3.html archive_entry_time.3.html archive_read.3.html archive_read_add_passphrase.3.html archive_read_data.3.html archive_read_disk.3.html archive_read_extract.3.html archive_read_filter.3.html archive_read_format.3.html archive_read_free.3.html archive_read_header.3.html archive_read_new.3.html archive_read_open.3.html archive_read_set_options.3.html archive_util.3.html archive_write.3.html archive_write_blocksize.3.html archive_write_data.3.html archive_write_disk.3.html archive_write_filter.3.html archive_write_finish_entry.3.html archive_write_format.3.html archive_write_free.3.html archive_write_header.3.html archive_write_new.3.html archive_write_open.3.html archive_write_set_options.3.html archive_write_set_passphrase.3.html cpio.5.html libarchive-formats.5.html libarchive.3.html libarchive_changes.3.html libarchive_internals.3.html mtree.5.html tar.5.html bsdtar.1.html bsdcpio.1.html diff --git a/archivers/libarchive/files/doc/html/archive_entry.3.html b/archivers/libarchive/files/doc/html/archive_entry.3.html index 2c1de4985fb..fc75a82e5c6 100644 --- a/archivers/libarchive/files/doc/html/archive_entry.3.html +++ b/archivers/libarchive/files/doc/html/archive_entry.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:05 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:01 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> diff --git a/archivers/libarchive/files/doc/html/archive_entry_acl.3.html b/archivers/libarchive/files/doc/html/archive_entry_acl.3.html index f4068d341bf..7e76efb9bb8 100644 --- a/archivers/libarchive/files/doc/html/archive_entry_acl.3.html +++ b/archivers/libarchive/files/doc/html/archive_entry_acl.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:05 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:01 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> @@ -30,10 +30,13 @@ ARCHIVE_ENTRY_ACL(3)</p> <b>archive_entry_acl_add_entry_w</b>, <b>archive_entry_acl_clear</b>, <b>archive_entry_acl_count</b>, -<b>archive_entry_acl_next</b>, -<b>archive_entry_acl_next_w</b>, +<b>archive_entry_acl_from_text</b>, +<b>archive_entry_acl_from_text_w, +archive_entry_acl_next</b>, <b>archive_entry_acl_next_w</b>, <b>archive_entry_acl_reset</b>, -<b>archive_entry_acl_text_w</b> — functions for +<b>archive_entry_acl_to_text</b>, +<b>archive_entry_acl_to_text_w</b>, +<b>archive_entry_acl_types</b> — functions for manipulating Access Control Lists in archive entry descriptions</p> @@ -77,6 +80,20 @@ descriptions</p> <p style="margin-left:6%; margin-top: 1em"><i>int</i></p> +<p><b>archive_entry_acl_from_text</b>(<i>struct archive_entry *a</i>, +<i>const char *text</i>, +<i>int type</i>);</p> + +<p style="margin-left:6%; margin-top: 1em"><i>int</i></p> + + +<p><b>archive_entry_acl_from_text_w</b>(<i>struct archive_entry *a</i>, +<i>const wchar_t *text</i>, +<i>int type</i>);</p> + +<p style="margin-left:6%; margin-top: 1em"><i>int</i></p> + + <p><b>archive_entry_acl_next</b>(<i>struct archive_entry *a</i>, <i>int type</i>, <i>int *ret_type</i>, <i>int *ret_permset</i>, <i>int *ret_tag</i>, @@ -98,86 +115,287 @@ descriptions</p> <p style="margin-left:12%;"><b>archive_entry_acl_reset</b>(<i>struct archive_entry *a</i>, <i>int type</i>);</p> -<p style="margin-left:6%; margin-top: 1em"><i>const wchar_t +<p style="margin-left:6%; margin-top: 1em"><i>char +*</i></p> + + +<p><b>archive_entry_acl_to_text</b>(<i>struct archive_entry *a</i>, +<i>ssize_t *len_p</i>, <i>int flags</i>);</p> + +<p style="margin-left:6%; margin-top: 1em"><i>wchar_t *</i></p> -<p style="margin-left:12%;"><b>archive_entry_acl_text_w</b>(<i>struct archive_entry *a</i>, -<i>int flags</i>);</p> +<p><b>archive_entry_acl_to_text_w</b>(<i>struct archive_entry *a</i>, +<i>ssize_t *len_p</i>, <i>int flags</i>);</p> + +<p style="margin-left:6%; margin-top: 1em"><i>int</i></p> + + +<p style="margin-left:12%;"><b>archive_entry_acl_types</b>(<i>struct archive_entry *a</i>);</p> <p style="margin-top: 1em"><b>DESCRIPTION</b></p> -<p style="margin-left:6%;">An ’’Access Control -List’’ is a generalisation of the classic Unix -permission system. The ACL interface of <b>libarchive</b> is -derived from the POSIX.1e draft, but restricted to simplify -dealing with practical implementations in various Operating -Systems and archive formats.</p> +<p style="margin-left:6%;">The ‘‘Access Control +Lists (ACLs)’’ extend the standard Unix perssion +model. The ACL interface of <b>libarchive</b> supports both +POSIX.1e and NFSv4 style ACLs. Use of ACLs is restricted by +various levels of ACL support in operating systems, file +systems and archive formats.</p> -<p style="margin-left:6%; margin-top: 1em">An ACL consists -of a number of independent entries. Each entry specifies the -permission set as bitmask of basic permissions. Valid -permissions are:</p> +<p style="margin-left:6%; margin-top: 1em"><b>POSIX.1e +Access Control Lists</b> <br> +A POSIX.1e ACL consists of a number of independent entries. +Each entry specifies the permission set as bitmask of basic +permissions. Valid permissions in the <i>permset</i> +are:</p> -<p>ARCHIVE_ENTRY_ACL_EXECUTE <br> -ARCHIVE_ENTRY_ACL_WRITE <br> -ARCHIVE_ENTRY_ACL_READ</p> +<p>ARCHIVE_ENTRY_ACL_READ (<b>r</b>) <br> +ARCHIVE_ENTRY_ACL_WRITE (<b>w</b>) <br> +ARCHIVE_ENTRY_ACL_EXECUTE (<b>x</b>)</p> -<p style="margin-left:6%; margin-top: 1em">The permissions -correspond to the normal Unix permissions.</p> +<p style="margin-left:6%;">The permissions correspond to +the normal Unix permissions.</p> -<p style="margin-left:6%; margin-top: 1em">The tag +<p style="margin-left:6%; margin-top: 1em">The <i>tag</i> specifies the principal to which the permission applies. Valid values are:</p> <p>ARCHIVE_ENTRY_ACL_USER</p> -<p style="margin-left:51%; margin-top: 1em">The user -specified by the name field.</p> +<p style="margin-left:51%;">The user specified by the name +field.</p> <p>ARCHIVE_ENTRY_ACL_USER_OBJ</p> -<p style="margin-left:51%; margin-top: 1em">The owner of -the file.</p> +<p style="margin-left:51%;">The owner of the file.</p> <p>ARCHIVE_ENTRY_ACL_GROUP</p> -<p style="margin-left:51%; margin-top: 1em">The group -specied by the name field.</p> +<p style="margin-left:51%;">The group specied by the name +field.</p> <p>ARCHIVE_ENTRY_ACL_GROUP_OBJ</p> -<p style="margin-left:51%; margin-top: 1em">The group who -owns the file.</p> +<p style="margin-left:51%;">The group who owns the +file.</p> <p>ARCHIVE_ENTRY_ACL_MASK</p> -<p style="margin-left:51%; margin-top: 1em">The maximum -permissions to be obtained via group permissions.</p> +<p style="margin-left:51%;">The maximum permissions to be +obtained via group permissions.</p> <p>ARCHIVE_ENTRY_ACL_OTHER</p> -<p style="margin-left:51%; margin-top: 1em">Any principal -who doesn’t have a user or group entry.</p> +<p style="margin-left:51%;">Any principal who is not file +owner or a member of the owning group.</p> -<p style="margin-left:6%;">The principals +<p style="margin-left:6%; margin-top: 1em">The principals ARCHIVE_ENTRY_ACL_USER_OBJ, ARCHIVE_ENTRY_ACL_GROUP_OBJ and ARCHIVE_ENTRY_ACL_OTHER are equivalent to user, group and other in the classic Unix permission model and specify non-extended ACL entries.</p> -<p style="margin-left:6%; margin-top: 1em">All files have -an access ACL (ARCHIVE_ENTRY_ACL_TYPE_ACCESS). This +<p style="margin-left:6%; margin-top: 1em">All files with +have an access ACL (ARCHIVE_ENTRY_ACL_TYPE_ACCESS). This specifies the permissions required for access to the file itself. Directories have an additional ACL (ARCHIVE_ENTRY_ACL_TYPE_DEFAULT), which controls the initial access ACL for newly created directory entries.</p> +<p style="margin-left:6%; margin-top: 1em"><b>NFSv4 Access +Control Lists</b> <br> +A NFSv4 ACL consists of multiple individual entries called +Access Control Entries (ACEs).</p> + +<p style="margin-left:6%; margin-top: 1em">There are four +possible types of a NFSv4 ACE:</p> + +<p>ARCHIVE_ENTRY_ACL_TYPE_ALLOW</p> + +<p style="margin-left:51%;">Allow principal to perform +actions requiring given permissions.</p> + +<p>ARCHIVE_ENTRY_ACL_TYPE_DENY</p> + +<p style="margin-left:51%;">Prevent principal from +performing actions requiring given permissions.</p> + +<p>ARCHIVE_ENTRY_ACL_TYPE_AUDIT</p> + +<p style="margin-left:51%;">Log access attempts by +principal which require given permissions.</p> + +<p>ARCHIVE_ENTRY_ACL_TYPE_ALARM</p> + +<p style="margin-left:51%;">Trigger a system alarm on +access attempts by principal which require given +permissions.</p> + +<p style="margin-left:6%; margin-top: 1em">The <i>tag</i> +specifies the principal to which the permission applies. +Valid values are:</p> + +<p>ARCHIVE_ENTRY_ACL_USER</p> + +<p style="margin-left:51%;">The user specified by the name +field.</p> + +<p>ARCHIVE_ENTRY_ACL_USER_OBJ</p> + +<p style="margin-left:51%;">The owner of the file.</p> + +<p>ARCHIVE_ENTRY_ACL_GROUP</p> + +<p style="margin-left:51%;">The group specied by the name +field.</p> + +<p>ARCHIVE_ENTRY_ACL_GROUP_OBJ</p> + +<p style="margin-left:51%;">The group who owns the +file.</p> + +<p>ARCHIVE_ENTRY_ACL_EVERYONE</p> + +<p style="margin-left:51%;">Any principal who is not file +owner or a member of the owning group.</p> + +<p style="margin-left:6%; margin-top: 1em">Entries with the +ARCHIVE_ENTRY_ACL_USER or ARCHIVE_ENTRY_ACL_GROUP tag store +the user and group name in the <i>name</i> string and +optionally the user or group ID in the <i>qualifier</i> +integer.</p> + +<p style="margin-left:6%; margin-top: 1em">NFSv4 ACE +permissions and flags are stored in the same <i>permset</i> +bitfield. Some permissions share the same constant and +permission character but have different effect on +directories than on files. The following ACE permissions are +supported:</p> + +<p>ARCHIVE_ENTRY_ACL_READ_DATA (<b>r</b>)</p> + +<p style="margin-left:24%;">Read data (file).</p> + +<p>ARCHIVE_ENTRY_ACL_LIST_DIRECTORY (<b>r</b>)</p> + +<p style="margin-left:24%;">List entries (directory).</p> + +<p>ARCHIVE_ENTRY_ACL_WRITE_DATA (<b>w</b>)</p> + +<p style="margin-left:24%;">Write data (file).</p> + +<p>ARCHIVE_ENTRY_ACL_ADD_FILE (<b>w</b>)</p> + +<p style="margin-left:24%;">Create files (directory).</p> + +<p>ARCHIVE_ENTRY_ACL_EXECUTE (<b>x</b>)</p> + +<p style="margin-left:24%;">Execute file or change into a +directory.</p> + +<p>ARCHIVE_ENTRY_ACL_APPEND_DATA (<b>p</b>)</p> + +<p style="margin-left:24%;">Append data (file).</p> + +<p>ARCHIVE_ENTRY_ACL_ADD_SUBDIRECTORY (<b>p</b>)</p> + +<p style="margin-left:24%;">Create subdirectories +(directory).</p> + +<p>ARCHIVE_ENTRY_ACL_DELETE_CHILD (<b>D</b>)</p> + +<p style="margin-left:24%;">Remove files and subdirectories +inside a directory.</p> + +<p>ARCHIVE_ENTRY_ACL_DELETE (<b>d</b>)</p> + +<p style="margin-left:24%;">Remove file or directory.</p> -<p style="margin-left:6%; margin-top: 1em"><b>archive_entry_acl_add_entry</b>() -and <b>archive_entry_acl_add_entry_w</b>() add a single ACL +<p>ARCHIVE_ENTRY_ACL_READ_ATTRIBUTES (<b>a</b>)</p> + +<p style="margin-left:24%;">Read file or directory +attributes.</p> + +<p>ARCHIVE_ENTRY_ACL_WRITE_ATTRIBUTES (<b>A</b>)</p> + +<p style="margin-left:24%;">Write file or directory +attributes.</p> + +<p>ARCHIVE_ENTRY_ACL_READ_NAMED_ATTRS (<b>R</b>)</p> + +<p style="margin-left:24%;">Read named file or directory +attributes.</p> + +<p>ARCHIVE_ENTRY_ACL_WRITE_NAMED_ATTRS (<b>W</b>)</p> + +<p style="margin-left:24%;">Write named file or directory +attributes.</p> + +<p>ARCHIVE_ENTRY_ACL_READ_ACL (<b>c</b>)</p> + +<p style="margin-left:24%;">Read file or directory ACL.</p> + +<p>ARCHIVE_ENTRY_ACL_WRITE_ACL (<b>C</b>)</p> + +<p style="margin-left:24%;">Write file or directory +ACL.</p> + +<p>ARCHIVE_ENTRY_ACL_WRITE_OWNER (<b>o</b>)</p> + +<p style="margin-left:24%;">Change owner of a file or +directory.</p> + +<p>ARCHIVE_ENTRY_ACL_SYNCHRONIZE (<b>s</b>)</p> + +<p style="margin-left:24%;">Use synchronous I/O.</p> + +<p style="margin-left:6%; margin-top: 1em">The following +NFSv4 ACL inheritance flags are supported:</p> + +<p>ARCHIVE_ENTRY_ACL_ENTRY_FILE_INHERIT (<b>f</b>)</p> + +<p style="margin-left:24%;">Inherit parent directory ACE to +files.</p> + +<p>ARCHIVE_ENTRY_ACL_ENTRY_DIRECTORY_INHERIT (<b>d</b>)</p> + +<p style="margin-left:24%;">Inherit parent directory ACE to +subdirectories.</p> + +<p>ARCHIVE_ENTRY_ACL_ENTRY_INHERIT_ONLY (<b>i</b>)</p> + +<p style="margin-left:24%;">Only inherit, do not apply the +permission on the directory itself.</p> + +<p>ARCHIVE_ENTRY_ACL_ENTRY_NO_PROPAGATE_INHERIT +(<b>n</b>)</p> + +<p style="margin-left:24%;">Do not propagate inherit flags. +Only first-level entries inherit ACLs.</p> + +<p>ARCHIVE_ENTRY_ACL_ENTRY_SUCCESSFUL_ACCESS (<b>S</b>)</p> + +<p style="margin-left:24%;">Trigger alarm or audit on +succesful access.</p> + +<p>ARCHIVE_ENTRY_ACL_ENTRY_FAILED_ACCESS (<b>F</b>)</p> + +<p style="margin-left:24%;">Trigger alarm or audit on +failed access.</p> + +<p>ARCHIVE_ENTRY_ACL_ENTRY_INHERITED (<b>I</b>)</p> + +<p style="margin-left:24%;">Mark that ACE was +inherited.</p> + +<p style="margin-left:6%; margin-top: 1em"><b>Functions +<br> +archive_entry_acl_add_entry</b>() and +<b>archive_entry_acl_add_entry_w</b>() add a single ACL entry. For the access ACL and non-extended principals, the -classic Unix permissions are updated.</p> +classic Unix permissions are updated. An archive enry cannot +contain both POSIX.1e and NFSv4 ACL entries.</p> <p style="margin-left:6%; margin-top: 1em"><b>archive_entry_acl_clear</b>() @@ -187,12 +405,45 @@ pointer.</p> <p style="margin-left:6%; margin-top: 1em"><b>archive_entry_acl_count</b>() counts the ACL entries that have the given type mask. -<i>type</i> can be the bitwise-or of -ARCHIVE_ENTRY_ACL_TYPE_ACCESS and -ARCHIVE_ENTRY_ACL_TYPE_DEFAULT. If -ARCHIVE_ENTRY_ACL_TYPE_ACCESS is included and at least one -extended ACL entry is found, the three non-extened ACLs are -added.</p> +<i>type</i> can be the bitwise-or of</p> + +<p>ARCHIVE_ENTRY_ACL_TYPE_ACCESS <br> +ARCHIVE_ENTRY_ACL_TYPE_DEFAULT</p> + +<p style="margin-left:6%; margin-top: 1em">for POSIX.1e +ACLs and</p> + +<p>ARCHIVE_ENTRY_ACL_TYPE_ALLOW <br> +ARCHIVE_ENTRY_ACL_TYPE_DENY <br> +ARCHIVE_ENTRY_ACL_TYPE_AUDIT <br> +ARCHIVE_ENTRY_ACL_TYPE_ALARM</p> + +<p style="margin-left:6%; margin-top: 1em">for NFSv4 ACLs. +For POSIX.1e ACLs if ARCHIVE_ENTRY_ACL_TYPE_ACCESS is +included and at least one extended ACL entry is found, the +three non-extened ACLs are added.</p> + + +<p style="margin-left:6%; margin-top: 1em"><b>archive_entry_acl_from_text</b>() +and <b>archive_entry_acl_from_text_w</b>() add new (or merge +with existing) ACL entries from (wide) text. The argument +<i>type</i> may take one of the following values:</p> + +<p>ARCHIVE_ENTRY_ACL_TYPE_ACCESS <br> +ARCHIVE_ENTRY_ACL_TYPE_DEFAULT <br> +ARCHIVE_ENTRY_ACL_TYPE_NFS4</p> + +<p style="margin-left:6%; margin-top: 1em">Supports all +formats that can be created with +<b>archive_entry_acl_to_text</b>() or respective +<b>archive_entry_acl_to_text_w</b>(). Existing ACL entries +are preserved. To get a clean new ACL from text +<b>archive_entry_acl_clear</b>() must be called first. +Entries prefixed with ‘‘default:’’ +are treated as ARCHIVE_ENTRY_ACL_TYPE_DEFAULT unless +<i>type</i> is ARCHIVE_ENTRY_ACL_TYPE_NFS4. Invalid entries, +non-parseable ACL entries and entries beginning with the +‘#’ character (comments) are skipped.</p> <p style="margin-left:6%; margin-top: 1em"><b>archive_entry_acl_next</b>() @@ -213,27 +464,89 @@ function returns the same value as <b>archive_entry_acl_count</b>().</p> -<p style="margin-left:6%; margin-top: 1em"><b>archive_entry_acl_text_w</b>() -converts the ACL entries for the given type mask into a wide -string. In addition to the normal type flags, -ARCHIVE_ENTRY_ACL_STYLE_EXTRA_ID and -ARCHIVE_ENTRY_ACL_STYLE_MARK_DEFAULT can be specified to -further customize the result. The returned long string is -valid until the next call to -<b>archive_entry_acl_clear</b>(), -<b>archive_entry_acl_add_entry</b>(), -<b>archive_entry_acl_add_entry_w</b>() or -<b>archive_entry_acl_text_w</b>().</p> +<p style="margin-left:6%; margin-top: 1em"><b>archive_entry_acl_to_text</b>() +and <b>archive_entry_acl_to_text_w</b>() convert the ACL +entries for the given type into a (wide) string of ACL +entries separated by newline. If the the pointer +<i>len_p</i> is not NULL, then the function shall return the +length of the string (not including the NULL terminator) in +the location pointed to by <i>len_p</i>. The <i>flag</i> +argument is a bitwise-or.</p> + +<p style="margin-left:6%; margin-top: 1em">The following +flags are effective only on POSIX.1e ACL:</p> + +<p>ARCHIVE_ENTRY_ACL_TYPE_ACCESS</p> + +<p style="margin-left:24%;">Output access ACLs.</p> + +<p>ARCHIVE_ENTRY_ACL_TYPE_DEFAULT</p> + +<p style="margin-left:24%;">Output POSIX.1e default +ACLs.</p> + +<p>ARCHIVE_ENTRY_ACL_STYLE_MARK_DEFAULT</p> + +<p style="margin-left:24%;">Prefix each default ACL entry +with the word ‘‘default:’’.</p> + +<p>ARCHIVE_ENTRY_ACL_STYLE_SOLARIS</p> + +<p style="margin-left:24%;">The mask and other ACLs don not +contain a double colon.</p> + +<p style="margin-left:6%; margin-top: 1em">The following +flags are effecive only on NFSv4 ACL:</p> + +<p>ARCHIVE_ENTRY_ACL_STYLE_COMPACT</p> + +<p style="margin-left:24%;">Do not output minus characters +for unset permissions and flags in NFSv4 ACL permission and +flag fields.</p> + +<p style="margin-left:6%; margin-top: 1em">The following +flags are effective on both POSIX.1e and NFSv4 ACL:</p> + +<p>ARCHIVE_ENTRY_ACL_STYLE_EXTRA_ID</p> + +<p style="margin-left:24%;">Add an additional +colon-separated field containing the user or group id.</p> + +<p>ARCHIVE_ENTRY_ACL_STYLE_SEPARATOR_COMMA</p> + +<p style="margin-left:24%;">Separate ACL entries with comma +instead of newline.</p> + +<p style="margin-left:6%; margin-top: 1em">If the archive +entry contains NFSv4 ACLs, all types of NFSv4 ACLs are +returned. It the entry contains POSIX.1e ACLs and none of +the flags ARCHIVE_ENTRY_ACL_TYPE_ACCESS or +ARCHIVE_ENTRY_ACL_TYPE_DEFAULT are specified, both access +and default entries are returned and default entries are +prefixed with ‘‘default:’’.</p> + + +<p style="margin-left:6%; margin-top: 1em"><b>archive_entry_acl_types</b>() +get ACL entry types contained in an archive entry’s +ACL. As POSIX.1e and NFSv4 ACL entries cannot be mixed, this +function is a very efficient way to detect if an ACL already +contains POSIX.1e or NFSv4 ACL entries.</p> <p style="margin-top: 1em"><b>RETURN VALUES</b></p> <p style="margin-left:6%;"><b>archive_entry_acl_count</b>() and <b>archive_entry_acl_reset</b>() returns the number of -ACL entries that match the given type mask. If the type mask -includes ARCHIVE_ENTRY_ACL_TYPE_ACCESS and at least one -extended ACL entry exists, the three classic Unix -permissions are counted.</p> +ACL entries that match the given type mask. For POSIX.1e +ACLS if the type mask includes ARCHIVE_ENTRY_ACL_TYPE_ACCESS +and at least one extended ACL entry exists, the three +classic Unix permissions are counted.</p> + + +<p style="margin-left:6%; margin-top: 1em"><b>archive_entry_acl_from_text</b>() +and <b>archive_entry_acl_from_text_w</b>() return ARCHIVE_OK +if all entries were successfully parsed and ARCHIVE_WARN if +one or more entries were invalid or non-parseable.</p> <p style="margin-left:6%; margin-top: 1em"><b>archive_entry_acl_next</b>() @@ -243,29 +556,27 @@ ARCHIVE_WARN if <b>archive_entry_acl_reset</b>() has not been called first.</p> -<p style="margin-left:6%; margin-top: 1em"><b>archive_entry_text_w</b>() -returns a wide string representation of the ACL entrise -matching the given type mask. The returned long string is -valid until the next call to -<b>archive_entry_acl_clear</b>(), -<b>archive_entry_acl_add_entry</b>(), -<b>archive_entry_acl_add_entry_w</b>() or -<b>archive_entry_acl_text_w</b>().</p> +<p style="margin-left:6%; margin-top: 1em"><b>archive_entry_acl_to_text</b>() +returns a string representing the ACL entries matching the +given type and flags on success or NULL on error.</p> -<p style="margin-top: 1em"><b>SEE ALSO</b></p> -<p style="margin-left:6%;">archive_entry(3) -libarchive(3),</p> +<p style="margin-left:6%; margin-top: 1em"><b>archive_entry_acl_to_text_w</b>() +returns a wide string representing the ACL entries matching +the given type and flags on success or NULL on error.</p> -<p style="margin-top: 1em"><b>BUGS</b></p> +<p style="margin-left:6%; margin-top: 1em"><b>archive_entry_acl_types</b>() +returns a bitmask of ACL entry types or 0 if archive entry +has no ACL entries.</p> + +<p style="margin-top: 1em"><b>SEE ALSO</b></p> -<p style="margin-left:6%;">ARCHIVE_ENTRY_ACL_STYLE_EXTRA_ID -and ARCHIVE_ENTRY_ACL_STYLE_MARK_DEFAULT are not -documented.</p> +<p style="margin-left:6%;">archive_entry(3), +libarchive(3)</p> <p style="margin-left:6%; margin-top: 1em">BSD -February 2, 2012 BSD</p> +February 15, 2017 BSD</p> <hr> </body> </html> diff --git a/archivers/libarchive/files/doc/html/archive_entry_linkify.3.html b/archivers/libarchive/files/doc/html/archive_entry_linkify.3.html index 2e7af8b1db7..d0a995565c4 100644 --- a/archivers/libarchive/files/doc/html/archive_entry_linkify.3.html +++ b/archivers/libarchive/files/doc/html/archive_entry_linkify.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:06 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:01 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> diff --git a/archivers/libarchive/files/doc/html/archive_entry_paths.3.html b/archivers/libarchive/files/doc/html/archive_entry_paths.3.html index 4e7d559512d..a431c708074 100644 --- a/archivers/libarchive/files/doc/html/archive_entry_paths.3.html +++ b/archivers/libarchive/files/doc/html/archive_entry_paths.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:06 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:02 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> diff --git a/archivers/libarchive/files/doc/html/archive_entry_perms.3.html b/archivers/libarchive/files/doc/html/archive_entry_perms.3.html index a20c6c8235d..ba8ed77282a 100644 --- a/archivers/libarchive/files/doc/html/archive_entry_perms.3.html +++ b/archivers/libarchive/files/doc/html/archive_entry_perms.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:06 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:02 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> diff --git a/archivers/libarchive/files/doc/html/archive_entry_stat.3.html b/archivers/libarchive/files/doc/html/archive_entry_stat.3.html index be32b922965..9716c124f18 100644 --- a/archivers/libarchive/files/doc/html/archive_entry_stat.3.html +++ b/archivers/libarchive/files/doc/html/archive_entry_stat.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:06 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:02 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> diff --git a/archivers/libarchive/files/doc/html/archive_entry_time.3.html b/archivers/libarchive/files/doc/html/archive_entry_time.3.html index a385f50d796..bac2cb886d8 100644 --- a/archivers/libarchive/files/doc/html/archive_entry_time.3.html +++ b/archivers/libarchive/files/doc/html/archive_entry_time.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:06 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:02 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> diff --git a/archivers/libarchive/files/doc/html/archive_read.3.html b/archivers/libarchive/files/doc/html/archive_read.3.html index 2f1a80e985b..a9b3759131d 100644 --- a/archivers/libarchive/files/doc/html/archive_read.3.html +++ b/archivers/libarchive/files/doc/html/archive_read.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:06 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:02 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> @@ -224,7 +224,7 @@ example, many implementations of tar(1) allow you to append entries to an empty file. Of course, it is impossible to determine the format of an empty file by inspecting the contents, so this library treats empty files as having a -special ’’empty’’ format.</p> +special ‘‘empty’’ format.</p> <p style="margin-left:6%; margin-top: 1em">BSD February 2, 2012 BSD</p> diff --git a/archivers/libarchive/files/doc/html/archive_read_add_passphrase.3.html b/archivers/libarchive/files/doc/html/archive_read_add_passphrase.3.html index 7d32eea3eee..34d7e000b25 100644 --- a/archivers/libarchive/files/doc/html/archive_read_add_passphrase.3.html +++ b/archivers/libarchive/files/doc/html/archive_read_add_passphrase.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:06 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:02 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> diff --git a/archivers/libarchive/files/doc/html/archive_read_data.3.html b/archivers/libarchive/files/doc/html/archive_read_data.3.html index 4ca22addcb2..e6b52850bf8 100644 --- a/archivers/libarchive/files/doc/html/archive_read_data.3.html +++ b/archivers/libarchive/files/doc/html/archive_read_data.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:06 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:02 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> diff --git a/archivers/libarchive/files/doc/html/archive_read_disk.3.html b/archivers/libarchive/files/doc/html/archive_read_disk.3.html index c2a782a5ae9..db78662d4d6 100644 --- a/archivers/libarchive/files/doc/html/archive_read_disk.3.html +++ b/archivers/libarchive/files/doc/html/archive_read_disk.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:06 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:03 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> @@ -70,13 +70,15 @@ archive *</i></p> <p style="margin-left:12%;"><b>archive_read_disk_set_symlink_hybrid</b>(<i>struct archive *</i>);</p> -<p style="margin-left:6%; margin-top: 1em"><i>int</i></p> +<p style="margin-left:6%; margin-top: 1em"><i>const char +*</i></p> <p style="margin-left:12%;"><b>archive_read_disk_gname</b>(<i>struct archive *</i>, <i>gid_t</i>);</p> -<p style="margin-left:6%; margin-top: 1em"><i>int</i></p> +<p style="margin-left:6%; margin-top: 1em"><i>const char +*</i></p> <p style="margin-left:12%;"><b>archive_read_disk_uname</b>(<i>struct archive *</i>, @@ -146,11 +148,11 @@ information from disk.</p> <p style="margin-left:17%;">This sets the mode used for handling symbolic links. The -’’logical’’ mode follows all -symbolic links. The ’’physical’’ +‘‘logical’’ mode follows all +symbolic links. The ‘‘physical’’ mode does not follow any symbolic links. The -’’hybrid’’ mode currently behaves -identically to the ’’logical’’ +‘‘hybrid’’ mode currently behaves +identically to the ‘‘logical’’ mode.</p> @@ -323,7 +325,7 @@ was written by Tim Kientzle <p style="margin-top: 1em"><b>BUGS</b></p> <p style="margin-left:6%;">The -’’standard’’ user name and group +‘‘standard’’ user name and group name lookup functions are not the defaults because getgrgid(3) and getpwuid(3) are sometimes too large for particular applications. The current design allows the @@ -346,11 +348,11 @@ such information.</p> provide a set of methods for walking a directory tree. That would make it a direct parallel of the archive_read(3) API. When such methods are implemented, the -’’hybrid’’ symbolic link mode will +‘‘hybrid’’ symbolic link mode will make sense.</p> <p style="margin-left:6%; margin-top: 1em">BSD -February 2, 2012 BSD</p> +December 30, 2016 BSD</p> <hr> </body> </html> diff --git a/archivers/libarchive/files/doc/html/archive_read_extract.3.html b/archivers/libarchive/files/doc/html/archive_read_extract.3.html index 5928645bbd6..5c618986917 100644 --- a/archivers/libarchive/files/doc/html/archive_read_extract.3.html +++ b/archivers/libarchive/files/doc/html/archive_read_extract.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:06 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:03 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> diff --git a/archivers/libarchive/files/doc/html/archive_read_filter.3.html b/archivers/libarchive/files/doc/html/archive_read_filter.3.html index 2e143476d1c..837b2083190 100644 --- a/archivers/libarchive/files/doc/html/archive_read_filter.3.html +++ b/archivers/libarchive/files/doc/html/archive_read_filter.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:07 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:03 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> @@ -149,7 +149,7 @@ functions may fall back on external programs if an appropriate library was not available at build time. Decompression using an external program is usually slower than decompression through built-in libraries. Note that -’’none’’ is always enabled by +‘‘none’’ is always enabled by default.</p> <p><b>archive_read_support_filter_all</b>()</p> diff --git a/archivers/libarchive/files/doc/html/archive_read_format.3.html b/archivers/libarchive/files/doc/html/archive_read_format.3.html index 548eed903cd..31ac3e29b3a 100644 --- a/archivers/libarchive/files/doc/html/archive_read_format.3.html +++ b/archivers/libarchive/files/doc/html/archive_read_format.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:07 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:03 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> @@ -153,7 +153,7 @@ variants.</p> <p><b>archive_read_support_format_all</b>()</p> <p style="margin-left:17%;">Enables support for all -available formats except the ’’raw’’ +available formats except the ‘‘raw’’ format (see below).</p> <p><b>archive_read_support_format_by_code</b>()</p> @@ -180,10 +180,10 @@ distinct format.</p> <p><b>archive_read_support_format_raw</b>()</p> <p style="margin-left:17%;">The -’’raw’’ format handler allows +‘‘raw’’ format handler allows libarchive to be used to read arbitrary data. It treats any data stream as an archive with a single entry. The pathname -of this entry is ’’data’’; all other +of this entry is ‘‘data’’; all other entry fields are unset. This is not enabled by <b>archive_read_support_format_all</b>() in order to avoid erroneous handling of damaged archives.</p> @@ -213,10 +213,10 @@ example, many implementations of tar(1) allow you to append entries to an empty file. Of course, it is impossible to determine the format of an empty file by inspecting the contents, so this library treats empty files as having a -special ’’empty’’ format.</p> +special ‘‘empty’’ format.</p> <p style="margin-left:6%; margin-top: 1em">Using the -’’raw’’ handler together with any +‘‘raw’’ handler together with any other handler will often work but can produce surprising results.</p> diff --git a/archivers/libarchive/files/doc/html/archive_read_free.3.html b/archivers/libarchive/files/doc/html/archive_read_free.3.html index 49a21eff3e8..a7336df41b3 100644 --- a/archivers/libarchive/files/doc/html/archive_read_free.3.html +++ b/archivers/libarchive/files/doc/html/archive_read_free.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:07 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:03 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> diff --git a/archivers/libarchive/files/doc/html/archive_read_header.3.html b/archivers/libarchive/files/doc/html/archive_read_header.3.html index 7c16ef92023..01aae30c87e 100644 --- a/archivers/libarchive/files/doc/html/archive_read_header.3.html +++ b/archivers/libarchive/files/doc/html/archive_read_header.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:07 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:03 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> diff --git a/archivers/libarchive/files/doc/html/archive_read_new.3.html b/archivers/libarchive/files/doc/html/archive_read_new.3.html index d415322100b..5c35255a44f 100644 --- a/archivers/libarchive/files/doc/html/archive_read_new.3.html +++ b/archivers/libarchive/files/doc/html/archive_read_new.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:07 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:03 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> diff --git a/archivers/libarchive/files/doc/html/archive_read_open.3.html b/archivers/libarchive/files/doc/html/archive_read_open.3.html index 41097e86043..4e1c7b84f78 100644 --- a/archivers/libarchive/files/doc/html/archive_read_open.3.html +++ b/archivers/libarchive/files/doc/html/archive_read_open.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:07 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:04 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> diff --git a/archivers/libarchive/files/doc/html/archive_read_set_options.3.html b/archivers/libarchive/files/doc/html/archive_read_set_options.3.html index 8e7f182f715..99049a113d0 100644 --- a/archivers/libarchive/files/doc/html/archive_read_set_options.3.html +++ b/archivers/libarchive/files/doc/html/archive_read_set_options.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:07 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:04 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> @@ -142,7 +142,7 @@ option with this name will ignore it.</p> <p style="margin-left:27%; margin-top: 1em">The option will be provided to every module with a value of -’’1’’.</p> +‘‘1’’.</p> <p><i>!option</i></p> diff --git a/archivers/libarchive/files/doc/html/archive_util.3.html b/archivers/libarchive/files/doc/html/archive_util.3.html index ab0c3f0b24d..30c0919cbe5 100644 --- a/archivers/libarchive/files/doc/html/archive_util.3.html +++ b/archivers/libarchive/files/doc/html/archive_util.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:07 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:04 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> @@ -253,21 +253,21 @@ This function should be used within I/O callbacks to set system-specific error codes and error descriptions. This function accepts a printf-like format string and arguments. However, you should be careful to use only the following -printf format specifiers: ’’%c’’, -’’%d’’, -’’%jd’’, -’’%jo’’, -’’%ju’’, -’’%jx’’, -’’%ld’’, -’’%lo’’, -’’%lu’’, -’’%lx’’, -’’%o’’, -’’%u’’, -’’%s’’, -’’%x’’, -’’%%’’. Field-width specifiers and +printf format specifiers: ‘‘%c’’, +‘‘%d’’, +‘‘%jd’’, +‘‘%jo’’, +‘‘%ju’’, +‘‘%jx’’, +‘‘%ld’’, +‘‘%lo’’, +‘‘%lu’’, +‘‘%lx’’, +‘‘%o’’, +‘‘%u’’, +‘‘%s’’, +‘‘%x’’, +‘‘%%’’. Field-width specifiers and other printf features are not uniformly supported and should not be used.</p> diff --git a/archivers/libarchive/files/doc/html/archive_write.3.html b/archivers/libarchive/files/doc/html/archive_write.3.html index 44c8e429427..7c89e153713 100644 --- a/archivers/libarchive/files/doc/html/archive_write.3.html +++ b/archivers/libarchive/files/doc/html/archive_write.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:07 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:04 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> @@ -273,8 +273,8 @@ limitations and provides a generic key/value attribute facility for vendor-defined extensions. One oversight in POSIX is the failure to provide a standard attribute for large device numbers. This library uses -’’SCHILY.devminor’’ and -’’SCHILY.devmajor’’ for device +‘‘SCHILY.devminor’’ and +‘‘SCHILY.devmajor’’ for device numbers that exceed the range supported by the backwards-compatible ustar header. These keys are compatible with Joerg Schilling’s <b>star</b> archiver. Other diff --git a/archivers/libarchive/files/doc/html/archive_write_blocksize.3.html b/archivers/libarchive/files/doc/html/archive_write_blocksize.3.html index 2ddd3a572ca..7358c49d83e 100644 --- a/archivers/libarchive/files/doc/html/archive_write_blocksize.3.html +++ b/archivers/libarchive/files/doc/html/archive_write_blocksize.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:07 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:04 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> @@ -97,7 +97,7 @@ compression. The uncompressed data is always unpadded. The default is to pad the last block to the full block size (note that <b>archive_write_open_filename</b>() will set this based on the file type). Unlike the other -’’set’’ functions, this function can +‘‘set’’ functions, this function can be called after the archive is opened.</p> diff --git a/archivers/libarchive/files/doc/html/archive_write_data.3.html b/archivers/libarchive/files/doc/html/archive_write_data.3.html index a4542eb588d..deceae08bfe 100644 --- a/archivers/libarchive/files/doc/html/archive_write_data.3.html +++ b/archivers/libarchive/files/doc/html/archive_write_data.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:07 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:04 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> diff --git a/archivers/libarchive/files/doc/html/archive_write_disk.3.html b/archivers/libarchive/files/doc/html/archive_write_disk.3.html index 0e976b467c5..2b909b008c2 100644 --- a/archivers/libarchive/files/doc/html/archive_write_disk.3.html +++ b/archivers/libarchive/files/doc/html/archive_write_disk.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:08 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:05 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> @@ -450,7 +450,7 @@ of the final object happen to match those specified in the entry.</p> <p style="margin-left:6%; margin-top: 1em">The -’’standard’’ user-id and group-id +‘‘standard’’ user-id and group-id lookup functions are not the defaults because getgrnam(3) and getpwnam(3) are sometimes too large for particular applications. The current design allows the application diff --git a/archivers/libarchive/files/doc/html/archive_write_filter.3.html b/archivers/libarchive/files/doc/html/archive_write_filter.3.html index c66133a664d..107fb367552 100644 --- a/archivers/libarchive/files/doc/html/archive_write_filter.3.html +++ b/archivers/libarchive/files/doc/html/archive_write_filter.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:08 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:05 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> diff --git a/archivers/libarchive/files/doc/html/archive_write_finish_entry.3.html b/archivers/libarchive/files/doc/html/archive_write_finish_entry.3.html index bf63015f1e1..5980913ff57 100644 --- a/archivers/libarchive/files/doc/html/archive_write_finish_entry.3.html +++ b/archivers/libarchive/files/doc/html/archive_write_finish_entry.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:08 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:05 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> diff --git a/archivers/libarchive/files/doc/html/archive_write_format.3.html b/archivers/libarchive/files/doc/html/archive_write_format.3.html index 09d6147e371..901a4e461b7 100644 --- a/archivers/libarchive/files/doc/html/archive_write_format.3.html +++ b/archivers/libarchive/files/doc/html/archive_write_format.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:08 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:05 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> diff --git a/archivers/libarchive/files/doc/html/archive_write_free.3.html b/archivers/libarchive/files/doc/html/archive_write_free.3.html index b65a085daf0..eabdd7c8b3a 100644 --- a/archivers/libarchive/files/doc/html/archive_write_free.3.html +++ b/archivers/libarchive/files/doc/html/archive_write_free.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:08 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:05 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> diff --git a/archivers/libarchive/files/doc/html/archive_write_header.3.html b/archivers/libarchive/files/doc/html/archive_write_header.3.html index 404075a9ef5..12b39631f17 100644 --- a/archivers/libarchive/files/doc/html/archive_write_header.3.html +++ b/archivers/libarchive/files/doc/html/archive_write_header.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:08 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:05 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> diff --git a/archivers/libarchive/files/doc/html/archive_write_new.3.html b/archivers/libarchive/files/doc/html/archive_write_new.3.html index 1cd3e06caec..8c459fa5aac 100644 --- a/archivers/libarchive/files/doc/html/archive_write_new.3.html +++ b/archivers/libarchive/files/doc/html/archive_write_new.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:08 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:05 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> diff --git a/archivers/libarchive/files/doc/html/archive_write_open.3.html b/archivers/libarchive/files/doc/html/archive_write_open.3.html index 5c692848a94..3bd43f143d9 100644 --- a/archivers/libarchive/files/doc/html/archive_write_open.3.html +++ b/archivers/libarchive/files/doc/html/archive_write_open.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:08 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:06 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> @@ -83,7 +83,8 @@ archive_write_open</b>()</p> archive, and prepare for writing entries. This is the most generic form of this function, which accepts pointers to three callback functions which will be invoked by the -compression layer to write the constructed archive.</p> +compression layer to write the constructed archive. This +does not alter the default archive padding.</p> <p style="margin-top: 1em"><b>archive_write_open_fd</b>()</p> @@ -115,7 +116,7 @@ require correct blocking.</p> <b>archive_write_open</b>() that accepts a filename. A NULL argument indicates that the output should be written to standard output; an argument of -’’-’’ will open a file with that +‘‘-’’ will open a file with that name. If you have not invoked <b>archive_write_set_bytes_in_last_block</b>(), then <b>archive_write_open_filename</b>() will adjust the @@ -138,12 +139,19 @@ block of memory that will receive the archive. The final updated after each write to reflect how much of the buffer is currently in use. You should be careful to ensure that this variable remains allocated until after the archive is -closed.</p> +closed. This function will disable padding unless you have +specifically set the block size.</p> <p style="margin-left:6%;">More information about the <i>struct archive</i> object and the overall design of the library can be found in the libarchive(3) overview.</p> +<p style="margin-left:6%; margin-top: 1em">Note that the +convenience forms above vary in how they block the output. +See archive_write_blocksize(3) if you need to control the +block size used for writes or the end-of-file padding +behavior.</p> + <p style="margin-top: 1em"><b>CLIENT CALLBACKS</b></p> <p style="margin-left:6%;">To use this library, you will @@ -220,9 +228,10 @@ and <b>archive_error_string</b>() functions.</p> <p style="margin-top: 1em"><b>SEE ALSO</b></p> <p style="margin-left:6%;">tar(1), libarchive(3), -archive_write(3), archive_write_filter(3), -archive_write_format(3), archive_write_new(3), -archive_write_set_options(3), cpio(5), mtree(5), tar(5)</p> +archive_write(3), archive_write_blocksize(3), +archive_write_filter(3), archive_write_format(3), +archive_write_new(3), archive_write_set_options(3), cpio(5), +mtree(5), tar(5)</p> <p style="margin-left:6%; margin-top: 1em">BSD February 2, 2012 BSD</p> diff --git a/archivers/libarchive/files/doc/html/archive_write_set_options.3.html b/archivers/libarchive/files/doc/html/archive_write_set_options.3.html index 50e1731c9d4..8ea118926ab 100644 --- a/archivers/libarchive/files/doc/html/archive_write_set_options.3.html +++ b/archivers/libarchive/files/doc/html/archive_write_set_options.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:08 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:06 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> @@ -138,7 +138,7 @@ option with this name will ignore it.</p> <p style="margin-left:27%; margin-top: 1em">The option will be provided to every module with a value of -’’1’’.</p> +‘‘1’’.</p> <p><i>!option</i></p> @@ -175,7 +175,7 @@ cksum</b>, <b>device</b>, <b>flags</b>, <b>gid</b>, <p style="margin-left:27%;">Enable a particular keyword in the mtree output. Prefix with an exclamation mark to disable the corresponding keyword. The default is equivalent to -’’device, flags, gid, gname, link, mode, nlink, +‘‘device, flags, gid, gname, link, mode, nlink, size, time, type, uid, uname’’.</p> <p><b>all</b></p> @@ -483,8 +483,8 @@ compression on many files.</p> compression</b></p> <p style="margin-left:27%;">The value is either -’’store’’ or -’’deflate’’ to indicate how the +‘‘store’’ or +‘‘deflate’’ to indicate how the following entries should be compressed. Note that this setting is ignored for directories, symbolic links, and other special entries.</p> diff --git a/archivers/libarchive/files/doc/html/archive_write_set_passphrase.3.html b/archivers/libarchive/files/doc/html/archive_write_set_passphrase.3.html index 94e90b3ff52..9d490d58a8d 100644 --- a/archivers/libarchive/files/doc/html/archive_write_set_passphrase.3.html +++ b/archivers/libarchive/files/doc/html/archive_write_set_passphrase.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:08 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:06 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> diff --git a/archivers/libarchive/files/doc/html/bsdcpio.1.html b/archivers/libarchive/files/doc/html/bsdcpio.1.html index 31c9378c55b..8c30ec9d2c3 100644 --- a/archivers/libarchive/files/doc/html/bsdcpio.1.html +++ b/archivers/libarchive/files/doc/html/bsdcpio.1.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:10 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:08 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> @@ -191,7 +191,7 @@ description.</p> <p style="margin-left:17%;">(i and p mode only) Disable security checks during extraction or copying. This allows extraction via symbolic links, absolute paths, and path -names containing ’..’ in the name.</p> +names containing ‘..’ in the name.</p> <p style="margin-top: 1em"><b>−J</b>, <b>−−xz</b></p> @@ -439,7 +439,7 @@ pattern:</p> <p style="margin-left:6%; margin-top: 1em">This example copies files from <i>src</i> to <i>dest</i> that are more than 2 days old and which contain the word -’’</p> +‘‘</p> <p>foobar ’’:</p> @@ -477,13 +477,13 @@ libarchive-formats(5), tar(5)</p> <p style="margin-left:6%;">There is no current POSIX standard for the cpio command; it appeared in ISO/IEC -9945-1:1996 (’’POSIX.1’’) but was +9945-1:1996 (‘‘POSIX.1’’) but was dropped from IEEE Std 1003.1-2001 -(’’POSIX.1’’).</p> +(‘‘POSIX.1’’).</p> <p style="margin-left:6%; margin-top: 1em">The cpio, ustar, and pax interchange file formats are defined by IEEE Std -1003.1-2001 (’’POSIX.1’’) for the +1003.1-2001 (‘‘POSIX.1’’) for the pax command.</p> <p style="margin-top: 1em"><b>HISTORY</b></p> @@ -492,7 +492,7 @@ pax command.</p> <b>find</b> utilities were written by Dick Haight while working in AT&T’s Unix Support Group. They first appeared in 1977 in PWB/UNIX 1.0, the -’’Programmer’s Work Bench’’ +‘‘Programmer’s Work Bench’’ system developed for use within AT&T. They were first released outside of AT&T as part of System III Unix in 1981. As a result, <b>cpio</b> actually predates <b>tar</b>, @@ -512,7 +512,7 @@ to transfer files between systems with dissimilar user and group numbering. Older cpio formats limit the user and group numbers to 16 or 18 bits, which is insufficient for modern systems. The cpio archive formats cannot support files over -4 gigabytes, except for the ’’odc’’ +4 gigabytes, except for the ‘‘odc’’ variant, which can support files up to 8 gigabytes.</p> <p style="margin-left:6%; margin-top: 1em">BSD diff --git a/archivers/libarchive/files/doc/html/bsdtar.1.html b/archivers/libarchive/files/doc/html/bsdtar.1.html index 92e798af951..8e9edc809a6 100644 --- a/archivers/libarchive/files/doc/html/bsdtar.1.html +++ b/archivers/libarchive/files/doc/html/bsdtar.1.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:10 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:08 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> @@ -54,7 +54,7 @@ and ISO 9660 cdrom images and can create tar, pax, cpio, ar, zip, 7-zip, and shar archives.</p> <p style="margin-left:6%; margin-top: 1em">The first -synopsis form shows a ’’bundled’’ +synopsis form shows a ‘‘bundled’’ option word. This usage is provided for compatibility with historical implementations. See COMPATIBILITY below for details.</p> @@ -123,7 +123,7 @@ modes.</p> <p style="margin-top: 1em"><b>@</b><i>archive</i></p> -<p style="margin-left:17%;">(c and r mode only) The +<p style="margin-left:17%;">(c and r modes only) The specified archive is opened and the entries in it will be appended to the current archive. As a simple example,</p> @@ -179,7 +179,7 @@ format,</p> <i>archive.tgz source.c source.h</i></p> <p style="margin-left:17%;">ignores the -’’-j’’ option, and creates a new +‘‘-j’’ option, and creates a new archive with restricted pax format and gzip compression,</p> <p style="margin-left:24%;"><b>tar −a −jcf</b> @@ -189,6 +189,17 @@ archive with restricted pax format and gzip compression,</p> suffix, creates a new archive with restricted pax format and bzip2 compression.</p> +<p style="margin-top: 1em"><b>−−acls</b></p> + +<p style="margin-left:17%; margin-top: 1em">(c, r, u, x +modes only) Archive or extract POSIX.1e or NFSv4 ACLs. This +is the reverse of <b>−−no-acls</b> and the +default behavior in c, r, and u modes (except Mac OS X) or +if <b>tar</b> is run in x mode as root. On Mac OS X this +option translates extended ACLs to NFSv4 ACLs. To store +extended ACLs the <b>−−mac-metadata</b> option +is preferred.</p> + <p style="margin-top: 1em"><b>−B</b>, <b>−−read-full-blocks</b></p> @@ -227,12 +238,6 @@ to the current directory after processing any file system objects to replace them, clear platform-specific file flags that might prevent removal.</p> - -<p style="margin-top: 1em"><b>−−disable-copyfile</b></p> - -<p style="margin-left:17%;">Mac OS X specific. Disable the -use of copyfile(3).</p> - <p style="margin-top: 1em"><b>−−exclude</b> <i>pattern</i></p> @@ -241,15 +246,23 @@ directories that match the specified pattern. Note that exclusions take precedence over patterns or filenames specified on the command line.</p> +<p style="margin-top: 1em"><b>−−fflags</b></p> + +<p style="margin-left:17%;">(c, r, u, x modes only) Archive +or extract file flags. This is the reverse of +<b>−−no-fflags</b> and the default behavior in +c, r, and u modes or if <b>tar</b> is run in x mode as +root.</p> + <p style="margin-top: 1em"><b>−−format</b> <i>format</i></p> <p style="margin-left:17%;">(c, r, u mode only) Use the specified format for the created archive. Supported formats -include ’’cpio’’, -’’pax’’, -’’shar’’, and -’’ustar’’. Other formats may also be +include ‘‘cpio’’, +‘‘pax’’, +‘‘shar’’, and +‘‘ustar’’. Other formats may also be supported; see libarchive-formats(5) for more information about currently-supported formats. In r and u modes, when extending an existing archive, the format specified here @@ -290,14 +303,14 @@ group database.</p> <p style="margin-top: 1em"><b>−H</b></p> -<p style="margin-left:17%; margin-top: 1em">(c and r mode +<p style="margin-left:17%; margin-top: 1em">(c and r modes only) Symbolic links named on the command line will be followed; the target of the link will be archived, not the link itself.</p> <p style="margin-top: 1em"><b>−h</b></p> -<p style="margin-left:17%; margin-top: 1em">(c and r mode +<p style="margin-left:17%; margin-top: 1em">(c and r modes only) Synonym for <b>−L</b>.</p> <p style="margin-top: 1em"><b>−I</b></p> @@ -312,9 +325,9 @@ only) Synonym for <b>−L</b>.</p> <p style="margin-top: 1em"><b>−−hfsCompression</b></p> -<p style="margin-left:17%;">(x mode only) Mac OS X -specific(v10.6 or later). Compress extracted regular files -with HFS+ compression.</p> +<p style="margin-left:17%;">(x mode only) Mac OS X specific +(v10.6 or later). Compress extracted regular files with HFS+ +compression.</p> <p style="margin-top: 1em"><b>−−ignore-zeros</b></p> @@ -340,7 +353,7 @@ when filtering archives. For example, the command</p> <p style="margin-left:17%;">creates a new archive <i>new.tar</i> containing only the entries from -<i>old.tgz</i> containing the string ’foo’.</p> +<i>old.tgz</i> containing the string ‘foo’.</p> <p style="margin-top: 1em"><b>−J</b>, <b>−−xz</b></p> @@ -379,7 +392,7 @@ the archive being extracted.</p> <p style="margin-top: 1em"><b>−L</b>, <b>−−dereference</b></p> -<p style="margin-left:17%;">(c and r mode only) All +<p style="margin-left:17%;">(c and r modes only) All symbolic links will be followed. Normally, symbolic links are archived as such. With this option, the target of the link will be archived instead.</p> @@ -427,6 +440,16 @@ list modes, this option is ignored.</p> modification time. By default, the modification time is set to the time stored in the archive.</p> + +<p style="margin-top: 1em"><b>−−mac-metadata</b></p> + +<p style="margin-left:17%;">(c, r, u and x mode only) Mac +OS X specific. Archive or extract extended ACLs and extended +attributes using copyfile(3) in AppleDouble format. This is +the reverse of <b>−−no-mac-metadata</b>. and the +default behavior in c, r, and u modes or if <b>tar</b> is +run in x mode as root.</p> + <p style="margin-top: 1em"><b>−n</b>, <b>−−norecurse</b>, <b>−−no-recursion</b></p> @@ -487,6 +510,37 @@ often used to read filenames output by the <b>−print0</b> option to find(1).</p> +<p style="margin-top: 1em"><b>−−no-acls</b></p> + +<p style="margin-left:17%;">(c, r, u, x modes only) Do not +archive or extract POSIX.1e or NFSv4 ACLs. This is the +reverse of <b>−−acls</b> and the default +behavior if <b>tar</b> is run as non-root in x mode (on Mac +OS X also in c, r and u modes).</p> + + +<p style="margin-top: 1em"><b>−−no-fflags</b></p> + +<p style="margin-left:17%;">(c, r, u, x modes only) Do not +archive or extract file flags. This is the reverse of +<b>−−fflags</b> and the default behavior if +<b>tar</b> is run as non-root in x mode.</p> + + +<p style="margin-top: 1em"><b>−−no-mac-metadata</b></p> + +<p style="margin-left:17%;">(x mode only) Mac OS X +specific. Do not archive or extract ACLs and extended +attributes using copyfile(3) in AppleDouble format. This is +the reverse of <b>−−mac-metadata</b>. and the +default behavior if <b>tar</b> is run as non-root in x +mode.</p> + +<p style="margin-top: 1em"><b>−n</b>, +<b>−−norecurse</b>, +<b>−−no-recursion</b></p> + + <p style="margin-top: 1em"><b>−−no-same-owner</b></p> <p style="margin-left:17%;">(x mode only) Do not extract @@ -501,7 +555,19 @@ owner and group IDs. This is the reverse of full permissions (SGID, SUID, sticky bit, ACLs, extended attributes or extended file flags). This is the reverse of <b>−p</b> and the default behavior if <b>tar</b> is -run as non-root.</p> +run as non-root and can be overridden by also specifying +<b>−−acls</b>, <b>−−fflags</b>, +<b>−−mac-metadata, −−same-owner</b>, +<b>−−same-permissions</b> and +<b>−−xattrs</b>.</p> + + +<p style="margin-top: 1em"><b>−−no-xattrs</b></p> + +<p style="margin-left:17%;">(c, r, u, x modes only) Do not +archive or extract extended attributes. This is the reverse +of <b>−−xattrs</b> and the default behavior if +<b>tar</b> is run as non-root in x mode.</p> <p style="margin-top: 1em"><b>−−numeric-owner</b></p> @@ -692,7 +758,7 @@ output. Supported keywords include: <b>cksum</b>, <b>nlink</b>, <b>rmd160</b>, <b>sha1</b>, <b>sha256</b>, <b>sha384</b>, <b>sha512</b>, <b>size</b>, <b>time</b>, <b>uid</b>, <b>uname</b>. The default is equivalent to: -’’device, flags, gid, gname, link, mode, nlink, +‘‘device, flags, gid, gname, link, mode, nlink, size, time, type, uid, uname’’.</p> <p><b>mtree:all</b></p> @@ -759,12 +825,16 @@ option suppresses these behaviors.</p> <p style="margin-left:17%;">(x mode only) Preserve file permissions. Attempt to restore the full permissions, -including owner, file modes, file flags and ACLs, if -available, for each item extracted from the archive. This is -the default, if <b>tar</b> is being run by root and can be -overridden by also specifying -<b>−−no-same-owner</b> and -<b>−−no-same-permissions</b>.</p> +including owner, file modes, ACLs, extended atributes and +extended file flags, if available, for each item extracted +from the archive. This is the default, if <b>tar</b> is +being run by root and can be overridden by also specifying +<b>−−no-acls</b>, +<b>−−no-fflags</b>, +<b>−−no-mac-metadata, +−−no-same-owner</b>, +<b>−−no-same-permissions</b> and +<b>−−no-xattrs</b>.</p> <p style="margin-top: 1em"><b>−−passphrase</b> <i>passphrase</i></p> @@ -852,18 +922,18 @@ checks.</p> read the list of names to be extracted from <i>filename</i>. In c mode, <b>tar</b> will read names to be archived from <i>filename</i>. The special name -’’-C’’ on a line by itself will +‘‘-C’’ on a line by itself will cause the current directory to be changed to the directory specified on the following line. Names are terminated by newlines unless <b>−−null</b> is specified. Note that <b>−−null</b> also disables the special -handling of lines containing ’’-C’’. +handling of lines containing ‘‘-C’’. Note: If you are generating lists of files using find(1), you probably want to use <b>−n</b> as well.</p> <p style="margin-top: 1em"><b>−−totals</b></p> -<p style="margin-left:17%;">(c, r, u mode only) After +<p style="margin-left:17%;">(c, r, u modes only) After archiving all files, print a summary to stderr.</p> <p style="margin-top: 1em"><b>−U</b>, @@ -937,6 +1007,14 @@ patterns from the specified file. See <b>−−exclude</b> for more information about the handling of exclusions.</p> +<p style="margin-top: 1em"><b>−−xattrs</b></p> + +<p style="margin-left:17%;">(c, r, u, x modes only) Archive +or extract extended attributes. This is the reverse of +<b>−−no-xattrs</b> and the default behavior in +c, r, and u modes or if <b>tar</b> is run in x mode as +root.</p> + <p style="margin-top: 1em"><b>−y</b></p> <p style="margin-left:17%; margin-top: 1em">(c mode only) @@ -1080,10 +1158,10 @@ $ tar -cvf output.tar @input.mtree</p> <b>−−newer</b> and <b>−−newer-mtime</b> switches accept a variety of common date and time specifications, including -’’12 Mar 2005 7:14:29pm’’, -’’2005-03-12 19:14’’, -’’5 minutes ago’’, and -’’19:14 PST May 1’’.</p> +‘‘12 Mar 2005 7:14:29pm’’, +‘‘2005-03-12 19:14’’, +‘‘5 minutes ago’’, and +‘‘19:14 PST May 1’’.</p> <p style="margin-left:6%; margin-top: 1em">The <b>−−options</b> argument can be used to control @@ -1213,9 +1291,9 @@ libarchive-formats(5), tar(5)</p> <p style="margin-left:6%;">There is no current POSIX standard for the tar command; it appeared in ISO/IEC -9945-1:1996 (’’POSIX.1’’) but was +9945-1:1996 (‘‘POSIX.1’’) but was dropped from IEEE Std 1003.1-2001 -(’’POSIX.1’’). The options supported +(‘‘POSIX.1’’). The options supported by this implementation were developed by surveying a number of existing tar implementations as well as the old POSIX specification for tar and the current POSIX specification @@ -1223,7 +1301,7 @@ for pax.</p> <p style="margin-left:6%; margin-top: 1em">The ustar and pax interchange file formats are defined by IEEE Std -1003.1-2001 (’’POSIX.1’’) for the +1003.1-2001 (‘‘POSIX.1’’) for the pax command.</p> <p style="margin-top: 1em"><b>HISTORY</b></p> @@ -1245,7 +1323,7 @@ library. It was first released with FreeBSD 5.4 in May, <p style="margin-top: 1em"><b>BUGS</b></p> <p style="margin-left:6%;">This program follows ISO/IEC -9945-1:1996 (’’POSIX.1’’) for the +9945-1:1996 (‘‘POSIX.1’’) for the definition of the <b>−l</b> option. Note that GNU tar prior to version 1.15 treated <b>−l</b> as a synonym for the <b>−−one-file-system</b> option.</p> @@ -1314,7 +1392,7 @@ incompatible ways that different archive formats store hardlink information.)</p> <p style="margin-left:6%; margin-top: 1em">BSD -September 16, 2014 BSD</p> +February 24, 2017 BSD</p> <hr> </body> </html> diff --git a/archivers/libarchive/files/doc/html/cpio.5.html b/archivers/libarchive/files/doc/html/cpio.5.html index a5321169270..af75de4974e 100644 --- a/archivers/libarchive/files/doc/html/cpio.5.html +++ b/archivers/libarchive/files/doc/html/cpio.5.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:08 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:06 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> @@ -46,7 +46,7 @@ those integers (binary, octal, or hexadecimal). The header is followed by the pathname of the entry (the length of the pathname is stored in the header) and any file data. The end of the archive is indicated by a special record with the -pathname ’’TRAILER!!!’’.</p> +pathname ‘‘TRAILER!!!’’.</p> <p style="margin-left:6%; margin-top: 1em"><b>PWB format</b> <br> @@ -239,11 +239,11 @@ included with each copy of the file.</p> <p style="margin-left:6%; margin-top: 1em"><b>Portable ASCII Format</b> <br> Version 2 of the Single UNIX Specification -(’’SUSv2’’) standardized an ASCII +(‘‘SUSv2’’) standardized an ASCII variant that is portable across all platforms. It is -commonly known as the ’’old +commonly known as the ‘‘old character’’ format or as the -’’odc’’ format. It stores the same +‘‘odc’’ format. It stores the same numeric fields as the old binary format, but represents them as 6-character or 11-character octal values.</p> @@ -302,7 +302,7 @@ the old binary format above.</p> <p style="margin-top: 1em"><i>magic</i></p> <p style="margin-left:17%; margin-top: 1em">The string -’’070701’’.</p> +‘‘070701’’.</p> <p style="margin-top: 1em"><i>check</i></p> @@ -326,7 +326,7 @@ archive.</p> Format</b> <br> The CRC format is identical to the new ASCII format described in the previous section except that the magic -field is set to ’’070702’’ and the +field is set to ‘‘070702’’ and the <i>check</i> field is set to the sum of all bytes in the file data. This sum is computed treating all bytes as unsigned values and using unsigned arithmetic. Only the @@ -355,7 +355,7 @@ XXX</p> <p style="margin-left:6%;">The <b>cpio</b> utility is no longer a part of POSIX or the Single Unix Standard. It last appeared in Version 2 of the Single UNIX Specification -(’’SUSv2’’). It has been supplanted +(‘‘SUSv2’’). It has been supplanted in subsequent standards by pax(1). The portable ASCII format is currently part of the specification for the pax(1) utility.</p> @@ -365,14 +365,14 @@ utility.</p> <p style="margin-left:6%;">The original cpio utility was written by Dick Haight while working in AT&T’s Unix Support Group. It appeared in 1977 as part of PWB/UNIX -1.0, the ’’Programmer’s Work +1.0, the ‘‘Programmer’s Work Bench’’ derived from Version 6 AT&T UNIX that was used internally at AT&T. Both the old binary and old character formats were in use by 1980, according to the System III source released by SCO under -their ’’Ancient Unix’’ license. The +their ‘‘Ancient Unix’’ license. The character format was adopted as part of IEEE Std 1003.1-1988 -(’’POSIX.1’’). XXX when did +(‘‘POSIX.1’’). XXX when did "newc" appear? Who invented it? When did HP come out with their variant? When did Sun introduce ACLs and extended attributes? XXX</p> @@ -380,7 +380,7 @@ extended attributes? XXX</p> <p style="margin-top: 1em"><b>BUGS</b></p> <p style="margin-left:6%;">The -’’CRC’’ format is mis-named, as it +‘‘CRC’’ format is mis-named, as it uses a simple checksum and not a cyclic redundancy check.</p> diff --git a/archivers/libarchive/files/doc/html/libarchive-formats.5.html b/archivers/libarchive/files/doc/html/libarchive-formats.5.html index 2298d6b446d..3c6df7fc96f 100644 --- a/archivers/libarchive/files/doc/html/libarchive-formats.5.html +++ b/archivers/libarchive/files/doc/html/libarchive-formats.5.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:09 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:06 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> @@ -34,7 +34,7 @@ library</p> <p style="margin-left:6%;">The libarchive(3) library reads and writes a variety of streaming archive formats. Generally speaking, all of these archive formats consist of a series -of ’’entries’’. Each entry stores a +of ‘‘entries’’. Each entry stores a single file system object, such as a file, directory, or symbolic link.</p> @@ -52,8 +52,8 @@ all supported formats.</p> <p style="margin-left:6%; margin-top: 1em"><b>Tar Formats</b> <br> The libarchive(3) library can read most tar archives. It can -write POSIX-standard ’’ustar’’ and -’’pax interchange’’ formats as well +write POSIX-standard ‘‘ustar’’ and +‘‘pax interchange’’ formats as well as v7 tar format and a subset of the legacy GNU tar format.</p> @@ -99,7 +99,7 @@ standard are in all lowercase; vendors are allowed to define custom keys by preceding them with the vendor name in all uppercase. When writing pax archives, libarchive uses many of the SCHILY keys defined by Joerg Schilling’s -’’star’’ archiver and a few +‘‘star’’ archiver and a few LIBARCHIVE keys. The libarchive library can read most of the SCHILY keys and most of the GNU keys introduced by GNU tar. It silently ignores any keywords that it does not @@ -236,23 +236,21 @@ numbers.</p> <p style="margin-top: 1em">Solaris extensions</p> <p style="margin-left:17%;">Libarchive recognizes ACL and -extended attribute records written by Solaris tar. -Currently, libarchive only has support for old-style ACLs; -the newer NFSv4 ACLs are recognized but discarded.</p> +extended attribute records written by Solaris tar.</p> <p style="margin-left:6%; margin-top: 1em">The first tar program appeared in Seventh Edition Unix in 1979. The first official standard for the tar file format was the -’’ustar’’ (Unix Standard Tar) format +‘‘ustar’’ (Unix Standard Tar) format defined by POSIX in 1988. POSIX.1-2001 extended the ustar -format to create the ’’pax +format to create the ‘‘pax interchange’’ format.</p> <p style="margin-left:6%; margin-top: 1em"><b>Cpio Formats</b> <br> The libarchive library can read a number of common cpio -variants and can write ’’odc’’ and -’’newc’’ format archives. A cpio +variants and can write ‘‘odc’’ and +‘‘newc’’ format archives. A cpio archive stores each entry as a fixed-size header followed by a variable-length filename and variable-length data. Unlike the tar format, the cpio format does only minimal padding of @@ -274,11 +272,11 @@ mtime, and 16-bit binary values for the other fields.</p> <p style="margin-left:17%; margin-top: 1em">The libarchive library can both read and write this POSIX-standard format, -which is officially known as the ’’cpio +which is officially known as the ‘‘cpio interchange format’’ or the -’’octet-oriented cpio archive +‘‘octet-oriented cpio archive format’’ and sometimes unofficially referred to -as the ’’old character format’’. +as the ‘‘old character format’’. This format stores the header contents as octal values in ASCII. It is standard, portable, and immune from byte-order confusion. File sizes and mtime are limited to 33 bits (8GB @@ -314,7 +312,7 @@ systems with dissimilar user numbering.</p> <p style="margin-left:6%; margin-top: 1em"><b>Shar Formats</b> <br> -A ’’shell archive’’ is a shell +A ‘‘shell archive’’ is a shell script that, when executed on a POSIX-compliant system, will recreate a collection of file system objects. The libarchive library can write two different kinds of shar archives:</p> @@ -381,7 +379,7 @@ variables.</p> format</b> <br> Libarchive can read and write zip format archives that have uncompressed entries and entries compressed with the -’’deflate’’ algorithm. Other zip +‘‘deflate’’ algorithm. Other zip compression algorithms are not supported. It can extract jar archives, archives that use Zip64 extensions and self-extracting zip archives. Libarchive can use either of @@ -471,7 +469,7 @@ Need more information</p> <p style="margin-left:6%; margin-top: 1em"><b>CAB</b> <br> Libarchive can read Microsoft Cabinet ( -’’CAB’’) format archives. TODO: Need +‘‘CAB’’) format archives. TODO: Need more information.</p> <p style="margin-left:6%; margin-top: 1em"><b>LHA</b> <br> @@ -486,7 +484,7 @@ the RARv3 format. Libarchive can also read self-extracting RAR archives.</p> <p style="margin-left:6%; margin-top: 1em"><b>Warc</b> <br> -Libarchive can read and write ’’web +Libarchive can read and write ‘‘web archives’’. TODO: Need more information</p> <p style="margin-left:6%; margin-top: 1em"><b>XAR</b> <br> @@ -500,7 +498,7 @@ shar(1), tar(1), zip(1), zlib(3), cpio(5), mtree(5), tar(5)</p> <p style="margin-left:6%; margin-top: 1em">BSD -March 18, 2012 BSD</p> +December 27, 2016 BSD</p> <hr> </body> </html> diff --git a/archivers/libarchive/files/doc/html/libarchive.3.html b/archivers/libarchive/files/doc/html/libarchive.3.html index a1286257b3a..bddaee823aa 100644 --- a/archivers/libarchive/files/doc/html/libarchive.3.html +++ b/archivers/libarchive/files/doc/html/libarchive.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:09 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:07 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> @@ -53,11 +53,11 @@ for:</p> <p><b>•</b></p> <p style="margin-left:12%;">most variants of the POSIX -’’ustar’’ format,</p> +‘‘ustar’’ format,</p> <p><b>•</b></p> -<p style="margin-left:12%;">the POSIX ’’pax +<p style="margin-left:12%;">the POSIX ‘‘pax interchange’’ format,</p> <p><b>•</b></p> @@ -117,11 +117,11 @@ format to use. The library can write</p> <p><b>•</b></p> <p style="margin-left:12%;">POSIX-standard -’’ustar’’ archives,</p> +‘‘ustar’’ archives,</p> <p><b>•</b></p> -<p style="margin-left:12%;">POSIX ’’pax +<p style="margin-left:12%;">POSIX ‘‘pax interchange format’’ archives,</p> <p><b>•</b></p> diff --git a/archivers/libarchive/files/doc/html/libarchive_changes.3.html b/archivers/libarchive/files/doc/html/libarchive_changes.3.html index 76b62329bec..7bf820d2c85 100644 --- a/archivers/libarchive/files/doc/html/libarchive_changes.3.html +++ b/archivers/libarchive/files/doc/html/libarchive_changes.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:09 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:07 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> @@ -57,7 +57,7 @@ can be easily converted to UTF-8.</p> <p style="margin-left:6%; margin-top: 1em">Libarchive3 uses the standard iconv library to convert between character sets -and is introducing the notion of a ’’default +and is introducing the notion of a ‘‘default character set for the archive’’. To support this, archive_entry objects can now be bound to a particular archive when they are created. The automatic character set diff --git a/archivers/libarchive/files/doc/html/libarchive_internals.3.html b/archivers/libarchive/files/doc/html/libarchive_internals.3.html index 4b9aa520053..8be18c9a099 100644 --- a/archivers/libarchive/files/doc/html/libarchive_internals.3.html +++ b/archivers/libarchive/files/doc/html/libarchive_internals.3.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:09 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:07 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> diff --git a/archivers/libarchive/files/doc/html/mtree.5.html b/archivers/libarchive/files/doc/html/mtree.5.html index 5f37ee9c789..f7d3fba68d6 100644 --- a/archivers/libarchive/files/doc/html/mtree.5.html +++ b/archivers/libarchive/files/doc/html/mtree.5.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:09 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:07 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> @@ -175,7 +175,7 @@ pathname of a file that holds the contents of this file.</p> <p style="margin-left:22%; margin-top: 1em">The file flags as a symbolic name. See chflags(1) for information on these names. If no flags are to be set the string -’’none’’ may be used to override the +‘‘none’’ may be used to override the current default.</p> <p style="margin-top: 1em"><b>gid</b></p> @@ -239,7 +239,7 @@ file hierarchy.</p> <p style="margin-top: 1em"><b>resdevice</b></p> <p style="margin-left:22%; margin-top: 1em">The -’’resident’’ device number of the +‘‘resident’’ device number of the file, e.g. the ID of the device that contains the file. Its format is the same as the one for <b>device</b>.</p> @@ -261,7 +261,7 @@ the file.</p> <p style="margin-top: 1em"><b>sha1</b></p> <p style="margin-left:22%; margin-top: 1em">The FIPS 160-1 -(’’SHA-1’’) message digest of the +(‘‘SHA-1’’) message digest of the file.</p> <p style="margin-top: 1em"><b>sha1digest</b></p> @@ -272,7 +272,7 @@ file.</p> <p style="margin-top: 1em"><b>sha256</b></p> <p style="margin-left:22%; margin-top: 1em">The FIPS 180-2 -(’’SHA-256’’) message digest of the +(‘‘SHA-256’’) message digest of the file.</p> <p style="margin-top: 1em"><b>sha256digest</b></p> @@ -283,7 +283,7 @@ file.</p> <p style="margin-top: 1em"><b>sha384</b></p> <p style="margin-left:22%; margin-top: 1em">The FIPS 180-2 -(’’SHA-384’’) message digest of the +(‘‘SHA-384’’) message digest of the file.</p> <p style="margin-top: 1em"><b>sha384digest</b></p> @@ -294,7 +294,7 @@ file.</p> <p style="margin-top: 1em"><b>sha512</b></p> <p style="margin-left:22%; margin-top: 1em">The FIPS 180-2 -(’’SHA-512’’) message digest of the +(‘‘SHA-512’’) message digest of the file.</p> <p style="margin-top: 1em"><b>sha512digest</b></p> @@ -374,7 +374,7 @@ RIPEMD160 digests were added in FreeBSD 4.0, as new attacks have demonstrated weaknesses in MD5. The SHA-256 digest was added in FreeBSD 6.0. Support for file flags was added in FreeBSD 4.0, and mostly comes from NetBSD. -The ’’full’’ entry format was added +The ‘‘full’’ entry format was added by NetBSD.</p> <p style="margin-left:6%; margin-top: 1em">BSD diff --git a/archivers/libarchive/files/doc/html/tar.5.html b/archivers/libarchive/files/doc/html/tar.5.html index c30306db593..692a7993167 100644 --- a/archivers/libarchive/files/doc/html/tar.5.html +++ b/archivers/libarchive/files/doc/html/tar.5.html @@ -1,5 +1,5 @@ <!-- Creator : groff version 1.22.3 --> -<!-- CreationDate: Sun Jun 19 19:54:09 2016 --> +<!-- CreationDate: Sat Feb 25 11:22:08 2017 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> @@ -50,14 +50,14 @@ entirely of zero bytes.</p> compatibility with tape drives that use fixed block sizes, programs that read or write tar files always read or write a fixed number of records with each I/O operation. These -’’blocks’’ are always a multiple of +‘‘blocks’’ are always a multiple of the record size. The maximum block size supported by early implementations was 10240 bytes or 20 records. This is still the default for most implementations although block sizes of 1MiB (2048 records) or larger are commonly used with modern high-speed tape drives. (Note: the terms -’’block’’ and -’’record’’ here are not entirely +‘‘block’’ and +‘‘record’’ here are not entirely standard; this document follows the convention established by John Gilmore in documenting <b>pdtar</b>.)</p> @@ -224,7 +224,7 @@ matches.</p> and conserve tape, a file with multiple links is only written to the archive the first time it is encountered. The next time it is encountered, the <i>linkflag</i> is set to -an ASCII ’1’ and the <i>linkname</i> field holds +an ASCII ‘1’ and the <i>linkname</i> field holds the first name under which this file appears. (Note that regular files have a null value in the <i>linkflag</i> field.)</p> @@ -239,14 +239,14 @@ size and mtime fields must end in a space; the checksum is terminated by a null and a space. Early implementations filled the numeric fields with leading spaces. This seems to have been common practice until the IEEE Std 1003.1-1988 -(’’POSIX.1’’) standard was released. +(‘‘POSIX.1’’) standard was released. For best portability, modern implementations should fill the numeric fields with leading zeros.</p> <p style="margin-left:6%; margin-top: 1em"><b>Pre-POSIX Archives</b> <br> An early draft of IEEE Std 1003.1-1988 -(’’POSIX.1’’) served as the basis +(‘‘POSIX.1’’) served as the basis for John Gilmore’s <b>pdtar</b> program and many system implementations from the late 1980s and early 1990s. These archives generally follow the POSIX ustar format @@ -255,7 +255,7 @@ described below with the following variations:</p> <p><b>•</b></p> <p style="margin-left:17%;">The magic value consists of the -five characters ’’ustar’’ followed +five characters ‘‘ustar’’ followed by a space. The version field contains a space character followed by a null.</p> @@ -273,12 +273,12 @@ archives.</p> <p style="margin-left:6%; margin-top: 1em"><b>POSIX ustar Archives</b> <br> -IEEE Std 1003.1-1988 (’’POSIX.1’’) +IEEE Std 1003.1-1988 (‘‘POSIX.1’’) defined a standard tar file format to be read and written by compliant implementations of tar(1). This format is often -called the ’’ustar’’ format, after +called the ‘‘ustar’’ format, after the magic value used in the header. (The name is an acronym -for ’’Unix Standard TAR’’.) It +for ‘‘Unix Standard TAR’’.) It extends the historic format with new fields:</p> <p style="margin-left:14%; margin-top: 1em">struct @@ -432,40 +432,40 @@ header_posix_ustar {</p> the earlier <i>linkflag</i> field with several new type values:</p> -<p>’’0’’</p> +<p>‘‘0’’</p> <p style="margin-left:27%; margin-top: 1em">Regular file. NUL should be treated as a synonym, for compatibility purposes.</p> -<p>’’1’’</p> +<p>‘‘1’’</p> <p style="margin-left:27%; margin-top: 1em">Hard link.</p> -<p>’’2’’</p> +<p>‘‘2’’</p> <p style="margin-left:27%; margin-top: 1em">Symbolic link.</p> -<p>’’3’’</p> +<p>‘‘3’’</p> <p style="margin-left:27%; margin-top: 1em">Character device node.</p> -<p>’’4’’</p> +<p>‘‘4’’</p> <p style="margin-left:27%; margin-top: 1em">Block device node.</p> -<p>’’5’’</p> +<p>‘‘5’’</p> <p style="margin-left:27%; margin-top: 1em">Directory.</p> -<p>’’6’’</p> +<p>‘‘6’’</p> <p style="margin-left:27%; margin-top: 1em">FIFO node.</p> -<p>’’7’’</p> +<p>‘‘7’’</p> <p style="margin-left:27%; margin-top: 1em">Reserved.</p> @@ -493,7 +493,7 @@ should be set to zero by writers and ignored by readers.</p> <p style="margin-top: 1em"><i>magic</i></p> <p style="margin-left:17%; margin-top: 1em">Contains the -magic value ’’ustar’’ followed by a +magic value ‘‘ustar’’ followed by a NUL byte to indicate that this is a POSIX standard archive. Full compliance requires the uname and gname fields be properly set.</p> @@ -501,7 +501,7 @@ properly set.</p> <p style="margin-top: 1em"><i>version</i></p> <p style="margin-left:17%;">Version. This should be -’’00’’ (two copies of the ASCII +‘‘00’’ (two copies of the ASCII digit zero) for POSIX standard archives.</p> <p style="margin-top: 1em"><i>uname</i>, <i>gname</i></p> @@ -589,14 +589,14 @@ implementation.</p> Interchange Format</b> <br> There are many attributes that cannot be portably stored in a POSIX ustar archive. IEEE Std 1003.1-2001 -(’’POSIX.1’’) defined a -’’pax interchange format’’ that uses +(‘‘POSIX.1’’) defined a +‘‘pax interchange format’’ that uses two new types of entries to hold text-formatted metadata that applies to following entries. Note that a pax interchange format archive is a ustar archive in every respect. The new data is stored in ustar-compatible archive -entries that use the ’’x’’ or -’’g’’ typeflag. In particular, older +entries that use the ‘‘x’’ or +‘‘g’’ typeflag. In particular, older implementations that do not fully support these extensions will extract the metadata into regular files, where the metadata can be examined as necessary.</p> @@ -641,11 +641,11 @@ including pathnames, user names, and group names. In some cases, it is not possible to translate local conventions into UTF-8. If this key is present and the value is the six-character ASCII string -’’BINARY’’, then all textual values +‘‘BINARY’’, then all textual values are assumed to be in a platform-dependent multi-byte encoding. Note that there are only two valid values for this -key: ’’BINARY’’ or -’’ISO-IR 10646 2000 UTF-8’’. +key: ‘‘BINARY’’ or +‘‘ISO-IR 10646 2000 UTF-8’’. No other values are permitted by the standard, and the latter value should generally not be used as it is the default when this key is not specified. In particular, this @@ -692,16 +692,17 @@ the historic 8GB limit.</p> by Joerg Schilling’s <b>star</b> implementation.</p> <p style="margin-top: 1em"><b>SCHILY.acl.access</b>, -<b>SCHILY.acl.default</b></p> - -<p style="margin-left:17%;">Stores the access and default -ACLs as textual strings in a format that is an extension of -the format specified by POSIX.1e draft 17. In particular, -each user or group access specification can include a fourth -colon-separated field with the numeric UID or GID. This -allows ACLs to be restored on systems that may not have -complete user or group information available (such as when -NIS/YP or LDAP services are temporarily unavailable).</p> +<b>SCHILY.acl.default, SCHILY.acl.ace</b></p> + +<p style="margin-left:17%;">Stores the access, default and +NFSv4 ACLs as textual strings in a format that is an +extension of the format specified by POSIX.1e draft 17. In +particular, each user or group access specification can +include an additional colon-separated field with the numeric +UID or GID. This allows ACLs to be restored on systems that +may not have complete user or group information available +(such as when NIS/YP or LDAP services are temporarily +unavailable).</p> <p style="margin-top: 1em"><b>SCHILY.devminor</b>, <b>SCHILY.devmajor</b></p> @@ -738,7 +739,7 @@ it.</p> <p style="margin-left:17%;">The time when the file was created. (This should not be confused with the POSIX -’’ctime’’ attribute, which refers to +‘‘ctime’’ attribute, which refers to the time when the file metadata was last changed.)</p> @@ -748,9 +749,9 @@ the time when the file metadata was last changed.)</p> POSIX.1e-style extended attributes using keys of this form. The <i>key</i> value is URL-encoded: All non-ASCII characters and the two special characters -’’=’’ and -’’%’’ are encoded as -’’%’’ followed by two uppercase +‘‘=’’ and +‘‘%’’ are encoded as +‘‘%’’ followed by two uppercase hexadecimal digits. The value of this key is the extended attribute value encoded in base 64. XXX Detail the base-64 format here XXX</p> @@ -1136,8 +1137,8 @@ equal to realsize.</p> They contained a list of files to be renamed or symlinked after extraction; this was originally used to support long names. The contents of this record are a text description of -the operations to be done, in the form ’’Rename -%s to %s\n’’ or ’’Symlink %s to +the operations to be done, in the form ‘‘Rename +%s to %s\n’’ or ‘‘Symlink %s to %s\n’’; in either case, both filenames are escaped using K&R C syntax. Due to security concerns, "N" records are now generally ignored when reading @@ -1146,13 +1147,13 @@ archives.</p> <p style="margin-top: 1em">S</p> <p style="margin-left:27%; margin-top: 1em">This is a -’’sparse’’ regular file. Sparse +‘‘sparse’’ regular file. Sparse files are stored as a series of fragments. The header contains a list of fragment offset/length pairs. If more than four such entries are required, the header is extended -as necessary with ’’extra’’ header +as necessary with ‘‘extra’’ header extensions (an older format that is no longer used), or -’’sparse’’ extensions.</p> +‘‘sparse’’ extensions.</p> <p style="margin-top: 1em">V</p> @@ -1163,7 +1164,7 @@ This entry should generally be ignored on extraction.</p> <p style="margin-top: 1em"><i>magic</i></p> <p style="margin-left:17%; margin-top: 1em">The magic field -holds the five characters ’’ustar’’ +holds the five characters ‘‘ustar’’ followed by a space. Note that POSIX ustar archives have a trailing null.</p> @@ -1172,7 +1173,7 @@ trailing null.</p> <p style="margin-left:17%;">The version field holds a space character followed by a null. Note that POSIX ustar archives use two copies of the ASCII digit -’’0’’.</p> +‘‘0’’.</p> <p style="margin-top: 1em"><i>atime</i>, <i>ctime</i></p> @@ -1199,7 +1200,7 @@ written to the file at appropriate offsets.</p> <p style="margin-top: 1em"><i>isextended</i></p> <p style="margin-left:17%;">If this is set to non-zero, the -header will be followed by additional ’’sparse +header will be followed by additional ‘‘sparse header’’ records. Each such record contains information about as many as 21 additional sparse blocks as shown here:</p> @@ -1288,16 +1289,16 @@ interchange format closely, using some <b>SCHILY</b> tags and introducing new keywords to store sparse file information. There have been three iterations of the sparse file support, referred to as -’’0.0’’, -’’0.1’’, and -’’1.0’’.</p> +‘‘0.0’’, +‘‘0.1’’, and +‘‘1.0’’.</p> <p style="margin-top: 1em"><b>GNU.sparse.numblocks</b>, <b>GNU.sparse.offset</b>, <b>GNU.sparse.numbytes</b>, <b>GNU.sparse.size</b></p> <p style="margin-left:17%;">The -’’0.0’’ format used an initial +‘‘0.0’’ format used an initial <b>GNU.sparse.numblocks</b> attribute to indicate the number of blocks in the file, a pair of <b>GNU.sparse.offset</b> and <b>GNU.sparse.numbytes</b> to indicate the offset and @@ -1312,7 +1313,7 @@ which is not officially permitted by the standards.</p> <p style="margin-top: 1em"><b>GNU.sparse.map</b></p> <p style="margin-left:17%;">The -’’0.1’’ format used a single +‘‘0.1’’ format used a single attribute that stored a comma-separated list of decimal numbers. Each pair of numbers indicated the offset and size, respectively, of a block of data. This does not work well if @@ -1325,7 +1326,7 @@ simply discard unrecognized attributes.</p> <b>GNU.sparse.realsize</b></p> <p style="margin-left:17%;">The -’’1.0’’ format stores the sparse +‘‘1.0’’ format stores the sparse block map in one or more 512-byte blocks prepended to the file data in the entry body. The pax attributes indicate the existence of this map (via the <b>GNU.sparse.major</b> and @@ -1341,7 +1342,7 @@ XXX More Details Needed XXX</p> <p style="margin-left:6%; margin-top: 1em">Solaris tar (beginning with SunOS XXX 5.7 ?? XXX) supports an -’’extended’’ format that is +‘‘extended’’ format that is fundamentally similar to pax interchange format, with the following differences:</p> @@ -1380,7 +1381,7 @@ Tar</b> <br> The tar distributed with Apple’s Mac OS X stores most regular files as two separate files in the tar archive. The two files have the same name except that the first one has -’’._’’ prepended to the last path +‘‘._’’ prepended to the last path element. This special file stores an AppleDouble-encoded binary blob with additional metadata about the second file, including ACL, extended attributes, and resources. To @@ -1388,7 +1389,7 @@ recreate the original file on disk, each separate file can be extracted and the Mac OS X <b>copyfile</b>() function can be used to unpack the separate metadata file and apply it to th regular file. Conversely, the same function provides a -’’pack’’ option to encode the +‘‘pack’’ option to encode the extended metadata from a file into a separate file whose contents can then be put into a tar archive.</p> @@ -1526,11 +1527,11 @@ interchange format per-file extensions.</p> <p style="margin-left:6%;">The <b>tar</b> utility is no longer a part of POSIX or the Single Unix Standard. It last appeared in Version 2 of the Single UNIX Specification -(’’SUSv2’’). It has been supplanted +(‘‘SUSv2’’). It has been supplanted in subsequent standards by pax(1). The ustar format is currently part of the specification for the pax(1) utility. The pax interchange file format is new with IEEE Std -1003.1-2001 (’’POSIX.1’’).</p> +1003.1-2001 (‘‘POSIX.1’’).</p> <p style="margin-top: 1em"><b>HISTORY</b></p> @@ -1552,7 +1553,7 @@ and <b>bsdtar</b> project by Tim Kientzle <kientzle@FreeBSD.org>.</p> <p style="margin-left:6%; margin-top: 1em">BSD -December 23, 2011 BSD</p> +December 27, 2016 BSD</p> <hr> </body> </html> diff --git a/archivers/libarchive/files/doc/man/Makefile b/archivers/libarchive/files/doc/man/Makefile index 0c43b1d0071..5f05971b71c 100644 --- a/archivers/libarchive/files/doc/man/Makefile +++ b/archivers/libarchive/files/doc/man/Makefile @@ -104,15 +104,15 @@ archive_write_set_passphrase.3: ../mdoc2man.awk ../../libarchive/archive_write_s cpio.5: ../mdoc2man.awk ../../libarchive/cpio.5 awk -f ../mdoc2man.awk < ../../libarchive/cpio.5 > cpio.5 +libarchive-formats.5: ../mdoc2man.awk ../../libarchive/libarchive-formats.5 + awk -f ../mdoc2man.awk < ../../libarchive/libarchive-formats.5 > libarchive-formats.5 + libarchive.3: ../mdoc2man.awk ../../libarchive/libarchive.3 awk -f ../mdoc2man.awk < ../../libarchive/libarchive.3 > libarchive.3 libarchive_changes.3: ../mdoc2man.awk ../../libarchive/libarchive_changes.3 awk -f ../mdoc2man.awk < ../../libarchive/libarchive_changes.3 > libarchive_changes.3 -libarchive-formats.5: ../mdoc2man.awk ../../libarchive/libarchive-formats.5 - awk -f ../mdoc2man.awk < ../../libarchive/libarchive-formats.5 > libarchive-formats.5 - libarchive_internals.3: ../mdoc2man.awk ../../libarchive/libarchive_internals.3 awk -f ../mdoc2man.awk < ../../libarchive/libarchive_internals.3 > libarchive_internals.3 @@ -127,4 +127,4 @@ bsdtar.1: ../mdoc2man.awk ../../tar/bsdtar.1 bsdcpio.1: ../mdoc2man.awk ../../cpio/bsdcpio.1 awk -f ../mdoc2man.awk < ../../cpio/bsdcpio.1 > bsdcpio.1 -all: archive_entry.3 archive_entry_acl.3 archive_entry_linkify.3 archive_entry_paths.3 archive_entry_perms.3 archive_entry_stat.3 archive_entry_time.3 archive_read.3 archive_read_add_passphrase.3 archive_read_data.3 archive_read_disk.3 archive_read_extract.3 archive_read_filter.3 archive_read_format.3 archive_read_free.3 archive_read_header.3 archive_read_new.3 archive_read_open.3 archive_read_set_options.3 archive_util.3 archive_write.3 archive_write_blocksize.3 archive_write_data.3 archive_write_disk.3 archive_write_filter.3 archive_write_finish_entry.3 archive_write_format.3 archive_write_free.3 archive_write_header.3 archive_write_new.3 archive_write_open.3 archive_write_set_options.3 archive_write_set_passphrase.3 cpio.5 libarchive.3 libarchive_changes.3 libarchive-formats.5 libarchive_internals.3 mtree.5 tar.5 bsdtar.1 bsdcpio.1 +all: archive_entry.3 archive_entry_acl.3 archive_entry_linkify.3 archive_entry_paths.3 archive_entry_perms.3 archive_entry_stat.3 archive_entry_time.3 archive_read.3 archive_read_add_passphrase.3 archive_read_data.3 archive_read_disk.3 archive_read_extract.3 archive_read_filter.3 archive_read_format.3 archive_read_free.3 archive_read_header.3 archive_read_new.3 archive_read_open.3 archive_read_set_options.3 archive_util.3 archive_write.3 archive_write_blocksize.3 archive_write_data.3 archive_write_disk.3 archive_write_filter.3 archive_write_finish_entry.3 archive_write_format.3 archive_write_free.3 archive_write_header.3 archive_write_new.3 archive_write_open.3 archive_write_set_options.3 archive_write_set_passphrase.3 cpio.5 libarchive-formats.5 libarchive.3 libarchive_changes.3 libarchive_internals.3 mtree.5 tar.5 bsdtar.1 bsdcpio.1 diff --git a/archivers/libarchive/files/doc/man/archive_entry_acl.3 b/archivers/libarchive/files/doc/man/archive_entry_acl.3 index 6969f98cd22..8dd2008d420 100644 --- a/archivers/libarchive/files/doc/man/archive_entry_acl.3 +++ b/archivers/libarchive/files/doc/man/archive_entry_acl.3 @@ -1,14 +1,18 @@ -.TH ARCHIVE_ENTRY_ACL 3 "February 2, 2012" "" +.TH ARCHIVE_ENTRY_ACL 3 "February 15, 2017" "" .SH NAME .ad l \fB\%archive_entry_acl_add_entry\fP, \fB\%archive_entry_acl_add_entry_w\fP, \fB\%archive_entry_acl_clear\fP, \fB\%archive_entry_acl_count\fP, +\fB\%archive_entry_acl_from_text\fP, +\fB\%archive_entry_acl_from_text_w,\fP \fB\%archive_entry_acl_next\fP, \fB\%archive_entry_acl_next_w\fP, \fB\%archive_entry_acl_reset\fP, -\fB\%archive_entry_acl_text_w\fP +\fB\%archive_entry_acl_to_text\fP, +\fB\%archive_entry_acl_to_text_w\fP, +\fB\%archive_entry_acl_types\fP \- functions for manipulating Access Control Lists in archive entry descriptions .SH LIBRARY .ad l @@ -35,6 +39,14 @@ Streaming Archive Library (libarchive, -larchive) .br \fIint\fP .br +\fB\%archive_entry_acl_from_text\fP(\fI\%struct\ archive_entry\ *a\fP, \fI\%const\ char\ *text\fP, \fI\%int\ type\fP); +.br +\fIint\fP +.br +\fB\%archive_entry_acl_from_text_w\fP(\fI\%struct\ archive_entry\ *a\fP, \fI\%const\ wchar_t\ *text\fP, \fI\%int\ type\fP); +.br +\fIint\fP +.br \fB\%archive_entry_acl_next\fP(\fI\%struct\ archive_entry\ *a\fP, \fI\%int\ type\fP, \fI\%int\ *ret_type\fP, \fI\%int\ *ret_permset\fP, \fI\%int\ *ret_tag\fP, \fI\%int\ *ret_qual\fP, \fI\%const\ char\ **ret_name\fP); .br \fIint\fP @@ -45,54 +57,60 @@ Streaming Archive Library (libarchive, -larchive) .br \fB\%archive_entry_acl_reset\fP(\fI\%struct\ archive_entry\ *a\fP, \fI\%int\ type\fP); .br -\fIconst wchar_t *\fP +\fIchar *\fP +.br +\fB\%archive_entry_acl_to_text\fP(\fI\%struct\ archive_entry\ *a\fP, \fI\%ssize_t\ *len_p\fP, \fI\%int\ flags\fP); +.br +\fIwchar_t *\fP .br -\fB\%archive_entry_acl_text_w\fP(\fI\%struct\ archive_entry\ *a\fP, \fI\%int\ flags\fP); +\fB\%archive_entry_acl_to_text_w\fP(\fI\%struct\ archive_entry\ *a\fP, \fI\%ssize_t\ *len_p\fP, \fI\%int\ flags\fP); +.br +\fIint\fP +.br +\fB\%archive_entry_acl_types\fP(\fI\%struct\ archive_entry\ *a\fP); .SH DESCRIPTION .ad l -An -``Access Control List'' -is a generalisation of the classic Unix permission system. +The +``Access Control Lists (ACLs)'' +extend the standard Unix perssion model. The ACL interface of \fB\%libarchive\fP -is derived from the POSIX.1e draft, but restricted to simplify dealing -with practical implementations in various Operating Systems and archive formats. -.PP -An ACL consists of a number of independent entries. +supports both POSIX.1e and NFSv4 style ACLs. Use of ACLs is restricted by +various levels of ACL support in operating systems, file systems and archive +formats. +.SS POSIX.1e Access Control Lists +A POSIX.1e ACL consists of a number of independent entries. Each entry specifies the permission set as bitmask of basic permissions. -Valid permissions are: +Valid permissions in the +are: .RS 5 .TP -.BR ARCHIVE_ENTRY_ACL_EXECUTE +.BR ARCHIVE_ENTRY_ACL_READ (.B r ) .TP -.BR ARCHIVE_ENTRY_ACL_WRITE +.BR ARCHIVE_ENTRY_ACL_WRITE (.B w ) .TP -.BR ARCHIVE_ENTRY_ACL_READ +.BR ARCHIVE_ENTRY_ACL_EXECUTE (.B x ) .RE The permissions correspond to the normal Unix permissions. .PP -The tag specifies the principal to which the permission applies. +The +specifies the principal to which the permission applies. Valid values are: .RS 5 -.TP -.BR ARCHIVE_ENTRY_ACL_USER +It .BR ARCHIVE_ENTRY_ACL_USER The user specified by the name field. -.TP -.BR ARCHIVE_ENTRY_ACL_USER_OBJ +It .BR ARCHIVE_ENTRY_ACL_USER_OBJ The owner of the file. -.TP -.BR ARCHIVE_ENTRY_ACL_GROUP +It .BR ARCHIVE_ENTRY_ACL_GROUP The group specied by the name field. -.TP -.BR ARCHIVE_ENTRY_ACL_GROUP_OBJ +It .BR ARCHIVE_ENTRY_ACL_GROUP_OBJ The group who owns the file. -.TP -.BR ARCHIVE_ENTRY_ACL_MASK +It .BR ARCHIVE_ENTRY_ACL_MASK The maximum permissions to be obtained via group permissions. -.TP -.BR ARCHIVE_ENTRY_ACL_OTHER -Any principal who doesn't have a user or group entry. +It .BR ARCHIVE_ENTRY_ACL_OTHER +Any principal who is not file owner or a member of the owning group. .RE +.PP The principals .BR ARCHIVE_ENTRY_ACL_USER_OBJ, .BR ARCHIVE_ENTRY_ACL_GROUP_OBJ @@ -101,19 +119,143 @@ and are equivalent to user, group and other in the classic Unix permission model and specify non-extended ACL entries. .PP -All files have an access ACL +All files with have an access ACL (.BR ARCHIVE_ENTRY_ACL_TYPE_ACCESS.) This specifies the permissions required for access to the file itself. Directories have an additional ACL (.BR ARCHIVE_ENTRY_ACL_TYPE_DEFAULT,) which controls the initial access ACL for newly created directory entries. +.SS NFSv4 Access Control Lists +A NFSv4 ACL consists of multiple individual entries called Access Control +Entries (ACEs). +.PP +There are four possible types of a NFSv4 ACE: +.RS 5 +It .BR ARCHIVE_ENTRY_ACL_TYPE_ALLOW +Allow principal to perform actions requiring given permissions. +It .BR ARCHIVE_ENTRY_ACL_TYPE_DENY +Prevent principal from performing actions requiring given permissions. +It .BR ARCHIVE_ENTRY_ACL_TYPE_AUDIT +Log access attempts by principal which require given permissions. +It .BR ARCHIVE_ENTRY_ACL_TYPE_ALARM +Trigger a system alarm on access attempts by principal which require given +permissions. +.RE +.PP +The +specifies the principal to which the permission applies. +Valid values are: +.RS 5 +It .BR ARCHIVE_ENTRY_ACL_USER +The user specified by the name field. +It .BR ARCHIVE_ENTRY_ACL_USER_OBJ +The owner of the file. +It .BR ARCHIVE_ENTRY_ACL_GROUP +The group specied by the name field. +It .BR ARCHIVE_ENTRY_ACL_GROUP_OBJ +The group who owns the file. +It .BR ARCHIVE_ENTRY_ACL_EVERYONE +Any principal who is not file owner or a member of the owning group. +.RE +.PP +Entries with the +.BR ARCHIVE_ENTRY_ACL_USER +or +.BR ARCHIVE_ENTRY_ACL_GROUP +tag store the user and group name in the +string and optionally the user or group ID in the +integer. .PP +NFSv4 ACE permissions and flags are stored in the same +bitfield. Some permissions share the same constant and permission character but +have different effect on directories than on files. The following ACE +permissions are supported: +.RS 5 +.TP +.BR ARCHIVE_ENTRY_ACL_READ_DATA (.B r ) +Read data (file). +.TP +.BR ARCHIVE_ENTRY_ACL_LIST_DIRECTORY (.B r ) +List entries (directory). +.TP +ARCHIVE_ENTRY_ACL_WRITE_DATA (.B w ) +Write data (file). +.TP +ARCHIVE_ENTRY_ACL_ADD_FILE (.B w ) +Create files (directory). +.TP +.BR ARCHIVE_ENTRY_ACL_EXECUTE (.B x ) +Execute file or change into a directory. +.TP +.BR ARCHIVE_ENTRY_ACL_APPEND_DATA (.B p ) +Append data (file). +.TP +.BR ARCHIVE_ENTRY_ACL_ADD_SUBDIRECTORY (.B p ) +Create subdirectories (directory). +.TP +.BR ARCHIVE_ENTRY_ACL_DELETE_CHILD (.B D ) +Remove files and subdirectories inside a directory. +.TP +.BR ARCHIVE_ENTRY_ACL_DELETE (.B d ) +Remove file or directory. +.TP +.BR ARCHIVE_ENTRY_ACL_READ_ATTRIBUTES (.B a ) +Read file or directory attributes. +.TP +.BR ARCHIVE_ENTRY_ACL_WRITE_ATTRIBUTES (.B A ) +Write file or directory attributes. +.TP +.BR ARCHIVE_ENTRY_ACL_READ_NAMED_ATTRS (.B R ) +Read named file or directory attributes. +.TP +.BR ARCHIVE_ENTRY_ACL_WRITE_NAMED_ATTRS (.B W ) +Write named file or directory attributes. +.TP +.BR ARCHIVE_ENTRY_ACL_READ_ACL (.B c ) +Read file or directory ACL. +.TP +.BR ARCHIVE_ENTRY_ACL_WRITE_ACL (.B C ) +Write file or directory ACL. +.TP +.BR ARCHIVE_ENTRY_ACL_WRITE_OWNER (.B o ) +Change owner of a file or directory. +.TP +.BR ARCHIVE_ENTRY_ACL_SYNCHRONIZE (.B s ) +Use synchronous I/O. +.RE +.PP +The following NFSv4 ACL inheritance flags are supported: +.RS 5 +.TP +.BR ARCHIVE_ENTRY_ACL_ENTRY_FILE_INHERIT (.B f ) +Inherit parent directory ACE to files. +.TP +.BR ARCHIVE_ENTRY_ACL_ENTRY_DIRECTORY_INHERIT (.B d ) +Inherit parent directory ACE to subdirectories. +.TP +.BR ARCHIVE_ENTRY_ACL_ENTRY_INHERIT_ONLY (.B i ) +Only inherit, do not apply the permission on the directory itself. +.TP +.BR ARCHIVE_ENTRY_ACL_ENTRY_NO_PROPAGATE_INHERIT (.B n ) +Do not propagate inherit flags. Only first-level entries inherit ACLs. +.TP +.BR ARCHIVE_ENTRY_ACL_ENTRY_SUCCESSFUL_ACCESS (.B S ) +Trigger alarm or audit on succesful access. +.TP +.BR ARCHIVE_ENTRY_ACL_ENTRY_FAILED_ACCESS (.B F ) +Trigger alarm or audit on failed access. +.TP +.BR ARCHIVE_ENTRY_ACL_ENTRY_INHERITED (.B I ) +Mark that ACE was inherited. +.RE +.SS Functions \fB\%archive_entry_acl_add_entry\fP() and \fB\%archive_entry_acl_add_entry_w\fP() add a single ACL entry. For the access ACL and non-extended principals, the classic Unix permissions -are updated. +are updated. An archive enry cannot contain both POSIX.1e and NFSv4 ACL +entries. .PP \fB\%archive_entry_acl_clear\fP() removes all ACL entries and resets the enumeration pointer. @@ -121,14 +263,65 @@ removes all ACL entries and resets the enumeration pointer. \fB\%archive_entry_acl_count\fP() counts the ACL entries that have the given type mask. can be the bitwise-or of +.RS 5 +.TP .BR ARCHIVE_ENTRY_ACL_TYPE_ACCESS -and -.BR ARCHIVE_ENTRY_ACL_TYPE_DEFAULT. -If +.TP +.BR ARCHIVE_ENTRY_ACL_TYPE_DEFAULT +.RE +for POSIX.1e ACLs and +.RS 5 +.TP +.BR ARCHIVE_ENTRY_ACL_TYPE_ALLOW +.TP +.BR ARCHIVE_ENTRY_ACL_TYPE_DENY +.TP +.BR ARCHIVE_ENTRY_ACL_TYPE_AUDIT +.TP +.BR ARCHIVE_ENTRY_ACL_TYPE_ALARM +.RE +for NFSv4 ACLs. For POSIX.1e ACLs if .BR ARCHIVE_ENTRY_ACL_TYPE_ACCESS is included and at least one extended ACL entry is found, the three non-extened ACLs are added. .PP +\fB\%archive_entry_acl_from_text\fP() +and +\fB\%archive_entry_acl_from_text_w\fP() +add new +(or merge with existing) +ACL entries from +(wide) +text. The argument +may take one of the following values: +.RS 5 +.TP +.BR ARCHIVE_ENTRY_ACL_TYPE_ACCESS +.TP +.BR ARCHIVE_ENTRY_ACL_TYPE_DEFAULT +.TP +.BR ARCHIVE_ENTRY_ACL_TYPE_NFS4 +.RE +Supports all formats that can be created with +\fB\%archive_entry_acl_to_text\fP() +or respective +\fB\%archive_entry_acl_to_text_w\fP(). +Existing ACL entries are preserved. To get a clean new ACL from text +\fB\%archive_entry_acl_clear\fP() +must be called first. Entries prefixed with +``default:'' +are treated as +.BR ARCHIVE_ENTRY_ACL_TYPE_DEFAULT +unless +is +.BR ARCHIVE_ENTRY_ACL_TYPE_NFS4. +Invalid entries, non-parseable ACL entries and entries beginning with +the +Sq # +character +(comments) +are skipped. +.PP \fB\%archive_entry_acl_next\fP() and \fB\%archive_entry_acl_next_w\fP() @@ -150,30 +343,87 @@ or set using Otherwise, the function returns the same value as \fB\%archive_entry_acl_count\fP(). .PP -\fB\%archive_entry_acl_text_w\fP() -converts the ACL entries for the given type mask into a wide string. -In addition to the normal type flags, -.BR ARCHIVE_ENTRY_ACL_STYLE_EXTRA_ID +\fB\%archive_entry_acl_to_text\fP() and +\fB\%archive_entry_acl_to_text_w\fP() +convert the ACL entries for the given type into a +(wide) +string of ACL entries separated by newline. If the the pointer +is not NULL, then the function shall return the length of the string +(not including the NULL terminator) +in the location pointed to by +. +The +argument is a bitwise-or. +.PP +The following flags are effective only on POSIX.1e ACL: +.RS 5 +.TP +.BR ARCHIVE_ENTRY_ACL_TYPE_ACCESS +Output access ACLs. +.TP +.BR ARCHIVE_ENTRY_ACL_TYPE_DEFAULT +Output POSIX.1e default ACLs. +.TP .BR ARCHIVE_ENTRY_ACL_STYLE_MARK_DEFAULT -can be specified to further customize the result. -The returned long string is valid until the next call to -\fB\%archive_entry_acl_clear\fP(), -\fB\%archive_entry_acl_add_entry\fP(), -\fB\%archive_entry_acl_add_entry_w\fP() +Prefix each default ACL entry with the word +``default:''. +.TP +.BR ARCHIVE_ENTRY_ACL_STYLE_SOLARIS +The mask and other ACLs don not contain a double colon. +.RE +.PP +The following flags are effecive only on NFSv4 ACL: +.RS 5 +.TP +.BR ARCHIVE_ENTRY_ACL_STYLE_COMPACT +Do not output minus characters for unset permissions and flags in NFSv4 ACL +permission and flag fields. +.RE +.PP +The following flags are effective on both POSIX.1e and NFSv4 ACL: +.RS 5 +.TP +.BR ARCHIVE_ENTRY_ACL_STYLE_EXTRA_ID +Add an additional colon-separated field containing the user or group id. +.TP +.BR ARCHIVE_ENTRY_ACL_STYLE_SEPARATOR_COMMA +Separate ACL entries with comma instead of newline. +.RE +.PP +If the archive entry contains NFSv4 ACLs, all types of NFSv4 ACLs are returned. +It the entry contains POSIX.1e ACLs and none of the flags +.BR ARCHIVE_ENTRY_ACL_TYPE_ACCESS or -\fB\%archive_entry_acl_text_w\fP(). +.BR ARCHIVE_ENTRY_ACL_TYPE_DEFAULT +are specified, both access and default entries are returned and default entries +are prefixed with +``default:''. +.PP +\fB\%archive_entry_acl_types\fP() +get ACL entry types contained in an archive entry's ACL. As POSIX.1e and NFSv4 +ACL entries cannot be mixed, this function is a very efficient way to detect if +an ACL already contains POSIX.1e or NFSv4 ACL entries. .SH RETURN VALUES .ad l \fB\%archive_entry_acl_count\fP() and \fB\%archive_entry_acl_reset\fP() returns the number of ACL entries that match the given type mask. -If the type mask includes +For POSIX.1e ACLS if the type mask includes .BR ARCHIVE_ENTRY_ACL_TYPE_ACCESS and at least one extended ACL entry exists, the three classic Unix permissions are counted. .PP +\fB\%archive_entry_acl_from_text\fP() +and +\fB\%archive_entry_acl_from_text_w\fP() +return +.BR ARCHIVE_OK +if all entries were successfully parsed and +.BR ARCHIVE_WARN +if one or more entries were invalid or non-parseable. +.PP \fB\%archive_entry_acl_next\fP() and \fB\%archive_entry_acl_next_w\fP() @@ -188,22 +438,17 @@ if \fB\%archive_entry_acl_reset\fP() has not been called first. .PP -\fB\%archive_entry_text_w\fP() -returns a wide string representation of the ACL entrise matching the -given type mask. -The returned long string is valid until the next call to -\fB\%archive_entry_acl_clear\fP(), -\fB\%archive_entry_acl_add_entry\fP(), -\fB\%archive_entry_acl_add_entry_w\fP() -or -\fB\%archive_entry_acl_text_w\fP(). +\fB\%archive_entry_acl_to_text\fP() +returns a string representing the ACL entries matching the given type and +flags on success or NULL on error. +.PP +\fB\%archive_entry_acl_to_text_w\fP() +returns a wide string representing the ACL entries matching the given type +and flags on success or NULL on error. +.PP +\fB\%archive_entry_acl_types\fP() +returns a bitmask of ACL entry types or 0 if archive entry has no ACL entries. .SH SEE ALSO .ad l -\fBarchive_entry\fP(3) -\fBlibarchive\fP(3), -.SH BUGS -.ad l -.BR ARCHIVE_ENTRY_ACL_STYLE_EXTRA_ID -and -.BR ARCHIVE_ENTRY_ACL_STYLE_MARK_DEFAULT -are not documented. +\fBarchive_entry\fP(3), +\fBlibarchive\fP(3) diff --git a/archivers/libarchive/files/doc/man/archive_read_disk.3 b/archivers/libarchive/files/doc/man/archive_read_disk.3 index 54fa216c128..58f31996595 100644 --- a/archivers/libarchive/files/doc/man/archive_read_disk.3 +++ b/archivers/libarchive/files/doc/man/archive_read_disk.3 @@ -1,4 +1,4 @@ -.TH ARCHIVE_READ_DISK 3 "February 2, 2012" "" +.TH ARCHIVE_READ_DISK 3 "December 30, 2016" "" .SH NAME .ad l \fB\%archive_read_disk_new\fP, @@ -38,11 +38,11 @@ Streaming Archive Library (libarchive, -larchive) .br \fB\%archive_read_disk_set_symlink_hybrid\fP(\fI\%struct\ archive\ *\fP); .br -\fIint\fP +\fIconst char *\fP .br \fB\%archive_read_disk_gname\fP(\fI\%struct\ archive\ *\fP, \fI\%gid_t\fP); .br -\fIint\fP +\fIconst char *\fP .br \fB\%archive_read_disk_uname\fP(\fI\%struct\ archive\ *\fP, \fI\%uid_t\fP); .br diff --git a/archivers/libarchive/files/doc/man/archive_write_open.3 b/archivers/libarchive/files/doc/man/archive_write_open.3 index 6ae3c22d0fd..6303c083d35 100644 --- a/archivers/libarchive/files/doc/man/archive_write_open.3 +++ b/archivers/libarchive/files/doc/man/archive_write_open.3 @@ -42,6 +42,7 @@ Freeze the settings, open the archive, and prepare for writing entries. This is the most generic form of this function, which accepts pointers to three callback functions which will be invoked by the compression layer to write the constructed archive. +This does not alter the default archive padding. .TP \fB\%archive_write_open_fd\fP() A convenience form of @@ -104,12 +105,21 @@ is currently in use. You should be careful to ensure that this variable remains allocated until after the archive is closed. +This function will disable padding unless you +have specifically set the block size. .RE More information about the \fIstruct\fP archive object and the overall design of the library can be found in the \fBlibarchive\fP(3) overview. +.PP +Note that the convenience forms above vary in how +they block the output. +See +\fBarchive_write_blocksize\fP(3) +if you need to control the block size used for writes +or the end-of-file padding behavior. .SH CLIENT CALLBACKS .ad l To use this library, you will need to define and register @@ -202,6 +212,7 @@ functions. \fBtar\fP(1), \fBlibarchive\fP(3), \fBarchive_write\fP(3), +\fBarchive_write_blocksize\fP(3), \fBarchive_write_filter\fP(3), \fBarchive_write_format\fP(3), \fBarchive_write_new\fP(3), diff --git a/archivers/libarchive/files/doc/man/bsdtar.1 b/archivers/libarchive/files/doc/man/bsdtar.1 index 22c06c30653..3b49475a93a 100644 --- a/archivers/libarchive/files/doc/man/bsdtar.1 +++ b/archivers/libarchive/files/doc/man/bsdtar.1 @@ -1,4 +1,4 @@ -.TH TAR 1 "September 16, 2014" "" +.TH TAR 1 "February 24, 2017" "" .SH NAME .ad l \fB\%tar\fP @@ -110,7 +110,7 @@ all operating modes. .RS 5 .TP \fB@\fP \fIarchive\fP -(c and r mode only) +(c and r modes only) The specified archive is opened and the entries in it will be appended to the current archive. As a simple example, @@ -168,6 +168,17 @@ and gzip compression, if it is unknown suffix or no suffix, creates a new archive with restricted pax format and bzip2 compression. .TP +\fB\-Fl\fP acls +(c, r, u, x modes only) +Archive or extract POSIX.1e or NFSv4 ACLs. This is the reverse of +\fB\-Fl\fP no-acls +and the default behavior in c, r, and u modes (except Mac OS X) or if +\fB\%tar\fP +is run in x mode as root. On Mac OS X this option translates extended ACLs +to NFSv4 ACLs. To store extended ACLs the +\fB\-Fl\fP mac-metadata +option is preferred. +.TP \fB\-B\fP, \fB\-Fl\fP read-full-blocks Ignored for compatibility with other \fBtar\fP(1) @@ -197,17 +208,20 @@ options and before extracting any files. Before removing file system objects to replace them, clear platform-specific file flags that might prevent removal. .TP -\fB\-Fl\fP disable-copyfile -Mac OS X specific. -Disable the use of -\fBcopyfile\fP(3). -.TP \fB\-Fl\fP exclude \fIpattern\fP Do not process files or directories that match the specified pattern. Note that exclusions take precedence over patterns or filenames specified on the command line. .TP +\fB\-Fl\fP fflags +(c, r, u, x modes only) +Archive or extract file flags. This is the reverse of +\fB\-Fl\fP no-fflags +and the default behavior in c, r, and u modes or if +\fB\%tar\fP +is run in x mode as root. +.TP \fB\-Fl\fP format \fIformat\fP (c, r, u mode only) Use the specified format for the created archive. @@ -260,12 +274,12 @@ in the archive; the name will not be verified against the system group database. .TP \fB\-H\fP -(c and r mode only) +(c and r modes only) Symbolic links named on the command line will be followed; the target of the link will be archived, not the link itself. .TP \fB\-h\fP -(c and r mode only) +(c and r modes only) Synonym for \fB\-L\fP. .TP @@ -278,7 +292,8 @@ Show usage. .TP \fB\-Fl\fP hfsCompression (x mode only) -Mac OS X specific(v10.6 or later). Compress extracted regular files with HFS+ compression. +Mac OS X specific (v10.6 or later). Compress extracted regular files with HFS+ +compression. .TP \fB\-Fl\fP ignore-zeros An alias of @@ -338,7 +353,7 @@ Do not overwrite existing files that are newer than the versions appearing in the archive being extracted. .TP \fB\-L\fP, \fB\-Fl\fP dereference -(c and r mode only) +(c and r modes only) All symbolic links will be followed. Normally, symbolic links are archived as such. With this option, the target of the link will be archived instead. @@ -380,6 +395,17 @@ In extract or list modes, this option is ignored. Do not extract modification time. By default, the modification time is set to the time stored in the archive. .TP +\fB\-Fl\fP mac-metadata +(c, r, u and x mode only) +Mac OS X specific. Archive or extract extended ACLs and extended attributes +using +\fBcopyfile\fP(3) +in AppleDouble format. This is the reverse of +\fB\-Fl\fP no-mac-metadata. +and the default behavior in c, r, and u modes or if +\fB\%tar\fP +is run in x mode as root. +.TP \fB\-n\fP, \fB\-Fl\fP norecurse, \fB\-Fl\fP no-recursion (c, r, u modes only) Do not recursively archive the contents of directories. @@ -428,6 +454,34 @@ This is often used to read filenames output by the option to \fBfind\fP(1). .TP +\fB\-Fl\fP no-acls +(c, r, u, x modes only) +Do not archive or extract POSIX.1e or NFSv4 ACLs. This is the reverse of +\fB\-Fl\fP acls +and the default behavior if +\fB\%tar\fP +is run as non-root in x mode (on Mac OS X also in c, r and u modes). +.TP +\fB\-Fl\fP no-fflags +(c, r, u, x modes only) +Do not archive or extract file flags. This is the reverse of +\fB\-Fl\fP fflags +and the default behavior if +\fB\%tar\fP +is run as non-root in x mode. +.TP +\fB\-Fl\fP no-mac-metadata +(x mode only) +Mac OS X specific. Do not archive or extract ACLs and extended attributes using +\fBcopyfile\fP(3) +in AppleDouble format. This is the reverse of +\fB\-Fl\fP mac-metadata. +and the default behavior if +\fB\%tar\fP +is run as non-root in x mode. +.TP +\fB\-n\fP, \fB\-Fl\fP norecurse, \fB\-Fl\fP no-recursion +.TP \fB\-Fl\fP no-same-owner (x mode only) Do not extract owner and group IDs. @@ -445,7 +499,22 @@ This is the reverse of \fB\-p\fP and the default behavior if \fB\%tar\fP -is run as non-root. +is run as non-root and can be overridden by also specifying +\fB\-Fl\fP acls, +\fB\-Fl\fP fflags, +\fB\-Fl\fP mac-metadata, +\fB\-Fl\fP same-owner, +\fB\-Fl\fP same-permissions +and +\fB\-Fl\fP xattrs. +.TP +\fB\-Fl\fP no-xattrs +(c, r, u, x modes only) +Do not archive or extract extended attributes. This is the reverse of +\fB\-Fl\fP xattrs +and the default behavior if +\fB\%tar\fP +is run as non-root in x mode. .TP \fB\-Fl\fP numeric-owner This is equivalent to @@ -664,14 +733,18 @@ This option suppresses these behaviors. \fB\-p\fP, \fB\-Fl\fP insecure, \fB\-Fl\fP preserve-permissions (x mode only) Preserve file permissions. -Attempt to restore the full permissions, including owner, file modes, file -flags and ACLs, if available, for each item extracted from the archive. -This is the default, if +Attempt to restore the full permissions, including owner, file modes, ACLs, +extended atributes and extended file flags, if available, for each item +extracted from the archive. This is the default, if \fB\%tar\fP is being run by root and can be overridden by also specifying -\fB\-Fl\fP no-same-owner +\fB\-Fl\fP no-acls, +\fB\-Fl\fP no-fflags, +\fB\-Fl\fP no-mac-metadata, +\fB\-Fl\fP no-same-owner, +\fB\-Fl\fP no-same-permissions and -\fB\-Fl\fP no-same-permissions. +\fB\-Fl\fP no-xattrs. .TP \fB\-Fl\fP passphrase \fIpassphrase\fP The @@ -782,7 +855,7 @@ you probably want to use as well. .TP \fB\-Fl\fP totals -(c, r, u mode only) +(c, r, u modes only) After archiving all files, print a summary to stderr. .TP \fB\-U\fP, \fB\-Fl\fP unlink, \fB\-Fl\fP unlink-first @@ -853,6 +926,14 @@ See \fB\-Fl\fP exclude for more information about the handling of exclusions. .TP +\fB\-Fl\fP xattrs +(c, r, u, x modes only) +Archive or extract extended attributes. This is the reverse of +\fB\-Fl\fP no-xattrs +and the default behavior in c, r, and u modes or if +\fB\%tar\fP +is run in x mode as root. +.TP \fB\-y\fP (c mode only) Compress the resulting archive with diff --git a/archivers/libarchive/files/doc/man/libarchive-formats.5 b/archivers/libarchive/files/doc/man/libarchive-formats.5 index 9c8e8435d42..091cbfb9599 100644 --- a/archivers/libarchive/files/doc/man/libarchive-formats.5 +++ b/archivers/libarchive/files/doc/man/libarchive-formats.5 @@ -1,4 +1,4 @@ -.TH LIBARCHIVE-FORMATS 5 "March 18, 2012" "" +.TH LIBARCHIVE-FORMATS 5 "December 27, 2016" "" .SH NAME .ad l \fB\%libarchive-formats\fP @@ -172,8 +172,6 @@ and device numbers. Solaris extensions Libarchive recognizes ACL and extended attribute records written by Solaris tar. -Currently, libarchive only has support for old-style ACLs; the -newer NFSv4 ACLs are recognized but discarded. .RE .PP The first tar program appeared in Seventh Edition Unix in 1979. diff --git a/archivers/libarchive/files/doc/man/tar.5 b/archivers/libarchive/files/doc/man/tar.5 index b4c69258386..153b7c3eecc 100644 --- a/archivers/libarchive/files/doc/man/tar.5 +++ b/archivers/libarchive/files/doc/man/tar.5 @@ -1,4 +1,4 @@ -.TH TAR 5 "December 23, 2011" "" +.TH TAR 5 "December 27, 2016" "" .SH NAME .ad l \fB\%tar\fP @@ -449,11 +449,11 @@ Vendor-specific attributes used by Joerg Schilling's \fB\%star\fP implementation. .TP -\fBSCHILY.acl.access\fP, \fBSCHILY.acl.default\fP -Stores the access and default ACLs as textual strings in a format +\fBSCHILY.acl.access\fP, \fBSCHILY.acl.default,\fP \fBSCHILY.acl.ace\fP +Stores the access, default and NFSv4 ACLs as textual strings in a format that is an extension of the format specified by POSIX.1e draft 17. -In particular, each user or group access specification can include a fourth -colon-separated field with the numeric UID or GID. +In particular, each user or group access specification can include +an additional colon-separated field with the numeric UID or GID. This allows ACLs to be restored on systems that may not have complete user or group information available (such as when NIS/YP or LDAP services are temporarily unavailable). diff --git a/archivers/libarchive/files/doc/pdf/Makefile b/archivers/libarchive/files/doc/pdf/Makefile index 5e631786cc6..c71cb841f80 100644 --- a/archivers/libarchive/files/doc/pdf/Makefile +++ b/archivers/libarchive/files/doc/pdf/Makefile @@ -104,15 +104,15 @@ archive_write_set_passphrase.3.pdf: ../../libarchive/archive_write_set_passphras cpio.5.pdf: ../../libarchive/cpio.5 groff -mdoc -T ps ../../libarchive/cpio.5 | ps2pdf - - > cpio.5.pdf +libarchive-formats.5.pdf: ../../libarchive/libarchive-formats.5 + groff -mdoc -T ps ../../libarchive/libarchive-formats.5 | ps2pdf - - > libarchive-formats.5.pdf + libarchive.3.pdf: ../../libarchive/libarchive.3 groff -mdoc -T ps ../../libarchive/libarchive.3 | ps2pdf - - > libarchive.3.pdf libarchive_changes.3.pdf: ../../libarchive/libarchive_changes.3 groff -mdoc -T ps ../../libarchive/libarchive_changes.3 | ps2pdf - - > libarchive_changes.3.pdf -libarchive-formats.5.pdf: ../../libarchive/libarchive-formats.5 - groff -mdoc -T ps ../../libarchive/libarchive-formats.5 | ps2pdf - - > libarchive-formats.5.pdf - libarchive_internals.3.pdf: ../../libarchive/libarchive_internals.3 groff -mdoc -T ps ../../libarchive/libarchive_internals.3 | ps2pdf - - > libarchive_internals.3.pdf @@ -127,4 +127,4 @@ bsdtar.1.pdf: ../../tar/bsdtar.1 bsdcpio.1.pdf: ../../cpio/bsdcpio.1 groff -mdoc -T ps ../../cpio/bsdcpio.1 | ps2pdf - - > bsdcpio.1.pdf -all: archive_entry.3.pdf archive_entry_acl.3.pdf archive_entry_linkify.3.pdf archive_entry_paths.3.pdf archive_entry_perms.3.pdf archive_entry_stat.3.pdf archive_entry_time.3.pdf archive_read.3.pdf archive_read_add_passphrase.3.pdf archive_read_data.3.pdf archive_read_disk.3.pdf archive_read_extract.3.pdf archive_read_filter.3.pdf archive_read_format.3.pdf archive_read_free.3.pdf archive_read_header.3.pdf archive_read_new.3.pdf archive_read_open.3.pdf archive_read_set_options.3.pdf archive_util.3.pdf archive_write.3.pdf archive_write_blocksize.3.pdf archive_write_data.3.pdf archive_write_disk.3.pdf archive_write_filter.3.pdf archive_write_finish_entry.3.pdf archive_write_format.3.pdf archive_write_free.3.pdf archive_write_header.3.pdf archive_write_new.3.pdf archive_write_open.3.pdf archive_write_set_options.3.pdf archive_write_set_passphrase.3.pdf cpio.5.pdf libarchive.3.pdf libarchive_changes.3.pdf libarchive-formats.5.pdf libarchive_internals.3.pdf mtree.5.pdf tar.5.pdf bsdtar.1.pdf bsdcpio.1.pdf +all: archive_entry.3.pdf archive_entry_acl.3.pdf archive_entry_linkify.3.pdf archive_entry_paths.3.pdf archive_entry_perms.3.pdf archive_entry_stat.3.pdf archive_entry_time.3.pdf archive_read.3.pdf archive_read_add_passphrase.3.pdf archive_read_data.3.pdf archive_read_disk.3.pdf archive_read_extract.3.pdf archive_read_filter.3.pdf archive_read_format.3.pdf archive_read_free.3.pdf archive_read_header.3.pdf archive_read_new.3.pdf archive_read_open.3.pdf archive_read_set_options.3.pdf archive_util.3.pdf archive_write.3.pdf archive_write_blocksize.3.pdf archive_write_data.3.pdf archive_write_disk.3.pdf archive_write_filter.3.pdf archive_write_finish_entry.3.pdf archive_write_format.3.pdf archive_write_free.3.pdf archive_write_header.3.pdf archive_write_new.3.pdf archive_write_open.3.pdf archive_write_set_options.3.pdf archive_write_set_passphrase.3.pdf cpio.5.pdf libarchive-formats.5.pdf libarchive.3.pdf libarchive_changes.3.pdf libarchive_internals.3.pdf mtree.5.pdf tar.5.pdf bsdtar.1.pdf bsdcpio.1.pdf diff --git a/archivers/libarchive/files/doc/pdf/archive_entry.3.pdf b/archivers/libarchive/files/doc/pdf/archive_entry.3.pdf Binary files differindex a347a717aee..128a7643193 100644 --- a/archivers/libarchive/files/doc/pdf/archive_entry.3.pdf +++ b/archivers/libarchive/files/doc/pdf/archive_entry.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/archive_entry_acl.3.pdf b/archivers/libarchive/files/doc/pdf/archive_entry_acl.3.pdf Binary files differindex 39e81a7862d..93103fdd0be 100644 --- a/archivers/libarchive/files/doc/pdf/archive_entry_acl.3.pdf +++ b/archivers/libarchive/files/doc/pdf/archive_entry_acl.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/archive_entry_linkify.3.pdf b/archivers/libarchive/files/doc/pdf/archive_entry_linkify.3.pdf Binary files differindex d950391780e..25b1d23cdea 100644 --- a/archivers/libarchive/files/doc/pdf/archive_entry_linkify.3.pdf +++ b/archivers/libarchive/files/doc/pdf/archive_entry_linkify.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/archive_entry_paths.3.pdf b/archivers/libarchive/files/doc/pdf/archive_entry_paths.3.pdf Binary files differindex fcab5e75e25..ae8b20f35db 100644 --- a/archivers/libarchive/files/doc/pdf/archive_entry_paths.3.pdf +++ b/archivers/libarchive/files/doc/pdf/archive_entry_paths.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/archive_entry_perms.3.pdf b/archivers/libarchive/files/doc/pdf/archive_entry_perms.3.pdf Binary files differindex 2b10ae2d0d5..4d1acddd844 100644 --- a/archivers/libarchive/files/doc/pdf/archive_entry_perms.3.pdf +++ b/archivers/libarchive/files/doc/pdf/archive_entry_perms.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/archive_entry_stat.3.pdf b/archivers/libarchive/files/doc/pdf/archive_entry_stat.3.pdf Binary files differindex 631891141d5..724b9952007 100644 --- a/archivers/libarchive/files/doc/pdf/archive_entry_stat.3.pdf +++ b/archivers/libarchive/files/doc/pdf/archive_entry_stat.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/archive_entry_time.3.pdf b/archivers/libarchive/files/doc/pdf/archive_entry_time.3.pdf Binary files differindex 4c4fbfd4aec..731989e5a20 100644 --- a/archivers/libarchive/files/doc/pdf/archive_entry_time.3.pdf +++ b/archivers/libarchive/files/doc/pdf/archive_entry_time.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/archive_read.3.pdf b/archivers/libarchive/files/doc/pdf/archive_read.3.pdf Binary files differindex 002f7a12013..631327e856b 100644 --- a/archivers/libarchive/files/doc/pdf/archive_read.3.pdf +++ b/archivers/libarchive/files/doc/pdf/archive_read.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/archive_read_add_passphrase.3.pdf b/archivers/libarchive/files/doc/pdf/archive_read_add_passphrase.3.pdf Binary files differindex 7015dc0daad..3aa0c7d556c 100644 --- a/archivers/libarchive/files/doc/pdf/archive_read_add_passphrase.3.pdf +++ b/archivers/libarchive/files/doc/pdf/archive_read_add_passphrase.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/archive_read_data.3.pdf b/archivers/libarchive/files/doc/pdf/archive_read_data.3.pdf Binary files differindex 8c4343c75f2..5be56a1a170 100644 --- a/archivers/libarchive/files/doc/pdf/archive_read_data.3.pdf +++ b/archivers/libarchive/files/doc/pdf/archive_read_data.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/archive_read_disk.3.pdf b/archivers/libarchive/files/doc/pdf/archive_read_disk.3.pdf Binary files differindex d70ee334f4d..2e76797a662 100644 --- a/archivers/libarchive/files/doc/pdf/archive_read_disk.3.pdf +++ b/archivers/libarchive/files/doc/pdf/archive_read_disk.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/archive_read_extract.3.pdf b/archivers/libarchive/files/doc/pdf/archive_read_extract.3.pdf Binary files differindex 2e81c8bbc57..7aaa41c1088 100644 --- a/archivers/libarchive/files/doc/pdf/archive_read_extract.3.pdf +++ b/archivers/libarchive/files/doc/pdf/archive_read_extract.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/archive_read_filter.3.pdf b/archivers/libarchive/files/doc/pdf/archive_read_filter.3.pdf Binary files differindex cfa15303be4..5c0ff378d84 100644 --- a/archivers/libarchive/files/doc/pdf/archive_read_filter.3.pdf +++ b/archivers/libarchive/files/doc/pdf/archive_read_filter.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/archive_read_format.3.pdf b/archivers/libarchive/files/doc/pdf/archive_read_format.3.pdf Binary files differindex 0c9e14803f0..b82d50dfbf4 100644 --- a/archivers/libarchive/files/doc/pdf/archive_read_format.3.pdf +++ b/archivers/libarchive/files/doc/pdf/archive_read_format.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/archive_read_free.3.pdf b/archivers/libarchive/files/doc/pdf/archive_read_free.3.pdf Binary files differindex cc9276ed94a..943ba6175ac 100644 --- a/archivers/libarchive/files/doc/pdf/archive_read_free.3.pdf +++ b/archivers/libarchive/files/doc/pdf/archive_read_free.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/archive_read_header.3.pdf b/archivers/libarchive/files/doc/pdf/archive_read_header.3.pdf Binary files differindex 4581a74a94e..eafb141a5f9 100644 --- a/archivers/libarchive/files/doc/pdf/archive_read_header.3.pdf +++ b/archivers/libarchive/files/doc/pdf/archive_read_header.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/archive_read_new.3.pdf b/archivers/libarchive/files/doc/pdf/archive_read_new.3.pdf Binary files differindex d94331d184b..24d5f1fb0ba 100644 --- a/archivers/libarchive/files/doc/pdf/archive_read_new.3.pdf +++ b/archivers/libarchive/files/doc/pdf/archive_read_new.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/archive_read_open.3.pdf b/archivers/libarchive/files/doc/pdf/archive_read_open.3.pdf Binary files differindex 544d5580a5d..96044570dd3 100644 --- a/archivers/libarchive/files/doc/pdf/archive_read_open.3.pdf +++ b/archivers/libarchive/files/doc/pdf/archive_read_open.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/archive_read_set_options.3.pdf b/archivers/libarchive/files/doc/pdf/archive_read_set_options.3.pdf Binary files differindex f1da66aa7e5..c1480717ffc 100644 --- a/archivers/libarchive/files/doc/pdf/archive_read_set_options.3.pdf +++ b/archivers/libarchive/files/doc/pdf/archive_read_set_options.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/archive_util.3.pdf b/archivers/libarchive/files/doc/pdf/archive_util.3.pdf Binary files differindex e7b0ce14c72..3ea08605f46 100644 --- a/archivers/libarchive/files/doc/pdf/archive_util.3.pdf +++ b/archivers/libarchive/files/doc/pdf/archive_util.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/archive_write.3.pdf b/archivers/libarchive/files/doc/pdf/archive_write.3.pdf Binary files differindex 45fec5af98f..ddedac0c062 100644 --- a/archivers/libarchive/files/doc/pdf/archive_write.3.pdf +++ b/archivers/libarchive/files/doc/pdf/archive_write.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/archive_write_blocksize.3.pdf b/archivers/libarchive/files/doc/pdf/archive_write_blocksize.3.pdf Binary files differindex 377debe7731..dd4d69762b1 100644 --- a/archivers/libarchive/files/doc/pdf/archive_write_blocksize.3.pdf +++ b/archivers/libarchive/files/doc/pdf/archive_write_blocksize.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/archive_write_data.3.pdf b/archivers/libarchive/files/doc/pdf/archive_write_data.3.pdf Binary files differindex df28a1259ac..c27d764f624 100644 --- a/archivers/libarchive/files/doc/pdf/archive_write_data.3.pdf +++ b/archivers/libarchive/files/doc/pdf/archive_write_data.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/archive_write_disk.3.pdf b/archivers/libarchive/files/doc/pdf/archive_write_disk.3.pdf Binary files differindex edbbcf69ed4..a6143170ae5 100644 --- a/archivers/libarchive/files/doc/pdf/archive_write_disk.3.pdf +++ b/archivers/libarchive/files/doc/pdf/archive_write_disk.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/archive_write_filter.3.pdf b/archivers/libarchive/files/doc/pdf/archive_write_filter.3.pdf Binary files differindex cfd8847522e..eaad66579da 100644 --- a/archivers/libarchive/files/doc/pdf/archive_write_filter.3.pdf +++ b/archivers/libarchive/files/doc/pdf/archive_write_filter.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/archive_write_finish_entry.3.pdf b/archivers/libarchive/files/doc/pdf/archive_write_finish_entry.3.pdf Binary files differindex b14ae319d62..8140ea0127e 100644 --- a/archivers/libarchive/files/doc/pdf/archive_write_finish_entry.3.pdf +++ b/archivers/libarchive/files/doc/pdf/archive_write_finish_entry.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/archive_write_format.3.pdf b/archivers/libarchive/files/doc/pdf/archive_write_format.3.pdf Binary files differindex 541d41b907d..ba5073ac7a1 100644 --- a/archivers/libarchive/files/doc/pdf/archive_write_format.3.pdf +++ b/archivers/libarchive/files/doc/pdf/archive_write_format.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/archive_write_free.3.pdf b/archivers/libarchive/files/doc/pdf/archive_write_free.3.pdf Binary files differindex 23ba1d2ae70..5b4e0393f2d 100644 --- a/archivers/libarchive/files/doc/pdf/archive_write_free.3.pdf +++ b/archivers/libarchive/files/doc/pdf/archive_write_free.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/archive_write_header.3.pdf b/archivers/libarchive/files/doc/pdf/archive_write_header.3.pdf Binary files differindex be135762c79..2bec71492a9 100644 --- a/archivers/libarchive/files/doc/pdf/archive_write_header.3.pdf +++ b/archivers/libarchive/files/doc/pdf/archive_write_header.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/archive_write_new.3.pdf b/archivers/libarchive/files/doc/pdf/archive_write_new.3.pdf Binary files differindex 282b90049ad..996feb57719 100644 --- a/archivers/libarchive/files/doc/pdf/archive_write_new.3.pdf +++ b/archivers/libarchive/files/doc/pdf/archive_write_new.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/archive_write_open.3.pdf b/archivers/libarchive/files/doc/pdf/archive_write_open.3.pdf Binary files differindex 7e95664b03f..9723e6b0da0 100644 --- a/archivers/libarchive/files/doc/pdf/archive_write_open.3.pdf +++ b/archivers/libarchive/files/doc/pdf/archive_write_open.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/archive_write_set_options.3.pdf b/archivers/libarchive/files/doc/pdf/archive_write_set_options.3.pdf Binary files differindex 8befb4b464f..1d8bfb33914 100644 --- a/archivers/libarchive/files/doc/pdf/archive_write_set_options.3.pdf +++ b/archivers/libarchive/files/doc/pdf/archive_write_set_options.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/archive_write_set_passphrase.3.pdf b/archivers/libarchive/files/doc/pdf/archive_write_set_passphrase.3.pdf Binary files differindex 31a388185c0..9775e30756d 100644 --- a/archivers/libarchive/files/doc/pdf/archive_write_set_passphrase.3.pdf +++ b/archivers/libarchive/files/doc/pdf/archive_write_set_passphrase.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/bsdcpio.1.pdf b/archivers/libarchive/files/doc/pdf/bsdcpio.1.pdf Binary files differindex a5ddd70bbf0..17e73ffd872 100644 --- a/archivers/libarchive/files/doc/pdf/bsdcpio.1.pdf +++ b/archivers/libarchive/files/doc/pdf/bsdcpio.1.pdf diff --git a/archivers/libarchive/files/doc/pdf/bsdtar.1.pdf b/archivers/libarchive/files/doc/pdf/bsdtar.1.pdf Binary files differindex 42ab8273c15..c48ccc4d8f0 100644 --- a/archivers/libarchive/files/doc/pdf/bsdtar.1.pdf +++ b/archivers/libarchive/files/doc/pdf/bsdtar.1.pdf diff --git a/archivers/libarchive/files/doc/pdf/cpio.5.pdf b/archivers/libarchive/files/doc/pdf/cpio.5.pdf Binary files differindex e6f548ed00b..974420e2cc3 100644 --- a/archivers/libarchive/files/doc/pdf/cpio.5.pdf +++ b/archivers/libarchive/files/doc/pdf/cpio.5.pdf diff --git a/archivers/libarchive/files/doc/pdf/libarchive-formats.5.pdf b/archivers/libarchive/files/doc/pdf/libarchive-formats.5.pdf Binary files differindex d3609b2893a..397de7d95ff 100644 --- a/archivers/libarchive/files/doc/pdf/libarchive-formats.5.pdf +++ b/archivers/libarchive/files/doc/pdf/libarchive-formats.5.pdf diff --git a/archivers/libarchive/files/doc/pdf/libarchive.3.pdf b/archivers/libarchive/files/doc/pdf/libarchive.3.pdf Binary files differindex 5bc14642726..db0ba755625 100644 --- a/archivers/libarchive/files/doc/pdf/libarchive.3.pdf +++ b/archivers/libarchive/files/doc/pdf/libarchive.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/libarchive_changes.3.pdf b/archivers/libarchive/files/doc/pdf/libarchive_changes.3.pdf Binary files differindex 9fe90ec6406..a588be4c171 100644 --- a/archivers/libarchive/files/doc/pdf/libarchive_changes.3.pdf +++ b/archivers/libarchive/files/doc/pdf/libarchive_changes.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/libarchive_internals.3.pdf b/archivers/libarchive/files/doc/pdf/libarchive_internals.3.pdf Binary files differindex 0a2ab717362..ce74db91861 100644 --- a/archivers/libarchive/files/doc/pdf/libarchive_internals.3.pdf +++ b/archivers/libarchive/files/doc/pdf/libarchive_internals.3.pdf diff --git a/archivers/libarchive/files/doc/pdf/mtree.5.pdf b/archivers/libarchive/files/doc/pdf/mtree.5.pdf Binary files differindex 4f2eb904d05..c9e55cf752f 100644 --- a/archivers/libarchive/files/doc/pdf/mtree.5.pdf +++ b/archivers/libarchive/files/doc/pdf/mtree.5.pdf diff --git a/archivers/libarchive/files/doc/pdf/tar.5.pdf b/archivers/libarchive/files/doc/pdf/tar.5.pdf Binary files differindex 997af2acfde..5414efcd63a 100644 --- a/archivers/libarchive/files/doc/pdf/tar.5.pdf +++ b/archivers/libarchive/files/doc/pdf/tar.5.pdf diff --git a/archivers/libarchive/files/doc/text/Makefile b/archivers/libarchive/files/doc/text/Makefile index d58f7d94b4e..d5f91ef1d5e 100644 --- a/archivers/libarchive/files/doc/text/Makefile +++ b/archivers/libarchive/files/doc/text/Makefile @@ -104,15 +104,15 @@ archive_write_set_passphrase.3.txt: ../../libarchive/archive_write_set_passphras cpio.5.txt: ../../libarchive/cpio.5 nroff -mdoc ../../libarchive/cpio.5 | col -b > cpio.5.txt +libarchive-formats.5.txt: ../../libarchive/libarchive-formats.5 + nroff -mdoc ../../libarchive/libarchive-formats.5 | col -b > libarchive-formats.5.txt + libarchive.3.txt: ../../libarchive/libarchive.3 nroff -mdoc ../../libarchive/libarchive.3 | col -b > libarchive.3.txt libarchive_changes.3.txt: ../../libarchive/libarchive_changes.3 nroff -mdoc ../../libarchive/libarchive_changes.3 | col -b > libarchive_changes.3.txt -libarchive-formats.5.txt: ../../libarchive/libarchive-formats.5 - nroff -mdoc ../../libarchive/libarchive-formats.5 | col -b > libarchive-formats.5.txt - libarchive_internals.3.txt: ../../libarchive/libarchive_internals.3 nroff -mdoc ../../libarchive/libarchive_internals.3 | col -b > libarchive_internals.3.txt @@ -127,4 +127,4 @@ bsdtar.1.txt: ../../tar/bsdtar.1 bsdcpio.1.txt: ../../cpio/bsdcpio.1 nroff -mdoc ../../cpio/bsdcpio.1 | col -b > bsdcpio.1.txt -all: archive_entry.3.txt archive_entry_acl.3.txt archive_entry_linkify.3.txt archive_entry_paths.3.txt archive_entry_perms.3.txt archive_entry_stat.3.txt archive_entry_time.3.txt archive_read.3.txt archive_read_add_passphrase.3.txt archive_read_data.3.txt archive_read_disk.3.txt archive_read_extract.3.txt archive_read_filter.3.txt archive_read_format.3.txt archive_read_free.3.txt archive_read_header.3.txt archive_read_new.3.txt archive_read_open.3.txt archive_read_set_options.3.txt archive_util.3.txt archive_write.3.txt archive_write_blocksize.3.txt archive_write_data.3.txt archive_write_disk.3.txt archive_write_filter.3.txt archive_write_finish_entry.3.txt archive_write_format.3.txt archive_write_free.3.txt archive_write_header.3.txt archive_write_new.3.txt archive_write_open.3.txt archive_write_set_options.3.txt archive_write_set_passphrase.3.txt cpio.5.txt libarchive.3.txt libarchive_changes.3.txt libarchive-formats.5.txt libarchive_internals.3.txt mtree.5.txt tar.5.txt bsdtar.1.txt bsdcpio.1.txt +all: archive_entry.3.txt archive_entry_acl.3.txt archive_entry_linkify.3.txt archive_entry_paths.3.txt archive_entry_perms.3.txt archive_entry_stat.3.txt archive_entry_time.3.txt archive_read.3.txt archive_read_add_passphrase.3.txt archive_read_data.3.txt archive_read_disk.3.txt archive_read_extract.3.txt archive_read_filter.3.txt archive_read_format.3.txt archive_read_free.3.txt archive_read_header.3.txt archive_read_new.3.txt archive_read_open.3.txt archive_read_set_options.3.txt archive_util.3.txt archive_write.3.txt archive_write_blocksize.3.txt archive_write_data.3.txt archive_write_disk.3.txt archive_write_filter.3.txt archive_write_finish_entry.3.txt archive_write_format.3.txt archive_write_free.3.txt archive_write_header.3.txt archive_write_new.3.txt archive_write_open.3.txt archive_write_set_options.3.txt archive_write_set_passphrase.3.txt cpio.5.txt libarchive-formats.5.txt libarchive.3.txt libarchive_changes.3.txt libarchive_internals.3.txt mtree.5.txt tar.5.txt bsdtar.1.txt bsdcpio.1.txt diff --git a/archivers/libarchive/files/doc/text/archive_entry.3.txt b/archivers/libarchive/files/doc/text/archive_entry.3.txt index 3147f3fd8d9..e2ef91952f4 100644 --- a/archivers/libarchive/files/doc/text/archive_entry.3.txt +++ b/archivers/libarchive/files/doc/text/archive_entry.3.txt @@ -1,28 +1,28 @@ ARCHIVE_ENTRY(3) BSD Library Functions Manual ARCHIVE_ENTRY(3) -NAME - archive_entry_clear, archive_entry_clone, archive_entry_free, - archive_entry_new, — functions for managing archive entry descriptions +1mNAME0m + 1marchive_entry_clear22m, 1marchive_entry_clone22m, 1marchive_entry_free22m, + 1marchive_entry_new22m, — functions for managing archive entry descriptions -LIBRARY +1mLIBRARY0m Streaming Archive Library (libarchive, -larchive) -SYNOPSIS - #include <archive_entry.h> +1mSYNOPSIS0m + 1m#include <archive_entry.h>0m - struct archive_entry * - archive_entry_clear(struct archive_entry *); + 4mstruct24m 4marchive_entry24m 4m*0m + 1marchive_entry_clear22m(4mstruct24m 4marchive_entry24m 4m*24m); - struct archive_entry * - archive_entry_clone(struct archive_entry *); + 4mstruct24m 4marchive_entry24m 4m*0m + 1marchive_entry_clone22m(4mstruct24m 4marchive_entry24m 4m*24m); - void - archive_entry_free(struct archive_entry *); + 4mvoid0m + 1marchive_entry_free22m(4mstruct24m 4marchive_entry24m 4m*24m); - struct archive_entry * - archive_entry_new(void); + 4mstruct24m 4marchive_entry24m 4m*0m + 1marchive_entry_new22m(4mvoid24m); -DESCRIPTION +1mDESCRIPTION0m These functions create and manipulate data objects that represent entries within an archive. You can think of a struct archive_entry as a heavy- duty version of struct stat: it includes everything from struct stat plus @@ -30,21 +30,21 @@ DESCRIPTION are used by libarchive(3) to represent the metadata associated with a particular entry in an archive. - Create and Destroy - There are functions to allocate, destroy, clear, and copy archive_entry + 1mCreate and Destroy0m + There are functions to allocate, destroy, clear, and copy 4marchive_entry0m objects: - archive_entry_clear() + 1marchive_entry_clear22m() Erases the object, resetting all internal fields to the same state as a newly-created object. This is provided to allow you to quickly recycle objects without thrashing the heap. - archive_entry_clone() + 1marchive_entry_clone22m() A deep copy operation; all text fields are duplicated. - archive_entry_free() + 1marchive_entry_free22m() Releases the struct archive_entry object. - archive_entry_new() + 1marchive_entry_new22m() Allocate and return a blank struct archive_entry object. - Function groups + 1mFunction groups0m Due to high number of functions, the accessor functions can be found in man pages grouped by the purpose. @@ -55,38 +55,38 @@ DESCRIPTION archive_entry_perms(3) User, group and mode manipulation archive_entry_stat(3) Functions not in the other groups and copying - to/from struct stat. + to/from 4mstruct24m 4mstat24m. archive_entry_time(3) Time field manipulation Most of the functions set or read entries in an object. Such functions have one of the following forms: - archive_entry_set_XXXX() + 1marchive_entry_set_XXXX22m() Stores the provided data in the object. In particular, for strings, the pointer is stored, not the referenced string. - archive_entry_copy_XXXX() + 1marchive_entry_copy_XXXX22m() As above, except that the referenced data is copied into the object. - archive_entry_XXXX() + 1marchive_entry_XXXX22m() Returns the specified data. In the case of strings, a const- qualified pointer to the string is returned. String data can be set or accessed as wide character strings or normal - char strings. The functions that use wide character strings are suffixed - with _w. Note that these are different representations of the same data: + 4mchar24m strings. The functions that use wide character strings are suffixed + with 1m_w22m. Note that these are different representations of the same data: For example, if you store a narrow string and read the corresponding wide string, the object will transparently convert formats using the current locale. Similarly, if you store a wide string and then store a narrow string for the same data, the previously-set wide string will be dis‐ carded in favor of the new data. -SEE ALSO +1mSEE ALSO0m archive_entry_acl(3), archive_entry_paths(3), archive_entry_perms(3), archive_entry_time(3) libarchive(3), -HISTORY - The libarchive library first appeared in FreeBSD 5.3. +1mHISTORY0m + The 1mlibarchive 22mlibrary first appeared in FreeBSD 5.3. -AUTHORS - The libarchive library was written by Tim Kientzle <kientzle@acm.org>. +1mAUTHORS0m + The 1mlibarchive 22mlibrary was written by Tim Kientzle <kientzle@acm.org>. BSD Feburary 2, 2012 BSD diff --git a/archivers/libarchive/files/doc/text/archive_entry_acl.3.txt b/archivers/libarchive/files/doc/text/archive_entry_acl.3.txt index c415c1d3a54..53d1c1b961a 100644 --- a/archivers/libarchive/files/doc/text/archive_entry_acl.3.txt +++ b/archivers/libarchive/files/doc/text/archive_entry_acl.3.txt @@ -1,63 +1,82 @@ ARCHIVE_ENTRY_ACL(3) BSD Library Functions Manual ARCHIVE_ENTRY_ACL(3) -NAME - archive_entry_acl_add_entry, archive_entry_acl_add_entry_w, - archive_entry_acl_clear, archive_entry_acl_count, archive_entry_acl_next, - archive_entry_acl_next_w, archive_entry_acl_reset, - archive_entry_acl_text_w — functions for manipulating Access Control - Lists in archive entry descriptions - -LIBRARY +1mNAME0m + 1marchive_entry_acl_add_entry22m, 1marchive_entry_acl_add_entry_w22m, + 1marchive_entry_acl_clear22m, 1marchive_entry_acl_count22m, + 1marchive_entry_acl_from_text22m, 1marchive_entry_acl_from_text_w,0m + 1marchive_entry_acl_next22m, 1marchive_entry_acl_next_w22m, + 1marchive_entry_acl_reset22m, 1marchive_entry_acl_to_text22m, + 1marchive_entry_acl_to_text_w22m, 1marchive_entry_acl_types 22m— functions for + manipulating Access Control Lists in archive entry descriptions + +1mLIBRARY0m Streaming Archive Library (libarchive, -larchive) -SYNOPSIS - #include <archive_entry.h> +1mSYNOPSIS0m + 1m#include <archive_entry.h>0m + + 4mvoid0m + 1marchive_entry_acl_add_entry22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mint24m 4mtype24m, + 4mint24m 4mpermset24m, 4mint24m 4mtag24m, 4mint24m 4mqualifier24m, 4mconst24m 4mchar24m 4m*name24m); + + 4mvoid0m + 1marchive_entry_acl_add_entry_w22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mint24m 4mtype24m, + 4mint24m 4mpermset24m, 4mint24m 4mtag24m, 4mint24m 4mqualifier24m, 4mconst24m 4mwchar_t24m 4m*name24m); + + 4mvoid0m + 1marchive_entry_acl_clear22m(4mstruct24m 4marchive_entry24m 4m*a24m); - void - archive_entry_acl_add_entry(struct archive_entry *a, int type, - int permset, int tag, int qualifier, const char *name); + 4mint0m + 1marchive_entry_acl_count22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mint24m 4mtype24m); - void - archive_entry_acl_add_entry_w(struct archive_entry *a, int type, - int permset, int tag, int qualifier, const wchar_t *name); + 4mint0m + 1marchive_entry_acl_from_text22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mconst24m 4mchar24m 4m*text24m, + 4mint24m 4mtype24m); - void - archive_entry_acl_clear(struct archive_entry *a); + 4mint0m + 1marchive_entry_acl_from_text_w22m(4mstruct24m 4marchive_entry24m 4m*a24m, + 4mconst24m 4mwchar_t24m 4m*text24m, 4mint24m 4mtype24m); - int - archive_entry_acl_count(struct archive_entry *a, int type); + 4mint0m + 1marchive_entry_acl_next22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mint24m 4mtype24m, 4mint24m 4m*ret_type24m, + 4mint24m 4m*ret_permset24m, 4mint24m 4m*ret_tag24m, 4mint24m 4m*ret_qual24m, + 4mconst24m 4mchar24m 4m**ret_name24m); - int - archive_entry_acl_next(struct archive_entry *a, int type, int *ret_type, - int *ret_permset, int *ret_tag, int *ret_qual, - const char **ret_name); + 4mint0m + 1marchive_entry_acl_next_w22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mint24m 4mtype24m, + 4mint24m 4m*ret_type24m, 4mint24m 4m*ret_permset24m, 4mint24m 4m*ret_tag24m, 4mint24m 4m*ret_qual24m, + 4mconst24m 4mwchar_t24m 4m**ret_name24m); - int - archive_entry_acl_next_w(struct archive_entry *a, int type, - int *ret_type, int *ret_permset, int *ret_tag, int *ret_qual, - const wchar_t **ret_name); + 4mint0m + 1marchive_entry_acl_reset22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mint24m 4mtype24m); - int - archive_entry_acl_reset(struct archive_entry *a, int type); + 4mchar24m 4m*0m + 1marchive_entry_acl_to_text22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mssize_t24m 4m*len_p24m, + 4mint24m 4mflags24m); - const wchar_t * - archive_entry_acl_text_w(struct archive_entry *a, int flags); + 4mwchar_t24m 4m*0m + 1marchive_entry_acl_to_text_w22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mssize_t24m 4m*len_p24m, + 4mint24m 4mflags24m); -DESCRIPTION - An “Access Control List” is a generalisation of the classic Unix permis‐ - sion system. The ACL interface of libarchive is derived from the - POSIX.1e draft, but restricted to simplify dealing with practical imple‐ - mentations in various Operating Systems and archive formats. + 4mint0m + 1marchive_entry_acl_types22m(4mstruct24m 4marchive_entry24m 4m*a24m); - An ACL consists of a number of independent entries. Each entry specifies - the permission set as bitmask of basic permissions. Valid permissions - are: - ARCHIVE_ENTRY_ACL_EXECUTE - ARCHIVE_ENTRY_ACL_WRITE - ARCHIVE_ENTRY_ACL_READ +1mDESCRIPTION0m + The “Access Control Lists (ACLs)” extend the standard Unix perssion + model. The ACL interface of 1mlibarchive 22msupports both POSIX.1e and NFSv4 + style ACLs. Use of ACLs is restricted by various levels of ACL support in + operating systems, file systems and archive formats. + + 1mPOSIX.1e Access Control Lists0m + A POSIX.1e ACL consists of a number of independent entries. Each entry + specifies the permission set as bitmask of basic permissions. Valid per‐ + missions in the 4mpermset24m are: + ARCHIVE_ENTRY_ACL_READ (1mr22m) + ARCHIVE_ENTRY_ACL_WRITE (1mw22m) + ARCHIVE_ENTRY_ACL_EXECUTE (1mx22m) The permissions correspond to the normal Unix permissions. - The tag specifies the principal to which the permission applies. Valid + The 4mtag24m specifies the principal to which the permission applies. Valid values are: ARCHIVE_ENTRY_ACL_USER The user specified by the name field. ARCHIVE_ENTRY_ACL_USER_OBJ The owner of the file. @@ -65,71 +84,215 @@ DESCRIPTION ARCHIVE_ENTRY_ACL_GROUP_OBJ The group who owns the file. ARCHIVE_ENTRY_ACL_MASK The maximum permissions to be obtained via group permissions. - ARCHIVE_ENTRY_ACL_OTHER Any principal who doesn't have a user - or group entry. + ARCHIVE_ENTRY_ACL_OTHER Any principal who is not file owner or + a member of the owning group. + The principals ARCHIVE_ENTRY_ACL_USER_OBJ, ARCHIVE_ENTRY_ACL_GROUP_OBJ and ARCHIVE_ENTRY_ACL_OTHER are equivalent to user, group and other in the classic Unix permission model and specify non-extended ACL entries. - All files have an access ACL (ARCHIVE_ENTRY_ACL_TYPE_ACCESS). This spec‐ - ifies the permissions required for access to the file itself. Directo‐ - ries have an additional ACL (ARCHIVE_ENTRY_ACL_TYPE_DEFAULT), which con‐ - trols the initial access ACL for newly created directory entries. + All files with have an access ACL (ARCHIVE_ENTRY_ACL_TYPE_ACCESS). This + specifies the permissions required for access to the file itself. Direc‐ + tories have an additional ACL (ARCHIVE_ENTRY_ACL_TYPE_DEFAULT), which + controls the initial access ACL for newly created directory entries. + + 1mNFSv4 Access Control Lists0m + A NFSv4 ACL consists of multiple individual entries called Access Control + Entries (ACEs). + + There are four possible types of a NFSv4 ACE: + ARCHIVE_ENTRY_ACL_TYPE_ALLOW Allow principal to perform actions + requiring given permissions. + ARCHIVE_ENTRY_ACL_TYPE_DENY Prevent principal from performing + actions requiring given permissions. + ARCHIVE_ENTRY_ACL_TYPE_AUDIT Log access attempts by principal which + require given permissions. + ARCHIVE_ENTRY_ACL_TYPE_ALARM Trigger a system alarm on access + attempts by principal which require + given permissions. + + The 4mtag24m specifies the principal to which the permission applies. Valid + values are: + ARCHIVE_ENTRY_ACL_USER The user specified by the name field. + ARCHIVE_ENTRY_ACL_USER_OBJ The owner of the file. + ARCHIVE_ENTRY_ACL_GROUP The group specied by the name field. + ARCHIVE_ENTRY_ACL_GROUP_OBJ The group who owns the file. + ARCHIVE_ENTRY_ACL_EVERYONE Any principal who is not file owner or + a member of the owning group. + + Entries with the ARCHIVE_ENTRY_ACL_USER or ARCHIVE_ENTRY_ACL_GROUP tag + store the user and group name in the 4mname24m string and optionally the user + or group ID in the 4mqualifier24m integer. + + NFSv4 ACE permissions and flags are stored in the same 4mpermset24m bitfield. + Some permissions share the same constant and permission character but + have different effect on directories than on files. The following ACE + permissions are supported: + ARCHIVE_ENTRY_ACL_READ_DATA (1mr22m) + Read data (file). + ARCHIVE_ENTRY_ACL_LIST_DIRECTORY (1mr22m) + List entries (directory). + ARCHIVE_ENTRY_ACL_WRITE_DATA (1mw22m) + Write data (file). + ARCHIVE_ENTRY_ACL_ADD_FILE (1mw22m) + Create files (directory). + ARCHIVE_ENTRY_ACL_EXECUTE (1mx22m) + Execute file or change into a directory. + ARCHIVE_ENTRY_ACL_APPEND_DATA (1mp22m) + Append data (file). + ARCHIVE_ENTRY_ACL_ADD_SUBDIRECTORY (1mp22m) + Create subdirectories (directory). + ARCHIVE_ENTRY_ACL_DELETE_CHILD (1mD22m) + Remove files and subdirectories inside a directory. + ARCHIVE_ENTRY_ACL_DELETE (1md22m) + Remove file or directory. + ARCHIVE_ENTRY_ACL_READ_ATTRIBUTES (1ma22m) + Read file or directory attributes. + ARCHIVE_ENTRY_ACL_WRITE_ATTRIBUTES (1mA22m) + Write file or directory attributes. + ARCHIVE_ENTRY_ACL_READ_NAMED_ATTRS (1mR22m) + Read named file or directory attributes. + ARCHIVE_ENTRY_ACL_WRITE_NAMED_ATTRS (1mW22m) + Write named file or directory attributes. + ARCHIVE_ENTRY_ACL_READ_ACL (1mc22m) + Read file or directory ACL. + ARCHIVE_ENTRY_ACL_WRITE_ACL (1mC22m) + Write file or directory ACL. + ARCHIVE_ENTRY_ACL_WRITE_OWNER (1mo22m) + Change owner of a file or directory. + ARCHIVE_ENTRY_ACL_SYNCHRONIZE (1ms22m) + Use synchronous I/O. - archive_entry_acl_add_entry() and archive_entry_acl_add_entry_w() add a + The following NFSv4 ACL inheritance flags are supported: + ARCHIVE_ENTRY_ACL_ENTRY_FILE_INHERIT (1mf22m) + Inherit parent directory ACE to files. + ARCHIVE_ENTRY_ACL_ENTRY_DIRECTORY_INHERIT (1md22m) + Inherit parent directory ACE to subdirectories. + ARCHIVE_ENTRY_ACL_ENTRY_INHERIT_ONLY (1mi22m) + Only inherit, do not apply the permission on the directory + itself. + ARCHIVE_ENTRY_ACL_ENTRY_NO_PROPAGATE_INHERIT (1mn22m) + Do not propagate inherit flags. Only first-level entries + inherit ACLs. + ARCHIVE_ENTRY_ACL_ENTRY_SUCCESSFUL_ACCESS (1mS22m) + Trigger alarm or audit on succesful access. + ARCHIVE_ENTRY_ACL_ENTRY_FAILED_ACCESS (1mF22m) + Trigger alarm or audit on failed access. + ARCHIVE_ENTRY_ACL_ENTRY_INHERITED (1mI22m) + Mark that ACE was inherited. + + 1mFunctions0m + 1marchive_entry_acl_add_entry22m() and 1marchive_entry_acl_add_entry_w22m() add a single ACL entry. For the access ACL and non-extended principals, the - classic Unix permissions are updated. + classic Unix permissions are updated. An archive enry cannot contain both + POSIX.1e and NFSv4 ACL entries. - archive_entry_acl_clear() removes all ACL entries and resets the enumera‐ + 1marchive_entry_acl_clear22m() removes all ACL entries and resets the enumera‐ tion pointer. - archive_entry_acl_count() counts the ACL entries that have the given type - mask. type can be the bitwise-or of ARCHIVE_ENTRY_ACL_TYPE_ACCESS and - ARCHIVE_ENTRY_ACL_TYPE_DEFAULT. If ARCHIVE_ENTRY_ACL_TYPE_ACCESS is + 1marchive_entry_acl_count22m() counts the ACL entries that have the given type + mask. 4mtype24m can be the bitwise-or of + ARCHIVE_ENTRY_ACL_TYPE_ACCESS + ARCHIVE_ENTRY_ACL_TYPE_DEFAULT + for POSIX.1e ACLs and + ARCHIVE_ENTRY_ACL_TYPE_ALLOW + ARCHIVE_ENTRY_ACL_TYPE_DENY + ARCHIVE_ENTRY_ACL_TYPE_AUDIT + ARCHIVE_ENTRY_ACL_TYPE_ALARM + for NFSv4 ACLs. For POSIX.1e ACLs if ARCHIVE_ENTRY_ACL_TYPE_ACCESS is included and at least one extended ACL entry is found, the three non- extened ACLs are added. - archive_entry_acl_next() and archive_entry_acl_next_w() return the next + 1marchive_entry_acl_from_text22m() and 1marchive_entry_acl_from_text_w22m() add new + (or merge with existing) ACL entries from (wide) text. The argument 4mtype0m + may take one of the following values: + ARCHIVE_ENTRY_ACL_TYPE_ACCESS + ARCHIVE_ENTRY_ACL_TYPE_DEFAULT + ARCHIVE_ENTRY_ACL_TYPE_NFS4 + Supports all formats that can be created with 1marchive_entry_acl_to_text22m() + or respective 1marchive_entry_acl_to_text_w22m(). Existing ACL entries are + preserved. To get a clean new ACL from text 1marchive_entry_acl_clear22m() + must be called first. Entries prefixed with “default:” are treated as + ARCHIVE_ENTRY_ACL_TYPE_DEFAULT unless 4mtype24m is + ARCHIVE_ENTRY_ACL_TYPE_NFS4. Invalid entries, non-parseable ACL entries + and entries beginning with the ‘#’ character (comments) are skipped. + + 1marchive_entry_acl_next22m() and 1marchive_entry_acl_next_w22m() return the next entry of the ACL list. This functions may only be called after - archive_entry_acl_reset() has indicated the presence of extended ACL + 1marchive_entry_acl_reset22m() has indicated the presence of extended ACL entries. - archive_entry_acl_reset() prepare reading the list of ACL entries with - archive_entry_acl_next() or archive_entry_acl_next_w(). The function + 1marchive_entry_acl_reset22m() prepare reading the list of ACL entries with + 1marchive_entry_acl_next22m() or 1marchive_entry_acl_next_w22m(). The function returns either 0, if no non-extended ACLs are found. In this case, the access permissions should be obtained by archive_entry_mode(3) or set using chmod(2). Otherwise, the function returns the same value as - archive_entry_acl_count(). - - archive_entry_acl_text_w() converts the ACL entries for the given type - mask into a wide string. In addition to the normal type flags, - ARCHIVE_ENTRY_ACL_STYLE_EXTRA_ID and ARCHIVE_ENTRY_ACL_STYLE_MARK_DEFAULT - can be specified to further customize the result. The returned long - string is valid until the next call to archive_entry_acl_clear(), - archive_entry_acl_add_entry(), archive_entry_acl_add_entry_w() or - archive_entry_acl_text_w(). - -RETURN VALUES - archive_entry_acl_count() and archive_entry_acl_reset() returns the num‐ - ber of ACL entries that match the given type mask. If the type mask - includes ARCHIVE_ENTRY_ACL_TYPE_ACCESS and at least one extended ACL - entry exists, the three classic Unix permissions are counted. - - archive_entry_acl_next() and archive_entry_acl_next_w() return ARCHIVE_OK + 1marchive_entry_acl_count22m(). + + 1marchive_entry_acl_to_text22m() and 1marchive_entry_acl_to_text_w22m() convert the + ACL entries for the given type into a (wide) string of ACL entries sepa‐ + rated by newline. If the the pointer 4mlen_p24m is not NULL, then the function + shall return the length of the string (not including the NULL terminator) + in the location pointed to by 4mlen_p24m. The 4mflag24m argument is a bitwise-or. + + The following flags are effective only on POSIX.1e ACL: + ARCHIVE_ENTRY_ACL_TYPE_ACCESS + Output access ACLs. + ARCHIVE_ENTRY_ACL_TYPE_DEFAULT + Output POSIX.1e default ACLs. + ARCHIVE_ENTRY_ACL_STYLE_MARK_DEFAULT + Prefix each default ACL entry with the word “default:”. + ARCHIVE_ENTRY_ACL_STYLE_SOLARIS + The mask and other ACLs don not contain a double colon. + + The following flags are effecive only on NFSv4 ACL: + ARCHIVE_ENTRY_ACL_STYLE_COMPACT + Do not output minus characters for unset permissions and + flags in NFSv4 ACL permission and flag fields. + + The following flags are effective on both POSIX.1e and NFSv4 ACL: + ARCHIVE_ENTRY_ACL_STYLE_EXTRA_ID + Add an additional colon-separated field containing the user + or group id. + ARCHIVE_ENTRY_ACL_STYLE_SEPARATOR_COMMA + Separate ACL entries with comma instead of newline. + + If the archive entry contains NFSv4 ACLs, all types of NFSv4 ACLs are + returned. It the entry contains POSIX.1e ACLs and none of the flags + ARCHIVE_ENTRY_ACL_TYPE_ACCESS or ARCHIVE_ENTRY_ACL_TYPE_DEFAULT are spec‐ + ified, both access and default entries are returned and default entries + are prefixed with “default:”. + + 1marchive_entry_acl_types22m() get ACL entry types contained in an archive + entry's ACL. As POSIX.1e and NFSv4 ACL entries cannot be mixed, this + function is a very efficient way to detect if an ACL already contains + POSIX.1e or NFSv4 ACL entries. + +1mRETURN VALUES0m + 1marchive_entry_acl_count22m() and 1marchive_entry_acl_reset22m() returns the num‐ + ber of ACL entries that match the given type mask. For POSIX.1e ACLS if + the type mask includes ARCHIVE_ENTRY_ACL_TYPE_ACCESS and at least one + extended ACL entry exists, the three classic Unix permissions are + counted. + + 1marchive_entry_acl_from_text22m() and 1marchive_entry_acl_from_text_w22m() return + ARCHIVE_OK if all entries were successfully parsed and ARCHIVE_WARN if + one or more entries were invalid or non-parseable. + + 1marchive_entry_acl_next22m() and 1marchive_entry_acl_next_w22m() return ARCHIVE_OK on success, ARCHIVE_EOF if no more ACL entries exist and ARCHIVE_WARN if - archive_entry_acl_reset() has not been called first. + 1marchive_entry_acl_reset22m() has not been called first. + + 1marchive_entry_acl_to_text22m() returns a string representing the ACL entries + matching the given type and flags on success or NULL on error. - archive_entry_text_w() returns a wide string representation of the ACL - entrise matching the given type mask. The returned long string is valid - until the next call to archive_entry_acl_clear(), - archive_entry_acl_add_entry(), archive_entry_acl_add_entry_w() or - archive_entry_acl_text_w(). + 1marchive_entry_acl_to_text_w22m() returns a wide string representing the ACL + entries matching the given type and flags on success or NULL on error. -SEE ALSO - archive_entry(3) libarchive(3), + 1marchive_entry_acl_types22m() returns a bitmask of ACL entry types or 0 if + archive entry has no ACL entries. -BUGS - ARCHIVE_ENTRY_ACL_STYLE_EXTRA_ID and ARCHIVE_ENTRY_ACL_STYLE_MARK_DEFAULT - are not documented. +1mSEE ALSO0m + archive_entry(3), libarchive(3) -BSD February 2, 2012 BSD +BSD February 15, 2017 BSD diff --git a/archivers/libarchive/files/doc/text/archive_entry_linkify.3.txt b/archivers/libarchive/files/doc/text/archive_entry_linkify.3.txt index 62eb5226bf0..14ed564920a 100644 --- a/archivers/libarchive/files/doc/text/archive_entry_linkify.3.txt +++ b/archivers/libarchive/files/doc/text/archive_entry_linkify.3.txt @@ -1,31 +1,31 @@ ARCHIVE_ENTRY_LINKIFY(3) BSD Library Functions Manual ARCHIVE_ENTRY_LINKIFY(3) -NAME - archive_entry_linkresolver, archive_entry_linkresolver_new, - archive_entry_linkresolver_set_strategy, archive_entry_linkresolver_free, - archive_entry_linkify — hardlink resolver functions +1mNAME0m + 1marchive_entry_linkresolver22m, 1marchive_entry_linkresolver_new22m, + 1marchive_entry_linkresolver_set_strategy22m, 1marchive_entry_linkresolver_free22m, + 1marchive_entry_linkify 22m— hardlink resolver functions -LIBRARY +1mLIBRARY0m Streaming Archive Library (libarchive, -larchive) -SYNOPSIS - #include <archive_entry.h> +1mSYNOPSIS0m + 1m#include <archive_entry.h>0m - struct archive_entry_linkresolver * - archive_entry_linkresolver_new(void); + 4mstruct24m 4marchive_entry_linkresolver24m 4m*0m + 1marchive_entry_linkresolver_new22m(4mvoid24m); - void - archive_entry_linkresolver_set_strategy(struct archive_entry_linkresolver *resolver, - int format); + 4mvoid0m + 1marchive_entry_linkresolver_set_strategy22m(4mstruct24m 4marchive_entry_linkresolver24m 4m*resolver24m, + 4mint24m 4mformat24m); - void - archive_entry_linkresolver_free(struct archive_entry_linkresolver *resolver); + 4mvoid0m + 1marchive_entry_linkresolver_free22m(4mstruct24m 4marchive_entry_linkresolver24m 4m*resolver24m); - void - archive_entry_linkify(struct archive_entry_linkresolver *resolver, - struct archive_entry **entry, struct archive_entry **sparse); + 4mvoid0m + 1marchive_entry_linkify22m(4mstruct24m 4marchive_entry_linkresolver24m 4m*resolver24m, + 4mstruct24m 4marchive_entry24m 4m**entry24m, 4mstruct24m 4marchive_entry24m 4m**sparse24m); -DESCRIPTION +1mDESCRIPTION0m Programs that want to create archives have to deal with hardlinks. Hardlinks are handled in different ways by the archive formats. The basic strategies are: @@ -37,77 +37,77 @@ DESCRIPTION 3. Store the body the last time an inode is seen (new cpio). - The archive_entry_linkresolver functions help by providing a unified + The 1marchive_entry_linkresolver 22mfunctions help by providing a unified interface and handling the complexity behind the scene. - The archive_entry_linkresolver functions assume that archive_entry + The 1marchive_entry_linkresolver 22mfunctions assume that 4marchive_entry0m instances have valid nlinks, inode and device values. The inode and device value is used to match entries. The nlinks value is used to determined if all references have been found and if the internal refer‐ ences can be recycled. - The archive_entry_linkresolver_new() function allocates a new link + The 1marchive_entry_linkresolver_new22m() function allocates a new link resolver. The instance can be freed using - archive_entry_linkresolver_free(). All deferred entries are flushed and + 1marchive_entry_linkresolver_free22m(). All deferred entries are flushed and the internal storage is freed. - The archive_entry_linkresolver_set_strategy() function selects the opti‐ + The 1marchive_entry_linkresolver_set_strategy22m() function selects the opti‐ mal hardlink strategy for the given format. The format code can be obtained from archive_format(3). The function can be called more than once, but it is recommended to flush all deferred entries first. - The archive_entry_linkify() function is the core of - archive_entry_linkresolver. The entry() argument points to the - archive_entry that should be written. Depending on the strategy one of + The 1marchive_entry_linkify22m() function is the core of + 1marchive_entry_linkresolver22m. The 1mentry22m() argument points to the + 4marchive_entry24m that should be written. Depending on the strategy one of the following actions is taken: - 1. For the simple archive formats *entry is left unmodified and *sparse + 1. For the simple archive formats 4m*entry24m is left unmodified and 4m*sparse0m is set to NULL. - 2. For tar like archive formats, *sparse is set to NULL. If *entry is - NULL, no action is taken. If the hardlink count of *entry is larger + 2. For tar like archive formats, 4m*sparse24m is set to NULL. If 4m*entry24m is + NULL, no action is taken. If the hardlink count of 4m*entry24m is larger than 1 and the file type is a regular file or symbolic link, the internal list is searched for a matching inode. If such an inode is - found, the link count is decremented and the file size of *entry is + found, the link count is decremented and the file size of 4m*entry24m is set to 0 to notify that no body should be written. If no such inode is found, a copy of the entry is added to the internal cache with a link count reduced by one. - 3. For new cpio like archive formats a value for *entry of NULL is used - to flush deferred entries. In that case *entry is set to an arbi‐ + 3. For new cpio like archive formats a value for 4m*entry24m of NULL is used + to flush deferred entries. In that case 4m*entry24m is set to an arbi‐ trary deferred entry and the entry itself is removed from the inter‐ - nal list. If the internal list is empty, *entry is set to NULL. In - either case, *sparse is set to NULL and the function returns. If - the hardlink count of *entry is one or the file type is a directory - or device, *sparse is set to NULL and no further action is taken. + nal list. If the internal list is empty, 4m*entry24m is set to NULL. In + either case, 4m*sparse24m is set to NULL and the function returns. If + the hardlink count of 4m*entry24m is one or the file type is a directory + or device, 4m*sparse24m is set to NULL and no further action is taken. Otherwise, the internal list is searched for a matching inode. If such an inode is not found, the entry is added to the internal list, - both *entry and *sparse are set to NULL and the function returns. + both 4m*entry24m and 4m*sparse24m are set to NULL and the function returns. If such an inode is found, the link count is decremented. If it remains larger than one, the existing entry on the internal list is - swapped with *entry after retaining the link count. The existing - entry is returned in *entry. If the link count reached one, the new + swapped with 4m*entry24m after retaining the link count. The existing + entry is returned in 4m*entry24m. If the link count reached one, the new entry is also removed from the internal list and returned in - *sparse. Otherwise *sparse is set to NULL. + 4m*sparse24m. Otherwise 4m*sparse24m is set to NULL. The general usage is therefore: - 1. For each new archive entry, call archive_entry_linkify(). + 1. For each new archive entry, call 1marchive_entry_linkify22m(). 2. Keep in mind that the entries returned may have a size of 0 now. - 3. If *entry is not NULL, archive it. + 3. If 4m*entry24m is not NULL, archive it. - 4. If *sparse is not NULL, archive it. + 4. If 4m*sparse24m is not NULL, archive it. 5. After all entries have been written to disk, call - archive_entry_linkify() with *entry set to NULL and archive the + 1marchive_entry_linkify22m() with 4m*entry24m set to NULL and archive the returned entry as long as it is not NULL. -RETURN VALUES - archive_entry_linkresolver_new() returns NULL on malloc(3) failures. +1mRETURN VALUES0m + 1marchive_entry_linkresolver_new22m() returns NULL on malloc(3) failures. -SEE ALSO +1mSEE ALSO0m archive_entry(3) BSD February 2, 2012 BSD diff --git a/archivers/libarchive/files/doc/text/archive_entry_paths.3.txt b/archivers/libarchive/files/doc/text/archive_entry_paths.3.txt index 9dfd8d1cbff..5fab9487f9f 100644 --- a/archivers/libarchive/files/doc/text/archive_entry_paths.3.txt +++ b/archivers/libarchive/files/doc/text/archive_entry_paths.3.txt @@ -1,106 +1,106 @@ ARCHIVE_ENTRY_PATHS(3) BSD Library Functions Manual ARCHIVE_ENTRY_PATHS(3) -NAME - archive_entry_hardlink, archive_entry_hardlink_w, - archive_entry_set_hardlink, archive_entry_copy_hardlink, - archive_entry_copy_hardlink_w, archve_entry_update_hardlink_utf8, - archive_entry_set_link, archive_entry_copy_link, - archive_entry_copy_link_w, archve_entry_update_link_utf8, - archive_entry_pathname, archive_entry_pathname_w, - archive_entry_set_pathname, archive_entry_copy_pathname, - archive_entry_copy_pathname_w, archve_entry_update_pathname_utf8, - archive_entry_sourcepath, archive_entry_copy_sourcepath, - archive_entry_symlink, archive_entry_symlink_w, - archive_entry_set_symlink, archive_entry_copy_symlink, - archive_entry_copy_symlink_w, archve_entry_update_symlink_utf8 — func‐ +1mNAME0m + 1marchive_entry_hardlink22m, 1marchive_entry_hardlink_w22m, + 1marchive_entry_set_hardlink22m, 1marchive_entry_copy_hardlink22m, + 1marchive_entry_copy_hardlink_w22m, 1marchve_entry_update_hardlink_utf822m, + 1marchive_entry_set_link22m, 1marchive_entry_copy_link22m, + 1marchive_entry_copy_link_w22m, 1marchve_entry_update_link_utf822m, + 1marchive_entry_pathname22m, 1marchive_entry_pathname_w22m, + 1marchive_entry_set_pathname22m, 1marchive_entry_copy_pathname22m, + 1marchive_entry_copy_pathname_w22m, 1marchve_entry_update_pathname_utf822m, + 1marchive_entry_sourcepath22m, 1marchive_entry_copy_sourcepath22m, + 1marchive_entry_symlink, archive_entry_symlink_w,0m + 1marchive_entry_set_symlink22m, 1marchive_entry_copy_symlink22m, + 1marchive_entry_copy_symlink_w22m, 1marchve_entry_update_symlink_utf8 22m— func‐ tions for manipulating path names in archive entry descriptions -LIBRARY +1mLIBRARY0m Streaming Archive Library (libarchive, -larchive) -SYNOPSIS - #include <archive_entry.h> +1mSYNOPSIS0m + 1m#include <archive_entry.h>0m - const char * - archive_entry_hardlink(struct archive_entry *a); + 4mconst24m 4mchar24m 4m*0m + 1marchive_entry_hardlink22m(4mstruct24m 4marchive_entry24m 4m*a24m); - const wchar_t * - archive_entry_hardlink_w(struct archive_entry *a); + 4mconst24m 4mwchar_t24m 4m*0m + 1marchive_entry_hardlink_w22m(4mstruct24m 4marchive_entry24m 4m*a24m); - void - archive_entry_set_hardlink(struct archive_entry *a, const char *path); + 4mvoid0m + 1marchive_entry_set_hardlink22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mconst24m 4mchar24m 4m*path24m); - void - archive_entry_copy_hardlink(struct archive_entry *a, const char *path); + 4mvoid0m + 1marchive_entry_copy_hardlink22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mconst24m 4mchar24m 4m*path24m); - void - archive_entry_copy_hardlink_w(struct archive_entry *a, const, wchar_t, - *path"); + 4mvoid0m + 1marchive_entry_copy_hardlink_w22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mconst24m, 4mwchar_t24m, + 4m*path"24m); - int - archive_entry_update_hardlink_utf8(struct archive_entry *a, - const char *path); + 4mint0m + 1marchive_entry_update_hardlink_utf822m(4mstruct24m 4marchive_entry24m 4m*a24m, + 4mconst24m 4mchar24m 4m*path24m); - void - archive_entry_set_link(struct archive_entry *a, const char *path); + 4mvoid0m + 1marchive_entry_set_link22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mconst24m 4mchar24m 4m*path24m); - void - archive_entry_copy_link(struct archive_entry *a, const char *path); + 4mvoid0m + 1marchive_entry_copy_link22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mconst24m 4mchar24m 4m*path24m); - void - archive_entry_copy_link_w(struct archive_entry *a, const wchar_t *path); + 4mvoid0m + 1marchive_entry_copy_link_w22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mconst24m 4mwchar_t24m 4m*path24m); - int - archive_entry_update_link_utf8(struct archive_entry *a, - const char *path); + 4mint0m + 1marchive_entry_update_link_utf822m(4mstruct24m 4marchive_entry24m 4m*a24m, + 4mconst24m 4mchar24m 4m*path24m); - const char * - archive_entry_pathname(struct archive_entry *a); + 4mconst24m 4mchar24m 4m*0m + 1marchive_entry_pathname22m(4mstruct24m 4marchive_entry24m 4m*a24m); - const wchar_t * - archive_entry_pathname_w(struct archive_entry *a); + 4mconst24m 4mwchar_t24m 4m*0m + 1marchive_entry_pathname_w22m(4mstruct24m 4marchive_entry24m 4m*a24m); - void - archive_entry_set_pathname(struct archive_entry *a, const char *path); + 4mvoid0m + 1marchive_entry_set_pathname22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mconst24m 4mchar24m 4m*path24m); - void - archive_entry_copy_pathname(struct archive_entry *a, const char *path); + 4mvoid0m + 1marchive_entry_copy_pathname22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mconst24m 4mchar24m 4m*path24m); - void - archive_entry_copy_pathname_w(struct archive_entry *a, - const wchar_t *path); + 4mvoid0m + 1marchive_entry_copy_pathname_w22m(4mstruct24m 4marchive_entry24m 4m*a24m, + 4mconst24m 4mwchar_t24m 4m*path24m); - int - archive_entry_update_pathname_utf8(struct archive_entry *a, - const char *path); + 4mint0m + 1marchive_entry_update_pathname_utf822m(4mstruct24m 4marchive_entry24m 4m*a24m, + 4mconst24m 4mchar24m 4m*path24m); - const char * - archive_entry_sourcepath(struct archive_entry *a); + 4mconst24m 4mchar24m 4m*0m + 1marchive_entry_sourcepath22m(4mstruct24m 4marchive_entry24m 4m*a24m); - void - archive_entry_copy_sourcepath(struct archive_entry *a, const char *path); + 4mvoid0m + 1marchive_entry_copy_sourcepath22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mconst24m 4mchar24m 4m*path24m); - const char * - archive_entry_symlink(struct archive_entry *a); + 4mconst24m 4mchar24m 4m*0m + 1marchive_entry_symlink22m(4mstruct24m 4marchive_entry24m 4m*a24m); - const wchar_t * - archive_entry_symlink_w(struct archive_entry *a); + 4mconst24m 4mwchar_t24m 4m*0m + 1marchive_entry_symlink_w22m(4mstruct24m 4marchive_entry24m 4m*a24m); - void - archive_entry_set_symlink(struct archive_entry *a, const char *path); + 4mvoid0m + 1marchive_entry_set_symlink22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mconst24m 4mchar24m 4m*path24m); - void - archive_entry_copy_symlink(struct archive_entry *a, const char *path); + 4mvoid0m + 1marchive_entry_copy_symlink22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mconst24m 4mchar24m 4m*path24m); - void - archive_entry_copy_symlink_w(struct archive_entry *a, - const wchar_t *path); + 4mvoid0m + 1marchive_entry_copy_symlink_w22m(4mstruct24m 4marchive_entry24m 4m*a24m, + 4mconst24m 4mwchar_t24m 4m*path24m); - int - archive_entry_update_symlink_utf8(struct archive_entry *a, - const char *path); + 4mint0m + 1marchive_entry_update_symlink_utf822m(4mstruct24m 4marchive_entry24m 4m*a24m, + 4mconst24m 4mchar24m 4m*path24m); -DESCRIPTION +1mDESCRIPTION0m Path names supported by archive_entry(3): hardlink Destination of the hardlink. link Update only. For a symlink, update the destination. Other‐ @@ -115,7 +115,7 @@ DESCRIPTION char * Multibyte strings in the current locale. wchar_t * Wide character strings in the current locale. The accessor - functions are named XXX_w(). + functions are named 1mXXX_w22m(). UTF-8 Unicode strings encoded as UTF-8. This are convience func‐ tions to update both the multibyte and wide character strings @@ -128,9 +128,9 @@ DESCRIPTION is a convience function for conditionally setting hardlink or symlink destination. It doesn't have a corresponding get accessor function. - archive_entry_set_XXX() is an alias for archive_entry_copy_XXX(). + 1marchive_entry_set_XXX22m() is an alias for 1marchive_entry_copy_XXX22m(). -SEE ALSO +1mSEE ALSO0m archive_entry(3) libarchive(3), BSD February 2, 2012 BSD diff --git a/archivers/libarchive/files/doc/text/archive_entry_perms.3.txt b/archivers/libarchive/files/doc/text/archive_entry_perms.3.txt index bc74b05e316..24c0e84d84f 100644 --- a/archivers/libarchive/files/doc/text/archive_entry_perms.3.txt +++ b/archivers/libarchive/files/doc/text/archive_entry_perms.3.txt @@ -1,131 +1,131 @@ ARCHIVE_ENTRY_PERMS(3) BSD Library Functions Manual ARCHIVE_ENTRY_PERMS(3) -NAME - archive_entry_gid, archive_entry_set_gid, archive_entry_uid, - archive_entry_set_uid, archive_entry_perm, archive_entry_set_perm, - archive_entry_strmode, archive_entry_uname archive_entry_uname_w - archive_entry_set_uname, archive_entry_copy_uname, - archive_entry_copy_uname_w, archive_entry_update_uname_utf8, - archive_entry_gname, archive_entry_gname_w, archive_entry_set_gname, - archive_entry_copy_gname, archive_entry_copy_gname_w, - archive_entry_update_gname_utf8, archive_entry_fflags, - archive_entry_fflags_text, archive_entry_set_fflags, - archive_entry_copy_fflags_text, archive_entry_copy_fflags_text_w — func‐ +1mNAME0m + 1marchive_entry_gid22m, 1marchive_entry_set_gid22m, 1marchive_entry_uid22m, + 1marchive_entry_set_uid22m, 1marchive_entry_perm22m, 1marchive_entry_set_perm22m, + 1marchive_entry_strmode22m, 1marchive_entry_uname archive_entry_uname_w0m + 1marchive_entry_set_uname22m, 1marchive_entry_copy_uname22m, + 1marchive_entry_copy_uname_w22m, 1marchive_entry_update_uname_utf822m, + 1marchive_entry_gname22m, 1marchive_entry_gname_w22m, 1marchive_entry_set_gname22m, + 1marchive_entry_copy_gname22m, 1marchive_entry_copy_gname_w22m, + 1marchive_entry_update_gname_utf822m, 1marchive_entry_fflags22m, + 1marchive_entry_fflags_text22m, 1marchive_entry_set_fflags22m, + 1marchive_entry_copy_fflags_text22m, 1marchive_entry_copy_fflags_text_w 22m— func‐ tions for manipulating ownership and permissions in archive entry descriptions -LIBRARY +1mLIBRARY0m Streaming Archive Library (libarchive, -larchive) -SYNOPSIS - #include <archive_entry.h> +1mSYNOPSIS0m + 1m#include <archive_entry.h>0m - gid_t - archive_entry_gid(struct archive_entry *a); + 4mgid_t0m + 1marchive_entry_gid22m(4mstruct24m 4marchive_entry24m 4m*a24m); - void - archive_entry_set_gid(struct archive_entry *a, gid_t gid); + 4mvoid0m + 1marchive_entry_set_gid22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mgid_t24m 4mgid24m); - uid_t - archive_entry_uid(struct archive_entry *a); + 4muid_t0m + 1marchive_entry_uid22m(4mstruct24m 4marchive_entry24m 4m*a24m); - void - archive_entry_set_uid(struct archive_entry *a, uid_t uid); + 4mvoid0m + 1marchive_entry_set_uid22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4muid_t24m 4muid24m); - mode_t - archive_entry_perm(struct archive_entry *a); + 4mmode_t0m + 1marchive_entry_perm22m(4mstruct24m 4marchive_entry24m 4m*a24m); - void - archive_entry_set_perm(struct archive_entry *a, mode_t mode); + 4mvoid0m + 1marchive_entry_set_perm22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mmode_t24m 4mmode24m); - const char * - archive_entry_strmode(struct archive_entry *a); + 4mconst24m 4mchar24m 4m*0m + 1marchive_entry_strmode22m(4mstruct24m 4marchive_entry24m 4m*a24m); - const char * - archive_entry_gname(struct archive_entry *a); + 4mconst24m 4mchar24m 4m*0m + 1marchive_entry_gname22m(4mstruct24m 4marchive_entry24m 4m*a24m); - const wchar_t * - archive_entry_gname_w(struct archive_entry *a); + 4mconst24m 4mwchar_t24m 4m*0m + 1marchive_entry_gname_w22m(4mstruct24m 4marchive_entry24m 4m*a24m); - void - archive_entry_set_gname(struct archive_entry *a, const char *a); + 4mvoid0m + 1marchive_entry_set_gname22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mconst24m 4mchar24m 4m*a24m); - void - archive_entry_copy_gname(struct archive_entry *a, const char *name); + 4mvoid0m + 1marchive_entry_copy_gname22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mconst24m 4mchar24m 4m*name24m); - void - archive_entry_copy_gname_w(struct archive_entry *a, const wchar_t *name); + 4mvoid0m + 1marchive_entry_copy_gname_w22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mconst24m 4mwchar_t24m 4m*name24m); - int - archive_entry_update_gname_utf8(struct archive_entry *a, - const char *name); + 4mint0m + 1marchive_entry_update_gname_utf822m(4mstruct24m 4marchive_entry24m 4m*a24m, + 4mconst24m 4mchar24m 4m*name24m); - const char * - archive_entry_uname(struct archive_entry *a); + 4mconst24m 4mchar24m 4m*0m + 1marchive_entry_uname22m(4mstruct24m 4marchive_entry24m 4m*a24m); - const wchar_t * - archive_entry_uname_w(struct archive_entry *a); + 4mconst24m 4mwchar_t24m 4m*0m + 1marchive_entry_uname_w22m(4mstruct24m 4marchive_entry24m 4m*a24m); - void - archive_entry_set_uname(struct archive_entry *a, const char *name); + 4mvoid0m + 1marchive_entry_set_uname22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mconst24m 4mchar24m 4m*name24m); - void - archive_entry_copy_uname(struct archive_entry *a, const char *name); + 4mvoid0m + 1marchive_entry_copy_uname22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mconst24m 4mchar24m 4m*name24m); - void - archive_entry_copy_uname_w(struct archive_entry *a, const wchar_t *name); + 4mvoid0m + 1marchive_entry_copy_uname_w22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mconst24m 4mwchar_t24m 4m*name24m); - int - archive_entry_update_uname_utf8(struct archive_entry *a, - const char *name); + 4mint0m + 1marchive_entry_update_uname_utf822m(4mstruct24m 4marchive_entry24m 4m*a24m, + 4mconst24m 4mchar24m 4m*name24m); - void - archive_entry_fflags(struct archive_entry *a, unsigned long *set_bits, - unsigned long *clear_bits); + 4mvoid0m + 1marchive_entry_fflags22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4munsigned24m 4mlong24m 4m*set_bits24m, + 4munsigned24m 4mlong24m 4m*clear_bits24m); - const char * - archive_entry_fflags_text(struct archive_entry *a); + 4mconst24m 4mchar24m 4m*0m + 1marchive_entry_fflags_text22m(4mstruct24m 4marchive_entry24m 4m*a24m); - void - archive_entry_set_fflags(struct archive_entry *a, unsigned long set_bits, - unsigned long clear_bits); + 4mvoid0m + 1marchive_entry_set_fflags22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4munsigned24m 4mlong24m 4mset_bits24m, + 4munsigned24m 4mlong24m 4mclear_bits24m); - const char * - archive_entry_copy_fflags_text(struct archive_entry *a, - const char *text); + 4mconst24m 4mchar24m 4m*0m + 1marchive_entry_copy_fflags_text22m(4mstruct24m 4marchive_entry24m 4m*a24m, + 4mconst24m 4mchar24m 4m*text24m); - const wchar_t * - archive_entry_copy_fflags_text_w(struct archive_entry *a, - const wchar_t *text); + 4mconst24m 4mwchar_t24m 4m*0m + 1marchive_entry_copy_fflags_text_w22m(4mstruct24m 4marchive_entry24m 4m*a24m, + 4mconst24m 4mwchar_t24m 4m*text24m); -DESCRIPTION - User id, group id and mode - The functions archive_entry_uid(), archive_entry_gid(), and - archive_entry_perm() can be used to extract the user id, group id and +1mDESCRIPTION0m + 1mUser id, group id and mode0m + The functions 1marchive_entry_uid22m(), 1marchive_entry_gid22m(), and + 1marchive_entry_perm22m() can be used to extract the user id, group id and permission from the given entry. The corresponding functions - archive_entry_set_uid(), archive_entry_set_gid(), and - archive_entry_set_perm() store the given user id, group id and permission + 1marchive_entry_set_uid22m(), 1marchive_entry_set_gid22m(), and + 1marchive_entry_set_perm22m() store the given user id, group id and permission in the entry. The permission is also set as side effect of calling - archive_entry_set_mode(). + 1marchive_entry_set_mode22m(). - archive_entry_strmode() returns a string representation of the permission + 1marchive_entry_strmode22m() returns a string representation of the permission as used by the long mode of ls(1). - User and group name + 1mUser and group name0m User and group names can be provided in one of three different ways: char * Multibyte strings in the current locale. wchar_t * Wide character strings in the current locale. The accessor - functions are named XXX_w(). + functions are named 1mXXX_w22m(). UTF-8 Unicode strings encoded as UTF-8. This are convience func‐ tions to update both the multibyte and wide character strings at the same time. - archive_entry_set_XXX() is an alias for archive_entry_copy_XXX(). + 1marchive_entry_set_XXX22m() is an alias for 1marchive_entry_copy_XXX22m(). - File Flags + 1mFile Flags0m File flags are transparently converted between a bitmap representation and a textual format. For example, if you set the bitmap and ask for text, the library will build a canonical text format. However, if you @@ -147,7 +147,7 @@ DESCRIPTION bits that are not meaningful on the current platform will be ignored. The canonical text format is a comma-separated list of flag names. The - archive_entry_copy_fflags_text() and archive_entry_copy_fflags_text_w() + 1marchive_entry_copy_fflags_text22m() and 1marchive_entry_copy_fflags_text_w22m() functions parse the provided text and sets the internal bitmap values. This is a platform-specific operation; names that are not meaningful on the current platform will be ignored. The function returns a pointer to @@ -157,12 +157,12 @@ DESCRIPTION reflect every name that is recognized. (In particular, this differs from strtofflags(3), which stops parsing at the first unrecognized name.) -SEE ALSO +1mSEE ALSO0m archive_entry(3), archive_entry_acl(3), archive_read_disk(3), archive_write_disk(3) libarchive(3), -BUGS - The platform types uid_t and gid_t are often 16 or 32 bit wide. In this +1mBUGS0m + The platform types 4muid_t24m and 4mgid_t24m are often 16 or 32 bit wide. In this case it is possible that the ids can not be correctly restored from ar‐ chives and get truncated. diff --git a/archivers/libarchive/files/doc/text/archive_entry_stat.3.txt b/archivers/libarchive/files/doc/text/archive_entry_stat.3.txt index 32270ed43a7..00276602440 100644 --- a/archivers/libarchive/files/doc/text/archive_entry_stat.3.txt +++ b/archivers/libarchive/files/doc/text/archive_entry_stat.3.txt @@ -1,132 +1,132 @@ ARCHIVE_ENTRY_STAT(3) BSD Library Functions Manual ARCHIVE_ENTRY_STAT(3) -NAME - archive_entry_stat, archive_entry_copy_stat, archive_entry_filetype, - archive_entry_set_filetype, archive_entry_mode, archive_entry_set_mode, - archive_entry_size, archive_entry_size_is_set, archive_entry_set_size, - archive_entry_unset_size, archive_entry_dev, archive_entry_set_dev, - archive_entry_dev_is_set, archive_entry_devmajor, - archive_entry_set_devmajor, archive_entry_devminor, - archive_entry_set_devminor, archive_entry_ino, archive_entry_set_ino, - archive_entry_ino_is_set, archive_entry_ino64, archive_entry_set_ino64, - archive_entry_nlink, archive_entry_rdev, archive_entry_set_rdev, - archive_entry_rdevmajor, archive_entry_set_rdevmajor, - archive_entry_rdevminor, archive_entry_set_rdevminor, — accessor func‐ +1mNAME0m + 1marchive_entry_stat22m, 1marchive_entry_copy_stat22m, 1marchive_entry_filetype22m, + 1marchive_entry_set_filetype22m, 1marchive_entry_mode22m, 1marchive_entry_set_mode22m, + 1marchive_entry_size22m, 1marchive_entry_size_is_set22m, 1marchive_entry_set_size22m, + 1marchive_entry_unset_size22m, 1marchive_entry_dev22m, 1marchive_entry_set_dev22m, + 1marchive_entry_dev_is_set22m, 1marchive_entry_devmajor22m, + 1marchive_entry_set_devmajor22m, 1marchive_entry_devminor22m, + 1marchive_entry_set_devminor22m, 1marchive_entry_ino22m, 1marchive_entry_set_ino22m, + 1marchive_entry_ino_is_set22m, 1marchive_entry_ino6422m, 1marchive_entry_set_ino6422m, + 1marchive_entry_nlink22m, 1marchive_entry_rdev22m, 1marchive_entry_set_rdev22m, + 1marchive_entry_rdevmajor22m, 1marchive_entry_set_rdevmajor22m, + 1marchive_entry_rdevminor22m, 1marchive_entry_set_rdevminor22m, — accessor func‐ tions for manipulating archive entry descriptions -LIBRARY +1mLIBRARY0m Streaming Archive Library (libarchive, -larchive) -SYNOPSIS - #include <archive_entry.h> +1mSYNOPSIS0m + 1m#include <archive_entry.h>0m - const struct stat * - archive_entry_stat(struct archive_entry *a); + 4mconst24m 4mstruct24m 4mstat24m 4m*0m + 1marchive_entry_stat22m(4mstruct24m 4marchive_entry24m 4m*a24m); - void - archive_entry_copy_stat(struct archive_entry *a, const struct stat *sb); + 4mvoid0m + 1marchive_entry_copy_stat22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mconst24m 4mstruct24m 4mstat24m 4m*sb24m); - mode_t - archive_entry_filetype(struct archive_entry *a); + 4mmode_t0m + 1marchive_entry_filetype22m(4mstruct24m 4marchive_entry24m 4m*a24m); - void - archive_entry_set_filetype(struct archive_entry *a, unsigned int type); + 4mvoid0m + 1marchive_entry_set_filetype22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4munsigned24m 4mint24m 4mtype24m); - mode_t - archive_entry_mode(struct archive_entry *a); + 4mmode_t0m + 1marchive_entry_mode22m(4mstruct24m 4marchive_entry24m 4m*a24m); - void - archive_entry_set_mode(struct archive_entry *a, mode_t mode); + 4mvoid0m + 1marchive_entry_set_mode22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mmode_t24m 4mmode24m); - int64_t - archive_entry_size(struct archive_entry *a); + 4mint64_t0m + 1marchive_entry_size22m(4mstruct24m 4marchive_entry24m 4m*a24m); - int - archive_entry_size_is_set(struct archive_entry *a); + 4mint0m + 1marchive_entry_size_is_set22m(4mstruct24m 4marchive_entry24m 4m*a24m); - void - archive_entry_set_size(struct archive_entry *a, int64_t size); + 4mvoid0m + 1marchive_entry_set_size22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mint64_t24m 4msize24m); - void - archive_entry_unset_size(struct archive_entry *a); + 4mvoid0m + 1marchive_entry_unset_size22m(4mstruct24m 4marchive_entry24m 4m*a24m); - dev_t - archive_entry_dev(struct archive_entry *a); + 4mdev_t0m + 1marchive_entry_dev22m(4mstruct24m 4marchive_entry24m 4m*a24m); - void - archive_entry_set_dev(struct archive_entry *a, dev_t dev); + 4mvoid0m + 1marchive_entry_set_dev22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mdev_t24m 4mdev24m); - int - archive_entry_dev_is_set(struct archive_entry *a); + 4mint0m + 1marchive_entry_dev_is_set22m(4mstruct24m 4marchive_entry24m 4m*a24m); - dev_t - archive_entry_devmajor(struct archive_entry *a); + 4mdev_t0m + 1marchive_entry_devmajor22m(4mstruct24m 4marchive_entry24m 4m*a24m); - void - archive_entry_set_devmajor(struct archive_entry *a, dev_t major); + 4mvoid0m + 1marchive_entry_set_devmajor22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mdev_t24m 4mmajor24m); - dev_t - archive_entry_devminor(struct archive_entry *a); + 4mdev_t0m + 1marchive_entry_devminor22m(4mstruct24m 4marchive_entry24m 4m*a24m); - void - archive_entry_set_devminor(struct archive_entry *a, dev_t minor); + 4mvoid0m + 1marchive_entry_set_devminor22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mdev_t24m 4mminor24m); - ino_t - archive_entry_ino(struct archive_entry *a); + 4mino_t0m + 1marchive_entry_ino22m(4mstruct24m 4marchive_entry24m 4m*a24m); - void - archive_entry_set_ino(struct archive_entry *a, unsigned long ino); + 4mvoid0m + 1marchive_entry_set_ino22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4munsigned24m 4mlong24m 4mino24m); - int - archive_entry_ino_is_set(struct archive_entry *a); + 4mint0m + 1marchive_entry_ino_is_set22m(4mstruct24m 4marchive_entry24m 4m*a24m); - int64_t - archive_entry_ino64(struct archive_entry *a); + 4mint64_t0m + 1marchive_entry_ino6422m(4mstruct24m 4marchive_entry24m 4m*a24m); - void - archive_entry_set_ino64(struct archive_entry *a, int64_t ino); + 4mvoid0m + 1marchive_entry_set_ino6422m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mint64_t24m 4mino24m); - unsigned int - archive_entry_nlink(struct archive_entry *a); + 4munsigned24m 4mint0m + 1marchive_entry_nlink22m(4mstruct24m 4marchive_entry24m 4m*a24m); - void - archive_entry_set_nlink(struct archive_entry *a, unsigned int count); + 4mvoid0m + 1marchive_entry_set_nlink22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4munsigned24m 4mint24m 4mcount24m); - dev_t - archive_entry_rdev(struct archive_entry *a); + 4mdev_t0m + 1marchive_entry_rdev22m(4mstruct24m 4marchive_entry24m 4m*a24m); - dev_t - archive_entry_rdevmajor(struct archive_entry *a); + 4mdev_t0m + 1marchive_entry_rdevmajor22m(4mstruct24m 4marchive_entry24m 4m*a24m); - dev_t - archive_entry_rdevminor(struct archive_entry *a); + 4mdev_t0m + 1marchive_entry_rdevminor22m(4mstruct24m 4marchive_entry24m 4m*a24m); - void - archive_entry_set_rdev(struct archive_entry *a, dev_t dev); + 4mvoid0m + 1marchive_entry_set_rdev22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mdev_t24m 4mdev24m); - void - archive_entry_set_rdevmajor(struct archive_entry *a, dev_t major); + 4mvoid0m + 1marchive_entry_set_rdevmajor22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mdev_t24m 4mmajor24m); - void - archive_entry_set_rdevminor(struct archive_entry *a, dev_t minor); + 4mvoid0m + 1marchive_entry_set_rdevminor22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mdev_t24m 4mminor24m); -DESCRIPTION - Copying to and from struct stat - The function archive_entry_stat() converts the various fields stored in +1mDESCRIPTION0m + 1mCopying to and from 4m22mstruct24m 4mstat0m + The function 1marchive_entry_stat22m() converts the various fields stored in the archive entry to the format used by stat(2). The return value - remains valid until either archive_entry_clear() or archive_entry_free() + remains valid until either 1marchive_entry_clear22m() or 1marchive_entry_free22m() is called. It is not affected by calls to the set accessor functions. - It currently sets the following values in struct stat: st_atime, - st_ctime, st_dev, st_gid, st_ino, st_mode, st_mtime, st_nlink, st_rdev, - st_size, st_uid. In addition, st_birthtime and high-precision informa‐ + It currently sets the following values in 4mstruct24m 4mstat24m: 4mst_atime24m, + 4mst_ctime24m, 4mst_dev24m, 4mst_gid24m, 4mst_ino24m, 4mst_mode24m, 4mst_mtime24m, 4mst_nlink24m, 4mst_rdev24m, + 4mst_size24m, 4mst_uid24m. In addition, 4mst_birthtime24m and high-precision informa‐ tion for time-related fields will be included on platforms that support it. - The function archive_entry_copy_stat() copies fields from the platform's - struct stat. Fields not provided by struct stat are unchanged. + The function 1marchive_entry_copy_stat22m() copies fields from the platform's + 4mstruct24m 4mstat24m. Fields not provided by 4mstruct24m 4mstat24m are unchanged. - General accessor functions - The functions archive_entry_filetype() and archive_entry_set_filetype() + 1mGeneral accessor functions0m + The functions 1marchive_entry_filetype22m() and 1marchive_entry_set_filetype22m() get respectively set the filetype. The file type is one of the following constants: AE_IFREG Regular file @@ -140,50 +140,50 @@ DESCRIPTION stat(2) may have different numeric values from the corresponding con‐ stants above. - The functions archive_entry_mode() and archive_entry_set_mode() get/set a + The functions 1marchive_entry_mode22m() and 1marchive_entry_set_mode22m() get/set a combination of file type and permissions and provide the equivalent of - st_mode. Use of archive_entry_filetype() and archive_entry_perm() for - getting and archive_entry_set_filetype() and archive_entry_set_perm() for + 4mst_mode24m. Use of 1marchive_entry_filetype22m() and 1marchive_entry_perm22m() for + getting and 1marchive_entry_set_filetype22m() and 1marchive_entry_set_perm22m() for setting is recommended. - The function archive_entry_size() returns the file size, if it has been - set, and 0 otherwise. archive_entry_size() can be used to query that - status. archive_entry_set_size() and archive_entry_unset_size() set and + The function 1marchive_entry_size22m() returns the file size, if it has been + set, and 0 otherwise. 1marchive_entry_size22m() can be used to query that + status. 1marchive_entry_set_size22m() and 1marchive_entry_unset_size22m() set and unset the size, respectively. The number of references (hardlinks) can be obtained by calling - archive_entry_nlinks() and set with archive_entry_set_nlinks(). + 1marchive_entry_nlinks22m() and set with 1marchive_entry_set_nlinks22m(). - Identifying unique files - The functions archive_entry_dev() and archive_entry_ino64() are used by + 1mIdentifying unique files0m + The functions 1marchive_entry_dev22m() and 1marchive_entry_ino6422m() are used by archive_entry_linkify(3) to find hardlinks. The pair of device and inode is supposed to identify hardlinked files. The device major and minor number can be obtained independently using - archive_entry_devmajor() and archive_entry_devminor(). The device can be - set either via archive_entry_set_dev() or by the combination of major and - minor number using archive_entry_set_devmajor() and - archive_entry_set_devminor(). - - The inode number can be obtained using archive_entry_ino(). This is a - legacy interface that uses the platform ino_t, which may be very small. - To set the inode number, archive_entry_set_ino64() is the preferred + 1marchive_entry_devmajor22m() and 1marchive_entry_devminor22m(). The device can be + set either via 1marchive_entry_set_dev22m() or by the combination of major and + minor number using 1marchive_entry_set_devmajor22m() and + 1marchive_entry_set_devminor22m(). + + The inode number can be obtained using 1marchive_entry_ino22m(). This is a + legacy interface that uses the platform 4mino_t24m, which may be very small. + To set the inode number, 1marchive_entry_set_ino6422m() is the preferred interface. - Accessor functions for block and character devices + 1mAccessor functions for block and character devices0m Block and character devices are characterised either using a device num‐ ber or a pair of major and minor number. The combined device number can - be obtained with archive_device_rdev() and set with - archive_device_set_rdev(). The major and minor numbers are accessed by - archive_device_rdevmajor(), archive_device_rdevminor() - archive_device_set_rdevmajor() and archive_device_set_rdevminor(). + be obtained with 1marchive_device_rdev22m() and set with + 1marchive_device_set_rdev22m(). The major and minor numbers are accessed by + 1marchive_device_rdevmajor22m(), 1marchive_device_rdevminor22m() + 1marchive_device_set_rdevmajor22m() and 1marchive_device_set_rdevminor22m(). The process of splitting the combined device number into major and minor number and the reverse process of combing them differs between platforms. Some archive formats use the combined form, while other formats use the split form. -SEE ALSO +1mSEE ALSO0m archive_entry_acl(3), archive_entry_perms(3), archive_entry_time(3), libarchive(3), stat(2) diff --git a/archivers/libarchive/files/doc/text/archive_entry_time.3.txt b/archivers/libarchive/files/doc/text/archive_entry_time.3.txt index 227a7aa7792..2a63a371b37 100644 --- a/archivers/libarchive/files/doc/text/archive_entry_time.3.txt +++ b/archivers/libarchive/files/doc/text/archive_entry_time.3.txt @@ -1,91 +1,91 @@ ARCHIVE_ENTRY_TIME(3) BSD Library Functions Manual ARCHIVE_ENTRY_TIME(3) -NAME - archive_entry_atime, archive_entry_atime_nsec, - archive_entry_atime_is_set, archive_entry_set_atime, - archive_entry_unset_atime, archive_entry_birthtime, - archive_entry_birthtime_nsec, archive_entry_birthtime_is_set, - archive_entry_set_birthtime, archive_entry_unset_birthtime, - archive_entry_ctime, archive_entry_ctime_nsec, - archive_entry_ctime_is_set, archive_entry_set_ctime, - archive_entry_unset_ctime, archive_entry_mtime, archive_entry_mtime_nsec, - archive_entry_mtime_is_set, archive_entry_set_mtime, - archive_entry_unset_mtime, — functions for manipulating times in archive +1mNAME0m + 1marchive_entry_atime22m, 1marchive_entry_atime_nsec22m, + 1marchive_entry_atime_is_set22m, 1marchive_entry_set_atime22m, + 1marchive_entry_unset_atime22m, 1marchive_entry_birthtime22m, + 1marchive_entry_birthtime_nsec22m, 1marchive_entry_birthtime_is_set22m, + 1marchive_entry_set_birthtime22m, 1marchive_entry_unset_birthtime22m, + 1marchive_entry_ctime22m, 1marchive_entry_ctime_nsec22m, + 1marchive_entry_ctime_is_set22m, 1marchive_entry_set_ctime22m, + 1marchive_entry_unset_ctime22m, 1marchive_entry_mtime22m, 1marchive_entry_mtime_nsec22m, + 1marchive_entry_mtime_is_set22m, 1marchive_entry_set_mtime22m, + 1marchive_entry_unset_mtime22m, — functions for manipulating times in archive entry descriptions -LIBRARY +1mLIBRARY0m Streaming Archive Library (libarchive, -larchive) -SYNOPSIS - #include <archive_entry.h> +1mSYNOPSIS0m + 1m#include <archive_entry.h>0m - time_t - archive_entry_atime(struct archive_entry *a); + 4mtime_t0m + 1marchive_entry_atime22m(4mstruct24m 4marchive_entry24m 4m*a24m); - long - archive_entry_atime_nsec(struct archive_entry *a); + 4mlong0m + 1marchive_entry_atime_nsec22m(4mstruct24m 4marchive_entry24m 4m*a24m); - int - archive_entry_atime_is_set(struct archive_entry *a); + 4mint0m + 1marchive_entry_atime_is_set22m(4mstruct24m 4marchive_entry24m 4m*a24m); - void - archive_entry_set_atime(struct archive_entry *a, time_t sec, - long nanosec); + 4mvoid0m + 1marchive_entry_set_atime22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mtime_t24m 4msec24m, + 4mlong24m 4mnanosec24m); - void - archive_entry_unset_atime(struct archive_entry *a); + 4mvoid0m + 1marchive_entry_unset_atime22m(4mstruct24m 4marchive_entry24m 4m*a24m); - time_t - archive_entry_birthtime(struct archive_entry *a); + 4mtime_t0m + 1marchive_entry_birthtime22m(4mstruct24m 4marchive_entry24m 4m*a24m); - long - archive_entry_birthtime_nsec(struct archive_entry *a); + 4mlong0m + 1marchive_entry_birthtime_nsec22m(4mstruct24m 4marchive_entry24m 4m*a24m); - int - archive_entry_birthtime_is_set(struct archive_entry *a); + 4mint0m + 1marchive_entry_birthtime_is_set22m(4mstruct24m 4marchive_entry24m 4m*a24m); - void - archive_entry_set_birthtime(struct archive_entry *a, time_t sec, - long nanosec); + 4mvoid0m + 1marchive_entry_set_birthtime22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mtime_t24m 4msec24m, + 4mlong24m 4mnanosec24m); - void - archive_entry_unset_birthtime(struct archive_entry *a); + 4mvoid0m + 1marchive_entry_unset_birthtime22m(4mstruct24m 4marchive_entry24m 4m*a24m); - time_t - archive_entry_ctime(struct archive_entry *a); + 4mtime_t0m + 1marchive_entry_ctime22m(4mstruct24m 4marchive_entry24m 4m*a24m); - long - archive_entry_ctime_nsec(struct archive_entry *a); + 4mlong0m + 1marchive_entry_ctime_nsec22m(4mstruct24m 4marchive_entry24m 4m*a24m); - int - archive_entry_ctime_is_set(struct archive_entry *a); + 4mint0m + 1marchive_entry_ctime_is_set22m(4mstruct24m 4marchive_entry24m 4m*a24m); - void - archive_entry_set_ctime(struct archive_entry *a, time_t sec, - long nanosec); + 4mvoid0m + 1marchive_entry_set_ctime22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mtime_t24m 4msec24m, + 4mlong24m 4mnanosec24m); - void - archive_entry_unset_ctime(struct archive_entry *a); + 4mvoid0m + 1marchive_entry_unset_ctime22m(4mstruct24m 4marchive_entry24m 4m*a24m); - time_t - archive_entry_mtime(struct archive_entry *a); + 4mtime_t0m + 1marchive_entry_mtime22m(4mstruct24m 4marchive_entry24m 4m*a24m); - long - archive_entry_mtime_nsec(struct archive_entry *a); + 4mlong0m + 1marchive_entry_mtime_nsec22m(4mstruct24m 4marchive_entry24m 4m*a24m); - int - archive_entry_mtime_is_set(struct archive_entry *a); + 4mint0m + 1marchive_entry_mtime_is_set22m(4mstruct24m 4marchive_entry24m 4m*a24m); - void - archive_entry_set_mtime(struct archive_entry *a, time_t sec, - long nanosec); + 4mvoid0m + 1marchive_entry_set_mtime22m(4mstruct24m 4marchive_entry24m 4m*a24m, 4mtime_t24m 4msec24m, + 4mlong24m 4mnanosec24m); - void - archive_entry_unset_mtime(struct archive_entry *a); + 4mvoid0m + 1marchive_entry_unset_mtime22m(4mstruct24m 4marchive_entry24m 4m*a24m); -DESCRIPTION +1mDESCRIPTION0m These functions create and manipulate the time fields in an - archive_entry. Supported time fields are atime (access time), birthtime + 4marchive_entry24m. Supported time fields are atime (access time), birthtime (creation time), ctime (last time an inode property was changed) and mtime (modification time). @@ -93,18 +93,18 @@ DESCRIPTION truncated automatically depending on the archive format (for archiving) or the filesystem capabilities (for restoring). - All timestamp fields are optional. The XXX_unset() functions can be used + All timestamp fields are optional. The 1mXXX_unset22m() functions can be used to mark the corresponding field as missing. The current state can be - queried using XXX_is_set(). Unset time fields have a second and nanosec‐ + queried using 1mXXX_is_set22m(). Unset time fields have a second and nanosec‐ ond field of 0. -SEE ALSO +1mSEE ALSO0m archive_entry(3) libarchive(3), -HISTORY - The libarchive library first appeared in FreeBSD 5.3. +1mHISTORY0m + The 1mlibarchive 22mlibrary first appeared in FreeBSD 5.3. -AUTHORS - The libarchive library was written by Tim Kientzle <kientzle@acm.org>. +1mAUTHORS0m + The 1mlibarchive 22mlibrary was written by Tim Kientzle <kientzle@acm.org>. BSD February 2, 2012 BSD diff --git a/archivers/libarchive/files/doc/text/archive_read.3.txt b/archivers/libarchive/files/doc/text/archive_read.3.txt index 3421d88041e..8de8ffff33f 100644 --- a/archivers/libarchive/files/doc/text/archive_read.3.txt +++ b/archivers/libarchive/files/doc/text/archive_read.3.txt @@ -1,86 +1,86 @@ ARCHIVE_READ(3) BSD Library Functions Manual ARCHIVE_READ(3) -NAME - archive_read — functions for reading streaming archives +1mNAME0m + 1marchive_read 22m— functions for reading streaming archives -LIBRARY +1mLIBRARY0m Streaming Archive Library (libarchive, -larchive) -SYNOPSIS - #include <archive.h> +1mSYNOPSIS0m + 1m#include <archive.h>0m -DESCRIPTION +1mDESCRIPTION0m These functions provide a complete API for reading streaming archives. The general process is to first create the struct archive object, set options, initialize the reader, iterate over the archive headers and associated data, then close the archive and release all resources. - Create archive object + 1mCreate archive object0m See archive_read_new(3). To read an archive, you must first obtain an initialized struct archive - object from archive_read_new(). + object from 1marchive_read_new22m(). - Enable filters and formats + 1mEnable filters and formats0m See archive_read_filter(3) and archive_read_format(3). You can then modify this object for the desired operations with the vari‐ - ous archive_read_set_XXX() and archive_read_support_XXX() functions. In + ous 1marchive_read_set_XXX22m() and 1marchive_read_support_XXX22m() functions. In particular, you will need to invoke appropriate - archive_read_support_XXX() functions to enable the corresponding compres‐ + 1marchive_read_support_XXX22m() functions to enable the corresponding compres‐ sion and format support. Note that these latter functions perform two distinct operations: they cause the corresponding support code to be linked into your program, and they enable the corresponding auto-detect code. Unless you have specific constraints, you will generally want to - invoke archive_read_support_filter_all() and - archive_read_support_format_all() to enable auto-detect for all formats + invoke 1marchive_read_support_filter_all22m() and + 1marchive_read_support_format_all22m() to enable auto-detect for all formats and compression types currently supported by the library. - Set options + 1mSet options0m See archive_read_set_options(3). - Open archive + 1mOpen archive0m See archive_read_open(3). Once you have prepared the struct archive object, you call - archive_read_open() to actually open the archive and prepare it for read‐ + 1marchive_read_open22m() to actually open the archive and prepare it for read‐ ing. There are several variants of this function; the most basic expects you to provide pointers to several functions that can provide blocks of bytes from the archive. There are convenience forms that allow you to - specify a filename, file descriptor, FILE * object, or a block of memory + specify a filename, file descriptor, 4mFILE24m 4m*24m object, or a block of memory from which to read the archive data. Note that the core library makes no assumptions about the size of the blocks read; callback functions are free to read whatever block size is most appropriate for the medium. - Consume archive + 1mConsume archive0m See archive_read_header(3), archive_read_data(3) and archive_read_extract(3). Each archive entry consists of a header followed by a certain amount of - data. You can obtain the next header with archive_read_next_header(), + data. You can obtain the next header with 1marchive_read_next_header22m(), which returns a pointer to an struct archive_entry structure with infor‐ mation about the current archive element. If the entry is a regular file, then the header will be followed by the file data. You can use - archive_read_data() (which works much like the read(2) system call) to - read this data from the archive, or archive_read_data_block() which pro‐ + 1marchive_read_data22m() (which works much like the read(2) system call) to + read this data from the archive, or 1marchive_read_data_block22m() which pro‐ vides a slightly more efficient interface. You may prefer to use the - higher-level archive_read_data_skip(), which reads and discards the data - for this entry, archive_read_data_into_fd(), which copies the data to the - provided file descriptor, or archive_read_extract(), which recreates the + higher-level 1marchive_read_data_skip22m(), which reads and discards the data + for this entry, 1marchive_read_data_into_fd22m(), which copies the data to the + provided file descriptor, or 1marchive_read_extract22m(), which recreates the specified entry on disk and copies data from the archive. In particular, - note that archive_read_extract() uses the struct archive_entry structure + note that 1marchive_read_extract22m() uses the struct archive_entry structure that you provide it, which may differ from the entry just read from the archive. In particular, many applications will want to override the pathname, file permissions, or ownership. - Release resources + 1mRelease resources0m See archive_read_free(3). Once you have finished reading data from the archive, you should call - archive_read_close() to close the archive, then call archive_read_free() + 1marchive_read_close22m() to close the archive, then call 1marchive_read_free22m() to release all resources, including all memory allocated by the library. -EXAMPLE +1mEXAMPLE0m The following illustrates basic usage of the library. In this example, the callback functions are simply wrappers around the standard open(2), read(2), and close(2) system calls. @@ -134,19 +134,19 @@ EXAMPLE return (ARCHIVE_OK); } -SEE ALSO +1mSEE ALSO0m tar(1), libarchive(3), archive_read_new(3), archive_read_data(3), archive_read_extract(3), archive_read_filter(3), archive_read_format(3), archive_read_header(3), archive_read_open(3), archive_read_set_options(3), archive_util(3), tar(5) -HISTORY - The libarchive library first appeared in FreeBSD 5.3. +1mHISTORY0m + The 1mlibarchive 22mlibrary first appeared in FreeBSD 5.3. -AUTHORS - The libarchive library was written by Tim Kientzle <kientzle@acm.org>. +1mAUTHORS0m + The 1mlibarchive 22mlibrary was written by Tim Kientzle <kientzle@acm.org>. -BUGS +1mBUGS0m Many traditional archiver programs treat empty files as valid empty ar‐ chives. For example, many implementations of tar(1) allow you to append entries to an empty file. Of course, it is impossible to determine the diff --git a/archivers/libarchive/files/doc/text/archive_read_add_passphrase.3.txt b/archivers/libarchive/files/doc/text/archive_read_add_passphrase.3.txt index 745ada7c9b4..7e90d7368ed 100644 --- a/archivers/libarchive/files/doc/text/archive_read_add_passphrase.3.txt +++ b/archivers/libarchive/files/doc/text/archive_read_add_passphrase.3.txt @@ -1,35 +1,35 @@ ARCHIVE_READ_ADD_PASS... BSD Library Functions Manual ARCHIVE_READ_ADD_PASS... -NAME - archive_read_add_passphrase, archive_read_set_passphrase_callback — func‐ +1mNAME0m + 1marchive_read_add_passphrase22m, 1marchive_read_set_passphrase_callback 22m— func‐ tions for reading encrypted archives -LIBRARY +1mLIBRARY0m Streaming Archive Library (libarchive, -larchive) -SYNOPSIS - #include <archive.h> +1mSYNOPSIS0m + 1m#include <archive.h>0m - int - archive_read_add_passphrase(struct archive *, const char *passphrase); + 4mint0m + 1marchive_read_add_passphrase22m(4mstruct24m 4marchive24m 4m*24m, 4mconst24m 4mchar24m 4m*passphrase24m); - int - archive_read_set_passphrase_callback(struct archive *, void *client_data, - archive_passphrase_callback *); + 4mint0m + 1marchive_read_set_passphrase_callback22m(4mstruct24m 4marchive24m 4m*24m, 4mvoid24m 4m*client_data24m, + 4marchive_passphrase_callback24m 4m*24m); -DESCRIPTION - archive_read_add_passphrase() +1mDESCRIPTION0m + 1marchive_read_add_passphrase22m() Register passphrases for reading an encryption archive. If - passphrase is NULL or empty, this function will do nothing and - ARCHIVE_FAILED will be returned. Otherwise, ARCHIVE_OK will be + 4mpassphrase24m is NULL or empty, this function will do nothing and + 1mARCHIVE_FAILED 22mwill be returned. Otherwise, 1mARCHIVE_OK 22mwill be returned. - archive_read_set_passphrase_callback() + 1marchive_read_set_passphrase_callback22m() Register callback function that will be invoked to get a passphrase for decrption after trying all passphrases registered - by the archive_read_add_passphrase() function failed. + by the 1marchive_read_add_passphrase22m() function failed. -SEE ALSO +1mSEE ALSO0m tar(1), libarchive(3), archive_read(3), archive_read_set_options(3) BSD September 14, 2014 BSD diff --git a/archivers/libarchive/files/doc/text/archive_read_data.3.txt b/archivers/libarchive/files/doc/text/archive_read_data.3.txt index 499b0c5fc10..05d30dfa4b2 100644 --- a/archivers/libarchive/files/doc/text/archive_read_data.3.txt +++ b/archivers/libarchive/files/doc/text/archive_read_data.3.txt @@ -1,71 +1,71 @@ ARCHIVE_READ_DATA(3) BSD Library Functions Manual ARCHIVE_READ_DATA(3) -NAME - archive_read_data archive_read_data_block, archive_read_data_skip, - archive_read_data_into_fd — functions for reading streaming archives +1mNAME0m + 1marchive_read_data archive_read_data_block22m, 1marchive_read_data_skip22m, + 1marchive_read_data_into_fd 22m— functions for reading streaming archives -LIBRARY +1mLIBRARY0m Streaming Archive Library (libarchive, -larchive) -SYNOPSIS - #include <archive.h> +1mSYNOPSIS0m + 1m#include <archive.h>0m - la_ssize_t - archive_read_data(struct archive *, void *buff, size_t len); + 4mla_ssize_t0m + 1marchive_read_data22m(4mstruct24m 4marchive24m 4m*24m, 4mvoid24m 4m*buff24m, 4msize_t24m 4mlen24m); - int - archive_read_data_block(struct archive *, const void **buff, size_t *len, - off_t *offset); + 4mint0m + 1marchive_read_data_block22m(4mstruct24m 4marchive24m 4m*24m, 4mconst24m 4mvoid24m 4m**buff24m, 4msize_t24m 4m*len24m, + 4moff_t24m 4m*offset24m); - int - archive_read_data_skip(struct archive *); + 4mint0m + 1marchive_read_data_skip22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_read_data_into_fd(struct archive *, int fd); + 4mint0m + 1marchive_read_data_into_fd22m(4mstruct24m 4marchive24m 4m*24m, 4mint24m 4mfd24m); -DESCRIPTION - archive_read_data() +1mDESCRIPTION0m + 1marchive_read_data22m() Read data associated with the header just read. Internally, this - is a convenience function that calls archive_read_data_block() + is a convenience function that calls 1marchive_read_data_block22m() and fills any gaps with nulls so that callers see a single con‐ tinuous stream of data. - archive_read_data_block() + 1marchive_read_data_block22m() Return the next available block of data for this entry. Unlike - archive_read_data(), the archive_read_data_block() function + 1marchive_read_data22m(), the 1marchive_read_data_block22m() function avoids copying data and allows you to correctly handle sparse files, as supported by some archive formats. The library guaran‐ tees that offsets will increase and that blocks will not overlap. Note that the blocks returned from this function can be much larger than the block size read from disk, due to compression and internal buffer optimizations. - archive_read_data_skip() + 1marchive_read_data_skip22m() A convenience function that repeatedly calls - archive_read_data_block() to skip all of the data for this ar‐ + 1marchive_read_data_block22m() to skip all of the data for this ar‐ chive entry. Note that this function is invoked automatically by - archive_read_next_header2() if the previous entry was not com‐ + 1marchive_read_next_header222m() if the previous entry was not com‐ pletely consumed. - archive_read_data_into_fd() + 1marchive_read_data_into_fd22m() A convenience function that repeatedly calls - archive_read_data_block() to copy the entire entry to the pro‐ + 1marchive_read_data_block22m() to copy the entire entry to the pro‐ vided file descriptor. -RETURN VALUES +1mRETURN VALUES0m Most functions return zero on success, non-zero on error. The possible - return codes include: ARCHIVE_OK (the operation succeeded), ARCHIVE_WARN + return codes include: 1mARCHIVE_OK 22m(the operation succeeded), 1mARCHIVE_WARN0m (the operation succeeded but a non-critical error was encountered), - ARCHIVE_EOF (end-of-archive was encountered), ARCHIVE_RETRY (the opera‐ - tion failed but can be retried), and ARCHIVE_FATAL (there was a fatal + 1mARCHIVE_EOF 22m(end-of-archive was encountered), 1mARCHIVE_RETRY 22m(the opera‐ + tion failed but can be retried), and 1mARCHIVE_FATAL 22m(there was a fatal error; the archive should be closed immediately). - archive_read_data() returns a count of bytes actually read or zero at the - end of the entry. On error, a value of ARCHIVE_FATAL, ARCHIVE_WARN, or - ARCHIVE_RETRY is returned. + 1marchive_read_data22m() returns a count of bytes actually read or zero at the + end of the entry. On error, a value of 1mARCHIVE_FATAL22m, 1mARCHIVE_WARN22m, or + 1mARCHIVE_RETRY 22mis returned. -ERRORS +1mERRORS0m Detailed error codes and textual descriptions are available from the - archive_errno() and archive_error_string() functions. + 1marchive_errno22m() and 1marchive_error_string22m() functions. -SEE ALSO +1mSEE ALSO0m tar(1), libarchive(3), archive_read(3), archive_read_extract(3), archive_read_filter(3), archive_read_format(3), archive_read_header(3), archive_read_open(3), archive_read_set_options(3), archive_util(3), diff --git a/archivers/libarchive/files/doc/text/archive_read_disk.3.txt b/archivers/libarchive/files/doc/text/archive_read_disk.3.txt index ab2cf7ae898..f4f63425f54 100644 --- a/archivers/libarchive/files/doc/text/archive_read_disk.3.txt +++ b/archivers/libarchive/files/doc/text/archive_read_disk.3.txt @@ -1,93 +1,93 @@ ARCHIVE_READ_DISK(3) BSD Library Functions Manual ARCHIVE_READ_DISK(3) -NAME - archive_read_disk_new, archive_read_disk_set_symlink_logical, - archive_read_disk_set_symlink_physical, - archive_read_disk_set_symlink_hybrid, archive_read_disk_entry_from_file, - archive_read_disk_gname, archive_read_disk_uname, - archive_read_disk_set_uname_lookup, archive_read_disk_set_gname_lookup, - archive_read_disk_set_standard_lookup, archive_read_close, - archive_read_finish, archive_read_free — functions for reading objects +1mNAME0m + 1marchive_read_disk_new22m, 1marchive_read_disk_set_symlink_logical22m, + 1marchive_read_disk_set_symlink_physical22m, + 1marchive_read_disk_set_symlink_hybrid22m, 1marchive_read_disk_entry_from_file22m, + 1marchive_read_disk_gname22m, 1marchive_read_disk_uname22m, + 1marchive_read_disk_set_uname_lookup22m, 1marchive_read_disk_set_gname_lookup22m, + 1marchive_read_disk_set_standard_lookup22m, 1marchive_read_close22m, + 1marchive_read_finish22m, 1marchive_read_free 22m— functions for reading objects from disk -LIBRARY +1mLIBRARY0m Streaming Archive Library (libarchive, -larchive) -SYNOPSIS - #include <archive.h> +1mSYNOPSIS0m + 1m#include <archive.h>0m - struct archive * - archive_read_disk_new(void); + 4mstruct24m 4marchive24m 4m*0m + 1marchive_read_disk_new22m(4mvoid24m); - int - archive_read_disk_set_symlink_logical(struct archive *); + 4mint0m + 1marchive_read_disk_set_symlink_logical22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_read_disk_set_symlink_physical(struct archive *); + 4mint0m + 1marchive_read_disk_set_symlink_physical22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_read_disk_set_symlink_hybrid(struct archive *); + 4mint0m + 1marchive_read_disk_set_symlink_hybrid22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_read_disk_gname(struct archive *, gid_t); + 4mconst24m 4mchar24m 4m*0m + 1marchive_read_disk_gname22m(4mstruct24m 4marchive24m 4m*24m, 4mgid_t24m); - int - archive_read_disk_uname(struct archive *, uid_t); + 4mconst24m 4mchar24m 4m*0m + 1marchive_read_disk_uname22m(4mstruct24m 4marchive24m 4m*24m, 4muid_t24m); - int - archive_read_disk_set_gname_lookup(struct archive *, void *, - const char *(*lookup)(void *, gid_t), void (*cleanup)(void *)); + 4mint0m + 1marchive_read_disk_set_gname_lookup22m(4mstruct24m 4marchive24m 4m*24m, 4mvoid24m 4m*24m, + 4mconst24m 4mchar24m 4m*(*lookup)(void24m 4m*,24m 4mgid_t)24m, 4mvoid24m 4m(*cleanup)(void24m 4m*)24m); - int - archive_read_disk_set_uname_lookup(struct archive *, void *, - const char *(*lookup)(void *, uid_t), void (*cleanup)(void *)); + 4mint0m + 1marchive_read_disk_set_uname_lookup22m(4mstruct24m 4marchive24m 4m*24m, 4mvoid24m 4m*24m, + 4mconst24m 4mchar24m 4m*(*lookup)(void24m 4m*,24m 4muid_t)24m, 4mvoid24m 4m(*cleanup)(void24m 4m*)24m); - int - archive_read_disk_set_standard_lookup(struct archive *); + 4mint0m + 1marchive_read_disk_set_standard_lookup22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_read_disk_entry_from_file(struct archive *, - struct archive_entry *, int fd, const struct stat *); + 4mint0m + 1marchive_read_disk_entry_from_file22m(4mstruct24m 4marchive24m 4m*24m, + 4mstruct24m 4marchive_entry24m 4m*24m, 4mint24m 4mfd24m, 4mconst24m 4mstruct24m 4mstat24m 4m*24m); - int - archive_read_close(struct archive *); + 4mint0m + 1marchive_read_close22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_read_finish(struct archive *); + 4mint0m + 1marchive_read_finish22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_read_free(struct archive *); + 4mint0m + 1marchive_read_free22m(4mstruct24m 4marchive24m 4m*24m); -DESCRIPTION +1mDESCRIPTION0m These functions provide an API for reading information about objects on disk. In particular, they provide an interface for populating struct archive_entry objects. - archive_read_disk_new() + 1marchive_read_disk_new22m() Allocates and initializes a struct archive object suitable for reading object information from disk. - archive_read_disk_set_symlink_logical(), - archive_read_disk_set_symlink_physical(), - archive_read_disk_set_symlink_hybrid() + 1marchive_read_disk_set_symlink_logical22m(), + 1marchive_read_disk_set_symlink_physical22m(), + 1marchive_read_disk_set_symlink_hybrid22m() This sets the mode used for handling symbolic links. The “logical” mode follows all symbolic links. The “physical” mode does not follow any symbolic links. The “hybrid” mode currently behaves identically to the “logical” mode. - archive_read_disk_gname(), archive_read_disk_uname() + 1marchive_read_disk_gname22m(), 1marchive_read_disk_uname22m() Returns a user or group name given a gid or uid value. By default, these always return a NULL string. - archive_read_disk_set_gname_lookup(), - archive_read_disk_set_uname_lookup() + 1marchive_read_disk_set_gname_lookup22m(), + 1marchive_read_disk_set_uname_lookup22m() These allow you to override the functions used for user and group name lookups. You may also provide a void * pointer to a private data structure and a cleanup function for that data. The cleanup function will be invoked when the struct archive object is destroyed or when new lookup functions are registered. - archive_read_disk_set_standard_lookup() + 1marchive_read_disk_set_standard_lookup22m() This convenience function installs a standard set of user and group name lookup functions. These functions use getpwuid(3) and getgrgid(3) to convert ids to names, defaulting to NULL if the @@ -95,7 +95,7 @@ DESCRIPTION ple memory cache to reduce the number of calls to getpwuid(3) and getgrgid(3). - archive_read_disk_entry_from_file() + 1marchive_read_disk_entry_from_file22m() Populates a struct archive_entry object with information about a particular file. The archive_entry object must have already been created with archive_entry_new(3) and at least one of the source @@ -119,19 +119,19 @@ DESCRIPTION above. This affects the file ownership fields and ACL values in the struct archive_entry object. - archive_read_close() + 1marchive_read_close22m() Does nothing for archive_read_disk handles. - archive_read_finish() - This is a deprecated synonym for archive_read_free(). + 1marchive_read_finish22m() + This is a deprecated synonym for 1marchive_read_free22m(). - archive_read_free() - Invokes archive_read_close() if it was not invoked manually, then + 1marchive_read_free22m() + Invokes 1marchive_read_close22m() if it was not invoked manually, then releases all resources. - More information about the struct archive object and the overall design + More information about the 4mstruct24m 4marchive24m object and the overall design of the library can be found in the libarchive(3) overview. -EXAMPLE +1mEXAMPLE0m The following illustrates basic usage of the library by showing how to use it to copy an item on disk into an archive. @@ -160,50 +160,50 @@ EXAMPLE archive_entry_free(entry); } -RETURN VALUES - Most functions return ARCHIVE_OK (zero) on success, or one of several +1mRETURN VALUES0m + Most functions return 1mARCHIVE_OK 22m(zero) on success, or one of several negative error codes for errors. Specific error codes include: - ARCHIVE_RETRY for operations that might succeed if retried, ARCHIVE_WARN + 1mARCHIVE_RETRY 22mfor operations that might succeed if retried, 1mARCHIVE_WARN0m for unusual conditions that do not prevent further operations, and - ARCHIVE_FATAL for serious errors that make remaining operations impossi‐ + 1mARCHIVE_FATAL 22mfor serious errors that make remaining operations impossi‐ ble. - archive_read_disk_new() returns a pointer to a newly-allocated struct + 1marchive_read_disk_new22m() returns a pointer to a newly-allocated struct archive object or NULL if the allocation failed for any reason. - archive_read_disk_gname() and archive_read_disk_uname() return const char + 1marchive_read_disk_gname22m() and 1marchive_read_disk_uname22m() return const char * pointers to the textual name or NULL if the lookup failed for any rea‐ son. The returned pointer points to internal storage that may be reused on the next call to either of these functions; callers should copy the string if they need to continue accessing it. -ERRORS +1mERRORS0m Detailed error codes and textual descriptions are available from the - archive_errno() and archive_error_string() functions. + 1marchive_errno22m() and 1marchive_error_string22m() functions. -SEE ALSO +1mSEE ALSO0m archive_read(3), archive_util(3), archive_write(3), archive_write_disk(3), tar(1), libarchive(3) -HISTORY - The libarchive library first appeared in FreeBSD 5.3. The - archive_read_disk interface was added to libarchive 2.6 and first +1mHISTORY0m + The 1mlibarchive 22mlibrary first appeared in FreeBSD 5.3. The + 1marchive_read_disk 22minterface was added to 1mlibarchive 2.6 22mand first appeared in FreeBSD 8.0. -AUTHORS - The libarchive library was written by Tim Kientzle +1mAUTHORS0m + The 1mlibarchive 22mlibrary was written by Tim Kientzle <kientzle@FreeBSD.org>. -BUGS +1mBUGS0m The “standard” user name and group name lookup functions are not the defaults because getgrgid(3) and getpwuid(3) are sometimes too large for particular applications. The current design allows the application author to use a more compact implementation when appropriate. The full list of metadata read from disk by - archive_read_disk_entry_from_file() is necessarily system-dependent. + 1marchive_read_disk_entry_from_file22m() is necessarily system-dependent. - The archive_read_disk_entry_from_file() function reads as much informa‐ + The 1marchive_read_disk_entry_from_file22m() function reads as much informa‐ tion as it can from disk. Some method should be provided to limit this so that clients who do not need ACLs, for instance, can avoid the extra work needed to look up such information. @@ -213,4 +213,4 @@ BUGS such methods are implemented, the “hybrid” symbolic link mode will make sense. -BSD February 2, 2012 BSD +BSD December 30, 2016 BSD diff --git a/archivers/libarchive/files/doc/text/archive_read_extract.3.txt b/archivers/libarchive/files/doc/text/archive_read_extract.3.txt index ca1fec5ad49..a78cb35c413 100644 --- a/archivers/libarchive/files/doc/text/archive_read_extract.3.txt +++ b/archivers/libarchive/files/doc/text/archive_read_extract.3.txt @@ -1,50 +1,50 @@ ARCHIVE_READ_EXTRACT(3) BSD Library Functions Manual ARCHIVE_READ_EXTRACT(3) -NAME - archive_read_extract, archive_read_extract2, - archive_read_extract_set_progress_callback — functions for reading +1mNAME0m + 1marchive_read_extract22m, 1marchive_read_extract222m, + 1marchive_read_extract_set_progress_callback 22m— functions for reading streaming archives -LIBRARY +1mLIBRARY0m Streaming Archive Library (libarchive, -larchive) -SYNOPSIS - #include <archive.h> +1mSYNOPSIS0m + 1m#include <archive.h>0m - int - archive_read_extract(struct archive *, struct archive_entry *, - int flags); + 4mint0m + 1marchive_read_extract22m(4mstruct24m 4marchive24m 4m*24m, 4mstruct24m 4marchive_entry24m 4m*24m, + 4mint24m 4mflags24m); - int - archive_read_extract2(struct archive *src, struct archive_entry *, - struct archive *dest); + 4mint0m + 1marchive_read_extract222m(4mstruct24m 4marchive24m 4m*src24m, 4mstruct24m 4marchive_entry24m 4m*24m, + 4mstruct24m 4marchive24m 4m*dest24m); - void - archive_read_extract_set_progress_callback(struct archive *, - void (*func)(void *), void *user_data); + 4mvoid0m + 1marchive_read_extract_set_progress_callback22m(4mstruct24m 4marchive24m 4m*24m, + 4mvoid24m 4m(*func)(void24m 4m*)24m, 4mvoid24m 4m*user_data24m); -DESCRIPTION - archive_read_extract(), archive_read_extract_set_skip_file() +1mDESCRIPTION0m + 1marchive_read_extract22m(), 1marchive_read_extract_set_skip_file22m() A convenience function that wraps the corresponding archive_write_disk(3) interfaces. The first call to - archive_read_extract() creates a restore object using + 1marchive_read_extract22m() creates a restore object using archive_write_disk_new(3) and archive_write_disk_set_standard_lookup(3), then transparently invokes archive_write_disk_set_options(3), archive_write_header(3), archive_write_data(3), and archive_write_finish_entry(3) to create the entry on disk and - copy data into it. The flags argument is passed unmodified to + copy data into it. The 4mflags24m argument is passed unmodified to archive_write_disk_set_options(3). - archive_read_extract2() - This is another version of archive_read_extract() that allows you + 1marchive_read_extract222m() + This is another version of 1marchive_read_extract22m() that allows you to provide your own restore object. In particular, this allows you to override the standard lookup functions using archive_write_disk_set_group_lookup(3), and archive_write_disk_set_user_lookup(3). Note that - archive_read_extract2() does not accept a flags argument; you - should use archive_write_disk_set_options() to set the restore + 1marchive_read_extract222m() does not accept a 4mflags24m argument; you + should use 1marchive_write_disk_set_options22m() to set the restore options yourself. - archive_read_extract_set_progress_callback() + 1marchive_read_extract_set_progress_callback22m() Sets a pointer to a user-defined callback that can be used for updating progress displays during extraction. The progress func‐ tion will be invoked during the extraction of large regular @@ -54,19 +54,19 @@ DESCRIPTION object so that various statistics can be retrieved for the progress display. -RETURN VALUES +1mRETURN VALUES0m Most functions return zero on success, non-zero on error. The possible - return codes include: ARCHIVE_OK (the operation succeeded), ARCHIVE_WARN + return codes include: 1mARCHIVE_OK 22m(the operation succeeded), 1mARCHIVE_WARN0m (the operation succeeded but a non-critical error was encountered), - ARCHIVE_EOF (end-of-archive was encountered), ARCHIVE_RETRY (the opera‐ - tion failed but can be retried), and ARCHIVE_FATAL (there was a fatal + 1mARCHIVE_EOF 22m(end-of-archive was encountered), 1mARCHIVE_RETRY 22m(the opera‐ + tion failed but can be retried), and 1mARCHIVE_FATAL 22m(there was a fatal error; the archive should be closed immediately). -ERRORS +1mERRORS0m Detailed error codes and textual descriptions are available from the - archive_errno() and archive_error_string() functions. + 1marchive_errno22m() and 1marchive_error_string22m() functions. -SEE ALSO +1mSEE ALSO0m tar(1), libarchive(3), archive_read(3), archive_read_data(3), archive_read_filter(3), archive_read_format(3), archive_read_open(3), archive_read_set_options(3), archive_util(3), tar(5) diff --git a/archivers/libarchive/files/doc/text/archive_read_filter.3.txt b/archivers/libarchive/files/doc/text/archive_read_filter.3.txt index 3af7cdf6cc3..6ae9915791f 100644 --- a/archivers/libarchive/files/doc/text/archive_read_filter.3.txt +++ b/archivers/libarchive/files/doc/text/archive_read_filter.3.txt @@ -1,110 +1,110 @@ ARCHIVE_READ_FILTER(3) BSD Library Functions Manual ARCHIVE_READ_FILTER(3) -NAME - archive_read_support_filter_all, archive_read_support_filter_bzip2, - archive_read_support_filter_compress, archive_read_support_filter_gzip, - archive_read_support_filter_lz4, archive_read_support_filter_lzma, - archive_read_support_filter_none, archive_read_support_filter_rpm, - archive_read_support_filter_uu, archive_read_support_filter_xz, - archive_read_support_filter_program, - archive_read_support_filter_program_signature — functions for reading +1mNAME0m + 1marchive_read_support_filter_all22m, 1marchive_read_support_filter_bzip222m, + 1marchive_read_support_filter_compress22m, 1marchive_read_support_filter_gzip22m, + 1marchive_read_support_filter_lz422m, 1marchive_read_support_filter_lzma22m, + 1marchive_read_support_filter_none22m, 1marchive_read_support_filter_rpm22m, + 1marchive_read_support_filter_uu22m, 1marchive_read_support_filter_xz22m, + 1marchive_read_support_filter_program22m, + 1marchive_read_support_filter_program_signature 22m— functions for reading streaming archives -LIBRARY +1mLIBRARY0m Streaming Archive Library (libarchive, -larchive) -SYNOPSIS - #include <archive.h> +1mSYNOPSIS0m + 1m#include <archive.h>0m - int - archive_read_support_filter_all(struct archive *); + 4mint0m + 1marchive_read_support_filter_all22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_read_support_filter_bzip2(struct archive *); + 4mint0m + 1marchive_read_support_filter_bzip222m(4mstruct24m 4marchive24m 4m*24m); - int - archive_read_support_filter_compress(struct archive *); + 4mint0m + 1marchive_read_support_filter_compress22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_read_support_filter_grzip(struct archive *); + 4mint0m + 1marchive_read_support_filter_grzip22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_read_support_filter_gzip(struct archive *); + 4mint0m + 1marchive_read_support_filter_gzip22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_read_support_filter_lrzip(struct archive *); + 4mint0m + 1marchive_read_support_filter_lrzip22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_read_support_filter_lz4(struct archive *); + 4mint0m + 1marchive_read_support_filter_lz422m(4mstruct24m 4marchive24m 4m*24m); - int - archive_read_support_filter_lzma(struct archive *); + 4mint0m + 1marchive_read_support_filter_lzma22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_read_support_filter_lzop(struct archive *); + 4mint0m + 1marchive_read_support_filter_lzop22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_read_support_filter_none(struct archive *); + 4mint0m + 1marchive_read_support_filter_none22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_read_support_filter_rpm(struct archive *); + 4mint0m + 1marchive_read_support_filter_rpm22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_read_support_filter_uu(struct archive *); + 4mint0m + 1marchive_read_support_filter_uu22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_read_support_filter_xz(struct archive *); + 4mint0m + 1marchive_read_support_filter_xz22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_read_support_filter_program(struct archive *, const char *cmd); + 4mint0m + 1marchive_read_support_filter_program22m(4mstruct24m 4marchive24m 4m*24m, 4mconst24m 4mchar24m 4m*cmd24m); - int - archive_read_support_filter_program_signature(struct archive *, - const char *cmd, const void *signature, size_t signature_length); + 4mint0m + 1marchive_read_support_filter_program_signature22m(4mstruct24m 4marchive24m 4m*24m, + 4mconst24m 4mchar24m 4m*cmd24m, 4mconst24m 4mvoid24m 4m*signature24m, 4msize_t24m 4msignature_length24m); -DESCRIPTION - archive_read_support_filter_bzip2(), - archive_read_support_filter_compress(), - archive_read_support_filter_grzip(), - archive_read_support_filter_gzip(), - archive_read_support_filter_lrzip(), - archive_read_support_filter_lz4(), - archive_read_support_filter_lzma(), - archive_read_support_filter_lzop(), - archive_read_support_filter_none(), - archive_read_support_filter_rpm(), - archive_read_support_filter_uu(), - archive_read_support_filter_xz() +1mDESCRIPTION0m + 1marchive_read_support_filter_bzip222m(), + 1marchive_read_support_filter_compress22m(), + 1marchive_read_support_filter_grzip22m(), + 1marchive_read_support_filter_gzip22m(), + 1marchive_read_support_filter_lrzip22m(), + 1marchive_read_support_filter_lz422m(), + 1marchive_read_support_filter_lzma22m(), + 1marchive_read_support_filter_lzop22m(), + 1marchive_read_support_filter_none22m(), + 1marchive_read_support_filter_rpm22m(), + 1marchive_read_support_filter_uu22m(), + 1marchive_read_support_filter_xz22m() Enables auto-detection code and decompression support for the specified compression. These functions may fall back on external programs if an appropriate library was not available at build time. Decompression using an external program is usually slower than decompression through built-in libraries. Note that “none” is always enabled by default. - archive_read_support_filter_all() + 1marchive_read_support_filter_all22m() Enables all available decompression filters. - archive_read_support_filter_program() + 1marchive_read_support_filter_program22m() Data is fed through the specified external program before being dearchived. Note that this disables automatic detection of the compression format, so it makes no sense to specify this in con‐ junction with any other decompression option. - archive_read_support_filter_program_signature() + 1marchive_read_support_filter_program_signature22m() This feeds data through the specified external program but only if the initial bytes of the data match the specified signature value. -RETURN VALUES - These functions return ARCHIVE_OK if the compression is fully supported, - ARCHIVE_WARN if the compression is supported only through an external +1mRETURN VALUES0m + These functions return 1mARCHIVE_OK 22mif the compression is fully supported, + 1mARCHIVE_WARN 22mif the compression is supported only through an external program. - archive_read_support_filter_none() always succeeds. + 1marchive_read_support_filter_none22m() always succeeds. -ERRORS +1mERRORS0m Detailed error codes and textual descriptions are available from the - archive_errno() and archive_error_string() functions. + 1marchive_errno22m() and 1marchive_error_string22m() functions. -SEE ALSO +1mSEE ALSO0m libarchive(3), archive_read(3), archive_read_data(3), archive_read_format(3), archive_read_format(3) diff --git a/archivers/libarchive/files/doc/text/archive_read_format.3.txt b/archivers/libarchive/files/doc/text/archive_read_format.3.txt index 38f1d8adfa2..78209862a72 100644 --- a/archivers/libarchive/files/doc/text/archive_read_format.3.txt +++ b/archivers/libarchive/files/doc/text/archive_read_format.3.txt @@ -1,122 +1,122 @@ ARCHIVE_READ_FORMAT(3) BSD Library Functions Manual ARCHIVE_READ_FORMAT(3) -NAME - archive_read_support_format_7zip, archive_read_support_format_all, - archive_read_support_format_ar, archive_read_support_format_by_code, - archive_read_support_format_cab, archive_read_support_format_cpio, - archive_read_support_format_empty, archive_read_support_format_iso9660, - archive_read_support_format_lha, archive_read_support_format_mtree, - archive_read_support_format_rar, archive_read_support_format_raw, - archive_read_support_format_tar, archive_read_support_format_xar, - archive_read_support_format_zip — functions for reading streaming ar‐ +1mNAME0m + 1marchive_read_support_format_7zip22m, 1marchive_read_support_format_all22m, + 1marchive_read_support_format_ar22m, 1marchive_read_support_format_by_code22m, + 1marchive_read_support_format_cab22m, 1marchive_read_support_format_cpio22m, + 1marchive_read_support_format_empty22m, 1marchive_read_support_format_iso966022m, + 1marchive_read_support_format_lha22m, 1marchive_read_support_format_mtree,0m + 1marchive_read_support_format_rar, archive_read_support_format_raw,0m + 1marchive_read_support_format_tar22m, 1marchive_read_support_format_xar22m, + 1marchive_read_support_format_zip 22m— functions for reading streaming ar‐ chives -LIBRARY +1mLIBRARY0m Streaming Archive Library (libarchive, -larchive) -SYNOPSIS - #include <archive.h> +1mSYNOPSIS0m + 1m#include <archive.h>0m - int - archive_read_support_format_7zip(struct archive *); + 4mint0m + 1marchive_read_support_format_7zip22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_read_support_format_all(struct archive *); + 4mint0m + 1marchive_read_support_format_all22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_read_support_format_ar(struct archive *); + 4mint0m + 1marchive_read_support_format_ar22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_read_support_format_by_code(struct archive *, int); + 4mint0m + 1marchive_read_support_format_by_code22m(4mstruct24m 4marchive24m 4m*24m, 4mint24m); - int - archive_read_support_format_cab(struct archive *); + 4mint0m + 1marchive_read_support_format_cab22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_read_support_format_cpio(struct archive *); + 4mint0m + 1marchive_read_support_format_cpio22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_read_support_format_empty(struct archive *); + 4mint0m + 1marchive_read_support_format_empty22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_read_support_format_iso9660(struct archive *); + 4mint0m + 1marchive_read_support_format_iso966022m(4mstruct24m 4marchive24m 4m*24m); - int - archive_read_support_format_lha(struct archive *); + 4mint0m + 1marchive_read_support_format_lha22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_read_support_format_mtree(struct archive *); + 4mint0m + 1marchive_read_support_format_mtree22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_read_support_format_rar(struct archive *); + 4mint0m + 1marchive_read_support_format_rar22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_read_support_format_raw(struct archive *); + 4mint0m + 1marchive_read_support_format_raw22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_read_support_format_tar(struct archive *); + 4mint0m + 1marchive_read_support_format_tar22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_read_support_format_xar(struct archive *); + 4mint0m + 1marchive_read_support_format_xar22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_read_support_format_zip(struct archive *); + 4mint0m + 1marchive_read_support_format_zip22m(4mstruct24m 4marchive24m 4m*24m); -DESCRIPTION - archive_read_support_format_7zip(), archive_read_support_format_ar(), - archive_read_support_format_cab(), - archive_read_support_format_cpio(), - archive_read_support_format_iso9660(), - archive_read_support_format_lha(), - archive_read_support_format_mtree(), - archive_read_support_format_rar(), - archive_read_support_format_raw(), - archive_read_support_format_tar(), - archive_read_support_format_xar(), - archive_read_support_format_zip() +1mDESCRIPTION0m + 1marchive_read_support_format_7zip22m(), 1marchive_read_support_format_ar22m(), + 1marchive_read_support_format_cab22m(), + 1marchive_read_support_format_cpio22m(), + 1marchive_read_support_format_iso966022m(), + 1marchive_read_support_format_lha22m(), + 1marchive_read_support_format_mtree22m(), + 1marchive_read_support_format_rar22m(), + 1marchive_read_support_format_raw22m(), + 1marchive_read_support_format_tar22m(), + 1marchive_read_support_format_xar22m(), + 1marchive_read_support_format_zip22m() Enables support---including auto-detection code---for the speci‐ fied archive format. For example, - archive_read_support_format_tar() enables support for a variety + 1marchive_read_support_format_tar22m() enables support for a variety of standard tar formats, old-style tar, ustar, pax interchange format, and many common variants. - archive_read_support_format_all() + 1marchive_read_support_format_all22m() Enables support for all available formats except the “raw” format (see below). - archive_read_support_format_by_code() + 1marchive_read_support_format_by_code22m() Enables a single format specified by the format code. This can be useful when reading a single archive twice; use - archive_format() after reading the first time and pass the + 1marchive_format22m() after reading the first time and pass the resulting code to this function to selectively enable only the necessary format support. Note: In statically-linked executa‐ bles, this will cause your program to include support for every format. If executable size is a concern, you may wish to avoid using this function. - archive_read_support_format_empty() + 1marchive_read_support_format_empty22m() Enables support for treating empty files as empty archives. Because empty files are valid for several different formats, it is not possible to accurately determine a format for an empty file based purely on contents. So empty files are treated by libarchive as a distinct format. - archive_read_support_format_raw() + 1marchive_read_support_format_raw22m() The “raw” format handler allows libarchive to be used to read arbitrary data. It treats any data stream as an archive with a single entry. The pathname of this entry is “data”; all other entry fields are unset. This is not enabled by - archive_read_support_format_all() in order to avoid erroneous + 1marchive_read_support_format_all22m() in order to avoid erroneous handling of damaged archives. -RETURN VALUES - These functions return ARCHIVE_OK on success, or ARCHIVE_FATAL. +1mRETURN VALUES0m + These functions return 1mARCHIVE_OK 22mon success, or 1mARCHIVE_FATAL22m. -ERRORS +1mERRORS0m Detailed error codes and textual descriptions are available from the - archive_errno() and archive_error_string() functions. + 1marchive_errno22m() and 1marchive_error_string22m() functions. -SEE ALSO +1mSEE ALSO0m tar(1), libarchive(3), archive_read_data(3), archive_read_filter(3), archive_read_set_options(3), archive_util(3), tar(5) -BUGS +1mBUGS0m Many traditional archiver programs treat empty files as valid empty ar‐ chives. For example, many implementations of tar(1) allow you to append entries to an empty file. Of course, it is impossible to determine the diff --git a/archivers/libarchive/files/doc/text/archive_read_free.3.txt b/archivers/libarchive/files/doc/text/archive_read_free.3.txt index 2e8c2efe9bc..98ccb10bb47 100644 --- a/archivers/libarchive/files/doc/text/archive_read_free.3.txt +++ b/archivers/libarchive/files/doc/text/archive_read_free.3.txt @@ -1,50 +1,50 @@ ARCHIVE_READ_FREE(3) BSD Library Functions Manual ARCHIVE_READ_FREE(3) -NAME - archive_read_close, archive_read_finish, archive_read_free — functions +1mNAME0m + 1marchive_read_close22m, 1marchive_read_finish22m, 1marchive_read_free 22m— functions for reading streaming archives -LIBRARY +1mLIBRARY0m Streaming Archive Library (libarchive, -larchive) -SYNOPSIS - #include <archive.h> +1mSYNOPSIS0m + 1m#include <archive.h>0m - int - archive_read_close(struct archive *); + 4mint0m + 1marchive_read_close22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_read_finish(struct archive *); + 4mint0m + 1marchive_read_finish22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_read_free(struct archive *); + 4mint0m + 1marchive_read_free22m(4mstruct24m 4marchive24m 4m*24m); -DESCRIPTION - archive_read_close() +1mDESCRIPTION0m + 1marchive_read_close22m() Complete the archive and invoke the close callback. - archive_read_finish() - This is a deprecated synonym for archive_read_free(). The new + 1marchive_read_finish22m() + This is a deprecated synonym for 1marchive_read_free22m(). The new name was introduced with libarchive 3.0. Applications that need to compile with either libarchive 2 or libarchive 3 should con‐ - tinue to use the archive_read_finish() name. Both names will be + tinue to use the 1marchive_read_finish22m() name. Both names will be supported until libarchive 4.0 is released, which is not expected to occur earlier than 2013. - archive_read_free() - Invokes archive_read_close() if it was not invoked manually, then + 1marchive_read_free22m() + Invokes 1marchive_read_close22m() if it was not invoked manually, then release all resources. Note: In libarchive 1.x, this function - was declared to return void, which made it impossible to detect - certain errors when archive_read_close() was invoked implicitly + was declared to return 4mvoid24m, which made it impossible to detect + certain errors when 1marchive_read_close22m() was invoked implicitly from this function. The declaration is corrected beginning with libarchive 2.0. -RETURN VALUES - These functions return ARCHIVE_OK on success, or ARCHIVE_FATAL. +1mRETURN VALUES0m + These functions return 1mARCHIVE_OK 22mon success, or 1mARCHIVE_FATAL22m. -ERRORS +1mERRORS0m Detailed error codes and textual descriptions are available from the - archive_errno() and archive_error_string() functions. + 1marchive_errno22m() and 1marchive_error_string22m() functions. -SEE ALSO +1mSEE ALSO0m libarchive(3), archive_read_new(3), archive_read_data(3), archive_read_filter(3), archive_read_format(3), archive_read_open(3), archive_read_set_options(3), archive_util(3) diff --git a/archivers/libarchive/files/doc/text/archive_read_header.3.txt b/archivers/libarchive/files/doc/text/archive_read_header.3.txt index 29f29a4b749..3338ba2c4a8 100644 --- a/archivers/libarchive/files/doc/text/archive_read_header.3.txt +++ b/archivers/libarchive/files/doc/text/archive_read_header.3.txt @@ -1,43 +1,43 @@ ARCHIVE_READ_HEADER(3) BSD Library Functions Manual ARCHIVE_READ_HEADER(3) -NAME - archive_read_next_header, archive_read_next_header2 — functions for read‐ +1mNAME0m + 1marchive_read_next_header22m, 1marchive_read_next_header2 22m— functions for read‐ ing streaming archives -LIBRARY +1mLIBRARY0m Streaming Archive Library (libarchive, -larchive) -SYNOPSIS - #include <archive.h> +1mSYNOPSIS0m + 1m#include <archive.h>0m - int - archive_read_next_header(struct archive *, struct archive_entry **); + 4mint0m + 1marchive_read_next_header22m(4mstruct24m 4marchive24m 4m*24m, 4mstruct24m 4marchive_entry24m 4m**24m); - int - archive_read_next_header2(struct archive *, struct archive_entry *); + 4mint0m + 1marchive_read_next_header222m(4mstruct24m 4marchive24m 4m*24m, 4mstruct24m 4marchive_entry24m 4m*24m); -DESCRIPTION - archive_read_next_header() +1mDESCRIPTION0m + 1marchive_read_next_header22m() Read the header for the next entry and return a pointer to a struct archive_entry. This is a convenience wrapper around - archive_read_next_header2() that reuses an internal struct + 1marchive_read_next_header222m() that reuses an internal struct archive_entry object for each request. - archive_read_next_header2() + 1marchive_read_next_header222m() Read the header for the next entry and populate the provided struct archive_entry. -RETURN VALUES - These functions return ARCHIVE_OK (the operation succeeded), ARCHIVE_WARN +1mRETURN VALUES0m + These functions return 1mARCHIVE_OK 22m(the operation succeeded), 1mARCHIVE_WARN0m (the operation succeeded but a non-critical error was encountered), - ARCHIVE_EOF (end-of-archive was encountered), ARCHIVE_RETRY (the opera‐ - tion failed but can be retried), and ARCHIVE_FATAL (there was a fatal + 1mARCHIVE_EOF 22m(end-of-archive was encountered), 1mARCHIVE_RETRY 22m(the opera‐ + tion failed but can be retried), and 1mARCHIVE_FATAL 22m(there was a fatal error; the archive should be closed immediately). -ERRORS +1mERRORS0m Detailed error codes and textual descriptions are available from the - archive_errno() and archive_error_string() functions. + 1marchive_errno22m() and 1marchive_error_string22m() functions. -SEE ALSO +1mSEE ALSO0m tar(1), libarchive(3), archive_read(3), archive_read_data(3), archive_read_extract(3), archive_read_filter(3), archive_read_format(3), archive_read_open(3), archive_read_set_options(3), archive_util(3), diff --git a/archivers/libarchive/files/doc/text/archive_read_new.3.txt b/archivers/libarchive/files/doc/text/archive_read_new.3.txt index 5e518f9ee23..6e574f1bb49 100644 --- a/archivers/libarchive/files/doc/text/archive_read_new.3.txt +++ b/archivers/libarchive/files/doc/text/archive_read_new.3.txt @@ -1,25 +1,25 @@ ARCHIVE_READ_NEW(3) BSD Library Functions Manual ARCHIVE_READ_NEW(3) -NAME - archive_read_new — functions for reading streaming archives +1mNAME0m + 1marchive_read_new 22m— functions for reading streaming archives -LIBRARY +1mLIBRARY0m Streaming Archive Library (libarchive, -larchive) -SYNOPSIS - #include <archive.h> +1mSYNOPSIS0m + 1m#include <archive.h>0m - struct archive * - archive_read_new(void); + 4mstruct24m 4marchive24m 4m*0m + 1marchive_read_new22m(4mvoid24m); -DESCRIPTION +1mDESCRIPTION0m Allocates and initializes a struct archive object suitable for reading from an archive. NULL is returned on error. A complete description of the struct archive object can be found in the overview manual page for libarchive(3). -SEE ALSO +1mSEE ALSO0m tar(1), libarchive(3), archive_read_data(3), archive_read_filter(3), archive_read_format(3), archive_read_set_options(3), archive_util(3), tar(5) diff --git a/archivers/libarchive/files/doc/text/archive_read_open.3.txt b/archivers/libarchive/files/doc/text/archive_read_open.3.txt index 1de9148a2d2..df653c70290 100644 --- a/archivers/libarchive/files/doc/text/archive_read_open.3.txt +++ b/archivers/libarchive/files/doc/text/archive_read_open.3.txt @@ -1,94 +1,94 @@ ARCHIVE_READ_OPEN(3) BSD Library Functions Manual ARCHIVE_READ_OPEN(3) -NAME - archive_read_open, archive_read_open2, archive_read_open_fd, - archive_read_open_FILE, archive_read_open_filename, - archive_read_open_memory, — functions for reading streaming archives +1mNAME0m + 1marchive_read_open22m, 1marchive_read_open222m, 1marchive_read_open_fd22m, + 1marchive_read_open_FILE22m, 1marchive_read_open_filename22m, + 1marchive_read_open_memory22m, — functions for reading streaming archives -LIBRARY +1mLIBRARY0m Streaming Archive Library (libarchive, -larchive) -SYNOPSIS - #include <archive.h> +1mSYNOPSIS0m + 1m#include <archive.h>0m - int - archive_read_open(struct archive *, void *client_data, - archive_open_callback *, archive_read_callback *, - archive_close_callback *); + 4mint0m + 1marchive_read_open22m(4mstruct24m 4marchive24m 4m*24m, 4mvoid24m 4m*client_data24m, + 4marchive_open_callback24m 4m*24m, 4marchive_read_callback24m 4m*24m, + 4marchive_close_callback24m 4m*24m); - int - archive_read_open2(struct archive *, void *client_data, - archive_open_callback *, archive_read_callback *, - archive_skip_callback *, archive_close_callback *); + 4mint0m + 1marchive_read_open222m(4mstruct24m 4marchive24m 4m*24m, 4mvoid24m 4m*client_data24m, + 4marchive_open_callback24m 4m*24m, 4marchive_read_callback24m 4m*24m, + 4marchive_skip_callback24m 4m*24m, 4marchive_close_callback24m 4m*24m); - int - archive_read_open_FILE(struct archive *, FILE *file); + 4mint0m + 1marchive_read_open_FILE22m(4mstruct24m 4marchive24m 4m*24m, 4mFILE24m 4m*file24m); - int - archive_read_open_fd(struct archive *, int fd, size_t block_size); + 4mint0m + 1marchive_read_open_fd22m(4mstruct24m 4marchive24m 4m*24m, 4mint24m 4mfd24m, 4msize_t24m 4mblock_size24m); - int - archive_read_open_filename(struct archive *, const char *filename, - size_t block_size); + 4mint0m + 1marchive_read_open_filename22m(4mstruct24m 4marchive24m 4m*24m, 4mconst24m 4mchar24m 4m*filename24m, + 4msize_t24m 4mblock_size24m); - int - archive_read_open_memory(struct archive *, void *buff, size_t size); + 4mint0m + 1marchive_read_open_memory22m(4mstruct24m 4marchive24m 4m*24m, 4mvoid24m 4m*buff24m, 4msize_t24m 4msize24m); -DESCRIPTION - archive_read_open() - The same as archive_read_open2(), except that the skip callback +1mDESCRIPTION0m + 1marchive_read_open22m() + The same as 1marchive_read_open222m(), except that the skip callback is assumed to be NULL. - archive_read_open2() + 1marchive_read_open222m() Freeze the settings, open the archive, and prepare for reading entries. This is the most generic version of this call, which accepts four callback functions. Most clients will want to use - archive_read_open_filename(), archive_read_open_FILE(), - archive_read_open_fd(), or archive_read_open_memory() instead. + 1marchive_read_open_filename22m(), 1marchive_read_open_FILE22m(), + 1marchive_read_open_fd22m(), or 1marchive_read_open_memory22m() instead. The library invokes the client-provided functions to obtain raw bytes from the archive. - archive_read_open_FILE() - Like archive_read_open(), except that it accepts a FILE * + 1marchive_read_open_FILE22m() + Like 1marchive_read_open22m(), except that it accepts a 4mFILE24m 4m*0m pointer. This function should not be used with tape drives or other devices that require strict I/O blocking. - archive_read_open_fd() - Like archive_read_open(), except that it accepts a file descrip‐ + 1marchive_read_open_fd22m() + Like 1marchive_read_open22m(), except that it accepts a file descrip‐ tor and block size rather than a set of function pointers. Note that the file descriptor will not be automatically closed at end- of-archive. This function is safe for use with tape drives or other blocked devices. - archive_read_open_file() - This is a deprecated synonym for archive_read_open_filename(). - archive_read_open_filename() - Like archive_read_open(), except that it accepts a simple file‐ + 1marchive_read_open_file22m() + This is a deprecated synonym for 1marchive_read_open_filename22m(). + 1marchive_read_open_filename22m() + Like 1marchive_read_open22m(), except that it accepts a simple file‐ name and a block size. A NULL filename represents standard input. This function is safe for use with tape drives or other blocked devices. - archive_read_open_memory() - Like archive_read_open(), except that it accepts a pointer and + 1marchive_read_open_memory22m() + Like 1marchive_read_open22m(), except that it accepts a pointer and size of a block of memory containing the archive data. A complete description of the struct archive and struct archive_entry objects can be found in the overview manual page for libarchive(3). -CLIENT CALLBACKS +1mCLIENT CALLBACKS0m The callback functions must match the following prototypes: - typedef la_ssize_t archive_read_callback(struct archive *, - void *client_data, const void **buffer) + 4mtypedef24m 4mla_ssize_t24m 1marchive_read_callback22m(4mstruct24m 4marchive24m 4m*24m, + 4mvoid24m 4m*client_data24m, 4mconst24m 4mvoid24m 4m**buffer24m) - typedef la_int64_t archive_skip_callback(struct archive *, - void *client_data, off_t request) + 4mtypedef24m 4mla_int64_t24m 1marchive_skip_callback22m(4mstruct24m 4marchive24m 4m*24m, + 4mvoid24m 4m*client_data24m, 4moff_t24m 4mrequest24m) - typedef int archive_open_callback(struct archive *, void - *client_data) + 4mtypedef24m 4mint24m 1marchive_open_callback22m(4mstruct24m 4marchive24m 4m*24m, 4mvoid0m + 4m*client_data24m) - typedef int archive_close_callback(struct archive *, void - *client_data) + 4mtypedef24m 4mint24m 1marchive_close_callback22m(4mstruct24m 4marchive24m 4m*24m, 4mvoid0m + 4m*client_data24m) - The open callback is invoked by archive_open(). It should return - ARCHIVE_OK if the underlying file or data source is successfully opened. - If the open fails, it should call archive_set_error() to register an - error code and message and return ARCHIVE_FATAL. + The open callback is invoked by 1marchive_open22m(). It should return + 1mARCHIVE_OK 22mif the underlying file or data source is successfully opened. + If the open fails, it should call 1marchive_set_error22m() to register an + error code and message and return 1mARCHIVE_FATAL22m. The read callback is invoked whenever the library requires raw bytes from the archive. The read callback should read data into a buffer, set the @@ -97,7 +97,7 @@ CLIENT CALLBACKS callback again only after it has consumed this data. The library imposes no constraints on the size of the data blocks returned. On end-of-file, the read callback should return zero. On error, the read callback should - invoke archive_set_error() to register an error code and message and + invoke 1marchive_set_error22m() to register an error code and message and return -1. The skip callback is invoked when the library wants to ignore a block of @@ -110,18 +110,18 @@ CLIENT CALLBACKS media that can skip quickly. The close callback is invoked by archive_close when the archive process‐ - ing is complete. The callback should return ARCHIVE_OK on success. On - failure, the callback should invoke archive_set_error() to register an - error code and message and return ARCHIVE_FATAL. + ing is complete. The callback should return 1mARCHIVE_OK 22mon success. On + failure, the callback should invoke 1marchive_set_error22m() to register an + error code and message and return 1mARCHIVE_FATAL.0m -RETURN VALUES - These functions return ARCHIVE_OK on success, or ARCHIVE_FATAL. +1mRETURN VALUES0m + These functions return 1mARCHIVE_OK 22mon success, or 1mARCHIVE_FATAL22m. -ERRORS +1mERRORS0m Detailed error codes and textual descriptions are available from the - archive_errno() and archive_error_string() functions. + 1marchive_errno22m() and 1marchive_error_string22m() functions. -SEE ALSO +1mSEE ALSO0m tar(1), libarchive(3), archive_read(3), archive_read_data(3), archive_read_filter(3), archive_read_format(3), archive_read_set_options(3), archive_util(3), tar(5) diff --git a/archivers/libarchive/files/doc/text/archive_read_set_options.3.txt b/archivers/libarchive/files/doc/text/archive_read_set_options.3.txt index 8aa919f2873..aaf73076008 100644 --- a/archivers/libarchive/files/doc/text/archive_read_set_options.3.txt +++ b/archivers/libarchive/files/doc/text/archive_read_set_options.3.txt @@ -1,113 +1,113 @@ ARCHIVE_READ_OPTIONS(3) BSD Library Functions Manual ARCHIVE_READ_OPTIONS(3) -NAME - archive_read_set_filter_option, archive_read_set_format_option, - archive_read_set_option, archive_read_set_options — functions controlling +1mNAME0m + 1marchive_read_set_filter_option22m, 1marchive_read_set_format_option22m, + 1marchive_read_set_option22m, 1marchive_read_set_options 22m— functions controlling options for reading archives -LIBRARY +1mLIBRARY0m Streaming Archive Library (libarchive, -larchive) -SYNOPSIS - int - archive_read_set_filter_option(struct archive *, const char *module, - const char *option, const char *value); +1mSYNOPSIS0m + 4mint0m + 1marchive_read_set_filter_option22m(4mstruct24m 4marchive24m 4m*24m, 4mconst24m 4mchar24m 4m*module24m, + 4mconst24m 4mchar24m 4m*option24m, 4mconst24m 4mchar24m 4m*value24m); - int - archive_read_set_format_option(struct archive *, const char *module, - const char *option, const char *value); + 4mint0m + 1marchive_read_set_format_option22m(4mstruct24m 4marchive24m 4m*24m, 4mconst24m 4mchar24m 4m*module24m, + 4mconst24m 4mchar24m 4m*option24m, 4mconst24m 4mchar24m 4m*value24m); - int - archive_read_set_option(struct archive *, const char *module, - const char *option, const char *value); + 4mint0m + 1marchive_read_set_option22m(4mstruct24m 4marchive24m 4m*24m, 4mconst24m 4mchar24m 4m*module24m, + 4mconst24m 4mchar24m 4m*option24m, 4mconst24m 4mchar24m 4m*value24m); - int - archive_read_set_options(struct archive *, const char *options); + 4mint0m + 1marchive_read_set_options22m(4mstruct24m 4marchive24m 4m*24m, 4mconst24m 4mchar24m 4m*options24m); -DESCRIPTION +1mDESCRIPTION0m These functions provide a way for libarchive clients to configure spe‐ cific read modules. - archive_read_set_filter_option(), archive_read_set_format_option() + 1marchive_read_set_filter_option22m(), 1marchive_read_set_format_option22m() Specifies an option that will be passed to currently-registered filters (including decompression filters) or format readers. - If option and value are both NULL, these functions will do noth‐ - ing and ARCHIVE_OK will be returned. If option is NULL but value - is not, these functions will do nothing and ARCHIVE_FAILED will + If 4moption24m and 4mvalue24m are both NULL, these functions will do noth‐ + ing and 1mARCHIVE_OK 22mwill be returned. If 4moption24m is NULL but 4mvalue0m + is not, these functions will do nothing and 1mARCHIVE_FAILED 22mwill be returned. - If module is not NULL, option and value will be provided to the - filter or reader named module. The return value will be that of - the module. If there is no such module, ARCHIVE_FAILED will be + If 4mmodule24m is not NULL, 4moption24m and 4mvalue24m will be provided to the + filter or reader named 4mmodule24m. The return value will be that of + the module. If there is no such module, 1mARCHIVE_FAILED 22mwill be returned. - If module is NULL, option and value will be provided to every - registered module. If any module returns ARCHIVE_FATAL, this - value will be returned immediately. Otherwise, ARCHIVE_OK will - be returned if any module accepts the option, and ARCHIVE_FAILED + If 4mmodule24m is NULL, 4moption24m and 4mvalue24m will be provided to every + registered module. If any module returns 1mARCHIVE_FATAL22m, this + value will be returned immediately. Otherwise, 1mARCHIVE_OK 22mwill + be returned if any module accepts the option, and 1mARCHIVE_FAILED0m in all other cases. - archive_read_set_option() - Calls archive_read_set_format_option(), then - archive_read_set_filter_option(). If either function returns - ARCHIVE_FATAL, ARCHIVE_FATAL will be returned immediately. Oth‐ + 1marchive_read_set_option22m() + Calls 1marchive_read_set_format_option22m(), then + 1marchive_read_set_filter_option22m(). If either function returns + 1mARCHIVE_FATAL22m, 1mARCHIVE_FATAL 22mwill be returned immediately. Oth‐ erwise, greater of the two values will be returned. - archive_read_set_options() - options is a comma-separated list of options. If options is NULL - or empty, ARCHIVE_OK will be returned immediately. + 1marchive_read_set_options22m() + 4moptions24m is a comma-separated list of options. If 4moptions24m is NULL + or empty, 1mARCHIVE_OK 22mwill be returned immediately. - Calls archive_read_set_option() with each option in turn. If any - archive_read_set_option() call returns ARCHIVE_FATAL, - ARCHIVE_FATAL will be returned immediately. + Calls 1marchive_read_set_option22m() with each option in turn. If any + 1marchive_read_set_option22m() call returns 1mARCHIVE_FATAL22m, + 1mARCHIVE_FATAL 22mwill be returned immediately. Individual options have one of the following forms: - option=value + 4moption=value0m The option/value pair will be provided to every module. Modules that do not accept an option with this name will ignore it. - option The option will be provided to every module with a value + 4moption24m The option will be provided to every module with a value of “1”. - !option + 4m!option0m The option will be provided to every module with a NULL value. - module:option=value, module:option, module:!option + 4mmodule:option=value24m, 4mmodule:option24m, 4mmodule:!option0m As above, but the corresponding option and value will be - provided only to modules whose name matches module. + provided only to modules whose name matches 4mmodule24m. -OPTIONS +1mOPTIONS0m Format iso9660 - joliet Support Joliet extensions. Defaults to enabled, use - !joliet to disable. - rockridge + 1mjoliet 22mSupport Joliet extensions. Defaults to enabled, use + 1m!joliet 22mto disable. + 1mrockridge0m Support RockRidge extensions. Defaults to enabled, use - !rockridge to disable. + 1m!rockridge 22mto disable. Format tar - compat-2x + 1mcompat-2x0m Libarchive 2.x incorrectly encoded Unicode filenames on some platforms. This option mimics the libarchive 2.x filename handling so that such archives can be read cor‐ rectly. - hdrcharset + 1mhdrcharset0m The value is used as a character set name that will be used when translating filenames. - mac-ext + 1mmac-ext0m Support Mac OS metadata extension that records data in special files beginning with a period and underscore. Defaults to enabled on Mac OS, disabled on other plat‐ - forms. Use !mac-ext to disable. - read_concatenated_archives + forms. Use 1m!mac-ext 22mto disable. + 1mread_concatenated_archives0m Ignore zeroed blocks in the archive, which occurs when multiple tar archives have been concatenated together. Without this option, only the contents of the first con‐ catenated archive would be read. -ERRORS +1mERRORS0m Detailed error codes and textual descriptions are available from the - archive_errno() and archive_error_string() functions. + 1marchive_errno22m() and 1marchive_error_string22m() functions. -SEE ALSO +1mSEE ALSO0m tar(1), libarchive(3), archive_write_set_options(3), archive_read(3) BSD February 2, 2012 BSD diff --git a/archivers/libarchive/files/doc/text/archive_util.3.txt b/archivers/libarchive/files/doc/text/archive_util.3.txt index 94d7c6c3a8c..07221c1bc22 100644 --- a/archivers/libarchive/files/doc/text/archive_util.3.txt +++ b/archivers/libarchive/files/doc/text/archive_util.3.txt @@ -1,96 +1,96 @@ ARCHIVE_UTIL(3) BSD Library Functions Manual ARCHIVE_UTIL(3) -NAME - archive_clear_error, archive_compression, archive_compression_name, - archive_copy_error, archive_errno, archive_error_string, - archive_file_count, archive_filter_code, archive_filter_count, - archive_filter_name, archive_format, archive_format_name, - archive_position, archive_set_error — libarchive utility functions - -LIBRARY +1mNAME0m + 1marchive_clear_error22m, 1marchive_compression22m, 1marchive_compression_name22m, + 1marchive_copy_error22m, 1marchive_errno22m, 1marchive_error_string22m, + 1marchive_file_count22m, 1marchive_filter_code22m, 1marchive_filter_count22m, + 1marchive_filter_name22m, 1marchive_format22m, 1marchive_format_name22m, + 1marchive_position22m, 1marchive_set_error 22m— libarchive utility functions + +1mLIBRARY0m Streaming Archive Library (libarchive, -larchive) -SYNOPSIS - #include <archive.h> +1mSYNOPSIS0m + 1m#include <archive.h>0m - void - archive_clear_error(struct archive *); + 4mvoid0m + 1marchive_clear_error22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_compression(struct archive *); + 4mint0m + 1marchive_compression22m(4mstruct24m 4marchive24m 4m*24m); - const char * - archive_compression_name(struct archive *); + 4mconst24m 4mchar24m 4m*0m + 1marchive_compression_name22m(4mstruct24m 4marchive24m 4m*24m); - void - archive_copy_error(struct archive *, struct archive *); + 4mvoid0m + 1marchive_copy_error22m(4mstruct24m 4marchive24m 4m*24m, 4mstruct24m 4marchive24m 4m*24m); - int - archive_errno(struct archive *); + 4mint0m + 1marchive_errno22m(4mstruct24m 4marchive24m 4m*24m); - const char * - archive_error_string(struct archive *); + 4mconst24m 4mchar24m 4m*0m + 1marchive_error_string22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_file_count(struct archive *); + 4mint0m + 1marchive_file_count22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_filter_code(struct archive *, int); + 4mint0m + 1marchive_filter_code22m(4mstruct24m 4marchive24m 4m*24m, 4mint24m); - int - archive_filter_count(struct archive *, int); + 4mint0m + 1marchive_filter_count22m(4mstruct24m 4marchive24m 4m*24m, 4mint24m); - const char * - archive_filter_name(struct archive *, int); + 4mconst24m 4mchar24m 4m*0m + 1marchive_filter_name22m(4mstruct24m 4marchive24m 4m*24m, 4mint24m); - int - archive_format(struct archive *); + 4mint0m + 1marchive_format22m(4mstruct24m 4marchive24m 4m*24m); - const char * - archive_format_name(struct archive *); + 4mconst24m 4mchar24m 4m*0m + 1marchive_format_name22m(4mstruct24m 4marchive24m 4m*24m); - int64_t - archive_position(struct archive *, int); + 4mint64_t0m + 1marchive_position22m(4mstruct24m 4marchive24m 4m*24m, 4mint24m); - void - archive_set_error(struct archive *, int error_code, const char *fmt, - ...); + 4mvoid0m + 1marchive_set_error22m(4mstruct24m 4marchive24m 4m*24m, 4mint24m 4merror_code24m, 4mconst24m 4mchar24m 4m*fmt24m, + 4m...24m); -DESCRIPTION +1mDESCRIPTION0m These functions provide access to various information about the struct archive object used in the libarchive(3) library. - archive_clear_error() + 1marchive_clear_error22m() Clears any error information left over from a previous call. Not generally used in client code. - archive_compression() - Synonym for archive_filter_code(a,(0)). - archive_compression_name() - Synonym for archive_filter_name(a,(0)). - archive_copy_error() + 1marchive_compression22m() + Synonym for 1marchive_filter_code(a,22m(4m0)24m). + 1marchive_compression_name22m() + Synonym for 1marchive_filter_name(a,22m(4m0)24m). + 1marchive_copy_error22m() Copies error information from one archive to another. - archive_errno() + 1marchive_errno22m() Returns a numeric error code (see errno(2)) indicating the reason for the most recent error return. Note that this can not be reliably used to detect whether an error has occurred. It should be used only after another libarchive function has returned an error status. - archive_error_string() + 1marchive_error_string22m() Returns a textual error message suitable for display. The error message here is usually more specific than that obtained from - passing the result of archive_errno() to strerror(3). - archive_file_count() + passing the result of 1marchive_errno22m() to strerror(3). + 1marchive_file_count22m() Returns a count of the number of files processed by this archive object. The count is incremented by calls to archive_write_header(3) or archive_read_next_header(3). - archive_filter_code() + 1marchive_filter_code22m() Returns a numeric code identifying the indicated filter. See - archive_filter_count() for details of the numbering. - archive_filter_count() + 1marchive_filter_count22m() for details of the numbering. + 1marchive_filter_count22m() Returns the number of filters in the current pipeline. For read archive handles, these filters are added automatically by the automatic format detection. For write archive handles, these filters are added by calls to the various - archive_write_add_filter_XXX() functions. Filters in the result‐ + 1marchive_write_add_filter_XXX22m() functions. Filters in the result‐ ing pipeline are numbered so that filter 0 is the filter closest to the format handler. As a convenience, functions that expect a filter number will accept -1 as a synonym for the highest-num‐ @@ -100,35 +100,35 @@ DESCRIPTION are three filters: filter 0 is the gunzip filter, filter 1 is the uudecode filter, and filter 2 is the pseudo-filter that wraps the archive read functions. In this case, requesting - archive_position(a,(-1)) would be a synonym for - archive_position(a,(2)) which would return the number of bytes - currently read from the archive, while archive_position(a,(1)) + 1marchive_position(a,22m(4m-1)24m) would be a synonym for + 1marchive_position(a,22m(4m2)24m) which would return the number of bytes + currently read from the archive, while 1marchive_position(a,22m(4m1)24m) would return the number of bytes after uudecoding, and - archive_position(a,(0)) would return the number of bytes after + 1marchive_position(a,22m(4m0)24m) would return the number of bytes after decompression. - archive_filter_name() + 1marchive_filter_name22m() Returns a textual name identifying the indicated filter. See - archive_filter_count() for details of the numbering. - archive_format() + 1marchive_filter_count22m() for details of the numbering. + 1marchive_format22m() Returns a numeric code indicating the format of the current ar‐ chive entry. This value is set by a successful call to - archive_read_next_header(). Note that it is common for this + 1marchive_read_next_header22m(). Note that it is common for this value to change from entry to entry. For example, a tar archive might have several entries that utilize GNU tar extensions and several entries that do not. These entries will have different format codes. - archive_format_name() + 1marchive_format_name22m() A textual description of the format of the current entry. - archive_position() + 1marchive_position22m() Returns the number of bytes read from or written to the indicated - filter. In particular, archive_position(a,(0)) returns the num‐ + filter. In particular, 1marchive_position(a,22m(4m0)24m) returns the num‐ ber of bytes read or written by the format handler, while - archive_position(a,(-1)) returns the number of bytes read or - written to the archive. See archive_filter_count() for details + 1marchive_position(a,22m(4m-1)24m) returns the number of bytes read or + written to the archive. See 1marchive_filter_count22m() for details of the numbering here. - archive_set_error() + 1marchive_set_error22m() Sets the numeric error code and error description that will be - returned by archive_errno() and archive_error_string(). This + returned by 1marchive_errno22m() and 1marchive_error_string22m(). This function should be used within I/O callbacks to set system-spe‐ cific error codes and error descriptions. This function accepts a printf-like format string and arguments. However, you should @@ -138,13 +138,13 @@ DESCRIPTION other printf features are not uniformly supported and should not be used. -SEE ALSO +1mSEE ALSO0m archive_read(3), archive_write(3), libarchive(3), printf(3) -HISTORY - The libarchive library first appeared in FreeBSD 5.3. +1mHISTORY0m + The 1mlibarchive 22mlibrary first appeared in FreeBSD 5.3. -AUTHORS - The libarchive library was written by Tim Kientzle <kientzle@acm.org>. +1mAUTHORS0m + The 1mlibarchive 22mlibrary was written by Tim Kientzle <kientzle@acm.org>. BSD February 2, 2012 BSD diff --git a/archivers/libarchive/files/doc/text/archive_write.3.txt b/archivers/libarchive/files/doc/text/archive_write.3.txt index 7f779c81d11..ee525efe858 100644 --- a/archivers/libarchive/files/doc/text/archive_write.3.txt +++ b/archivers/libarchive/files/doc/text/archive_write.3.txt @@ -1,66 +1,66 @@ ARCHIVE_WRITE(3) BSD Library Functions Manual ARCHIVE_WRITE(3) -NAME - archive_write — functions for creating archives +1mNAME0m + 1marchive_write 22m— functions for creating archives -LIBRARY +1mLIBRARY0m Streaming Archive Library (libarchive, -larchive) -SYNOPSIS - #include <archive.h> +1mSYNOPSIS0m + 1m#include <archive.h>0m -DESCRIPTION +1mDESCRIPTION0m These functions provide a complete API for creating streaming archive files. The general process is to first create the struct archive object, set any desired options, initialize the archive, append entries, then close the archive and release all resources. - Create archive object + 1mCreate archive object0m See archive_write_new(3). To write an archive, you must first obtain an initialized struct archive - object from archive_write_new(). + object from 1marchive_write_new22m(). - Enable filters and formats, configure block size and padding + 1mEnable filters and formats, configure block size and padding0m See archive_write_filter(3), archive_write_format(3) and archive_write_blocksize(3). You can then modify this object for the desired operations with the vari‐ - ous archive_write_set_XXX() functions. In particular, you will need to - invoke appropriate archive_write_add_XXX() and archive_write_set_XXX() + ous 1marchive_write_set_XXX22m() functions. In particular, you will need to + invoke appropriate 1marchive_write_add_XXX22m() and 1marchive_write_set_XXX22m() functions to enable the corresponding compression and format support. - Set options + 1mSet options0m See archive_read_set_options(3). - Open archive + 1mOpen archive0m See archive_write_open(3). Once you have prepared the struct archive object, you call - archive_write_open() to actually open the archive and prepare it for + 1marchive_write_open22m() to actually open the archive and prepare it for writing. There are several variants of this function; the most basic expects you to provide pointers to several functions that can provide blocks of bytes from the archive. There are convenience forms that allow - you to specify a filename, file descriptor, FILE * object, or a block of + you to specify a filename, file descriptor, 4mFILE24m 4m*24m object, or a block of memory from which to write the archive data. - Produce archive + 1mProduce archive0m See archive_write_header(3) and archive_write_data(3). Individual archive entries are written in a three-step process: You first initialize a struct archive_entry structure with information about the new entry. At a minimum, you should set the pathname of the entry and - provide a struct stat with a valid st_mode field, which specifies the - type of object and st_size field, which specifies the size of the data + provide a 4mstruct24m 4mstat24m with a valid 4mst_mode24m field, which specifies the + type of object and 4mst_size24m field, which specifies the size of the data portion of the object. - Release resources + 1mRelease resources0m See archive_write_free(3). - After all entries have been written, use the archive_write_free() func‐ + After all entries have been written, use the 1marchive_write_free22m() func‐ tion to release all resources. -EXAMPLE +1mEXAMPLE0m The following sketch illustrates basic usage of the library. In this example, the callback functions are simply wrappers around the standard open(2), write(2), and close(2) system calls. @@ -160,17 +160,17 @@ EXAMPLE return 0; } -SEE ALSO +1mSEE ALSO0m tar(1), libarchive(3), archive_write_set_options(3), cpio(5), mtree(5), tar(5) -HISTORY - The libarchive library first appeared in FreeBSD 5.3. +1mHISTORY0m + The 1mlibarchive 22mlibrary first appeared in FreeBSD 5.3. -AUTHORS - The libarchive library was written by Tim Kientzle <kientzle@acm.org>. +1mAUTHORS0m + The 1mlibarchive 22mlibrary was written by Tim Kientzle <kientzle@acm.org>. -BUGS +1mBUGS0m There are many peculiar bugs in historic tar implementations that may cause certain programs to reject archives written by this library. For example, several historic implementations calculated header checksums @@ -184,7 +184,7 @@ BUGS a standard attribute for large device numbers. This library uses “SCHILY.devminor” and “SCHILY.devmajor” for device numbers that exceed the range supported by the backwards-compatible ustar header. These keys - are compatible with Joerg Schilling's star archiver. Other implementa‐ + are compatible with Joerg Schilling's 1mstar 22marchiver. Other implementa‐ tions may not recognize these keys and will thus be unable to correctly restore device nodes with large device numbers from archives created by this library. diff --git a/archivers/libarchive/files/doc/text/archive_write_blocksize.3.txt b/archivers/libarchive/files/doc/text/archive_write_blocksize.3.txt index d8cf943c55f..04937031417 100644 --- a/archivers/libarchive/files/doc/text/archive_write_blocksize.3.txt +++ b/archivers/libarchive/files/doc/text/archive_write_blocksize.3.txt @@ -1,30 +1,30 @@ ARCHIVE_WRITE_BLOCKSI... BSD Library Functions Manual ARCHIVE_WRITE_BLOCKSI... -NAME - archive_write_get_bytes_per_block, archive_write_set_bytes_per_block, - archive_write_get_bytes_in_last_block, - archive_write_set_bytes_in_last_block — functions for creating archives +1mNAME0m + 1marchive_write_get_bytes_per_block22m, 1marchive_write_set_bytes_per_block22m, + 1marchive_write_get_bytes_in_last_block22m, + 1marchive_write_set_bytes_in_last_block 22m— functions for creating archives -LIBRARY +1mLIBRARY0m Streaming Archive Library (libarchive, -larchive) -SYNOPSIS - #include <archive.h> +1mSYNOPSIS0m + 1m#include <archive.h>0m - int - archive_write_get_bytes_per_block(struct archive *); + 4mint0m + 1marchive_write_get_bytes_per_block22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_set_bytes_per_block(struct archive *, int bytes_per_block); + 4mint0m + 1marchive_write_set_bytes_per_block22m(4mstruct24m 4marchive24m 4m*24m, 4mint24m 4mbytes_per_block24m); - int - archive_write_get_bytes_in_last_block(struct archive *); + 4mint0m + 1marchive_write_get_bytes_in_last_block22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_set_bytes_in_last_block(struct archive *, int); + 4mint0m + 1marchive_write_set_bytes_in_last_block22m(4mstruct24m 4marchive24m 4m*24m, 4mint24m); -DESCRIPTION - archive_write_set_bytes_per_block() +1mDESCRIPTION0m + 1marchive_write_set_bytes_per_block22m() Sets the block size used for writing the archive data. Every call to the write callback function, except possibly the last one, will use this value for the length. The default is to use a @@ -32,12 +32,12 @@ DESCRIPTION suppress internal blocking and cause writes to be sent directly to the write callback as they occur. - archive_write_get_bytes_per_block() + 1marchive_write_get_bytes_per_block22m() Retrieve the block size to be used for writing. A value of -1 here indicates that the library should use default values. A value of zero indicates that internal blocking is suppressed. - archive_write_set_bytes_in_last_block() + 1marchive_write_set_bytes_in_last_block22m() Sets the block size used for writing the last block. If this value is zero, the last block will be padded to the same size as the other blocks. Otherwise, the final block will be padded to a @@ -46,28 +46,28 @@ DESCRIPTION padding generated by this option is applied only after the com‐ pression. The uncompressed data is always unpadded. The default is to pad the last block to the full block size (note that - archive_write_open_filename() will set this based on the file + 1marchive_write_open_filename22m() will set this based on the file type). Unlike the other “set” functions, this function can be called after the archive is opened. - archive_write_get_bytes_in_last_block() + 1marchive_write_get_bytes_in_last_block22m() Retrieve the currently-set value for last block size. A value of -1 here indicates that the library should use default values. -RETURN VALUES - archive_write_set_bytes_per_block() and - archive_write_set_bytes_in_last_block() return ARCHIVE_OK on success, or - ARCHIVE_FATAL. +1mRETURN VALUES0m + 1marchive_write_set_bytes_per_block22m() and + 1marchive_write_set_bytes_in_last_block22m() return 1mARCHIVE_OK 22mon success, or + 1mARCHIVE_FATAL22m. - archive_write_get_bytes_per_block() and - archive_write_get_bytes_in_last_block() return currently configured block - size (-1 indicates the default block size), or ARCHIVE_FATAL. + 1marchive_write_get_bytes_per_block22m() and + 1marchive_write_get_bytes_in_last_block22m() return currently configured block + size (-1 indicates the default block size), or 1mARCHIVE_FATAL22m. -ERRORS +1mERRORS0m Detailed error codes and textual descriptions are available from the - archive_errno() and archive_error_string() functions. + 1marchive_errno22m() and 1marchive_error_string22m() functions. -SEE ALSO +1mSEE ALSO0m tar(1), libarchive(3), archive_write_set_options(3), cpio(5), mtree(5), tar(5) diff --git a/archivers/libarchive/files/doc/text/archive_write_data.3.txt b/archivers/libarchive/files/doc/text/archive_write_data.3.txt index 69f4282cabc..97a93313b5a 100644 --- a/archivers/libarchive/files/doc/text/archive_write_data.3.txt +++ b/archivers/libarchive/files/doc/text/archive_write_data.3.txt @@ -1,36 +1,36 @@ ARCHIVE_WRITE_DATA(3) BSD Library Functions Manual ARCHIVE_WRITE_DATA(3) -NAME - archive_write_data — functions for creating archives +1mNAME0m + 1marchive_write_data 22m— functions for creating archives -LIBRARY +1mLIBRARY0m Streaming Archive Library (libarchive, -larchive) -SYNOPSIS - #include <archive.h> +1mSYNOPSIS0m + 1m#include <archive.h>0m - la_ssize_t - archive_write_data(struct archive *, const void *, size_t); + 4mla_ssize_t0m + 1marchive_write_data22m(4mstruct24m 4marchive24m 4m*24m, 4mconst24m 4mvoid24m 4m*24m, 4msize_t24m); -DESCRIPTION +1mDESCRIPTION0m Write data corresponding to the header just written. -RETURN VALUES +1mRETURN VALUES0m This function returns the number of bytes actually written, or a negative error code on error. -ERRORS +1mERRORS0m Detailed error codes and textual descriptions are available from the - archive_errno() and archive_error_string() functions. + 1marchive_errno22m() and 1marchive_error_string22m() functions. -BUGS +1mBUGS0m In libarchive 3.x, this function sometimes returns zero on success instead of returning the number of bytes written. Specifically, this - occurs when writing to an archive_write_disk handle. Clients should + occurs when writing to an 4marchive_write_disk24m handle. Clients should treat any value less than zero as an error and consider any non-negative value as success. -SEE ALSO +1mSEE ALSO0m tar(1), libarchive(3), archive_write_finish_entry(3), archive_write_set_options(3), cpio(5), mtree(5), tar(5) diff --git a/archivers/libarchive/files/doc/text/archive_write_disk.3.txt b/archivers/libarchive/files/doc/text/archive_write_disk.3.txt index 12afe676021..9980c1c88b7 100644 --- a/archivers/libarchive/files/doc/text/archive_write_disk.3.txt +++ b/archivers/libarchive/files/doc/text/archive_write_disk.3.txt @@ -1,158 +1,158 @@ ARCHIVE_WRITE_DISK(3) BSD Library Functions Manual ARCHIVE_WRITE_DISK(3) -NAME - archive_write_disk_new, archive_write_disk_set_options, - archive_write_disk_set_skip_file, archive_write_disk_set_group_lookup, - archive_write_disk_set_standard_lookup, - archive_write_disk_set_user_lookup, archive_write_header, - archive_write_data, archive_write_data_block, archive_write_finish_entry, - archive_write_close, archive_write_finish archive_write_free — functions +1mNAME0m + 1marchive_write_disk_new22m, 1marchive_write_disk_set_options22m, + 1marchive_write_disk_set_skip_file22m, 1marchive_write_disk_set_group_lookup22m, + 1marchive_write_disk_set_standard_lookup22m, + 1marchive_write_disk_set_user_lookup22m, 1marchive_write_header22m, + 1marchive_write_data22m, 1marchive_write_data_block22m, 1marchive_write_finish_entry22m, + 1marchive_write_close22m, 1marchive_write_finish archive_write_free 22m— functions for creating objects on disk -LIBRARY +1mLIBRARY0m Streaming Archive Library (libarchive, -larchive) -SYNOPSIS - #include <archive.h> +1mSYNOPSIS0m + 1m#include <archive.h>0m - struct archive * - archive_write_disk_new(void); + 4mstruct24m 4marchive24m 4m*0m + 1marchive_write_disk_new22m(4mvoid24m); - int - archive_write_disk_set_options(struct archive *, int flags); + 4mint0m + 1marchive_write_disk_set_options22m(4mstruct24m 4marchive24m 4m*24m, 4mint24m 4mflags24m); - int - archive_write_disk_set_skip_file(struct archive *, dev_t, ino_t); + 4mint0m + 1marchive_write_disk_set_skip_file22m(4mstruct24m 4marchive24m 4m*24m, 4mdev_t24m, 4mino_t24m); - int - archive_write_disk_set_group_lookup(struct archive *, void *, - gid_t (*)(void *, const char *gname, gid_t gid), - void (*cleanup)(void *)); + 4mint0m + 1marchive_write_disk_set_group_lookup22m(4mstruct24m 4marchive24m 4m*24m, 4mvoid24m 4m*24m, + 4mgid_t24m 4m(*)(void24m 4m*,24m 4mconst24m 4mchar24m 4m*gname,24m 4mgid_t24m 4mgid)24m, + 4mvoid24m 4m(*cleanup)(void24m 4m*)24m); - int - archive_write_disk_set_standard_lookup(struct archive *); + 4mint0m + 1marchive_write_disk_set_standard_lookup22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_disk_set_user_lookup(struct archive *, void *, - uid_t (*)(void *, const char *uname, uid_t uid), - void (*cleanup)(void *)); + 4mint0m + 1marchive_write_disk_set_user_lookup22m(4mstruct24m 4marchive24m 4m*24m, 4mvoid24m 4m*24m, + 4muid_t24m 4m(*)(void24m 4m*,24m 4mconst24m 4mchar24m 4m*uname,24m 4muid_t24m 4muid)24m, + 4mvoid24m 4m(*cleanup)(void24m 4m*)24m); - int - archive_write_header(struct archive *, struct archive_entry *); + 4mint0m + 1marchive_write_header22m(4mstruct24m 4marchive24m 4m*24m, 4mstruct24m 4marchive_entry24m 4m*24m); - la_ssize_t - archive_write_data(struct archive *, const void *, size_t); + 4mla_ssize_t0m + 1marchive_write_data22m(4mstruct24m 4marchive24m 4m*24m, 4mconst24m 4mvoid24m 4m*24m, 4msize_t24m); - la_ssize_t - archive_write_data_block(struct archive *, const void *, size_t size, - int64_t offset); + 4mla_ssize_t0m + 1marchive_write_data_block22m(4mstruct24m 4marchive24m 4m*24m, 4mconst24m 4mvoid24m 4m*24m, 4msize_t24m 4msize24m, + 4mint64_t24m 4moffset24m); - int - archive_write_finish_entry(struct archive *); + 4mint0m + 1marchive_write_finish_entry22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_close(struct archive *); + 4mint0m + 1marchive_write_close22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_finish(struct archive *); + 4mint0m + 1marchive_write_finish22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_free(struct archive *); + 4mint0m + 1marchive_write_free22m(4mstruct24m 4marchive24m 4m*24m); -DESCRIPTION +1mDESCRIPTION0m These functions provide a complete API for creating objects on disk from struct archive_entry descriptions. They are most naturally used when - extracting objects from an archive using the archive_read() interface. + extracting objects from an archive using the 1marchive_read22m() interface. The general process is to read struct archive_entry objects from an ar‐ chive, then write those objects to a struct archive object created using - the archive_write_disk() family functions. This interface is deliber‐ - ately very similar to the archive_write() interface used to write objects + the 1marchive_write_disk22m() family functions. This interface is deliber‐ + ately very similar to the 1marchive_write22m() interface used to write objects to a streaming archive. - archive_write_disk_new() + 1marchive_write_disk_new22m() Allocates and initializes a struct archive object suitable for writing objects to disk. - archive_write_disk_set_skip_file() + 1marchive_write_disk_set_skip_file22m() Records the device and inode numbers of a file that should not be overwritten. This is typically used to ensure that an extraction process does not overwrite the archive from which objects are being read. This capability is technically unnecessary but can be a significant performance optimization in practice. - archive_write_disk_set_options() + 1marchive_write_disk_set_options22m() The options field consists of a bitwise OR of one or more of the following values: - ARCHIVE_EXTRACT_OWNER + 1mARCHIVE_EXTRACT_OWNER0m The user and group IDs should be set on the restored file. By default, the user and group IDs are not restored. - ARCHIVE_EXTRACT_PERM + 1mARCHIVE_EXTRACT_PERM0m Full permissions (including SGID, SUID, and sticky bits) should be restored exactly as specified, without obeying the current umask. Note that SUID and SGID bits can only be restored if the user and group ID of the object on - disk are correct. If ARCHIVE_EXTRACT_OWNER is not speci‐ + disk are correct. If 1mARCHIVE_EXTRACT_OWNER 22mis not speci‐ fied, then SUID and SGID bits will only be restored if the default user and group IDs of newly-created objects on disk happen to match those specified in the archive entry. By default, only basic permissions are restored, and umask is obeyed. - ARCHIVE_EXTRACT_TIME + 1mARCHIVE_EXTRACT_TIME0m The timestamps (mtime, ctime, and atime) should be restored. By default, they are ignored. Note that restoring of atime is not currently supported. - ARCHIVE_EXTRACT_NO_OVERWRITE + 1mARCHIVE_EXTRACT_NO_OVERWRITE0m Existing files on disk will not be overwritten. By default, existing regular files are truncated and over‐ written; existing directories will have their permissions updated; other pre-existing objects are unlinked and recreated from scratch. - ARCHIVE_EXTRACT_UNLINK + 1mARCHIVE_EXTRACT_UNLINK0m Existing files on disk will be unlinked before any attempt to create them. In some cases, this can prove to be a significant performance improvement. By default, existing files are truncated and rewritten, but the file is not recreated. In particular, the default behavior does not break existing hard links. - ARCHIVE_EXTRACT_ACL + 1mARCHIVE_EXTRACT_ACL0m Attempt to restore ACLs. By default, extended ACLs are ignored. - ARCHIVE_EXTRACT_FFLAGS + 1mARCHIVE_EXTRACT_FFLAGS0m Attempt to restore extended file flags. By default, file flags are ignored. - ARCHIVE_EXTRACT_XATTR + 1mARCHIVE_EXTRACT_XATTR0m Attempt to restore POSIX.1e extended attributes. By default, they are ignored. - ARCHIVE_EXTRACT_SECURE_SYMLINKS + 1mARCHIVE_EXTRACT_SECURE_SYMLINKS0m Refuse to extract any object whose final location would be altered by a symlink on disk. This is intended to help guard against a variety of mischief caused by ar‐ chives that (deliberately or otherwise) extract files outside of the current directory. The default is not to - perform this check. If ARCHIVE_EXTRACT_UNLINK is speci‐ + perform this check. If 1mARCHIVE_EXTRACT_UNLINK 22mis speci‐ fied together with this option, the library will remove any intermediate symlinks it finds and return an error only if such symlink could not be removed. - ARCHIVE_EXTRACT_SECURE_NODOTDOT - Refuse to extract a path that contains a .. element any‐ + 1mARCHIVE_EXTRACT_SECURE_NODOTDOT0m + Refuse to extract a path that contains a 4m..24m element any‐ where within it. The default is to not refuse such - paths. Note that paths ending in .. always cause an + paths. Note that paths ending in 4m..24m always cause an error, regardless of this flag. - ARCHIVE_EXTRACT_SECURE_NOABSOLUTEPATHS + 1mARCHIVE_EXTRACT_SECURE_NOABSOLUTEPATHS0m Refuse to extract an absolute path. The default is to not refuse such paths. - ARCHIVE_EXTRACT_SPARSE + 1mARCHIVE_EXTRACT_SPARSE0m Scan data for blocks of NUL bytes and try to recreate them with holes. This results in sparse files, indepen‐ dent of whether the archive format supports or uses them. - ARCHIVE_EXTRACT_CLEAR_NOCHANGE_FFLAGS + 1mARCHIVE_EXTRACT_CLEAR_NOCHANGE_FFLAGS0m Before removing a file system object prior to replacing it, clear platform-specific file flags which might pre‐ vent its removal. - archive_write_disk_set_group_lookup(), - archive_write_disk_set_user_lookup() + 1marchive_write_disk_set_group_lookup22m(), + 1marchive_write_disk_set_user_lookup22m() The struct archive_entry objects contain both names and ids that can be used to identify users and groups. These names and ids describe the ownership of the file itself and also appear in ACL @@ -164,7 +164,7 @@ DESCRIPTION and a cleanup function for that data. The cleanup function will be invoked when the struct archive object is destroyed. - archive_write_disk_set_standard_lookup() + 1marchive_write_disk_set_standard_lookup22m() This convenience function installs a standard set of user and group lookup functions. These functions use getpwnam(3) and getgrnam(3) to convert names to ids, defaulting to the ids if the @@ -172,111 +172,111 @@ DESCRIPTION ple memory cache to reduce the number of calls to getpwnam(3) and getgrnam(3). - archive_write_header() + 1marchive_write_header22m() Build and write a header using the data in the provided struct archive_entry structure. See archive_entry(3) for information on creating and populating struct archive_entry objects. - archive_write_data() + 1marchive_write_data22m() Write data corresponding to the header just written. Returns number of bytes written or -1 on error. - archive_write_data_block() + 1marchive_write_data_block22m() Write data corresponding to the header just written. This is - like archive_write_data() except that it performs a seek on the + like 1marchive_write_data22m() except that it performs a seek on the file being written to the specified offset before writing the data. This is useful when restoring sparse files from archive formats that support sparse files. Returns number of bytes writ‐ ten or -1 on error. (Note: This is currently not supported for archive_write handles, only for archive_write_disk handles.) - archive_write_finish_entry() + 1marchive_write_finish_entry22m() Close out the entry just written. Ordinarily, clients never need to call this, as it is called automatically by - archive_write_next_header() and archive_write_close() as needed. + 1marchive_write_next_header22m() and 1marchive_write_close22m() as needed. However, some file attributes are written to disk only after the file is closed, so this can be necessary if you need to work with the file on disk right away. - archive_write_close() + 1marchive_write_close22m() Set any attributes that could not be set during the initial restore. For example, directory timestamps are not restored ini‐ tially because restoring a subsequent file would alter that time‐ stamp. Similarly, non-writable directories are initially created with write permissions (so that their contents can be restored). - The archive_write_disk_new library maintains a list of all such + The 1marchive_write_disk_new 22mlibrary maintains a list of all such deferred attributes and sets them when this function is invoked. - archive_write_finish() - This is a deprecated synonym for archive_write_free(). + 1marchive_write_finish22m() + This is a deprecated synonym for 1marchive_write_free22m(). - archive_write_free() - Invokes archive_write_close() if it was not invoked manually, + 1marchive_write_free22m() + Invokes 1marchive_write_close22m() if it was not invoked manually, then releases all resources. - More information about the struct archive object and the overall design + More information about the 4mstruct24m 4marchive24m object and the overall design of the library can be found in the libarchive(3) overview. Many of these functions are also documented under archive_write(3). -RETURN VALUES - Most functions return ARCHIVE_OK (zero) on success, or one of several +1mRETURN VALUES0m + Most functions return 1mARCHIVE_OK 22m(zero) on success, or one of several non-zero error codes for errors. Specific error codes include: - ARCHIVE_RETRY for operations that might succeed if retried, ARCHIVE_WARN + 1mARCHIVE_RETRY 22mfor operations that might succeed if retried, 1mARCHIVE_WARN0m for unusual conditions that do not prevent further operations, and - ARCHIVE_FATAL for serious errors that make remaining operations impossi‐ + 1mARCHIVE_FATAL 22mfor serious errors that make remaining operations impossi‐ ble. - archive_write_disk_new() returns a pointer to a newly-allocated struct + 1marchive_write_disk_new22m() returns a pointer to a newly-allocated struct archive object. - archive_write_data() returns a count of the number of bytes actually + 1marchive_write_data22m() returns a count of the number of bytes actually written, or -1 on error. -ERRORS +1mERRORS0m Detailed error codes and textual descriptions are available from the - archive_errno() and archive_error_string() functions. + 1marchive_errno22m() and 1marchive_error_string22m() functions. -SEE ALSO +1mSEE ALSO0m archive_read(3), archive_write(3), tar(1), libarchive(3) -HISTORY - The libarchive library first appeared in FreeBSD 5.3. The - archive_write_disk interface was added to libarchive 2.0 and first +1mHISTORY0m + The 1mlibarchive 22mlibrary first appeared in FreeBSD 5.3. The + 1marchive_write_disk 22minterface was added to 1mlibarchive 2.0 22mand first appeared in FreeBSD 6.3. -AUTHORS - The libarchive library was written by Tim Kientzle <kientzle@acm.org>. +1mAUTHORS0m + The 1mlibarchive 22mlibrary was written by Tim Kientzle <kientzle@acm.org>. -BUGS +1mBUGS0m Directories are actually extracted in two distinct phases. Directories - are created during archive_write_header(), but final permissions are not - set until archive_write_close(). This separation is necessary to cor‐ + are created during 1marchive_write_header22m(), but final permissions are not + set until 1marchive_write_close22m(). This separation is necessary to cor‐ rectly handle borderline cases such as a non-writable directory contain‐ ing files, but can cause unexpected results. In particular, directory permissions are not fully restored until the archive is closed. If you use chdir(2) to change the current directory between calls to - archive_read_extract() or before calling archive_read_close(), you may + 1marchive_read_extract22m() or before calling 1marchive_read_close22m(), you may confuse the permission-setting logic with the result that directory per‐ missions are restored incorrectly. The library attempts to create objects with filenames longer than - PATH_MAX by creating prefixes of the full path and changing the current + 1mPATH_MAX 22mby creating prefixes of the full path and changing the current directory. Currently, this logic is limited in scope; the fixup pass does not work correctly for such objects and the symlink security check option disables the support for very long pathnames. - Restoring the path aa/../bb does create each intermediate directory. In - particular, the directory aa is created as well as the final object bb. + Restoring the path 4maa/../bb24m does create each intermediate directory. In + particular, the directory 4maa24m is created as well as the final object 4mbb24m. In theory, this can be exploited to create an entire directory hierarchy with a single request. Of course, this does not work if the - ARCHIVE_EXTRACT_NODOTDOT option is specified. + 1mARCHIVE_EXTRACT_NODOTDOT 22moption is specified. Implicit directories are always created obeying the current umask. Explicit objects are created obeying the current umask unless - ARCHIVE_EXTRACT_PERM is specified, in which case they current umask is + 1mARCHIVE_EXTRACT_PERM 22mis specified, in which case they current umask is ignored. SGID and SUID bits are restored only if the correct user and group could - be set. If ARCHIVE_EXTRACT_OWNER is not specified, then no attempt is + be set. If 1mARCHIVE_EXTRACT_OWNER 22mis not specified, then no attempt is made to set the ownership. In this case, SGID and SUID bits are restored only if the user and group of the final object happen to match those specified in the entry. @@ -286,7 +286,7 @@ BUGS lar applications. The current design allows the application author to use a more compact implementation when appropriate. - There should be a corresponding archive_read_disk interface that walks a + There should be a corresponding 1marchive_read_disk 22minterface that walks a directory hierarchy and returns archive entry objects. BSD February 2, 2012 BSD diff --git a/archivers/libarchive/files/doc/text/archive_write_filter.3.txt b/archivers/libarchive/files/doc/text/archive_write_filter.3.txt index f6e8be6adb0..ce4ece9e938 100644 --- a/archivers/libarchive/files/doc/text/archive_write_filter.3.txt +++ b/archivers/libarchive/files/doc/text/archive_write_filter.3.txt @@ -1,95 +1,95 @@ ARCHIVE_WRITE_FILTER(3) BSD Library Functions Manual ARCHIVE_WRITE_FILTER(3) -NAME - archive_write_add_filter_b64encode, archive_write_add_filter_by_name, - archive_write_add_filter_bzip2, archive_write_add_filter_compress, - archive_write_add_filter_grzip, archive_write_add_filter_gzip, - archive_write_add_filter_lrzip, archive_write_add_filter_lz4, - archive_write_add_filter_lzip, archive_write_add_filter_lzma, - archive_write_add_filter_lzop, archive_write_add_filter_none, - archive_write_add_filter_program, archive_write_add_filter_uuencode, - archive_write_add_filter_xz — functions enabling output filters - -LIBRARY +1mNAME0m + 1marchive_write_add_filter_b64encode22m, 1marchive_write_add_filter_by_name22m, + 1marchive_write_add_filter_bzip222m, 1marchive_write_add_filter_compress22m, + 1marchive_write_add_filter_grzip22m, 1marchive_write_add_filter_gzip22m, + 1marchive_write_add_filter_lrzip22m, 1marchive_write_add_filter_lz422m, + 1marchive_write_add_filter_lzip22m, 1marchive_write_add_filter_lzma22m, + 1marchive_write_add_filter_lzop22m, 1marchive_write_add_filter_none22m, + 1marchive_write_add_filter_program22m, 1marchive_write_add_filter_uuencode22m, + 1marchive_write_add_filter_xz 22m— functions enabling output filters + +1mLIBRARY0m Streaming Archive Library (libarchive, -larchive) -SYNOPSIS - #include <archive.h> +1mSYNOPSIS0m + 1m#include <archive.h>0m - int - archive_write_add_filter_b64encode(struct archive *); + 4mint0m + 1marchive_write_add_filter_b64encode22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_add_filter_bzip2(struct archive *); + 4mint0m + 1marchive_write_add_filter_bzip222m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_add_filter_compress(struct archive *); + 4mint0m + 1marchive_write_add_filter_compress22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_add_filter_grzip(struct archive *); + 4mint0m + 1marchive_write_add_filter_grzip22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_add_filter_gzip(struct archive *); + 4mint0m + 1marchive_write_add_filter_gzip22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_add_filter_lrzip(struct archive *); + 4mint0m + 1marchive_write_add_filter_lrzip22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_add_filter_lz4(struct archive *); + 4mint0m + 1marchive_write_add_filter_lz422m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_add_filter_lzip(struct archive *); + 4mint0m + 1marchive_write_add_filter_lzip22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_add_filter_lzma(struct archive *); + 4mint0m + 1marchive_write_add_filter_lzma22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_add_filter_lzop(struct archive *); + 4mint0m + 1marchive_write_add_filter_lzop22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_add_filter_none(struct archive *); + 4mint0m + 1marchive_write_add_filter_none22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_add_filter_program(struct archive *, const char * cmd); + 4mint0m + 1marchive_write_add_filter_program22m(4mstruct24m 4marchive24m 4m*24m, 4mconst24m 4mchar24m 4m*24m 4mcmd24m); - int - archive_write_add_filter_uuencode(struct archive *); + 4mint0m + 1marchive_write_add_filter_uuencode22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_add_filter_xz(struct archive *); + 4mint0m + 1marchive_write_add_filter_xz22m(4mstruct24m 4marchive24m 4m*24m); -DESCRIPTION - archive_write_add_filter_bzip2(), archive_write_add_filter_compress(), - archive_write_add_filter_grzip(), - archive_write_add_filter_gzip(), - archive_write_add_filter_lrzip(), archive_write_add_filter_lz4(), - archive_write_add_filter_lzip(), archive_write_add_filter_lzma(), - archive_write_add_filter_lzop(), archive_write_add_filter_xz(), +1mDESCRIPTION0m + 1marchive_write_add_filter_bzip222m(), 1marchive_write_add_filter_compress22m(), + 1marchive_write_add_filter_grzip22m(), + 1marchive_write_add_filter_gzip22m(), + 1marchive_write_add_filter_lrzip22m(), 1marchive_write_add_filter_lz422m(), + 1marchive_write_add_filter_lzip22m(), 1marchive_write_add_filter_lzma22m(), + 1marchive_write_add_filter_lzop22m(), 1marchive_write_add_filter_xz22m(), The resulting archive will be compressed as specified. Note that the compressed output is always properly blocked. - archive_write_add_filter_b64encode(), - archive_write_add_filter_uuencode(), + 1marchive_write_add_filter_b64encode22m(), + 1marchive_write_add_filter_uuencode22m(), The output will be encoded as specified. The encoded output is always properly blocked. - archive_write_add_filter_none() + 1marchive_write_add_filter_none22m() This is never necessary. It is provided only for backwards com‐ patibility. - archive_write_add_filter_program() + 1marchive_write_add_filter_program22m() The archive will be fed into the specified compression program. The output of that program is blocked and written to the client write callbacks. -RETURN VALUES - These functions return ARCHIVE_OK on success, or ARCHIVE_FATAL. +1mRETURN VALUES0m + These functions return 1mARCHIVE_OK 22mon success, or 1mARCHIVE_FATAL22m. -ERRORS +1mERRORS0m Detailed error codes and textual descriptions are available from the - archive_errno() and archive_error_string() functions. + 1marchive_errno22m() and 1marchive_error_string22m() functions. -SEE ALSO +1mSEE ALSO0m tar(1), libarchive(3), archive_write(3), archive_write_format(3), archive_write_set_options(3), cpio(5), mtree(5), tar(5) diff --git a/archivers/libarchive/files/doc/text/archive_write_finish_entry.3.txt b/archivers/libarchive/files/doc/text/archive_write_finish_entry.3.txt index df42000f7c4..68ee1d189c2 100644 --- a/archivers/libarchive/files/doc/text/archive_write_finish_entry.3.txt +++ b/archivers/libarchive/files/doc/text/archive_write_finish_entry.3.txt @@ -1,35 +1,35 @@ ARCHIVE_WRITE_FINISH_... BSD Library Functions Manual ARCHIVE_WRITE_FINISH_... -NAME - archive_write_finish_entry — functions for creating archives +1mNAME0m + 1marchive_write_finish_entry 22m— functions for creating archives -LIBRARY +1mLIBRARY0m Streaming Archive Library (libarchive, -larchive) -SYNOPSIS - #include <archive.h> +1mSYNOPSIS0m + 1m#include <archive.h>0m - int - archive_write_finish_entry(struct archive *); + 4mint0m + 1marchive_write_finish_entry22m(4mstruct24m 4marchive24m 4m*24m); -DESCRIPTION +1mDESCRIPTION0m Close out the entry just written. In particular, this writes out the final padding required by some formats. Ordinarily, clients never need - to call this, as it is called automatically by archive_write_header() and - archive_write_close() as needed. - -RETURN VALUES - This function returns ARCHIVE_OK on success, or one of several non-zero - error codes for errors. Specific error codes include: ARCHIVE_RETRY for - operations that might succeed if retried, ARCHIVE_WARN for unusual condi‐ - tions that do not prevent further operations, and ARCHIVE_FATAL for seri‐ + to call this, as it is called automatically by 1marchive_write_header22m() and + 1marchive_write_close22m() as needed. + +1mRETURN VALUES0m + This function returns 1mARCHIVE_OK 22mon success, or one of several non-zero + error codes for errors. Specific error codes include: 1mARCHIVE_RETRY 22mfor + operations that might succeed if retried, 1mARCHIVE_WARN 22mfor unusual condi‐ + tions that do not prevent further operations, and 1mARCHIVE_FATAL 22mfor seri‐ ous errors that make remaining operations impossible. -ERRORS +1mERRORS0m Detailed error codes and textual descriptions are available from the - archive_errno() and archive_error_string() functions. + 1marchive_errno22m() and 1marchive_error_string22m() functions. -SEE ALSO +1mSEE ALSO0m tar(1), libarchive(3), archive_write_data(3), archive_write_set_options(3), cpio(5), mtree(5), tar(5) diff --git a/archivers/libarchive/files/doc/text/archive_write_format.3.txt b/archivers/libarchive/files/doc/text/archive_write_format.3.txt index a6bd7a66c70..7dd6c4f1a27 100644 --- a/archivers/libarchive/files/doc/text/archive_write_format.3.txt +++ b/archivers/libarchive/files/doc/text/archive_write_format.3.txt @@ -1,146 +1,146 @@ ARCHIVE_WRITE_FORMAT(3) BSD Library Functions Manual ARCHIVE_WRITE_FORMAT(3) -NAME - archive_write_set_format, archive_write_set_format_7zip, - archive_write_set_format_ar, archive_write_set_format_ar_bsd, - archive_write_set_format_ar_svr4, archive_write_set_format_by_name, - archive_write_set_format_cpio, archive_write_set_format_cpio_newc, - archive_write_set_format_filter_by_ext, - archive_write_set_format_filter_by_ext_def, - archive_write_set_format_gnutar, archive_write_set_format_iso9660, - archive_write_set_format_mtree, archive_write_set_format_mtree_classic, - archive_write_set_format_mtree_default, archive_write_set_format_pax, - archive_write_set_format_pax_restricted, archive_write_set_format_raw, - archive_write_set_format_shar, archive_write_set_format_shar_dump, - archive_write_set_format_ustar, archive_write_set_format_v7tar, - archive_write_set_format_warc, archive_write_set_format_xar, - archive_write_set_format_zip, — functions for creating archives - -LIBRARY +1mNAME0m + 1marchive_write_set_format22m, 1marchive_write_set_format_7zip22m, + 1marchive_write_set_format_ar22m, 1marchive_write_set_format_ar_bsd22m, + 1marchive_write_set_format_ar_svr422m, 1marchive_write_set_format_by_name22m, + 1marchive_write_set_format_cpio22m, 1marchive_write_set_format_cpio_newc22m, + 1marchive_write_set_format_filter_by_ext22m, + 1marchive_write_set_format_filter_by_ext_def22m, + 1marchive_write_set_format_gnutar22m, 1marchive_write_set_format_iso966022m, + 1marchive_write_set_format_mtree22m, 1marchive_write_set_format_mtree_classic22m, + 1marchive_write_set_format_mtree_default22m, 1marchive_write_set_format_pax22m, + 1marchive_write_set_format_pax_restricted22m, 1marchive_write_set_format_raw22m, + 1marchive_write_set_format_shar22m, 1marchive_write_set_format_shar_dump22m, + 1marchive_write_set_format_ustar22m, 1marchive_write_set_format_v7tar22m, + 1marchive_write_set_format_warc22m, 1marchive_write_set_format_xar22m, + 1marchive_write_set_format_zip22m, — functions for creating archives + +1mLIBRARY0m Streaming Archive Library (libarchive, -larchive) -SYNOPSIS - #include <archive.h> +1mSYNOPSIS0m + 1m#include <archive.h>0m - int - archive_write_set_format(struct archive *, int code); + 4mint0m + 1marchive_write_set_format22m(4mstruct24m 4marchive24m 4m*24m, 4mint24m 4mcode24m); - int - archive_write_set_format_7zip(struct archive *); + 4mint0m + 1marchive_write_set_format_7zip22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_set_format_ar(struct archive *); + 4mint0m + 1marchive_write_set_format_ar22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_set_format_ar_bsd(struct archive *); + 4mint0m + 1marchive_write_set_format_ar_bsd22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_set_format_ar_svr4(struct archive *); + 4mint0m + 1marchive_write_set_format_ar_svr422m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_set_format_by_name(struct archive *, const char *name); + 4mint0m + 1marchive_write_set_format_by_name22m(4mstruct24m 4marchive24m 4m*24m, 4mconst24m 4mchar24m 4m*name24m); - int - archive_write_set_format_cpio(struct archive *); + 4mint0m + 1marchive_write_set_format_cpio22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_set_format_cpio_newc(struct archive *); + 4mint0m + 1marchive_write_set_format_cpio_newc22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_set_format_filter_by_ext(struct archive *, - const char *filename); + 4mint0m + 1marchive_write_set_format_filter_by_ext22m(4mstruct24m 4marchive24m 4m*24m, + 4mconst24m 4mchar24m 4m*filename24m); - int - archive_write_set_format_filter_by_ext_def(struct archive *, - const char *filename, const char *def_ext); + 4mint0m + 1marchive_write_set_format_filter_by_ext_def22m(4mstruct24m 4marchive24m 4m*24m, + 4mconst24m 4mchar24m 4m*filename24m, 4mconst24m 4mchar24m 4m*def_ext24m); - int - archive_write_set_format_gnutar(struct archive *); + 4mint0m + 1marchive_write_set_format_gnutar22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_set_format_iso9660(struct archive *); + 4mint0m + 1marchive_write_set_format_iso966022m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_set_format_mtree(struct archive *); + 4mint0m + 1marchive_write_set_format_mtree22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_set_format_pax(struct archive *); + 4mint0m + 1marchive_write_set_format_pax22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_set_format_pax_restricted(struct archive *); + 4mint0m + 1marchive_write_set_format_pax_restricted22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_set_format_raw(struct archive *); + 4mint0m + 1marchive_write_set_format_raw22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_set_format_shar(struct archive *); + 4mint0m + 1marchive_write_set_format_shar22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_set_format_shar_dump(struct archive *); + 4mint0m + 1marchive_write_set_format_shar_dump22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_set_format_ustar(struct archive *); + 4mint0m + 1marchive_write_set_format_ustar22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_set_format_v7tar(struct archive *); + 4mint0m + 1marchive_write_set_format_v7tar22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_set_format_warc(struct archive *); + 4mint0m + 1marchive_write_set_format_warc22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_set_format_xar(struct archive *); + 4mint0m + 1marchive_write_set_format_xar22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_set_format_zip(struct archive *); + 4mint0m + 1marchive_write_set_format_zip22m(4mstruct24m 4marchive24m 4m*24m); -DESCRIPTION +1mDESCRIPTION0m These functions set the format that will be used for the archive. The library can write a variety of common archive formats. - archive_write_set_format() - Sets the format based on the format code (see archive.h for the + 1marchive_write_set_format22m() + Sets the format based on the format code (see 4marchive.h24m for the full list of format codes). In particular, this can be used in - conjunction with archive_format() to create a new archive with + conjunction with 1marchive_format22m() to create a new archive with the same format as an existing archive. - archive_write_set_format_by_name() + 1marchive_write_set_format_by_name22m() Sets the corresponding format based on the common name. - archive_write_set_format_filter_by_ext(), - archive_write_set_format_filter_by_ext_def() + 1marchive_write_set_format_filter_by_ext22m(), + 1marchive_write_set_format_filter_by_ext_def22m() Sets both filters and format based on the output filename. Sup‐ ported extensions: .7z, .zip, .jar, .cpio, .iso, .a, .ar, .tar, .tgz, .tar.gz, .tar.bz2, .tar.xz - archive_write_set_format_7zip() archive_write_set_format_ar_bsd(), - archive_write_set_format_ar_svr4(), - archive_write_set_format_cpio() - archive_write_set_format_cpio_newc() - archive_write_set_format_gnutar() - archive_write_set_format_iso9660() - archive_write_set_format_mtree() - archive_write_set_format_mtree_classic() - archive_write_set_format_pax() - archive_write_set_format_pax_restricted() - archive_write_set_format_raw() archive_write_set_format_shar() - archive_write_set_format_shar_dump() - archive_write_set_format_ustar() archive_write_set_format_v7tar() - archive_write_set_format_warc() archive_write_set_format_xar() - archive_write_set_format_zip() + 1marchive_write_set_format_7zip22m() 1marchive_write_set_format_ar_bsd22m(), + 1marchive_write_set_format_ar_svr422m(), + 1marchive_write_set_format_cpio22m() + 1marchive_write_set_format_cpio_newc22m() + 1marchive_write_set_format_gnutar22m() + 1marchive_write_set_format_iso966022m() + 1marchive_write_set_format_mtree22m() + 1marchive_write_set_format_mtree_classic22m() + 1marchive_write_set_format_pax22m() + 1marchive_write_set_format_pax_restricted22m() + 1marchive_write_set_format_raw22m() 1marchive_write_set_format_shar22m() + 1marchive_write_set_format_shar_dump22m() + 1marchive_write_set_format_ustar22m() 1marchive_write_set_format_v7tar22m() + 1marchive_write_set_format_warc22m() 1marchive_write_set_format_xar22m() + 1marchive_write_set_format_zip22m() Set the format as specified. More details on the formats sup‐ ported by libarchive can be found in the libarchive-formats(5) manual page. -RETURN VALUES - These functions return ARCHIVE_OK on success, or ARCHIVE_FATAL. +1mRETURN VALUES0m + These functions return 1mARCHIVE_OK 22mon success, or 1mARCHIVE_FATAL22m. -ERRORS +1mERRORS0m Detailed error codes and textual descriptions are available from the - archive_errno() and archive_error_string() functions. + 1marchive_errno22m() and 1marchive_error_string22m() functions. -SEE ALSO +1mSEE ALSO0m tar(1), libarchive(3), archive_write(3), archive_write_set_options(3), cpio(5), libarchive-formats(5), mtree(5), tar(5) diff --git a/archivers/libarchive/files/doc/text/archive_write_free.3.txt b/archivers/libarchive/files/doc/text/archive_write_free.3.txt index d599ca3bdca..5bb02e04a41 100644 --- a/archivers/libarchive/files/doc/text/archive_write_free.3.txt +++ b/archivers/libarchive/files/doc/text/archive_write_free.3.txt @@ -1,57 +1,57 @@ ARCHIVE_WRITE_FREE(3) BSD Library Functions Manual ARCHIVE_WRITE_FREE(3) -NAME - archive_write_fail, archive_write_close, archive_write_finish, - archive_write_free — functions for creating archives +1mNAME0m + 1marchive_write_fail22m, 1marchive_write_close22m, 1marchive_write_finish22m, + 1marchive_write_free 22m— functions for creating archives -LIBRARY +1mLIBRARY0m Streaming Archive Library (libarchive, -larchive) -SYNOPSIS - #include <archive.h> +1mSYNOPSIS0m + 1m#include <archive.h>0m - int - archive_write_fail(struct archive *); + 4mint0m + 1marchive_write_fail22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_close(struct archive *); + 4mint0m + 1marchive_write_close22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_finish(struct archive *); + 4mint0m + 1marchive_write_finish22m(4mstruct24m 4marchive24m 4m*24m); - int - archive_write_free(struct archive *); + 4mint0m + 1marchive_write_free22m(4mstruct24m 4marchive24m 4m*24m); -DESCRIPTION - archive_write_fail() - Always returns ARCHIVE_FATAL. This marks the archive object as +1mDESCRIPTION0m + 1marchive_write_fail22m() + Always returns 1mARCHIVE_FATAL22m. This marks the archive object as being unusable; after calling this function, the only call that - can succeed is archive_write_free() to release the resources. + can succeed is 1marchive_write_free22m() to release the resources. This can be used to speed recovery when the archive creation must be aborted. Note that the created archive is likely to be mal‐ formed in this case; - archive_write_close() + 1marchive_write_close22m() Complete the archive and invoke the close callback. - archive_write_finish() - This is a deprecated synonym for archive_write_free(). + 1marchive_write_finish22m() + This is a deprecated synonym for 1marchive_write_free22m(). - archive_write_free() - Invokes archive_write_close() if necessary, then releases all + 1marchive_write_free22m() + Invokes 1marchive_write_close22m() if necessary, then releases all resources. If you need detailed information about - archive_write_close() failures, you should be careful to call it + 1marchive_write_close22m() failures, you should be careful to call it separately, as you cannot obtain error information after - archive_write_free() returns. + 1marchive_write_free22m() returns. -RETURN VALUES - These functions return ARCHIVE_OK on success, or ARCHIVE_FATAL. +1mRETURN VALUES0m + These functions return 1mARCHIVE_OK 22mon success, or 1mARCHIVE_FATAL22m. -ERRORS +1mERRORS0m Detailed error codes and textual descriptions are available from the - archive_errno() and archive_error_string() functions. + 1marchive_errno22m() and 1marchive_error_string22m() functions. -SEE ALSO +1mSEE ALSO0m tar(1), libarchive(3), archive_write_set_options(3), cpio(5), mtree(5), tar(5) diff --git a/archivers/libarchive/files/doc/text/archive_write_header.3.txt b/archivers/libarchive/files/doc/text/archive_write_header.3.txt index 4b464330378..bbcf8d3639f 100644 --- a/archivers/libarchive/files/doc/text/archive_write_header.3.txt +++ b/archivers/libarchive/files/doc/text/archive_write_header.3.txt @@ -1,34 +1,34 @@ ARCHIVE_WRITE_HEADER(3) BSD Library Functions Manual ARCHIVE_WRITE_HEADER(3) -NAME - archive_write_header — functions for creating archives +1mNAME0m + 1marchive_write_header 22m— functions for creating archives -LIBRARY +1mLIBRARY0m Streaming Archive Library (libarchive, -larchive) -SYNOPSIS - #include <archive.h> +1mSYNOPSIS0m + 1m#include <archive.h>0m - int - archive_write_header(struct archive *, struct archive_entry *); + 4mint0m + 1marchive_write_header22m(4mstruct24m 4marchive24m 4m*24m, 4mstruct24m 4marchive_entry24m 4m*24m); -DESCRIPTION +1mDESCRIPTION0m Build and write a header using the data in the provided struct archive_entry structure. See archive_entry(3) for information on creat‐ ing and populating struct archive_entry objects. -RETURN VALUES - This function returns ARCHIVE_OK on success, or one of the following on - error: ARCHIVE_RETRY for operations that might succeed if retried, - ARCHIVE_WARN for unusual conditions that do not prevent further opera‐ - tions, and ARCHIVE_FATAL for serious errors that make remaining opera‐ +1mRETURN VALUES0m + This function returns 1mARCHIVE_OK 22mon success, or one of the following on + error: 1mARCHIVE_RETRY 22mfor operations that might succeed if retried, + 1mARCHIVE_WARN 22mfor unusual conditions that do not prevent further opera‐ + tions, and 1mARCHIVE_FATAL 22mfor serious errors that make remaining opera‐ tions impossible. -ERRORS +1mERRORS0m Detailed error codes and textual descriptions are available from the - archive_errno() and archive_error_string() functions. + 1marchive_errno22m() and 1marchive_error_string22m() functions. -SEE ALSO +1mSEE ALSO0m tar(1), libarchive(3), archive_write_set_options(3), cpio(5), mtree(5), tar(5) diff --git a/archivers/libarchive/files/doc/text/archive_write_new.3.txt b/archivers/libarchive/files/doc/text/archive_write_new.3.txt index 04cfd976173..5eef9fa9330 100644 --- a/archivers/libarchive/files/doc/text/archive_write_new.3.txt +++ b/archivers/libarchive/files/doc/text/archive_write_new.3.txt @@ -1,25 +1,25 @@ ARCHIVE_WRITE_NEW(3) BSD Library Functions Manual ARCHIVE_WRITE_NEW(3) -NAME - archive_write_new — functions for creating archives +1mNAME0m + 1marchive_write_new 22m— functions for creating archives -LIBRARY +1mLIBRARY0m Streaming Archive Library (libarchive, -larchive) -SYNOPSIS - #include <archive.h> +1mSYNOPSIS0m + 1m#include <archive.h>0m - struct archive * - archive_write_new(void); + 4mstruct24m 4marchive24m 4m*0m + 1marchive_write_new22m(4mvoid24m); -DESCRIPTION +1mDESCRIPTION0m Allocates and initializes a struct archive object suitable for writing a tar archive. NULL is returned on error. A complete description of the struct archive object can be found in the overview manual page for libarchive(3). -SEE ALSO +1mSEE ALSO0m tar(1), libarchive(3), archive_write(3), archive_write_set_options(3), cpio(5), mtree(5), tar(5) diff --git a/archivers/libarchive/files/doc/text/archive_write_open.3.txt b/archivers/libarchive/files/doc/text/archive_write_open.3.txt index ded6660bdd1..ebe78f8d7b9 100644 --- a/archivers/libarchive/files/doc/text/archive_write_open.3.txt +++ b/archivers/libarchive/files/doc/text/archive_write_open.3.txt @@ -1,130 +1,135 @@ ARCHIVE_WRITE_OPEN(3) BSD Library Functions Manual ARCHIVE_WRITE_OPEN(3) -NAME - archive_write_open, archive_write_open_fd, archive_write_open_FILE, - archive_write_open_filename, archive_write_open_memory — functions for +1mNAME0m + 1marchive_write_open22m, 1marchive_write_open_fd22m, 1marchive_write_open_FILE22m, + 1marchive_write_open_filename22m, 1marchive_write_open_memory 22m— functions for creating archives -LIBRARY +1mLIBRARY0m Streaming Archive Library (libarchive, -larchive) -SYNOPSIS - #include <archive.h> +1mSYNOPSIS0m + 1m#include <archive.h>0m - int - archive_write_open(struct archive *, void *client_data, - archive_open_callback *, archive_write_callback *, - archive_close_callback *); + 4mint0m + 1marchive_write_open22m(4mstruct24m 4marchive24m 4m*24m, 4mvoid24m 4m*client_data24m, + 4marchive_open_callback24m 4m*24m, 4marchive_write_callback24m 4m*24m, + 4marchive_close_callback24m 4m*24m); - int - archive_write_open_fd(struct archive *, int fd); + 4mint0m + 1marchive_write_open_fd22m(4mstruct24m 4marchive24m 4m*24m, 4mint24m 4mfd24m); - int - archive_write_open_FILE(struct archive *, FILE *file); + 4mint0m + 1marchive_write_open_FILE22m(4mstruct24m 4marchive24m 4m*24m, 4mFILE24m 4m*file24m); - int - archive_write_open_filename(struct archive *, const char *filename); + 4mint0m + 1marchive_write_open_filename22m(4mstruct24m 4marchive24m 4m*24m, 4mconst24m 4mchar24m 4m*filename24m); - int - archive_write_open_memory(struct archive *, void *buffer, - size_t bufferSize, size_t *outUsed); + 4mint0m + 1marchive_write_open_memory22m(4mstruct24m 4marchive24m 4m*24m, 4mvoid24m 4m*buffer24m, + 4msize_t24m 4mbufferSize24m, 4msize_t24m 4m*outUsed24m); -DESCRIPTION - archive_write_open() +1mDESCRIPTION0m + 1marchive_write_open22m() Freeze the settings, open the archive, and prepare for writing entries. This is the most generic form of this function, which accepts pointers to three callback functions which will be invoked by the compression layer to write the constructed ar‐ - chive. + chive. This does not alter the default archive padding. - archive_write_open_fd() - A convenience form of archive_write_open() that accepts a file - descriptor. The archive_write_open_fd() function is safe for use + 1marchive_write_open_fd22m() + A convenience form of 1marchive_write_open22m() that accepts a file + descriptor. The 1marchive_write_open_fd22m() function is safe for use with tape drives or other block-oriented devices. - archive_write_open_FILE() - A convenience form of archive_write_open() that accepts a FILE * - pointer. Note that archive_write_open_FILE() is not safe for + 1marchive_write_open_FILE22m() + A convenience form of 1marchive_write_open22m() that accepts a 4mFILE24m 4m*0m + pointer. Note that 1marchive_write_open_FILE22m() is not safe for writing to tape drives or other devices that require correct blocking. - archive_write_open_file() - A deprecated synonym for archive_write_open_filename(). + 1marchive_write_open_file22m() + A deprecated synonym for 1marchive_write_open_filename22m(). - archive_write_open_filename() - A convenience form of archive_write_open() that accepts a file‐ + 1marchive_write_open_filename22m() + A convenience form of 1marchive_write_open22m() that accepts a file‐ name. A NULL argument indicates that the output should be writ‐ ten to standard output; an argument of “-” will open a file with that name. If you have not invoked - archive_write_set_bytes_in_last_block(), then - archive_write_open_filename() will adjust the last-block padding + 1marchive_write_set_bytes_in_last_block22m(), then + 1marchive_write_open_filename22m() will adjust the last-block padding depending on the file: it will enable padding when writing to standard output or to a character or block device node, it will disable padding otherwise. You can override this by manually - invoking archive_write_set_bytes_in_last_block() before calling - archive_write_open(). The archive_write_open_filename() function + invoking 1marchive_write_set_bytes_in_last_block22m() before calling + 1marchive_write_open22m(). The 1marchive_write_open_filename22m() function is safe for use with tape drives or other block-oriented devices. - archive_write_open_memory() - A convenience form of archive_write_open() that accepts a pointer + 1marchive_write_open_memory22m() + A convenience form of 1marchive_write_open22m() that accepts a pointer to a block of memory that will receive the archive. The final - size_t * argument points to a variable that will be updated after + 4msize_t24m 4m*24m argument points to a variable that will be updated after each write to reflect how much of the buffer is currently in use. You should be careful to ensure that this variable remains allo‐ - cated until after the archive is closed. - More information about the struct archive object and the overall design + cated until after the archive is closed. This function will dis‐ + able padding unless you have specifically set the block size. + More information about the 4mstruct24m 4marchive24m object and the overall design of the library can be found in the libarchive(3) overview. -CLIENT CALLBACKS + Note that the convenience forms above vary in how they block the output. + See archive_write_blocksize(3) if you need to control the block size used + for writes or the end-of-file padding behavior. + +1mCLIENT CALLBACKS0m To use this library, you will need to define and register callback func‐ tions that will be invoked to write data to the resulting archive. These - functions are registered by calling archive_write_open(): + functions are registered by calling 1marchive_write_open22m(): - typedef int archive_open_callback(struct archive *, void - *client_data) + 4mtypedef24m 4mint24m 1marchive_open_callback22m(4mstruct24m 4marchive24m 4m*24m, 4mvoid0m + 4m*client_data24m) - The open callback is invoked by archive_write_open(). It should return - ARCHIVE_OK if the underlying file or data source is successfully opened. - If the open fails, it should call archive_set_error() to register an - error code and message and return ARCHIVE_FATAL. + The open callback is invoked by 1marchive_write_open22m(). It should return + 1mARCHIVE_OK 22mif the underlying file or data source is successfully opened. + If the open fails, it should call 1marchive_set_error22m() to register an + error code and message and return 1mARCHIVE_FATAL22m. - typedef la_ssize_t archive_write_callback(struct archive *, - void *client_data, const void *buffer, size_t length) + 4mtypedef24m 4mla_ssize_t24m 1marchive_write_callback22m(4mstruct24m 4marchive24m 4m*24m, + 4mvoid24m 4m*client_data24m, 4mconst24m 4mvoid24m 4m*buffer24m, 4msize_t24m 4mlength24m) The write callback is invoked whenever the library needs to write raw bytes to the archive. For correct blocking, each call to the write call‐ back function should translate into a single write(2) system call. This is especially critical when writing archives to tape drives. On success, the write callback should return the number of bytes actually written. - On error, the callback should invoke archive_set_error() to register an + On error, the callback should invoke 1marchive_set_error22m() to register an error code and message and return -1. - typedef int archive_close_callback(struct archive *, void - *client_data) + 4mtypedef24m 4mint24m 1marchive_close_callback22m(4mstruct24m 4marchive24m 4m*24m, 4mvoid0m + 4m*client_data24m) The close callback is invoked by archive_close when the archive process‐ - ing is complete. The callback should return ARCHIVE_OK on success. On - failure, the callback should invoke archive_set_error() to register an - error code and message and return ARCHIVE_FATAL. + ing is complete. The callback should return 1mARCHIVE_OK 22mon success. On + failure, the callback should invoke 1marchive_set_error22m() to register an + error code and message and return 1mARCHIVE_FATAL.0m Note that if the client-provided write callback function returns a non- zero value, that error will be propagated back to the caller through whatever API function resulted in that call, which may include - archive_write_header(), archive_write_data(), archive_write_close(), - archive_write_finish(), or archive_write_free(). The client callback can - call archive_set_error() to provide values that can then be retrieved by - archive_errno() and archive_error_string(). + 1marchive_write_header22m(), 1marchive_write_data22m(), 1marchive_write_close22m(), + 1marchive_write_finish22m(), or 1marchive_write_free22m(). The client callback can + call 1marchive_set_error22m() to provide values that can then be retrieved by + 1marchive_errno22m() and 1marchive_error_string22m(). -RETURN VALUES - These functions return ARCHIVE_OK on success, or ARCHIVE_FATAL. +1mRETURN VALUES0m + These functions return 1mARCHIVE_OK 22mon success, or 1mARCHIVE_FATAL22m. -ERRORS +1mERRORS0m Detailed error codes and textual descriptions are available from the - archive_errno() and archive_error_string() functions. + 1marchive_errno22m() and 1marchive_error_string22m() functions. -SEE ALSO - tar(1), libarchive(3), archive_write(3), archive_write_filter(3), - archive_write_format(3), archive_write_new(3), +1mSEE ALSO0m + tar(1), libarchive(3), archive_write(3), archive_write_blocksize(3), + archive_write_filter(3), archive_write_format(3), archive_write_new(3), archive_write_set_options(3), cpio(5), mtree(5), tar(5) BSD February 2, 2012 BSD diff --git a/archivers/libarchive/files/doc/text/archive_write_set_options.3.txt b/archivers/libarchive/files/doc/text/archive_write_set_options.3.txt index 2a10224fb08..60922c50de1 100644 --- a/archivers/libarchive/files/doc/text/archive_write_set_options.3.txt +++ b/archivers/libarchive/files/doc/text/archive_write_set_options.3.txt @@ -1,144 +1,144 @@ ARCHIVE_WRITE_OPTIONS(3) BSD Library Functions Manual ARCHIVE_WRITE_OPTIONS(3) -NAME - archive_write_set_filter_option, archive_write_set_format_option, - archive_write_set_option, archive_write_set_options — functions control‐ +1mNAME0m + 1marchive_write_set_filter_option22m, 1marchive_write_set_format_option22m, + 1marchive_write_set_option22m, 1marchive_write_set_options 22m— functions control‐ ling options for writing archives -LIBRARY +1mLIBRARY0m Streaming Archive Library (libarchive, -larchive) -SYNOPSIS - int - archive_write_set_filter_option(struct archive *, const char *module, - const char *option, const char *value); +1mSYNOPSIS0m + 4mint0m + 1marchive_write_set_filter_option22m(4mstruct24m 4marchive24m 4m*24m, 4mconst24m 4mchar24m 4m*module24m, + 4mconst24m 4mchar24m 4m*option24m, 4mconst24m 4mchar24m 4m*value24m); - int - archive_write_set_format_option(struct archive *, const char *module, - const char *option, const char *value); + 4mint0m + 1marchive_write_set_format_option22m(4mstruct24m 4marchive24m 4m*24m, 4mconst24m 4mchar24m 4m*module24m, + 4mconst24m 4mchar24m 4m*option24m, 4mconst24m 4mchar24m 4m*value24m); - int - archive_write_set_option(struct archive *, const char *module, - const char *option, const char *value); + 4mint0m + 1marchive_write_set_option22m(4mstruct24m 4marchive24m 4m*24m, 4mconst24m 4mchar24m 4m*module24m, + 4mconst24m 4mchar24m 4m*option24m, 4mconst24m 4mchar24m 4m*value24m); - int - archive_write_set_options(struct archive *, const char *options); + 4mint0m + 1marchive_write_set_options22m(4mstruct24m 4marchive24m 4m*24m, 4mconst24m 4mchar24m 4m*options24m); -DESCRIPTION +1mDESCRIPTION0m These functions provide a way for libarchive clients to configure spe‐ cific write modules. - archive_write_set_filter_option(), archive_write_set_format_option() + 1marchive_write_set_filter_option22m(), 1marchive_write_set_format_option22m() Specifies an option that will be passed to currently-registered filters (including decompression filters) or format readers. - If option and value are both NULL, these functions will do noth‐ - ing and ARCHIVE_OK will be returned. If option is NULL but value - is not, these functions will do nothing and ARCHIVE_FAILED will + If 4moption24m and 4mvalue24m are both NULL, these functions will do noth‐ + ing and 1mARCHIVE_OK 22mwill be returned. If 4moption24m is NULL but 4mvalue0m + is not, these functions will do nothing and 1mARCHIVE_FAILED 22mwill be returned. - If module is not NULL, option and value will be provided to the - filter or reader named module. The return value will be either - ARCHIVE_OK if the option was successfully handled or ARCHIVE_WARN + If 4mmodule24m is not NULL, 4moption24m and 4mvalue24m will be provided to the + filter or reader named 4mmodule24m. The return value will be either + 1mARCHIVE_OK 22mif the option was successfully handled or 1mARCHIVE_WARN0m if the option was unrecognized by the module or could otherwise - not be handled. If there is no such module, ARCHIVE_FAILED will + not be handled. If there is no such module, 1mARCHIVE_FAILED 22mwill be returned. - If module is NULL, option and value will be provided to every - registered module. If any module returns ARCHIVE_FATAL, this - value will be returned immediately. Otherwise, ARCHIVE_OK will - be returned if any module accepts the option, and ARCHIVE_FAILED + If 4mmodule24m is NULL, 4moption24m and 4mvalue24m will be provided to every + registered module. If any module returns 1mARCHIVE_FATAL22m, this + value will be returned immediately. Otherwise, 1mARCHIVE_OK 22mwill + be returned if any module accepts the option, and 1mARCHIVE_FAILED0m in all other cases. - archive_write_set_option() - Calls archive_write_set_format_option(), then - archive_write_set_filter_option(). If either function returns - ARCHIVE_FATAL, ARCHIVE_FATAL will be returned immediately. Oth‐ + 1marchive_write_set_option22m() + Calls 1marchive_write_set_format_option22m(), then + 1marchive_write_set_filter_option22m(). If either function returns + 1mARCHIVE_FATAL22m, 1mARCHIVE_FATAL 22mwill be returned immediately. Oth‐ erwise, greater of the two values will be returned. - archive_write_set_options() - options is a comma-separated list of options. If options is NULL - or empty, ARCHIVE_OK will be returned immediately. + 1marchive_write_set_options22m() + 4moptions24m is a comma-separated list of options. If 4moptions24m is NULL + or empty, 1mARCHIVE_OK 22mwill be returned immediately. Individual options have one of the following forms: - option=value + 4moption=value0m The option/value pair will be provided to every module. Modules that do not accept an option with this name will ignore it. - option The option will be provided to every module with a value + 4moption24m The option will be provided to every module with a value of “1”. - !option + 4m!option0m The option will be provided to every module with a NULL value. - module:option=value, module:option, module:!option + 4mmodule:option=value24m, 4mmodule:option24m, 4mmodule:!option0m As above, but the corresponding option and value will be - provided only to modules whose name matches module. + provided only to modules whose name matches 4mmodule24m. -OPTIONS +1mOPTIONS0m Filter gzip - compression-level + 1mcompression-level0m The value is interpreted as a decimal integer specifying the gzip compression level. Filter xz - compression-level + 1mcompression-level0m The value is interpreted as a decimal integer specifying the compression level. Format mtree - cksum, device, flags, gid, gname, indent, link, md5, mode, nlink, - rmd160, sha1, sha256, sha384, sha512, size, time, uid, - uname + 1mcksum22m, 1mdevice22m, 1mflags22m, 1mgid22m, 1mgname22m, 1mindent22m, 1mlink22m, 1mmd522m, 1mmode22m, 1mnlink22m, + 1mrmd16022m, 1msha122m, 1msha25622m, 1msha38422m, 1msha51222m, 1msize22m, 1mtime22m, 1muid22m, + 1muname0m Enable a particular keyword in the mtree output. Prefix with an exclamation mark to disable the corresponding keyword. The default is equivalent to “device, flags, gid, gname, link, mode, nlink, size, time, type, uid, uname”. - all Enables all of the above keywords. - use-set - Enables generation of /set lines that specify default + 1mall 22mEnables all of the above keywords. + 1muse-set0m + Enables generation of 1m/set 22mlines that specify default values for the following files and/or directories. - indent XXX needs explanation XXX + 1mindent 22mXXX needs explanation XXX Format iso9660 - volume metadata These options are used to set standard ISO9660 metadata. - abstract-file=filename + 1mabstract-file22m=4mfilename0m The file with the specified name will be identified in the ISO9660 metadata as holding the abstract for this volume. Default: none. - application-id=filename + 1mapplication-id22m=4mfilename0m The file with the specified name will be identified in the ISO9660 metadata as holding the application identi‐ fier for this volume. Default: none. - biblio-file=filename + 1mbiblio-file22m=4mfilename0m The file with the specified name will be identified in the ISO9660 metadata as holding the bibliography for this volume. Default: none. - copyright-file=filename + 1mcopyright-file22m=4mfilename0m The file with the specified name will be identified in the ISO9660 metadata as holding the copyright for this volume. Default: none. - publisher=filename + 1mpublisher22m=4mfilename0m The file with the specified name will be identified in the ISO9660 metadata as holding the publisher information for this volume. Default: none. - volume-id=string + 1mvolume-id22m=4mstring0m The specified string will be used as the Volume Identi‐ fier in the ISO9660 metadata. It is limited to 32 bytes. Default: none. Format iso9660 - boot support These options are used to make an ISO9660 image that can be directly booted on various systems. - boot=filename + 1mboot22m=4mfilename0m The file matching this name will be used as the El Torito boot image file. - boot-catalog=name + 1mboot-catalog22m=4mname0m The name that will be used for the El Torito boot cata‐ - log. Default: boot.catalog - boot-info-table - The boot image file provided by the boot=filename option + log. Default: 4mboot.catalog0m + 1mboot-info-table0m + The boot image file provided by the 1mboot22m=4mfilename24m option will be edited with appropriate boot information in bytes 8 through 64. Default: disabled - boot-load-seg=hexadecimal-number + 1mboot-load-seg22m=4mhexadecimal-number0m The load segment for a no-emulation boot image. - boot-load-size=decimal-number + 1mboot-load-size22m=4mdecimal-number0m The number of "virtual" 512-byte sectors to be loaded from a no-emulation boot image. Some very old BIOSes can only load very small images, setting this value to 4 will @@ -147,105 +147,105 @@ OPTIONS to load the rest of itself). This should not be needed unless you are trying to support systems with very old BIOSes. This defaults to the full size of the image. - boot-type=value + 1mboot-type22m=4mvalue0m Specifies the boot semantics used by the El Torito boot - image: If the value is fd, then the boot image is assumed - to be a bootable floppy image. If the value is hd, then + image: If the 4mvalue24m is 1mfd22m, then the boot image is assumed + to be a bootable floppy image. If the 4mvalue24m is 1mhd22m, then the boot image is assumed to be a bootable hard disk - image. If the value is no-emulation, the boot image is + image. If the 4mvalue24m is 1mno-emulation22m, the boot image is used without floppy or hard disk emulation. If the boot image is exactly 1.2MB, 1.44MB, or 2.88MB, then the - default is fd, otherwise the default is no-emulation. + default is 1mfd22m, otherwise the default is 1mno-emulation.0m Format iso9660 - filename and size extensions Various extensions to the base ISO9660 format. - allow-ldots + 1mallow-ldots0m If enabled, allows filenames to begin with a leading period. If disabled, filenames that begin with a leading period will have that period replaced by an underscore character in the standard ISO9660 namespace. This does not impact names stored in the Rockridge or Joliet exten‐ sion area. Default: disabled. - allow-lowercase + 1mallow-lowercase0m If enabled, allows filenames to contain lowercase charac‐ ters. If disabled, filenames will be forced to upper‐ case. This does not impact names stored in the Rockridge or Joliet extension area. Default: disabled. - allow-multidot + 1mallow-multidot0m If enabled, allows filenames to contain multiple period characters, in violation of the ISO9660 specification. If disabled, additional periods will be converted to underscore characters. This does not impact names stored in the Rockridge or Joliet extension area. Default: dis‐ abled. - allow-period + 1mallow-period0m If enabled, allows filenames to contain trailing period characters, in violation of the ISO9660 specification. If disabled,trailing periods will be converted to under‐ score characters. This does not impact names stored in the Rockridge or Joliet extension area. Default: dis‐ abled. - allow-pvd-lowercase + 1mallow-pvd-lowercase0m If enabled, the Primary Volume Descriptor may contain lowercase ASCII characters, in violation of the ISO9660 specification. If disabled, characters will be converted to uppercase ASCII. Default: disabled. - allow-sharp-tilde + 1mallow-sharp-tilde0m If enabled, sharp and tilde characters will be permitted in filenames, in violation if the ISO9660 specification. If disabled, such characters will be converted to under‐ score characters. Default: disabled. - allow-vernum + 1mallow-vernum0m If enabled, version numbers will be included with files. If disabled, version numbers will be suppressed, in vio‐ lation of the ISO9660 standard. This does not impact names stored in the Rockridge or Joliet extension area. Default: enabled. - iso-level + 1miso-level0m This enables support for file size and file name exten‐ sions in the core ISO9660 area. The name extensions specified here do not affect the names stored in the Rockridge or Joliet extension areas. - iso-level=1 + 1miso-level=10m The most compliant form of ISO9660 image. File‐ names are limited to 8.3 uppercase format, direc‐ tory names are limited to 8 uppercase characters, files are limited to 4 GiB, the complete ISO9660 image cannot exceed 4 GiB. - iso-level=2 + 1miso-level=20m Filenames are limited to 30 uppercase characters with a 30-character extension, directory names are limited to 30 characters, files are limited to 4 GiB. - iso-level=3 - As with iso-level=2, except that files may exceed + 1miso-level=30m + As with 1miso-level=222m, except that files may exceed 4 GiB. - iso-level=4 - As with iso-level=3, except that filenames may be + 1miso-level=40m + As with 1miso-level=322m, except that filenames may be up to 193 characters and may include arbitrary 8-bit characters. - joliet Microsoft's Joliet extensions store a completely separate + 1mjoliet 22mMicrosoft's Joliet extensions store a completely separate set of directory information about each file. In partic‐ ular, this information includes Unicode filenames of up to 255 characters. Default: enabled. - limit-depth + 1mlimit-depth0m If enabled, libarchive will use directory relocation records to ensure that no pathname exceeds the ISO9660 limit of 8 directory levels. If disabled, no relocation will occur. Default: enabled. - limit-dirs + 1mlimit-dirs0m If enabled, libarchive will cause an error if there are more than 65536 directories. If disabled, there is no limit on the number of directories. Default: enabled - pad If enabled, 300 kiB of zero bytes will be appended to the + 1mpad 22mIf enabled, 300 kiB of zero bytes will be appended to the end of the archive. Default: enabled - relaxed-filenames + 1mrelaxed-filenames0m If enabled, all 7-bit ASCII characters are permitted in filenames (except lowercase characters unless - allow-lowercase is also specified). This violates + 1mallow-lowercase 22mis also specified). This violates ISO9660 standards. This does not impact names stored in the Rockridge or Joliet extension area. Default: dis‐ abled. - rockridge + 1mrockridge0m The Rockridge extensions store an additional set of POSIX-style file information with each file, including mtime, atime, ctime, permissions, and long filenames with @@ -258,46 +258,46 @@ OPTIONS significant size savings, but requires the reading system to have support for these extensions. These extensions are disabled by default. - compression-level=number + 1mcompression-level22m=number The compression level used by the deflate compressor. Ranges from 0 (least effort) to 9 (most effort). Default: 6 - zisofs Synonym for zisofs=direct. - zisofs=direct + 1mzisofs 22mSynonym for 1mzisofs=direct22m. + 1mzisofs=direct0m Compress each file in the archive. Unlike - zisofs=indirect, this is handled entirely within + 1mzisofs=indirect22m, this is handled entirely within libarchive and does not require a separate utility. For best results, libarchive tests each file and will store the file uncompressed if the compression does not actu‐ ally save any space. In particular, files under 2k will never be compressed. Note that boot image files are never compressed. - zisofs=indirect + 1mzisofs=indirect0m Recognizes files that have already been compressed with - the mkzftree utility and sets up the necessary file meta‐ + the 1mmkzftree 22mutility and sets up the necessary file meta‐ data so that readers will correctly identify these as zisofs-compressed files. - zisofs-exclude=filename + 1mzisofs-exclude22m=4mfilename0m Specifies a filename that should not be compressed when - using zisofs=direct. This option can be provided multi‐ + using 1mzisofs=direct22m. This option can be provided multi‐ ple times to suppress compression on many files. Format zip - compression + 1mcompression0m The value is either “store” or “deflate” to indicate how the following entries should be compressed. Note that this setting is ignored for directories, symbolic links, and other special entries. - experimental + 1mexperimental0m This boolean option enables or disables experimental Zip features that may not be compatible with other Zip imple‐ mentations. - fakecrc32 + 1mfakecrc320m This boolean option disables CRC calculations. All CRC fields are set to zero. It should not be used except for testing purposes. - hdrcharset + 1mhdrcharset0m This sets the character set used for filenames. - zip64 Zip64 extensions provide additional file size information + 1mzip64 22mZip64 extensions provide additional file size information for entries larger than 4 GiB. They also provide extended file offset and archive size information when archives exceed 4 GiB. By default, the Zip writer selec‐ @@ -311,7 +311,7 @@ OPTIONS erwise require them. This is primarily useful for test‐ ing. - Disabling this option with !zip64 will force the Zip + Disabling this option with 1m!zip64 22mwill force the Zip writer to avoid Zip64 extensions: It will reject files with size greater than 4 GiB, it will reject any new entries once the total archive size reaches 4 GiB, and it @@ -320,10 +320,10 @@ OPTIONS generating archives where the entry sizes are not known in advance. -EXAMPLES +1mEXAMPLES0m The following example creates an archive write handle to create a gzip- compressed ISO9660 format image. The two options here specify that the - ISO9660 archive will use kernel.img as the boot image for El Torito boot‐ + ISO9660 archive will use 4mkernel.img24m as the boot image for El Torito boot‐ ing, and that the gzip compressor should use the maximum compression level. @@ -333,19 +333,19 @@ EXAMPLES archive_write_set_options(a, "boot=kernel.img,compression=9"); archive_write_open_filename(a, filename, blocksize); -ERRORS +1mERRORS0m More detailed error codes and textual descriptions are available from the - archive_errno() and archive_error_string() functions. + 1marchive_errno22m() and 1marchive_error_string22m() functions. -SEE ALSO +1mSEE ALSO0m tar(1), libarchive(3), archive_read_set_options(3), archive_write(3) -HISTORY - The libarchive library first appeared in FreeBSD 5.3. +1mHISTORY0m + The 1mlibarchive 22mlibrary first appeared in FreeBSD 5.3. -AUTHORS +1mAUTHORS0m The options support for libarchive was originally implemented by Michihiro NAKAJIMA. -BUGS +1mBUGS0m BSD February 2, 2012 BSD diff --git a/archivers/libarchive/files/doc/text/archive_write_set_passphrase.3.txt b/archivers/libarchive/files/doc/text/archive_write_set_passphrase.3.txt index 75f5cb9dd0a..1cccccd612b 100644 --- a/archivers/libarchive/files/doc/text/archive_write_set_passphrase.3.txt +++ b/archivers/libarchive/files/doc/text/archive_write_set_passphrase.3.txt @@ -1,35 +1,35 @@ ARCHIVE_WRITE_SET_PAS... BSD Library Functions Manual ARCHIVE_WRITE_SET_PAS... -NAME - archive_write_set_passphrase, archive_write_set_passphrase_callback — +1mNAME0m + 1marchive_write_set_passphrase22m, 1marchive_write_set_passphrase_callback 22m— functions for writing encrypted archives -LIBRARY +1mLIBRARY0m Streaming Archive Library (libarchive, -larchive) -SYNOPSIS - #include <archive.h> +1mSYNOPSIS0m + 1m#include <archive.h>0m - int - archive_write_set_passphrase(struct archive *, const char *passphrase); + 4mint0m + 1marchive_write_set_passphrase22m(4mstruct24m 4marchive24m 4m*24m, 4mconst24m 4mchar24m 4m*passphrase24m); - int - archive_write_set_passphrase_callback(struct archive *, - void *client_data, archive_passphrase_callback *); + 4mint0m + 1marchive_write_set_passphrase_callback22m(4mstruct24m 4marchive24m 4m*24m, + 4mvoid24m 4m*client_data24m, 4marchive_passphrase_callback24m 4m*24m); -DESCRIPTION - archive_write_set_passphrase() +1mDESCRIPTION0m + 1marchive_write_set_passphrase22m() Set a passphrase for writing an encryption archive. If - passphrase is NULL or empty, this function will do nothing and - ARCHIVE_FAILED will be returned. Otherwise, ARCHIVE_OK will be + 4mpassphrase24m is NULL or empty, this function will do nothing and + 1mARCHIVE_FAILED 22mwill be returned. Otherwise, 1mARCHIVE_OK 22mwill be returned. - archive_write_set_passphrase_callback() + 1marchive_write_set_passphrase_callback22m() Register callback function that will be invoked to get a passphrase for encrption if the passphrase was not set by the - archive_write_set_passphrase() function. + 1marchive_write_set_passphrase22m() function. -SEE ALSO +1mSEE ALSO0m tar(1), libarchive(3), archive_write(3), archive_write_set_options(3) BSD September 21, 2014 BSD diff --git a/archivers/libarchive/files/doc/text/bsdcpio.1.txt b/archivers/libarchive/files/doc/text/bsdcpio.1.txt index 15920c0547d..03c9ff94338 100644 --- a/archivers/libarchive/files/doc/text/bsdcpio.1.txt +++ b/archivers/libarchive/files/doc/text/bsdcpio.1.txt @@ -1,256 +1,256 @@ CPIO(1) BSD General Commands Manual CPIO(1) -NAME - cpio — copy files to and from archives +1mNAME0m + 1mcpio 22m— copy files to and from archives -SYNOPSIS - cpio -i [options] [pattern ...] [< archive] - cpio -o [options] < name-list [> archive] - cpio -p [options] dest-dir < name-list +1mSYNOPSIS0m + 1mcpio -i 22m[4moptions24m] [4mpattern24m 4m...24m] [4m<24m 4marchive24m] + 1mcpio -o 22m[4moptions24m] 4m<24m 4mname-list24m [4m>24m 4marchive24m] + 1mcpio -p 22m[4moptions24m] 4mdest-dir24m 4m<24m 4mname-list0m -DESCRIPTION - cpio copies files between archives and directories. This implementation +1mDESCRIPTION0m + 1mcpio 22mcopies files between archives and directories. This implementation can extract from tar, pax, cpio, zip, jar, ar, and ISO 9660 cdrom images and can create tar, pax, cpio, ar, and shar archives. - The first option to cpio is a mode indicator from the following list: - -i Input. Read an archive from standard input (unless overridden) - and extract the contents to disk or (if the -t option is speci‐ + The first option to 1mcpio 22mis a mode indicator from the following list: + 1m-i 22mInput. Read an archive from standard input (unless overridden) + and extract the contents to disk or (if the 1m-t 22moption is speci‐ fied) list the contents to standard output. If one or more file patterns are specified, only files matching one of the patterns will be extracted. - -o Output. Read a list of filenames from standard input and produce + 1m-o 22mOutput. Read a list of filenames from standard input and produce a new archive on standard output (unless overridden) containing the specified items. - -p Pass-through. Read a list of filenames from standard input and + 1m-p 22mPass-through. Read a list of filenames from standard input and copy the files to the specified directory. -OPTIONS +1mOPTIONS0m Unless specifically stated otherwise, options are applicable in all oper‐ ating modes. - -0, --null + 1m-022m, 1m--null0m Read filenames separated by NUL characters instead of newlines. This is necessary if any of the filenames being read might con‐ tain newlines. - -A (o mode only) Append to the specified archive. (Not yet imple‐ + 1m-A 22m(o mode only) Append to the specified archive. (Not yet imple‐ mented.) - -a (o and p modes) Reset access times on files after they are read. + 1m-a 22m(o and p modes) Reset access times on files after they are read. - -B (o mode only) Block output to records of 5120 bytes. + 1m-B 22m(o mode only) Block output to records of 5120 bytes. - -C size - (o mode only) Block output to records of size bytes. + 1m-C 4m22msize0m + (o mode only) Block output to records of 4msize24m bytes. - -c (o mode only) Use the old POSIX portable character format. - Equivalent to --format odc. + 1m-c 22m(o mode only) Use the old POSIX portable character format. + Equivalent to 1m--format 4m22modc24m. - -d, --make-directories + 1m-d22m, 1m--make-directories0m (i and p modes) Create directories as necessary. - -E file - (i mode only) Read list of file name patterns from file to list + 1m-E 4m22mfile0m + (i mode only) Read list of file name patterns from 4mfile24m to list and extract. - -F file, --file file - Read archive from or write archive to file. + 1m-F 4m22mfile24m, 1m--file 4m22mfile0m + Read archive from or write archive to 4mfile24m. - -f pattern - (i mode only) Ignore files that match pattern. + 1m-f 4m22mpattern0m + (i mode only) Ignore files that match 4mpattern24m. - -H format, --format format + 1m-H 4m22mformat24m, 1m--format 4m22mformat0m (o mode only) Produce the output archive in the specified format. Supported formats include: - cpio Synonym for odc. - newc The SVR4 portable cpio format. - odc The old POSIX.1 portable octet-oriented cpio format. - pax The POSIX.1 pax format, an extension of the ustar for‐ + 4mcpio24m Synonym for 4modc24m. + 4mnewc24m The SVR4 portable cpio format. + 4modc24m The old POSIX.1 portable octet-oriented cpio format. + 4mpax24m The POSIX.1 pax format, an extension of the ustar for‐ mat. - ustar The POSIX.1 tar format. + 4mustar24m The POSIX.1 tar format. - The default format is odc. See libarchive-formats(5) for more + The default format is 4modc24m. See libarchive-formats(5) for more complete information about the formats currently supported by the underlying libarchive(3) library. - -h, --help + 1m-h22m, 1m--help0m Print usage information. - -I file - Read archive from file. + 1m-I 4m22mfile0m + Read archive from 4mfile24m. - -i, --extract + 1m-i22m, 1m--extract0m Input mode. See above for description. - --insecure + 1m--insecure0m (i and p mode only) Disable security checks during extraction or copying. This allows extraction via symbolic links, absolute paths, and path names containing ‘..’ in the name. - -J, --xz + 1m-J22m, 1m--xz0m (o mode only) Compress the file with xz-compatible compression before writing it. In input mode, this option is ignored; xz compression is recognized automatically on input. - -j Synonym for -y. + 1m-j 22mSynonym for 1m-y22m. - -L (o and p modes) All symbolic links will be followed. Normally, + 1m-L 22m(o and p modes) All symbolic links will be followed. Normally, symbolic links are archived and copied as symbolic links. With this option, the target of the link will be archived or copied instead. - -l, --link + 1m-l22m, 1m--link0m (p mode only) Create links from the target directory to the orig‐ inal files, instead of copying. - --lrzip + 1m--lrzip0m (o mode only) Compress the resulting archive with lrzip(1). In input mode, this option is ignored. - --lz4 (o mode only) Compress the archive with lz4-compatible compres‐ + 1m--lz4 22m(o mode only) Compress the archive with lz4-compatible compres‐ sion before writing it. In input mode, this option is ignored; lz4 compression is recognized automatically on input. - --lzma (o mode only) Compress the file with lzma-compatible compression + 1m--lzma 22m(o mode only) Compress the file with lzma-compatible compression before writing it. In input mode, this option is ignored; lzma compression is recognized automatically on input. - --lzop (o mode only) Compress the resulting archive with lzop(1). In + 1m--lzop 22m(o mode only) Compress the resulting archive with lzop(1). In input mode, this option is ignored. - --passphrase passphrase - The passphrase is used to extract or create an encrypted archive. - Currently, zip is only a format that cpio can handle encrypted + 1m--passphrase 4m22mpassphrase0m + The 4mpassphrase24m is used to extract or create an encrypted archive. + Currently, zip is only a format that 1mcpio 22mcan handle encrypted archives. You shouldn't use this option unless you realize how insecure use of this option is. - -m, --preserve-modification-time + 1m-m22m, 1m--preserve-modification-time0m (i and p modes) Set file modification time on created files to match those in the source. - -n, --numeric-uid-gid - (i mode, only with -t) Display numeric uid and gid. By default, - cpio displays the user and group names when they are provided in + 1m-n22m, 1m--numeric-uid-gid0m + (i mode, only with 1m-t22m) Display numeric uid and gid. By default, + 1mcpio 22mdisplays the user and group names when they are provided in the archive, or looks up the user and group names in the system password database. - --no-preserve-owner + 1m--no-preserve-owner0m (i mode only) Do not attempt to restore file ownership. This is the default when run by non-root users. - -O file - Write archive to file. + 1m-O 4m22mfile0m + Write archive to 4mfile24m. - -o, --create + 1m-o22m, 1m--create0m Output mode. See above for description. - -p, --pass-through + 1m-p22m, 1m--pass-through0m Pass-through mode. See above for description. - --preserve-owner + 1m--preserve-owner0m (i mode only) Restore file ownership. This is the default when run by the root user. - --quiet + 1m--quiet0m Suppress unnecessary messages. - -R [user][:][group], --owner [user][:][group] + 1m-R 22m[user][:][group], 1m--owner 22m[user][:][group] Set the owner and/or group on files in the output. If group is - specified with no user (for example, -R :wheel) then the group + specified with no user (for example, 1m-R 4m22m:wheel24m) then the group will be set but not the user. If the user is specified with a - trailing colon and no group (for example, -R root:) then the + trailing colon and no group (for example, 1m-R 4m22mroot:24m) then the group will be set to the user's default group. If the user is specified with no trailing colon, then the user will be set but - not the group. In -i and -p modes, this option can only be used + not the group. In 1m-i 22mand 1m-p 22mmodes, this option can only be used by the super-user. (For compatibility, a period can be used in place of the colon.) - -r (All modes.) Rename files interactively. For each file, a - prompt is written to /dev/tty containing the name of the file and - a line is read from /dev/tty. If the line read is blank, the + 1m-r 22m(All modes.) Rename files interactively. For each file, a + prompt is written to 4m/dev/tty24m containing the name of the file and + a line is read from 4m/dev/tty24m. If the line read is blank, the file is skipped. If the line contains a single period, the file is processed normally. Otherwise, the line is taken to be the new name of the file. - -t, --list + 1m-t22m, 1m--list0m (i mode only) List the contents of the archive to stdout; do not restore the contents to disk. - -u, --unconditional + 1m-u22m, 1m--unconditional0m (i and p modes) Unconditionally overwrite existing files. Ordi‐ narily, an older file will not overwrite a newer file on disk. - -V, --dot + 1m-V22m, 1m--dot0m Print a dot to stderr for each file as it is processed. Super‐ - seded by -v. + seded by 1m-v22m. - -v, --verbose + 1m-v22m, 1m--verbose0m Print the name of each file to stderr as it is processed. With - -t, provide a detailed listing of each file. + 1m-t22m, provide a detailed listing of each file. - --version + 1m--version0m Print the program version information and exit. - -y (o mode only) Compress the archive with bzip2-compatible compres‐ + 1m-y 22m(o mode only) Compress the archive with bzip2-compatible compres‐ sion before writing it. In input mode, this option is ignored; bzip2 compression is recognized automatically on input. - -Z (o mode only) Compress the archive with compress-compatible com‐ + 1m-Z 22m(o mode only) Compress the archive with compress-compatible com‐ pression before writing it. In input mode, this option is ignored; compression is recognized automatically on input. - -z (o mode only) Compress the archive with gzip-compatible compres‐ + 1m-z 22m(o mode only) Compress the archive with gzip-compatible compres‐ sion before writing it. In input mode, this option is ignored; gzip compression is recognized automatically on input. -EXIT STATUS - The cpio utility exits 0 on success, and >0 if an error occurs. +1mEXIT STATUS0m + The 1mcpio 22mutility exits 0 on success, and >0 if an error occurs. -ENVIRONMENT - The following environment variables affect the execution of cpio: +1mENVIRONMENT0m + The following environment variables affect the execution of 1mcpio22m: LANG The locale to use. See environ(7) for more information. TZ The timezone to use when displaying dates. See environ(7) for more information. -EXAMPLES - The cpio command is traditionally used to copy file hierarchies in con‐ +1mEXAMPLES0m + The 1mcpio 22mcommand is traditionally used to copy file hierarchies in con‐ junction with the find(1) command. The first example here simply copies - all files from src to dest: - find src | cpio -pmud dest + all files from 4msrc24m to 4mdest24m: + 1mfind 4m22msrc24m | 1mcpio -pmud 4m22mdest0m By carefully selecting options to the find(1) command and combining it with other standard utilities, it is possible to exercise very fine con‐ trol over which files are copied. This next example copies files from - src to dest that are more than 2 days old and whose names match a partic‐ + 4msrc24m to 4mdest24m that are more than 2 days old and whose names match a partic‐ ular pattern: - find src -mtime +2 | grep foo[bar] | cpio -pdmu dest + 1mfind 4m22msrc24m 1m-mtime 4m22m+224m | 1mgrep foo[bar] 22m| 1mcpio -pdmu 4m22mdest0m - This example copies files from src to dest that are more than 2 days old + This example copies files from 4msrc24m to 4mdest24m that are more than 2 days old and which contain the word “foobar”: - find src -mtime +2 | xargs grep -l foobar | cpio -pdmu dest + 1mfind 4m22msrc24m 1m-mtime 4m22m+224m | 1mxargs grep -l foobar 22m| 1mcpio -pdmu 4m22mdest0m -COMPATIBILITY +1mCOMPATIBILITY0m The mode options i, o, and p and the options a, B, c, d, f, l, m, r, t, u, and v comply with SUSv2. - The old POSIX.1 standard specified that only -i, -o, and -p were inter‐ + The old POSIX.1 standard specified that only 1m-i22m, 1m-o22m, and 1m-p 22mwere inter‐ preted as command-line options. Each took a single argument of a list of - modifier characters. For example, the standard syntax allows -imu but - does not support -miu or -i -m -u, since m and u are only modifiers to - -i, they are not command-line options in their own right. The syntax + modifier characters. For example, the standard syntax allows 1m-imu 22mbut + does not support 1m-miu 22mor 1m-i -m -u22m, since 4mm24m and 4mu24m are only modifiers to + 1m-i22m, they are not command-line options in their own right. The syntax supported by this implementation is backwards-compatible with the stan‐ dard. For best compatibility, scripts should limit themselves to the standard syntax. -SEE ALSO +1mSEE ALSO0m bzip2(1), tar(1), gzip(1), mt(1), pax(1), libarchive(3), cpio(5), libarchive-formats(5), tar(5) -STANDARDS +1mSTANDARDS0m There is no current POSIX standard for the cpio command; it appeared in ISO/IEC 9945-1:1996 (“POSIX.1”) but was dropped from IEEE Std 1003.1-2001 (“POSIX.1”). @@ -258,17 +258,17 @@ STANDARDS The cpio, ustar, and pax interchange file formats are defined by IEEE Std 1003.1-2001 (“POSIX.1”) for the pax command. -HISTORY - The original cpio and find utilities were written by Dick Haight while +1mHISTORY0m + The original 1mcpio 22mand 1mfind 22mutilities were written by Dick Haight while working in AT&T's Unix Support Group. They first appeared in 1977 in PWB/UNIX 1.0, the “Programmer's Work Bench” system developed for use within AT&T. They were first released outside of AT&T as part of System - III Unix in 1981. As a result, cpio actually predates tar, even though + III Unix in 1981. As a result, 1mcpio 22mactually predates 1mtar22m, even though it was not well-known outside of AT&T until some time later. This is a complete re-implementation based on the libarchive(3) library. -BUGS +1mBUGS0m The cpio archive format has several basic limitations: It does not store user and group names, only numbers. As a result, it cannot be reliably used to transfer files between systems with dissimilar user and group diff --git a/archivers/libarchive/files/doc/text/bsdtar.1.txt b/archivers/libarchive/files/doc/text/bsdtar.1.txt index 94b949a5633..971cedd7fc4 100644 --- a/archivers/libarchive/files/doc/text/bsdtar.1.txt +++ b/archivers/libarchive/files/doc/text/bsdtar.1.txt @@ -1,16 +1,16 @@ TAR(1) BSD General Commands Manual TAR(1) -NAME - tar — manipulate tape archives +1mNAME0m + 1mtar 22m— manipulate tape archives -SYNOPSIS - tar [bundled-flags ⟨args⟩] [⟨file⟩ | ⟨pattern⟩ ...] - tar {-c} [options] [files | directories] - tar {-r | -u} -f archive-file [options] [files | directories] - tar {-t | -x} [options] [patterns] +1mSYNOPSIS0m + 1mtar 22m[4mbundled-flags24m ⟨args⟩] [⟨4mfile24m⟩ | ⟨4mpattern24m⟩ ...] + 1mtar 22m{1m-c22m} [4moptions24m] [4mfiles24m | 4mdirectories24m] + 1mtar 22m{1m-r 22m| 1m-u22m} 1m-f 4m22marchive-file24m [4moptions24m] [4mfiles24m | 4mdirectories24m] + 1mtar 22m{1m-t 22m| 1m-x22m} [4moptions24m] [4mpatterns24m] -DESCRIPTION - tar creates and manipulates streaming archive files. This implementation +1mDESCRIPTION0m + 1mtar 22mcreates and manipulates streaming archive files. This implementation can extract from tar, pax, cpio, zip, jar, ar, xar, rpm, 7-zip, and ISO 9660 cdrom images and can create tar, pax, cpio, ar, zip, 7-zip, and shar archives. @@ -20,24 +20,24 @@ DESCRIPTION BILITY below for details. The other synopsis forms show the preferred usage. The first option to - tar is a mode indicator from the following list: - -c Create a new archive containing the specified items. The long - option form is --create. - -r Like -c, but new entries are appended to the archive. Note that + 1mtar 22mis a mode indicator from the following list: + 1m-c 22mCreate a new archive containing the specified items. The long + option form is 1m--create22m. + 1m-r 22mLike 1m-c22m, but new entries are appended to the archive. Note that this only works on uncompressed archives stored in regular files. - The -f option is required. The long option form is --append. - -t List archive contents to stdout. The long option form is --list. - -u Like -r, but new entries are added only if they have a modifica‐ + The 1m-f 22moption is required. The long option form is 1m--append22m. + 1m-t 22mList archive contents to stdout. The long option form is 1m--list22m. + 1m-u 22mLike 1m-r22m, but new entries are added only if they have a modifica‐ tion date newer than the corresponding entry in the archive. Note that this only works on uncompressed archives stored in reg‐ - ular files. The -f option is required. The long form is - --update. - -x Extract to disk from the archive. If a file with the same name + ular files. The 1m-f 22moption is required. The long form is + 1m--update22m. + 1m-x 22mExtract to disk from the archive. If a file with the same name appears more than once in the archive, each copy will be extracted, with later copies overwriting (replacing) earlier - copies. The long option form is --extract. + copies. The long option form is 1m--extract22m. - In -c, -r, or -u mode, each specified file or directory is added to the + In 1m-c22m, 1m-r22m, or 1m-u 22mmode, each specified file or directory is added to the archive in the order specified on the command line. By default, the con‐ tents of each directory are also archived. @@ -46,75 +46,84 @@ DESCRIPTION line indicate which items in the archive should be processed. Patterns are shell-style globbing patterns as documented in tcsh(1). -OPTIONS +1mOPTIONS0m Unless specifically stated otherwise, options are applicable in all oper‐ ating modes. - @archive - (c and r mode only) The specified archive is opened and the + 1m@4m22marchive0m + (c and r modes only) The specified archive is opened and the entries in it will be appended to the current archive. As a sim‐ ple example, - tar -c -f - newfile @original.tar - writes a new archive to standard output containing a file newfile - and all of the entries from original.tar. In contrast, - tar -c -f - newfile original.tar + 1mtar -c -f 4m22m-24m 4mnewfile24m 1m@4m22moriginal.tar0m + writes a new archive to standard output containing a file 4mnewfile0m + and all of the entries from 4moriginal.tar24m. In contrast, + 1mtar -c -f 4m22m-24m 4mnewfile24m 4moriginal.tar0m creates a new archive with only two entries. Similarly, - tar -czf - --format pax @- + 1mtar -czf 4m22m-24m 1m--format pax @4m22m-0m reads an archive from standard input (whose format will be deter‐ mined automatically) and converts it into a gzip-compressed pax- - format archive on stdout. In this way, tar can be used to con‐ + format archive on stdout. In this way, 1mtar 22mcan be used to con‐ vert archives from one format to another. - -a, --auto-compress + 1m-a22m, 1m--auto-compress0m (c mode only) Use the archive suffix to decide a set of the for‐ mat and the compressions. As a simple example, - tar -a -cf archive.tgz source.c source.h + 1mtar -a -cf 4m22marchive.tgz24m 4msource.c24m 4msource.h0m creates a new archive with restricted pax format and gzip com‐ pression, - tar -a -cf archive.tar.bz2.uu source.c source.h + 1mtar -a -cf 4m22marchive.tar.bz2.uu24m 4msource.c24m 4msource.h0m creates a new archive with restricted pax format and bzip2 com‐ pression and uuencode compression, - tar -a -cf archive.zip source.c source.h + 1mtar -a -cf 4m22marchive.zip24m 4msource.c24m 4msource.h0m creates a new archive with zip format, - tar -a -jcf archive.tgz source.c source.h + 1mtar -a -jcf 4m22marchive.tgz24m 4msource.c24m 4msource.h0m ignores the “-j” option, and creates a new archive with restricted pax format and gzip compression, - tar -a -jcf archive.xxx source.c source.h + 1mtar -a -jcf 4m22marchive.xxx24m 4msource.c24m 4msource.h0m if it is unknown suffix or no suffix, creates a new archive with restricted pax format and bzip2 compression. - -B, --read-full-blocks + 1m--acls 22m(c, r, u, x modes only) Archive or extract POSIX.1e or NFSv4 + ACLs. This is the reverse of 1m--no-acls 22mand the default behavior + in c, r, and u modes (except Mac OS X) or if 1mtar 22mis run in x mode + as root. On Mac OS X this option translates extended ACLs to + NFSv4 ACLs. To store extended ACLs the 1m--mac-metadata 22moption is + preferred. + + 1m-B22m, 1m--read-full-blocks0m Ignored for compatibility with other tar(1) implementations. - -b blocksize, --block-size blocksize + 1m-b 4m22mblocksize24m, 1m--block-size 4m22mblocksize0m Specify the block size, in 512-byte records, for tape drive I/O. As a rule, this argument is only needed when reading from or writing to tape drives, and usually not even then as the default block size of 20 records (10240 bytes) is very common. - -C directory, --cd directory, --directory directory + 1m-C 4m22mdirectory24m, 1m--cd 4m22mdirectory24m, 1m--directory 4m22mdirectory0m In c and r mode, this changes the directory before adding the following files. In x mode, change directories after opening the archive but before extracting entries from the archive. - --chroot - (x mode only) chroot() to the current directory after processing - any -C options and before extracting any files. + 1m--chroot0m + (x mode only) 1mchroot22m() to the current directory after processing + any 1m-C 22moptions and before extracting any files. - --clear-nochange-fflags + 1m--clear-nochange-fflags0m (x mode only) Before removing file system objects to replace them, clear platform-specific file flags that might prevent removal. - --disable-copyfile - Mac OS X specific. Disable the use of copyfile(3). - - --exclude pattern + 1m--exclude 4m22mpattern0m Do not process files or directories that match the specified pat‐ tern. Note that exclusions take precedence over patterns or filenames specified on the command line. - --format format + 1m--fflags0m + (c, r, u, x modes only) Archive or extract file flags. This is + the reverse of 1m--no-fflags 22mand the default behavior in c, r, and + u modes or if 1mtar 22mis run in x mode as root. + + 1m--format 4m22mformat0m (c, r, u mode only) Use the specified format for the created ar‐ chive. Supported formats include “cpio”, “pax”, “shar”, and “ustar”. Other formats may also be supported; see @@ -123,310 +132,343 @@ OPTIONS chive, the format specified here must be compatible with the for‐ mat of the existing archive on disk. - -f file, --file file + 1m-f 4m22mfile24m, 1m--file 4m22mfile0m Read the archive from or write the archive to the specified file. - The filename can be - for standard input or standard output. The - default varies by system; on FreeBSD, the default is /dev/sa0; on - Linux, the default is /dev/st0. + The filename can be 4m-24m for standard input or standard output. The + default varies by system; on FreeBSD, the default is 4m/dev/sa024m; on + Linux, the default is 4m/dev/st024m. - --gid id + 1m--gid 4m22mid0m Use the provided group id number. On extract, this overrides the group id in the archive; the group name in the archive will be ignored. On create, this overrides the group id read from disk; - if --gname is not also specified, the group name will be set to + if 1m--gname 22mis not also specified, the group name will be set to match the group id. - --gname name + 1m--gname 4m22mname0m Use the provided group name. On extract, this overrides the group name in the archive; if the provided group name does not exist on the system, the group id (from the archive or from the - --gid option) will be used instead. On create, this sets the + 1m--gid 22moption) will be used instead. On create, this sets the group name that will be stored in the archive; the name will not be verified against the system group database. - -H (c and r mode only) Symbolic links named on the command line will - be followed; the target of the link will be archived, not the - link itself. + 1m-H 22m(c and r modes only) Symbolic links named on the command line + will be followed; the target of the link will be archived, not + the link itself. - -h (c and r mode only) Synonym for -L. + 1m-h 22m(c and r modes only) Synonym for 1m-L22m. - -I Synonym for -T. + 1m-I 22mSynonym for 1m-T22m. - --help Show usage. + 1m--help 22mShow usage. - --hfsCompression - (x mode only) Mac OS X specific(v10.6 or later). Compress + 1m--hfsCompression0m + (x mode only) Mac OS X specific (v10.6 or later). Compress extracted regular files with HFS+ compression. - --ignore-zeros - An alias of --options read_concatenated_archives for compatibil‐ + 1m--ignore-zeros0m + An alias of 1m--options read_concatenated_archives 22mfor compatibil‐ ity with GNU tar. - --include pattern + 1m--include 4m22mpattern0m Process only files or directories that match the specified pat‐ - tern. Note that exclusions specified with --exclude take prece‐ + tern. Note that exclusions specified with 1m--exclude 22mtake prece‐ dence over inclusions. If no inclusions are explicitly speci‐ - fied, all entries are processed by default. The --include option + fied, all entries are processed by default. The 1m--include 22moption is especially useful when filtering archives. For example, the command - tar -c -f new.tar --include='*foo*' @old.tgz - creates a new archive new.tar containing only the entries from - old.tgz containing the string ‘foo’. + 1mtar -c -f 4m22mnew.tar24m 1m--include='*foo*' @4m22mold.tgz0m + creates a new archive 4mnew.tar24m containing only the entries from + 4mold.tgz24m containing the string ‘foo’. - -J, --xz + 1m-J22m, 1m--xz0m (c mode only) Compress the resulting archive with xz(1). In extract or list modes, this option is ignored. Note that, unlike - other tar implementations, this implementation recognizes XZ com‐ + other 1mtar 22mimplementations, this implementation recognizes XZ com‐ pression automatically when reading archives. - -j, --bzip, --bzip2, --bunzip2 + 1m-j22m, 1m--bzip22m, 1m--bzip222m, 1m--bunzip20m (c mode only) Compress the resulting archive with bzip2(1). In extract or list modes, this option is ignored. Note that, unlike - other tar implementations, this implementation recognizes bzip2 + other 1mtar 22mimplementations, this implementation recognizes bzip2 compression automatically when reading archives. - -k, --keep-old-files + 1m-k22m, 1m--keep-old-files0m (x mode only) Do not overwrite existing files. In particular, if a file appears more than once in an archive, later copies will not overwrite earlier copies. - --keep-newer-files + 1m--keep-newer-files0m (x mode only) Do not overwrite existing files that are newer than the versions appearing in the archive being extracted. - -L, --dereference - (c and r mode only) All symbolic links will be followed. Nor‐ + 1m-L22m, 1m--dereference0m + (c and r modes only) All symbolic links will be followed. Nor‐ mally, symbolic links are archived as such. With this option, the target of the link will be archived instead. - -l, --check-links + 1m-l22m, 1m--check-links0m (c and r modes only) Issue a warning message unless all links to each file are archived. - --lrzip + 1m--lrzip0m (c mode only) Compress the resulting archive with lrzip(1). In extract or list modes, this option is ignored. - --lz4 (c mode only) Compress the archive with lz4-compatible compres‐ + 1m--lz4 22m(c mode only) Compress the archive with lz4-compatible compres‐ sion before writing it. In input mode, this option is ignored; lz4 compression is recognized automatically on input. - --lzma (c mode only) Compress the resulting archive with the original + 1m--lzma 22m(c mode only) Compress the resulting archive with the original LZMA algorithm. Use of this option is discouraged and new ar‐ - chives should be created with --xz instead. Note that, unlike - other tar implementations, this implementation recognizes LZMA + chives should be created with 1m--xz 22minstead. Note that, unlike + other 1mtar 22mimplementations, this implementation recognizes LZMA compression automatically when reading archives. - --lzop (c mode only) Compress the resulting archive with lzop(1). In + 1m--lzop 22m(c mode only) Compress the resulting archive with lzop(1). In extract or list modes, this option is ignored. - -m, --modification-time + 1m-m22m, 1m--modification-time0m (x mode only) Do not extract modification time. By default, the modification time is set to the time stored in the archive. - -n, --norecurse, --no-recursion + 1m--mac-metadata0m + (c, r, u and x mode only) Mac OS X specific. Archive or extract + extended ACLs and extended attributes using copyfile(3) in Apple‐ + Double format. This is the reverse of 1m--no-mac-metadata22m. and the + default behavior in c, r, and u modes or if 1mtar 22mis run in x mode + as root. + + 1m-n22m, 1m--norecurse22m, 1m--no-recursion0m (c, r, u modes only) Do not recursively archive the contents of directories. - --newer date + 1m--newer 4m22mdate0m (c, r, u modes only) Only include files and directories newer than the specified date. This compares ctime entries. - --newer-mtime date - (c, r, u modes only) Like --newer, except it compares mtime + 1m--newer-mtime 4m22mdate0m + (c, r, u modes only) Like 1m--newer22m, except it compares mtime entries instead of ctime entries. - --newer-than file + 1m--newer-than 4m22mfile0m (c, r, u modes only) Only include files and directories newer than the specified file. This compares ctime entries. - --newer-mtime-than file - (c, r, u modes only) Like --newer-than, except it compares mtime + 1m--newer-mtime-than 4m22mfile0m + (c, r, u modes only) Like 1m--newer-than22m, except it compares mtime entries instead of ctime entries. - --nodump + 1m--nodump0m (c and r modes only) Honor the nodump file flag by skipping this file. - --nopreserveHFSCompression + 1m--nopreserveHFSCompression0m (x mode only) Mac OS X specific(v10.6 or later). Do not compress extracted regular files which were compressed with HFS+ compres‐ sion before archived. By default, compress the regular files again with HFS+ compression. - --null (use with -I or -T) Filenames or patterns are separated by null + 1m--null 22m(use with 1m-I 22mor 1m-T22m) Filenames or patterns are separated by null characters, not by newlines. This is often used to read file‐ - names output by the -print0 option to find(1). + names output by the 1m-print0 22moption to find(1). + + 1m--no-acls0m + (c, r, u, x modes only) Do not archive or extract POSIX.1e or + NFSv4 ACLs. This is the reverse of 1m--acls 22mand the default behav‐ + ior if 1mtar 22mis run as non-root in x mode (on Mac OS X also in c, r + and u modes). + + 1m--no-fflags0m + (c, r, u, x modes only) Do not archive or extract file flags. + This is the reverse of 1m--fflags 22mand the default behavior if 1mtar0m + is run as non-root in x mode. - --no-same-owner + 1m--no-mac-metadata0m + (x mode only) Mac OS X specific. Do not archive or extract ACLs + and extended attributes using copyfile(3) in AppleDouble format. + This is the reverse of 1m--mac-metadata22m. and the default behavior + if 1mtar 22mis run as non-root in x mode. + + 1m-n22m, 1m--norecurse22m, 1m--no-recursion0m + + 1m--no-same-owner0m (x mode only) Do not extract owner and group IDs. This is the - reverse of --same-owner and the default behavior if tar is run as + reverse of 1m--same-owner 22mand the default behavior if 1mtar 22mis run as non-root. - --no-same-permissions + 1m--no-same-permissions0m (x mode only) Do not extract full permissions (SGID, SUID, sticky bit, ACLs, extended attributes or extended file flags). This is - the reverse of -p and the default behavior if tar is run as non- - root. + the reverse of 1m-p 22mand the default behavior if 1mtar 22mis run as non- + root and can be overridden by also specifying 1m--acls22m, 1m--fflags22m, + 1m--mac-metadata, --same-owner22m, 1m--same-permissions 22mand 1m--xattrs22m. - --numeric-owner - This is equivalent to --uname "" --gname "". On extract, it + 1m--no-xattrs0m + (c, r, u, x modes only) Do not archive or extract extended + attributes. This is the reverse of 1m--xattrs 22mand the default + behavior if 1mtar 22mis run as non-root in x mode. + + 1m--numeric-owner0m + This is equivalent to 1m--uname 22m"" 1m--gname 22m"". On extract, it causes user and group names in the archive to be ignored in favor of the numeric user and group ids. On create, it causes user and group names to not be stored in the archive. - -O, --to-stdout + 1m-O22m, 1m--to-stdout0m (x, t modes only) In extract (-x) mode, files will be written to standard out rather than being extracted to disk. In list (-t) mode, the file listing will be written to stderr rather than the usual stdout. - -o (x mode) Use the user and group of the user running the program + 1m-o 22m(x mode) Use the user and group of the user running the program rather than those specified in the archive. Note that this has - no significance unless -p is specified, and the program is being + no significance unless 1m-p 22mis specified, and the program is being run by the root user. In this case, the file modes and flags from the archive will be restored, but ACLs or owner information in the archive will be discarded. - -o (c, r, u mode) A synonym for --format ustar + 1m-o 22m(c, r, u mode) A synonym for 1m--format 4m22mustar0m - --older date + 1m--older 4m22mdate0m (c, r, u modes only) Only include files and directories older than the specified date. This compares ctime entries. - --older-mtime date - (c, r, u modes only) Like --older, except it compares mtime + 1m--older-mtime 4m22mdate0m + (c, r, u modes only) Like 1m--older22m, except it compares mtime entries instead of ctime entries. - --older-than file + 1m--older-than 4m22mfile0m (c, r, u modes only) Only include files and directories older than the specified file. This compares ctime entries. - --older-mtime-than file - (c, r, u modes only) Like --older-than, except it compares mtime + 1m--older-mtime-than 4m22mfile0m + (c, r, u modes only) Like 1m--older-than22m, except it compares mtime entries instead of ctime entries. - --one-file-system + 1m--one-file-system0m (c, r, and u modes) Do not cross mount points. - --options options + 1m--options 4m22moptions0m Select optional behaviors for particular modules. The argument is a text string containing comma-separated keywords and values. These are passed to the modules that handle particular formats to control how those formats will behave. Each option has one of the following forms: - key=value + 4mkey=value0m The key will be set to the specified value in every mod‐ ule that supports it. Modules that do not support this key will ignore it. - key The key will be enabled in every module that supports it. - This is equivalent to key=1. - !key The key will be disabled in every module that supports + 4mkey24m The key will be enabled in every module that supports it. + This is equivalent to 4mkey24m1m=122m. + 4m!key24m The key will be disabled in every module that supports it. - module:key=value, module:key, module:!key + 4mmodule:key=value24m, 4mmodule:key24m, 4mmodule:!key0m As above, but the corresponding key and value will be - provided only to modules whose name matches module. + provided only to modules whose name matches 4mmodule24m. The currently supported modules and keys are: - iso9660:joliet + 1miso9660:joliet0m Support Joliet extensions. This is enabled by default, - use !joliet or iso9660:!joliet to disable. - iso9660:rockridge + use 1m!joliet 22mor 1miso9660:!joliet 22mto disable. + 1miso9660:rockridge0m Support Rock Ridge extensions. This is enabled by - default, use !rockridge or iso9660:!rockridge to disable. - gzip:compression-level + default, use 1m!rockridge 22mor 1miso9660:!rockridge 22mto disable. + 1mgzip:compression-level0m A decimal integer from 1 to 9 specifying the gzip com‐ pression level. - gzip:timestamp + 1mgzip:timestamp0m Store timestamp. This is enabled by default, use - !timestamp or gzip:!timestamp to disable. - lrzip:compression=type - Use type as compression method. Supported values are + 1m!timestamp 22mor 1mgzip:!timestamp 22mto disable. + 1mlrzip:compression22m=4mtype0m + Use 4mtype24m as compression method. Supported values are bzip2, gzip, lzo (ultra fast), and zpaq (best, extremely slow). - lrzip:compression-level + 1mlrzip:compression-level0m A decimal integer from 1 to 9 specifying the lrzip com‐ pression level. - lz4:compression-level + 1mlz4:compression-level0m A decimal integer from 1 to 9 specifying the lzop com‐ pression level. - lz4:stream-checksum + 1mlz4:stream-checksum0m Enable stream checksum. This is by default, use - lz4:!stream-checksum to disable. - lz4:block-checksum + 1mlz4:!stream-checksum 22mto disable. + 1mlz4:block-checksum0m Enable block checksum (Disabled by default). - lz4:block-size + 1mlz4:block-size0m A decimal integer from 4 to 7 specifying the lz4 compres‐ sion block size (7 is set by default). - lz4:block-dependence + 1mlz4:block-dependence0m Use the previous block of the block being compressed for a compression dictionary to improve compression ratio. - lzop:compression-level + 1mlzop:compression-level0m A decimal integer from 1 to 9 specifying the lzop com‐ pression level. - xz:compression-level + 1mxz:compression-level0m A decimal integer from 0 to 9 specifying the xz compres‐ sion level. - mtree:keyword + 1mmtree:4m22mkeyword0m The mtree writer module allows you to specify which mtree keywords will be included in the output. Supported key‐ - words include: cksum, device, flags, gid, gname, indent, - link, md5, mode, nlink, rmd160, sha1, sha256, sha384, - sha512, size, time, uid, uname. The default is equiva‐ + words include: 1mcksum22m, 1mdevice22m, 1mflags22m, 1mgid22m, 1mgname22m, 1mindent22m, + 1mlink22m, 1mmd522m, 1mmode22m, 1mnlink22m, 1mrmd16022m, 1msha122m, 1msha25622m, 1msha38422m, + 1msha51222m, 1msize22m, 1mtime22m, 1muid22m, 1muname22m. The default is equiva‐ lent to: “device, flags, gid, gname, link, mode, nlink, size, time, type, uid, uname”. - mtree:all + 1mmtree:all0m Enables all of the above keywords. You can also use - mtree:!all to disable all keywords. - mtree:use-set - Enable generation of /set lines in the output. - mtree:indent + 1mmtree:!all 22mto disable all keywords. + 1mmtree:use-set0m + Enable generation of 1m/set 22mlines in the output. + 1mmtree:indent0m Produce human-readable output by indenting options and splitting lines to fit into 80 columns. - zip:compression=type - Use type as compression method. Supported values are + 1mzip:compression22m=4mtype0m + Use 4mtype24m as compression method. Supported values are store (uncompressed) and deflate (gzip algorithm). - zip:encryption + 1mzip:encryption0m Enable encryption using traditional zip encryption. - zip:encryption=type - Use type as encryption type. Supported values are + 1mzip:encryption22m=4mtype0m + Use 4mtype24m as encryption type. Supported values are zipcrypt (traditional zip encryption), aes128 (WinZip AES-128 encryption) and aes256 (WinZip AES-256 encryp‐ tion). - read_concatenated_archives + 1mread_concatenated_archives0m Ignore zeroed blocks in the archive, which occurs when multiple tar archives have been concatenated together. Without this option, only the contents of the first con‐ catenated archive would be read. This option is compara‐ - ble to the -i, --ignore-zeros option of GNU tar. + ble to the 1m-i22m, 1m--ignore-zeros 22moption of GNU tar. If a provided option is not supported by any module, that is a fatal error. - -P, --absolute-paths + 1m-P22m, 1m--absolute-paths0m Preserve pathnames. By default, absolute pathnames (those that begin with a / character) have the leading slash removed both - when creating archives and extracting from them. Also, tar will - refuse to extract archive entries whose pathnames contain .. or + when creating archives and extracting from them. Also, 1mtar 22mwill + refuse to extract archive entries whose pathnames contain 4m..24m or whose target directory would be altered by a symlink. This option suppresses these behaviors. - -p, --insecure, --preserve-permissions + 1m-p22m, 1m--insecure22m, 1m--preserve-permissions0m (x mode only) Preserve file permissions. Attempt to restore the - full permissions, including owner, file modes, file flags and - ACLs, if available, for each item extracted from the archive. - This is the default, if tar is being run by root and can be over‐ - ridden by also specifying --no-same-owner and - --no-same-permissions. - - --passphrase passphrase - The passphrase is used to extract or create an encrypted archive. + full permissions, including owner, file modes, ACLs, extended + atributes and extended file flags, if available, for each item + extracted from the archive. This is the default, if 1mtar 22mis being + run by root and can be overridden by also specifying 1m--no-acls22m, + 1m--no-fflags22m, 1m--no-mac-metadata, --no-same-owner22m, + 1m--no-same-permissions 22mand 1m--no-xattrs22m. + + 1m--passphrase 4m22mpassphrase0m + The 4mpassphrase24m is used to extract or create an encrypted archive. Currently, zip is the only supported format that supports encryp‐ tion. You shouldn't use this option unless you realize how inse‐ cure use of this option is. - --posix - (c, r, u mode only) Synonym for --format pax + 1m--posix0m + (c, r, u mode only) Synonym for 1m--format 4m22mpax0m - -q, --fast-read + 1m-q22m, 1m--fast-read0m (x and t mode only) Extract or list only the first archive entry that matches each pattern or filename operand. Exit as soon as each specified pattern or filename has been matched. By default, @@ -435,17 +477,17 @@ OPTIONS entries overwrite earlier entries. This option is provided as a performance optimization. - -S (x mode only) Extract files as sparse files. For every block on + 1m-S 22m(x mode only) Extract files as sparse files. For every block on disk, check first if it contains only NULL bytes and seek over it otherwise. This works similar to the conv=sparse option of dd. - -s pattern - Modify file or archive member names according to pattern. The - pattern has the format /old/new/[ghHprRsS] where old is a basic - regular expression, new is the replacement string of the matched + 1m-s 4m22mpattern0m + Modify file or archive member names according to 4mpattern24m. The + pattern has the format 4m/old/new/24m[ghHprRsS] where 4mold24m is a basic + regular expression, 4mnew24m is the replacement string of the matched part, and the optional trailing letters modify how the replace‐ - ment is handled. If old is not matched, the pattern is skipped. - Within new, ~ is substituted with the match, \1 to \9 with the + ment is handled. If 4mold24m is not matched, the pattern is skipped. + Within 4mnew24m, ~ is substituted with the match, \1 to \9 with the content of the corresponding captured group. The optional trail‐ ing g specifies that matching should continue after the matched part and stop on the first unmatched pattern. The optional @@ -457,143 +499,148 @@ OPTIONS regular filenames, or symlink targets, respectively. Optional trailing h, r, or s characters enable substitutions for hardlink targets, regular filenames, or symlink targets, respectively. - The default is hrs which applies substitutions to all names. In + The default is 4mhrs24m which applies substitutions to all names. In particular, it is never necessary to specify h, r, or s. - --same-owner + 1m--same-owner0m (x mode only) Extract owner and group IDs. This is the reverse - of --no-same-owner and the default behavior if tar is run as + of 1m--no-same-owner 22mand the default behavior if 1mtar 22mis run as root. - --strip-components count + 1m--strip-components 4m22mcount0m Remove the specified number of leading path elements. Pathnames with fewer elements will be silently skipped. Note that the pathname is edited after checking inclusion/exclusion patterns but before security checks. - -T filename, --files-from filename - In x or t mode, tar will read the list of names to be extracted - from filename. In c mode, tar will read names to be archived - from filename. The special name “-C” on a line by itself will + 1m-T 4m22mfilename24m, 1m--files-from 4m22mfilename0m + In x or t mode, 1mtar 22mwill read the list of names to be extracted + from 4mfilename24m. In c mode, 1mtar 22mwill read names to be archived + from 4mfilename24m. The special name “-C” on a line by itself will cause the current directory to be changed to the directory speci‐ fied on the following line. Names are terminated by newlines - unless --null is specified. Note that --null also disables the + unless 1m--null 22mis specified. Note that 1m--null 22malso disables the special handling of lines containing “-C”. Note: If you are generating lists of files using find(1), you probably want to use - -n as well. + 1m-n 22mas well. - --totals - (c, r, u mode only) After archiving all files, print a summary to - stderr. + 1m--totals0m + (c, r, u modes only) After archiving all files, print a summary + to stderr. - -U, --unlink, --unlink-first + 1m-U22m, 1m--unlink22m, 1m--unlink-first0m (x mode only) Unlink files before creating them. This can be a minor performance optimization if most files already exist, but can make things slower if most files do not already exist. This - flag also causes tar to remove intervening directory symlinks + flag also causes 1mtar 22mto remove intervening directory symlinks instead of reporting an error. See the SECURITY section below for more details. - --uid id + 1m--uid 4m22mid0m Use the provided user id number and ignore the user name from the - archive. On create, if --uname is not also specified, the user + archive. On create, if 1m--uname 22mis not also specified, the user name will be set to match the user id. - --uname name + 1m--uname 4m22mname0m Use the provided user name. On extract, this overrides the user name in the archive; if the provided user name does not exist on the system, it will be ignored and the user id (from the archive - or from the --uid option) will be used instead. On create, this + or from the 1m--uid 22moption) will be used instead. On create, this sets the user name that will be stored in the archive; the name is not verified against the system user database. - --use-compress-program program + 1m--use-compress-program 4m22mprogram0m Pipe the input (in x or t mode) or the output (in c mode) through - program instead of using the builtin compression support. + 4mprogram24m instead of using the builtin compression support. - -v, --verbose - Produce verbose output. In create and extract modes, tar will + 1m-v22m, 1m--verbose0m + Produce verbose output. In create and extract modes, 1mtar 22mwill list each file name as it is read from or written to the archive. - In list mode, tar will produce output similar to that of ls(1). - An additional -v option will also provide ls-like details in cre‐ + In list mode, 1mtar 22mwill produce output similar to that of ls(1). + An additional 1m-v 22moption will also provide ls-like details in cre‐ ate and extract mode. - --version - Print version of tar and libarchive, and exit. + 1m--version0m + Print version of 1mtar 22mand 1mlibarchive22m, and exit. - -w, --confirmation, --interactive + 1m-w22m, 1m--confirmation22m, 1m--interactive0m Ask for confirmation for every action. - -X filename, --exclude-from filename + 1m-X 4m22mfilename24m, 1m--exclude-from 4m22mfilename0m Read a list of exclusion patterns from the specified file. See - --exclude for more information about the handling of exclusions. + 1m--exclude 22mfor more information about the handling of exclusions. + + 1m--xattrs0m + (c, r, u, x modes only) Archive or extract extended attributes. + This is the reverse of 1m--no-xattrs 22mand the default behavior in c, + r, and u modes or if 1mtar 22mis run in x mode as root. - -y (c mode only) Compress the resulting archive with bzip2(1). In + 1m-y 22m(c mode only) Compress the resulting archive with bzip2(1). In extract or list modes, this option is ignored. Note that, unlike - other tar implementations, this implementation recognizes bzip2 + other 1mtar 22mimplementations, this implementation recognizes bzip2 compression automatically when reading archives. - -Z, --compress, --uncompress + 1m-Z22m, 1m--compress22m, 1m--uncompress0m (c mode only) Compress the resulting archive with compress(1). In extract or list modes, this option is ignored. Note that, - unlike other tar implementations, this implementation recognizes + unlike other 1mtar 22mimplementations, this implementation recognizes compress compression automatically when reading archives. - -z, --gunzip, --gzip + 1m-z22m, 1m--gunzip22m, 1m--gzip0m (c mode only) Compress the resulting archive with gzip(1). In extract or list modes, this option is ignored. Note that, unlike - other tar implementations, this implementation recognizes gzip + other 1mtar 22mimplementations, this implementation recognizes gzip compression automatically when reading archives. -ENVIRONMENT - The following environment variables affect the execution of tar: +1mENVIRONMENT0m + The following environment variables affect the execution of 1mtar22m: TAR_READER_OPTIONS The default options for format readers and compression read‐ - ers. The --options option overrides this. + ers. The 1m--options 22moption overrides this. TAR_WRITER_OPTIONS The default options for format writers and compression writ‐ - ers. The --options option overrides this. + ers. The 1m--options 22moption overrides this. LANG The locale to use. See environ(7) for more information. - TAPE The default device. The -f option overrides this. Please see - the description of the -f option above for more details. + TAPE The default device. The 1m-f 22moption overrides this. Please see + the description of the 1m-f 22moption above for more details. TZ The timezone to use when displaying dates. See environ(7) for more information. -EXIT STATUS - The tar utility exits 0 on success, and >0 if an error occurs. +1mEXIT STATUS0m + The 1mtar 22mutility exits 0 on success, and >0 if an error occurs. -EXAMPLES - The following creates a new archive called file.tar.gz that contains two - files source.c and source.h: - tar -czf file.tar.gz source.c source.h +1mEXAMPLES0m + The following creates a new archive called 4mfile.tar.gz24m that contains two + files 4msource.c24m and 4msource.h24m: + 1mtar -czf 4m22mfile.tar.gz24m 4msource.c24m 4msource.h0m To view a detailed table of contents for this archive: - tar -tvf file.tar.gz + 1mtar -tvf 4m22mfile.tar.gz0m To extract all entries from the archive on the default tape drive: - tar -x + 1mtar -x0m To examine the contents of an ISO 9660 cdrom image: - tar -tf image.iso + 1mtar -tf 4m22mimage.iso0m - To move file hierarchies, invoke tar as - tar -cf - -C srcdir . | tar -xpf - -C destdir + To move file hierarchies, invoke 1mtar 22mas + 1mtar -cf 4m22m-24m 1m-C 4m22msrcdir24m 4m.24m | 1mtar -xpf 4m22m-24m 1m-C 4m22mdestdir0m or more traditionally - cd srcdir ; tar -cf - . | (cd destdir ; tar -xpf -) + cd srcdir ; 1mtar -cf 4m22m-24m 4m.24m | (4mcd24m 4mdestdir24m 4m;24m 1mtar -xpf 4m22m-24m) In create mode, the list of files and directories to be archived can also - include directory change instructions of the form -Cfoo/baz and archive - inclusions of the form @archive-file. For example, the command line - tar -c -f new.tar foo1 @old.tgz -C/tmp foo2 - will create a new archive new.tar. tar will read the file foo1 from the + include directory change instructions of the form 1m-C4m22mfoo/baz24m and archive + inclusions of the form 1m@4m22marchive-file24m. For example, the command line + 1mtar -c -f 4m22mnew.tar24m 4mfoo124m 1m@4m22mold.tgz24m 1m-C4m22m/tmp24m 4mfoo20m + will create a new archive 4mnew.tar24m. 1mtar 22mwill read the file 4mfoo124m from the current directory and add it to the output archive. It will then read - each entry from old.tgz and add those entries to the output archive. - Finally, it will switch to the /tmp directory and add foo2 to the output + each entry from 4mold.tgz24m and add those entries to the output archive. + Finally, it will switch to the 4m/tmp24m directory and add 4mfoo224m to the output archive. An input file in mtree(5) format can be used to create an output archive @@ -606,85 +653,85 @@ EXAMPLES usr/bin/ls uid=0 gid=0 mode=0755 type=file content=myls $ tar -cvf output.tar @input.mtree - The --newer and --newer-mtime switches accept a variety of common date + The 1m--newer 22mand 1m--newer-mtime 22mswitches accept a variety of common date and time specifications, including “12 Mar 2005 7:14:29pm”, “2005-03-12 19:14”, “5 minutes ago”, and “19:14 PST May 1”. - The --options argument can be used to control various details of archive + The 1m--options 22margument can be used to control various details of archive generation or reading. For example, you can generate mtree output which - only contains type, time, and uid keywords: - tar -cf file.tar --format=mtree --options='!all,type,time,uid' dir + only contains 1mtype22m, 1mtime22m, and 1muid 22mkeywords: + 1mtar -cf 4m22mfile.tar24m 1m--format=mtree --options='!all,type,time,uid' 4m22mdir0m or you can set the compression level used by gzip or xz compression: - tar -czf file.tar --options='compression-level=9'. - For more details, see the explanation of the archive_read_set_options() - and archive_write_set_options() API calls that are described in + 1mtar -czf 4m22mfile.tar24m 1m--options='compression-level=9'22m. + For more details, see the explanation of the 1marchive_read_set_options22m() + and 1marchive_write_set_options22m() API calls that are described in archive_read(3) and archive_write(3). -COMPATIBILITY +1mCOMPATIBILITY0m The bundled-arguments format is supported for compatibility with historic implementations. It consists of an initial word (with no leading - char‐ acter) in which each character indicates an option. Arguments follow as separate words. The order of the arguments must match the order of the corresponding characters in the bundled command word. For example, - tar tbf 32 file.tar - specifies three flags t, b, and f. The b and f flags both require argu‐ - ments, so there must be two additional items on the command line. The 32 - is the argument to the b flag, and file.tar is the argument to the f + 1mtar tbf 32 4m22mfile.tar0m + specifies three flags 1mt22m, 1mb22m, and 1mf22m. The 1mb 22mand 1mf 22mflags both require argu‐ + ments, so there must be two additional items on the command line. The 4m320m + is the argument to the 1mb 22mflag, and 4mfile.tar24m is the argument to the 1mf0m flag. The mode options c, r, t, u, and x and the options b, f, l, m, o, v, and w comply with SUSv2. - For maximum portability, scripts that invoke tar should use the bundled- - argument format above, should limit themselves to the c, t, and x modes, - and the b, f, m, v, and w options. + For maximum portability, scripts that invoke 1mtar 22mshould use the bundled- + argument format above, should limit themselves to the 1mc22m, 1mt22m, and 1mx 22mmodes, + and the 1mb22m, 1mf22m, 1mm22m, 1mv22m, and 1mw 22moptions. Additional long options are provided to improve compatibility with other tar implementations. -SECURITY +1mSECURITY0m Certain security issues are common to many archiving programs, including - tar. In particular, carefully-crafted archives can request that tar + 1mtar22m. In particular, carefully-crafted archives can request that 1mtar0m extract files to locations outside of the target directory. This can potentially be used to cause unwitting users to overwrite files they did not intend to overwrite. If the archive is being extracted by the supe‐ ruser, any file on the system can potentially be overwritten. There are - three ways this can happen. Although tar has mechanisms to protect + three ways this can happen. Although 1mtar 22mhas mechanisms to protect against each one, savvy users should be aware of the implications: - · Archive entries can have absolute pathnames. By default, tar - removes the leading / character from filenames before restoring + 1m· 22mArchive entries can have absolute pathnames. By default, 1mtar0m + removes the leading 4m/24m character from filenames before restoring them to guard against this problem. - · Archive entries can have pathnames that include .. components. - By default, tar will not extract files containing .. components + 1m· 22mArchive entries can have pathnames that include 4m..24m components. + By default, 1mtar 22mwill not extract files containing 4m..24m components in their pathname. - · Archive entries can exploit symbolic links to restore files to + 1m· 22mArchive entries can exploit symbolic links to restore files to other directories. An archive can restore a symbolic link to another directory, then use that link to restore a file into that - directory. To guard against this, tar checks each extracted path + directory. To guard against this, 1mtar 22mchecks each extracted path for symlinks. If the final path element is a symlink, it will be - removed and replaced with the archive entry. If -U is specified, + removed and replaced with the archive entry. If 1m-U 22mis specified, any intermediate symlink will also be unconditionally removed. - If neither -U nor -P is specified, tar will refuse to extract the + If neither 1m-U 22mnor 1m-P 22mis specified, 1mtar 22mwill refuse to extract the entry. To protect yourself, you should be wary of any archives that come from untrusted sources. You should examine the contents of an archive with - tar -tf filename - before extraction. You should use the -k option to ensure that tar will - not overwrite any existing files or the -U option to remove any pre- + 1mtar -tf 4m22mfilename0m + before extraction. You should use the 1m-k 22moption to ensure that 1mtar 22mwill + not overwrite any existing files or the 1m-U 22moption to remove any pre- existing files. You should generally not extract archives while running - with super-user privileges. Note that the -P option to tar disables the + with super-user privileges. Note that the 1m-P 22moption to 1mtar 22mdisables the security checks above and allows you to extract an archive while preserv‐ - ing any absolute pathnames, .. components, or symlinks to other directo‐ + ing any absolute pathnames, 4m..24m components, or symlinks to other directo‐ ries. -SEE ALSO +1mSEE ALSO0m bzip2(1), compress(1), cpio(1), gzip(1), mt(1), pax(1), shar(1), xz(1), libarchive(3), libarchive-formats(5), tar(5) -STANDARDS +1mSTANDARDS0m There is no current POSIX standard for the tar command; it appeared in ISO/IEC 9945-1:1996 (“POSIX.1”) but was dropped from IEEE Std 1003.1-2001 (“POSIX.1”). The options supported by this implementation were developed @@ -694,10 +741,10 @@ STANDARDS The ustar and pax interchange file formats are defined by IEEE Std 1003.1-2001 (“POSIX.1”) for the pax command. -HISTORY - A tar command appeared in Seventh Edition Unix, which was released in +1mHISTORY0m + A 1mtar 22mcommand appeared in Seventh Edition Unix, which was released in January, 1979. There have been numerous other implementations, many of - which extended the file format. John Gilmore's pdtar public-domain + which extended the file format. John Gilmore's 1mpdtar 22mpublic-domain implementation (circa November, 1987) was quite influential, and formed the basis of GNU tar. GNU tar was included as the standard system tar in FreeBSD beginning with FreeBSD 1.0. @@ -705,12 +752,12 @@ HISTORY This is a complete re-implementation based on the libarchive(3) library. It was first released with FreeBSD 5.4 in May, 2005. -BUGS +1mBUGS0m This program follows ISO/IEC 9945-1:1996 (“POSIX.1”) for the definition - of the -l option. Note that GNU tar prior to version 1.15 treated -l as - a synonym for the --one-file-system option. + of the 1m-l 22moption. Note that GNU tar prior to version 1.15 treated 1m-l 22mas + a synonym for the 1m--one-file-system 22moption. - The -C dir option may differ from historic implementations. + The 1m-C 4m22mdir24m option may differ from historic implementations. All archive output is written in correctly-sized blocks, even if the out‐ put is being compressed. Whether or not the last output block is padded @@ -720,27 +767,27 @@ BUGS a character or block device such as a tape drive. If the output is being written to a regular file, the last block will not be padded. Many com‐ pressors, including gzip(1) and bzip2(1), complain about the null padding - when decompressing an archive created by tar, although they still extract + when decompressing an archive created by 1mtar22m, although they still extract it correctly. The compression and decompression is implemented internally, so there may be insignificant differences between the compressed output generated by - tar -czf - file + 1mtar -czf 4m22m-24m 4mfile0m and that generated by - tar -cf - file | gzip + 1mtar -cf 4m22m-24m 4mfile24m | 1mgzip0m The default should be to read and write archives to the standard I/O paths, but tradition (and POSIX) dictates otherwise. - The r and u modes require that the archive be uncompressed and located in - a regular file on disk. Other archives can be modified using c mode with - the @archive-file extension. + The 1mr 22mand 1mu 22mmodes require that the archive be uncompressed and located in + a regular file on disk. Other archives can be modified using 1mc 22mmode with + the 4m@archive-file24m extension. - To archive a file called @foo or -foo you must specify it as ./@foo or - ./-foo, respectively. + To archive a file called 4m@foo24m or 4m-foo24m you must specify it as 4m./@foo24m or + 4m./-foo24m, respectively. - In create mode, a leading ./ is always removed. A leading / is stripped - unless the -P option is specified. + In create mode, a leading 4m./24m is always removed. A leading 4m/24m is stripped + unless the 1m-P 22moption is specified. There needs to be better support for file selection on both create and extract. @@ -748,8 +795,8 @@ BUGS There is not yet any support for multi-volume archives. Converting between dissimilar archive formats (such as tar and cpio) - using the @- convention can cause hard link information to be lost. + using the 1m@4m22m-24m convention can cause hard link information to be lost. (This is a consequence of the incompatible ways that different archive formats store hardlink information.) -BSD September 16, 2014 BSD +BSD February 24, 2017 BSD diff --git a/archivers/libarchive/files/doc/text/cpio.5.txt b/archivers/libarchive/files/doc/text/cpio.5.txt index 395a560aa76..2b6174e83dd 100644 --- a/archivers/libarchive/files/doc/text/cpio.5.txt +++ b/archivers/libarchive/files/doc/text/cpio.5.txt @@ -1,29 +1,29 @@ CPIO(5) BSD File Formats Manual CPIO(5) -NAME - cpio — format of cpio archive files +1mNAME0m + 1mcpio 22m— format of cpio archive files -DESCRIPTION - The cpio archive format collects any number of files, directories, and +1mDESCRIPTION0m + The 1mcpio 22marchive format collects any number of files, directories, and other file system objects (symbolic links, device nodes, etc.) into a single stream of bytes. - General Format - Each file system object in a cpio archive comprises a header record with + 1mGeneral Format0m + Each file system object in a 1mcpio 22marchive comprises a header record with basic numeric metadata followed by the full pathname of the entry and the file data. The header record stores a series of integer values that gen‐ - erally follow the fields in struct stat. (See stat(2) for details.) The + erally follow the fields in 4mstruct24m 4mstat24m. (See stat(2) for details.) The variants differ primarily in how they store those integers (binary, octal, or hexadecimal). The header is followed by the pathname of the entry (the length of the pathname is stored in the header) and any file data. The end of the archive is indicated by a special record with the pathname “TRAILER!!!”. - PWB format + 1mPWB format0m XXX Any documentation of the original PWB/UNIX 1.0 format? XXX - Old Binary Format - The old binary cpio format stores numbers as 2-byte and 4-byte binary + 1mOld Binary Format0m + The old binary 1mcpio 22mformat stores numbers as 2-byte and 4-byte binary values. Each entry begins with a header in the following format: struct header_old_cpio { @@ -40,20 +40,20 @@ DESCRIPTION unsigned short c_filesize[2]; }; - The unsigned short fields here are 16-bit integer values; the unsigned - int fields are 32-bit integer values. The fields are as follows + The 4munsigned24m 4mshort24m fields here are 16-bit integer values; the 4munsigned0m + 4mint24m fields are 32-bit integer values. The fields are as follows - magic The integer value octal 070707. This value can be used to deter‐ + 4mmagic24m The integer value octal 070707. This value can be used to deter‐ mine whether this archive is written with little-endian or big- endian integers. - dev, ino + 4mdev24m, 4mino0m The device and inode numbers from the disk. These are used by - programs that read cpio archives to determine when two entries - refer to the same file. Programs that synthesize cpio archives + programs that read 1mcpio 22marchives to determine when two entries + refer to the same file. Programs that synthesize 1mcpio 22marchives should be careful to set these to distinct values for each entry. - mode The mode specifies both the regular permissions and the file + 4mmode24m The mode specifies both the regular permissions and the file type. It consists of several bit fields as follows: 0170000 This masks the file type bits. 0140000 File type value for sockets. @@ -72,40 +72,40 @@ DESCRIPTION for world, group, and user following standard POSIX con‐ ventions. - uid, gid + 4muid24m, 4mgid0m The numeric user id and group id of the owner. - nlink The number of links to this file. Directories always have a + 4mnlink24m The number of links to this file. Directories always have a value of at least two here. Note that hardlinked files include file data with every copy in the archive. - rdev For block special and character special entries, this field con‐ + 4mrdev24m For block special and character special entries, this field con‐ tains the associated device number. For all other entry types, it should be set to zero by writers and ignored by readers. - mtime Modification time of the file, indicated as the number of seconds + 4mmtime24m Modification time of the file, indicated as the number of seconds since the start of the epoch, 00:00:00 UTC January 1, 1970. The four-byte integer is stored with the most-significant 16 bits first followed by the least-significant 16 bits. Each of the two 16 bit values are stored in machine-native byte order. - namesize + 4mnamesize0m The number of bytes in the pathname that follows the header. This count includes the trailing NUL byte. - filesize + 4mfilesize0m The size of the file. Note that this archive format is limited - to four gigabyte file sizes. See mtime above for a description + to four gigabyte file sizes. See 4mmtime24m above for a description of the storage of four-byte integers. - The pathname immediately follows the fixed header. If the namesize is + The pathname immediately follows the fixed header. If the 1mnamesize 22mis odd, an additional NUL byte is added after the pathname. The file data is then appended, padded with NUL bytes to an even length. Hardlinked files are not given special treatment; the full file contents are included with each copy of the file. - Portable ASCII Format + 1mPortable ASCII Format0m Version 2 of the Single UNIX Specification (“SUSv2”) standardized an ASCII variant that is portable across all platforms. It is commonly known as the “old character” format or as the “odc” format. It stores @@ -133,7 +133,7 @@ DESCRIPTION archive will be entirely ASCII, except for the NUL byte that terminates the name field. - New ASCII Format + 1mNew ASCII Format0m The "new" ASCII format uses 8-byte hexadecimal fields for all numbers and separates device numbers into separate fields for major and minor num‐ bers. @@ -158,9 +158,9 @@ DESCRIPTION Except as specified below, the fields here match those specified for the old binary format above. - magic The string “070701”. + 4mmagic24m The string “070701”. - check This field is always set to zero by writers and ignored by read‐ + 4mcheck24m This field is always set to zero by writers and ignored by read‐ ers. See the next section for more details. The pathname is followed by NUL bytes so that the total size of the fixed @@ -172,35 +172,35 @@ DESCRIPTION In this format, hardlinked files are handled by setting the filesize to zero for each entry except the last one that appears in the archive. - New CRC Format + 1mNew CRC Format0m The CRC format is identical to the new ASCII format described in the pre‐ vious section except that the magic field is set to “070702” and the - check field is set to the sum of all bytes in the file data. This sum is + 4mcheck24m field is set to the sum of all bytes in the file data. This sum is computed treating all bytes as unsigned values and using unsigned arith‐ metic. Only the least-significant 32 bits of the sum are stored. - HP variants - The cpio implementation distributed with HPUX used XXXX but stored device + 1mHP variants0m + The 1mcpio 22mimplementation distributed with HPUX used XXXX but stored device numbers differently XXX. - Other Extensions and Variants + 1mOther Extensions and Variants0m Sun Solaris uses additional file types to store extended file data, including ACLs and extended attributes, as special entries in cpio ar‐ chives. XXX Others? XXX -SEE ALSO +1mSEE ALSO0m cpio(1), tar(5) -STANDARDS - The cpio utility is no longer a part of POSIX or the Single Unix Stan‐ +1mSTANDARDS0m + The 1mcpio 22mutility is no longer a part of POSIX or the Single Unix Stan‐ dard. It last appeared in Version 2 of the Single UNIX Specification (“SUSv2”). It has been supplanted in subsequent standards by pax(1). The portable ASCII format is currently part of the specification for the pax(1) utility. -HISTORY +1mHISTORY0m The original cpio utility was written by Dick Haight while working in AT&T's Unix Support Group. It appeared in 1977 as part of PWB/UNIX 1.0, the “Programmer's Work Bench” derived from Version 6 AT&T UNIX that was @@ -211,7 +211,7 @@ HISTORY Who invented it? When did HP come out with their variant? When did Sun introduce ACLs and extended attributes? XXX -BUGS +1mBUGS0m The “CRC” format is mis-named, as it uses a simple checksum and not a cyclic redundancy check. diff --git a/archivers/libarchive/files/doc/text/libarchive-formats.5.txt b/archivers/libarchive/files/doc/text/libarchive-formats.5.txt index 60694778b66..429dd74ae0c 100644 --- a/archivers/libarchive/files/doc/text/libarchive-formats.5.txt +++ b/archivers/libarchive/files/doc/text/libarchive-formats.5.txt @@ -1,9 +1,9 @@ LIBARCHIVE-FORMATS(5) BSD File Formats Manual LIBARCHIVE-FORMATS(5) -NAME - libarchive-formats — archive formats supported by the libarchive library +1mNAME0m + 1mlibarchive-formats 22m— archive formats supported by the libarchive library -DESCRIPTION +1mDESCRIPTION0m The libarchive(3) library reads and writes a variety of streaming archive formats. Generally speaking, all of these archive formats consist of a series of “entries”. Each entry stores a single file system object, such @@ -17,7 +17,7 @@ DESCRIPTION specify which formats they wish to support, though many programs do use libarchive convenience functions to enable all supported formats. - Tar Formats + 1mTar Formats0m The libarchive(3) library can read most tar archives. It can write POSIX-standard “ustar” and “pax interchange” formats as well as v7 tar format and a subset of the legacy GNU tar format. @@ -30,7 +30,7 @@ DESCRIPTION storing special entries that modify the interpretation of subsequent entries. - gnutar The libarchive(3) library can read most GNU-format tar archives. + 1mgnutar 22mThe libarchive(3) library can read most GNU-format tar archives. It currently supports the most popular GNU extensions, including modern long filename and linkname support, as well as atime and ctime data. The libarchive library does not support multi-volume @@ -41,7 +41,7 @@ DESCRIPTION long filename and linkname support, as well as atime and ctime data. - pax The libarchive(3) library can read and write POSIX-compliant pax + 1mpax 22mThe libarchive(3) library can read and write POSIX-compliant pax interchange format archives. Pax interchange format archives are an extension of the older ustar format that adds a separate entry with additional attributes stored as key/value pairs immediately @@ -64,7 +64,7 @@ DESCRIPTION dle non-ASCII filenames on systems that did not satisfy this assumption. - restricted pax + 1mrestricted pax0m The libarchive library can also write pax archives in which it attempts to suppress the extended attributes entry whenever pos‐ sible. The result will be identical to a ustar archive unless @@ -76,38 +76,38 @@ DESCRIPTION pliant pax interchange format archives. Programs that correctly read ustar format (see below) will also be able to read this for‐ mat; any extended attributes will be extracted as separate files - stored in PaxHeader directories. + stored in 4mPaxHeader24m directories. - ustar The libarchive library can both read and write this format. This + 1mustar 22mThe libarchive library can both read and write this format. This format has the following limitations: - · Device major and minor numbers are limited to 21 bits. Nodes + 1m· 22mDevice major and minor numbers are limited to 21 bits. Nodes with larger numbers will not be added to the archive. - · Path names in the archive are limited to 255 bytes. (Shorter + 1m· 22mPath names in the archive are limited to 255 bytes. (Shorter if there is no / character in exactly the right place.) - · Symbolic links and hard links are stored in the archive with + 1m· 22mSymbolic links and hard links are stored in the archive with the name of the referenced file. This name is limited to 100 bytes. - · Extended attributes, file flags, and other extended security + 1m· 22mExtended attributes, file flags, and other extended security information cannot be stored. - · Archive entries are limited to 8 gigabytes in size. + 1m· 22mArchive entries are limited to 8 gigabytes in size. Note that the pax interchange format has none of these restric‐ tions. The ustar format is old and widely supported. It is rec‐ ommended when compatibility is the primary concern. - v7 The libarchive library can read and write the legacy v7 tar for‐ + 1mv7 22mThe libarchive library can read and write the legacy v7 tar for‐ mat. This format has the following limitations: - · Only regular files, directories, and symbolic links can be + 1m· 22mOnly regular files, directories, and symbolic links can be archived. Block and character device nodes, FIFOs, and sock‐ ets cannot be archived. - · Path names in the archive are limited to 100 bytes. - · Symbolic links and hard links are stored in the archive with + 1m· 22mPath names in the archive are limited to 100 bytes. + 1m· 22mSymbolic links and hard links are stored in the archive with the name of the referenced file. This name is limited to 100 bytes. - · User and group information are stored as numeric IDs; there + 1m· 22mUser and group information are stored as numeric IDs; there is no provision for storing user or group names. - · Extended attributes, file flags, and other extended security + 1m· 22mExtended attributes, file flags, and other extended security information cannot be stored. - · Archive entries are limited to 8 gigabytes in size. + 1m· 22mArchive entries are limited to 8 gigabytes in size. Generally, users should prefer the ustar format for portability as the v7 tar format is both less useful and less portable. @@ -127,15 +127,14 @@ DESCRIPTION Solaris extensions Libarchive recognizes ACL and extended attribute records written - by Solaris tar. Currently, libarchive only has support for old- - style ACLs; the newer NFSv4 ACLs are recognized but discarded. + by Solaris tar. The first tar program appeared in Seventh Edition Unix in 1979. The first official standard for the tar file format was the “ustar” (Unix Standard Tar) format defined by POSIX in 1988. POSIX.1-2001 extended the ustar format to create the “pax interchange” format. - Cpio Formats + 1mCpio Formats0m The libarchive library can read a number of common cpio variants and can write “odc” and “newc” format archives. A cpio archive stores each entry as a fixed-size header followed by a variable-length filename and vari‐ @@ -145,12 +144,12 @@ DESCRIPTION the values as octal or hexadecimal numbers in ASCII, others as binary values of varying byte order and length. - binary The libarchive library transparently reads both big-endian and + 1mbinary 22mThe libarchive library transparently reads both big-endian and little-endian variants of the original binary cpio format. This format used 32-bit binary values for file size and mtime, and 16-bit binary values for the other fields. - odc The libarchive library can both read and write this POSIX-stan‐ + 1modc 22mThe libarchive library can both read and write this POSIX-stan‐ dard format, which is officially known as the “cpio interchange format” or the “octet-oriented cpio archive format” and sometimes unofficially referred to as the “old character format”. This @@ -159,7 +158,7 @@ DESCRIPTION File sizes and mtime are limited to 33 bits (8GB file size), other fields are limited to 18 bits. - SVR4/newc + 1mSVR4/newc0m The libarchive library can read both CRC and non-CRC variants of this format. The SVR4 format uses eight-digit hexadecimal values for all header fields. This limits file size to 4GB, and also @@ -172,7 +171,7 @@ DESCRIPTION of AT&T in 1981. This makes cpio older than tar, although cpio was not included in Version 7 AT&T Unix. As a result, the tar command became much better known in universities and research groups that used Version - 7. The combination of the find and cpio utilities provided very precise + 7. The combination of the 1mfind 22mand 1mcpio 22mutilities provided very precise control over file selection. Unfortunately, the format has many limita‐ tions that make it unsuitable for widespread use. Only the POSIX format permits files over 4GB, and its 18-bit limit for most other fields makes @@ -181,19 +180,19 @@ DESCRIPTION very difficult to correctly transfer archives across systems with dissim‐ ilar user numbering. - Shar Formats + 1mShar Formats0m A “shell archive” is a shell script that, when executed on a POSIX-com‐ pliant system, will recreate a collection of file system objects. The libarchive library can write two different kinds of shar archives: - shar The traditional shar format uses a limited set of POSIX commands, + 1mshar 22mThe traditional shar format uses a limited set of POSIX commands, including echo(1), mkdir(1), and sed(1). It is suitable for portably archiving small collections of plain text files. How‐ ever, it is not generally well-suited for large archives (many implementations of sh(1) have limits on the size of a script) nor should it be used with non-text files. - shardump + 1mshardump0m This format is similar to shar but encodes files using uuencode(1) so that the result will be a plain text file regard‐ less of the file contents. It also includes additional shell @@ -202,7 +201,7 @@ DESCRIPTION mands used to restore file attributes make shardump archives less portable than plain shar archives. - ISO9660 format + 1mISO9660 format0m Libarchive can read and extract from files containing ISO9660-compliant CDROM images. In many cases, this can remove the need to burn a physical CDROM just in order to read the files contained in an ISO9660 image. It @@ -231,7 +230,7 @@ DESCRIPTION tion used for the temporary file can be changed by the usual environment variables. - Zip format + 1mZip format0m Libarchive can read and write zip format archives that have uncompressed entries and entries compressed with the “deflate” algorithm. Other zip compression algorithms are not supported. It can extract jar archives, @@ -261,7 +260,7 @@ DESCRIPTION modified in-place can have deleted entries or other garbage data that can only be accurately detected by first reading the Central Directory. - Archive (library) file format + 1mArchive (library) file format0m The Unix archive format (commonly created by the ar(1) archiver) is a general-purpose format which is used almost exclusively for object files to be read by the link editor ld(1). The ar format has never been stan‐ @@ -272,13 +271,13 @@ DESCRIPTION the BSD format stores each long filename in an extension area adjacent to the entry. Libarchive can read both extensions, including archives that may include both types of long filenames. Programs using libarchive can - write GNU/SVR4 format if they provide an entry called // containing a + write GNU/SVR4 format if they provide an entry called 4m//24m containing a filename table to be written into the archive before any of the entries. Any entries whose names are not in the filename table will be written using BSD-style long filenames. This can cause problems for programs such as GNU ld that do not support the BSD-style long filenames. - mtree + 1mmtree0m Libarchive can read and write files in mtree(5) format. This format is not a true archive format, but rather a textual description of a file hierarchy in which each line specifies the name of a file and provides @@ -289,45 +288,45 @@ DESCRIPTION archive_write_set_options(3) interface to specify which keywords should be included in the output. If libarchive was compiled with access to suitable cryptographic libraries (such as the OpenSSL libraries), it can - compute hash entries such as sha512 or md5 from file data being written + compute hash entries such as 1msha512 22mor 1mmd5 22mfrom file data being written to the mtree writer. When reading an mtree file, libarchive will locate the corresponding - files on disk using the contents keyword if present or the regular file‐ + files on disk using the 1mcontents 22mkeyword if present or the regular file‐ name. If it can locate and open the file on disk, it will use that to fill in any metadata that is missing from the mtree file and will read the file contents and return those to the program using libarchive. If it cannot locate and open the file on disk, libarchive will return an error for any attempt to read the entry body. - 7-Zip + 1m7-Zip0m Libarchive can read and write 7-Zip format archives. TODO: Need more information - CAB + 1mCAB0m Libarchive can read Microsoft Cabinet ( “CAB”) format archives. TODO: Need more information. - LHA + 1mLHA0m TODO: Information about libarchive's LHA support - RAR + 1mRAR0m Libarchive has limited support for reading RAR format archives. Cur‐ rently, libarchive can read RARv3 format archives which have been either created uncompressed, or compressed using any of the compression methods supported by the RARv3 format. Libarchive can also read self-extracting RAR archives. - Warc + 1mWarc0m Libarchive can read and write “web archives”. TODO: Need more informa‐ tion - XAR + 1mXAR0m Libarchive can read and write the XAR format used by many Apple tools. TODO: Need more information -SEE ALSO +1mSEE ALSO0m ar(1), cpio(1), mkisofs(1), shar(1), tar(1), zip(1), zlib(3), cpio(5), mtree(5), tar(5) -BSD March 18, 2012 BSD +BSD December 27, 2016 BSD diff --git a/archivers/libarchive/files/doc/text/libarchive.3.txt b/archivers/libarchive/files/doc/text/libarchive.3.txt index 484642460dc..0c24e19a111 100644 --- a/archivers/libarchive/files/doc/text/libarchive.3.txt +++ b/archivers/libarchive/files/doc/text/libarchive.3.txt @@ -1,11 +1,11 @@ LIBARCHIVE(3) BSD Library Functions Manual LIBARCHIVE(3) -NAME - libarchive — functions for reading and writing streaming archives +1mNAME0m + 1mlibarchive 22m— functions for reading and writing streaming archives -OVERVIEW - The libarchive library provides a flexible interface for reading and - writing archives in various formats such as tar and cpio. libarchive +1mOVERVIEW0m + The 1mlibarchive 22mlibrary provides a flexible interface for reading and + writing archives in various formats such as tar and cpio. 1mlibarchive0m also supports reading and writing archives compressed using various com‐ pression filters such as gzip and bzip2. The library is inherently stream-oriented; readers serially iterate through the archive, writers @@ -15,19 +15,19 @@ OVERVIEW When reading an archive, the library automatically detects the format and the compression. The library currently has read support for: - · old-style tar archives, - · most variants of the POSIX “ustar” format, - · the POSIX “pax interchange” format, - · GNU-format tar archives, - · most common cpio archive formats, - · ISO9660 CD images (including RockRidge and Joliet extensions), - · Zip archives, - · ar archives (including GNU/SysV and BSD extensions), - · Microsoft CAB archives, - · LHA archives, - · mtree file tree descriptions, - · RAR archives, - · XAR archives. + 1m· 22mold-style tar archives, + 1m· 22mmost variants of the POSIX “ustar” format, + 1m· 22mthe POSIX “pax interchange” format, + 1m· 22mGNU-format tar archives, + 1m· 22mmost common cpio archive formats, + 1m· 22mISO9660 CD images (including RockRidge and Joliet extensions), + 1m· 22mZip archives, + 1m· 22mar archives (including GNU/SysV and BSD extensions), + 1m· 22mMicrosoft CAB archives, + 1m· 22mLHA archives, + 1m· 22mmtree file tree descriptions, + 1m· 22mRAR archives, + 1m· 22mXAR archives. The library automatically detects archives compressed with gzip(1), bzip2(1), xz(1), lzip(1), or compress(1) and decompresses them transpar‐ ently. It can similarly detect and decode archives processed with @@ -35,16 +35,16 @@ OVERVIEW When writing an archive, you can specify the compression to be used and the format to use. The library can write - · POSIX-standard “ustar” archives, - · POSIX “pax interchange format” archives, - · POSIX octet-oriented cpio archives, - · Zip archive, - · two different variants of shar archives, - · ISO9660 CD images, - · 7-Zip archives, - · ar archives, - · mtree file tree descriptions, - · XAR archives. + 1m· 22mPOSIX-standard “ustar” archives, + 1m· 22mPOSIX “pax interchange format” archives, + 1m· 22mPOSIX octet-oriented cpio archives, + 1m· 22mZip archive, + 1m· 22mtwo different variants of shar archives, + 1m· 22mISO9660 CD images, + 1m· 22m7-Zip archives, + 1m· 22mar archives, + 1m· 22mmtree file tree descriptions, + 1m· 22mXAR archives. Pax interchange format is an extension of the tar archive format that eliminates essentially all of the limitations of historic tar formats in a standard fashion that is supported by POSIX-compliant pax(1) implemen‐ @@ -53,29 +53,29 @@ OVERVIEW extended attributes for most entries; explicitly requesting pax format will enable those attributes for all entries. - The read and write APIs are accessed through the archive_read_XXX() func‐ - tions and the archive_write_XXX() functions, respectively, and either can + The read and write APIs are accessed through the 1marchive_read_XXX22m() func‐ + tions and the 1marchive_write_XXX22m() functions, respectively, and either can be used independently of the other. The rest of this manual page provides an overview of the library opera‐ tion. More detailed information can be found in the individual manual pages for each API or utility function. -READING AN ARCHIVE +1mREADING AN ARCHIVE0m See archive_read(3). -WRITING AN ARCHIVE +1mWRITING AN ARCHIVE0m See archive_write(3). -WRITING ENTRIES TO DISK +1mWRITING ENTRIES TO DISK0m The archive_write_disk(3) API allows you to write archive_entry(3) objects to disk using the same API used by archive_write(3). The - archive_write_disk(3) API is used internally by archive_read_extract(); + archive_write_disk(3) API is used internally by 1marchive_read_extract22m(); using it directly can provide greater control over how entries get writ‐ ten to disk. This API also makes it possible to share code between ar‐ chive-to-archive copy and archive-to-disk extraction operations. -READING ENTRIES FROM DISK +1mREADING ENTRIES FROM DISK0m The archive_read_disk(3) supports for populating archive_entry(3) objects from information in the filesystem. This includes the information acces‐ sible from the stat(2) system call as well as ACLs, extended attributes, @@ -83,7 +83,7 @@ READING ENTRIES FROM DISK over directory trees, which allows directories of files to be read using an API compatible with the archive_read(3) API. -DESCRIPTION +1mDESCRIPTION0m Detailed descriptions of each function are provided by the corresponding manual pages. @@ -99,43 +99,43 @@ DESCRIPTION Clients should not assume that filenames, link names, user names, or group names are limited in length. In particular, pax interchange format can easily accommodate pathnames in arbitrary character sets that exceed - PATH_MAX. + 4mPATH_MAX24m. -RETURN VALUES - Most functions return ARCHIVE_OK (zero) on success, non-zero on error. +1mRETURN VALUES0m + Most functions return 1mARCHIVE_OK 22m(zero) on success, non-zero on error. The return value indicates the general severity of the error, ranging - from ARCHIVE_WARN, which indicates a minor problem that should probably - be reported to the user, to ARCHIVE_FATAL, which indicates a serious + from 1mARCHIVE_WARN22m, which indicates a minor problem that should probably + be reported to the user, to 1mARCHIVE_FATAL22m, which indicates a serious problem that will prevent any further operations on this archive. On - error, the archive_errno() function can be used to retrieve a numeric - error code (see errno(2)). The archive_error_string() returns a textual + error, the 1marchive_errno22m() function can be used to retrieve a numeric + error code (see errno(2)). The 1marchive_error_string22m() returns a textual error message suitable for display. - archive_read_new() and archive_write_new() return pointers to an allo‐ + 1marchive_read_new22m() and 1marchive_write_new22m() return pointers to an allo‐ cated and initialized struct archive object. - archive_read_data() and archive_write_data() return a count of the number + 1marchive_read_data22m() and 1marchive_write_data22m() return a count of the number of bytes actually read or written. A value of zero indicates the end of the data for this entry. A negative value indicates an error, in which - case the archive_errno() and archive_error_string() functions can be used + case the 1marchive_errno22m() and 1marchive_error_string22m() functions can be used to obtain more information. -ENVIRONMENT +1mENVIRONMENT0m There are character set conversions within the archive_entry(3) functions that are impacted by the currently-selected locale. -SEE ALSO +1mSEE ALSO0m tar(1), archive_entry(3), archive_read(3), archive_util(3), archive_write(3), tar(5) -HISTORY - The libarchive library first appeared in FreeBSD 5.3. +1mHISTORY0m + The 1mlibarchive 22mlibrary first appeared in FreeBSD 5.3. -AUTHORS - The libarchive library was originally written by Tim Kientzle +1mAUTHORS0m + The 1mlibarchive 22mlibrary was originally written by Tim Kientzle <kientzle@acm.org>. -BUGS +1mBUGS0m Some archive formats support information that is not supported by struct archive_entry. Such information cannot be fully archived or restored using this library. This includes, for example, comments, character diff --git a/archivers/libarchive/files/doc/text/libarchive_changes.3.txt b/archivers/libarchive/files/doc/text/libarchive_changes.3.txt index dbd35683e12..e7133aa6685 100644 --- a/archivers/libarchive/files/doc/text/libarchive_changes.3.txt +++ b/archivers/libarchive/files/doc/text/libarchive_changes.3.txt @@ -1,21 +1,21 @@ LIBARCHIVE_CHANGES(3) BSD Library Functions Manual LIBARCHIVE_CHANGES(3) -NAME +1mNAME0m — changes in libarchive interface -CHANGES IN LIBARCHIVE 3 +1mCHANGES IN LIBARCHIVE 30m This page describes user-visible changes in libarchive3, and lists public functions and other symbols changed, deprecated or removed in libarchive3, along with their replacements if any. - Multiple Filters + 1mMultiple Filters0m Libarchive2 permitted a single (input or output) filter active on an ar‐ chive. Libarchive3 extends this into a variable-length stack. Where - archive_write_set_compression_XXX() would replace any existing filter, - archive_write_add_filter_XXX() extends the write pipeline with another + 1marchive_write_set_compression_XXX22m() would replace any existing filter, + 1marchive_write_add_filter_XXX22m() extends the write pipeline with another filter. - Character Set Handling + 1mCharacter Set Handling0m Libarchive2 assumed that the local platform uses Unicode as the native wchar_t encoding, which is true on Windows, modern Linux, and a few other systems, but is certainly not universal. As a result, pax format ar‐ @@ -35,7 +35,7 @@ CHANGES IN LIBARCHIVE 3 default character set for that archive. The platform default character encoding (as returned by - nl_langinfo(CHARSET)) will be used if nothing else is specified. + 1mnl_langinfo22m(4mCHARSET24m)) will be used if nothing else is specified. Libarchive3 also introduces charset options to many of the archive read‐ ers and writers to control the character set that will be used for file‐ @@ -46,7 +46,7 @@ CHANGES IN LIBARCHIVE 3 have the filenames and other information transparently converted to the character encoding suitable for your application. - Prototype Changes + 1mPrototype Changes0m These changes break binary compatibility; libarchive3 has a new shared library version to reflect these changes. The library now uses portable wide types such as int64_t instead of less-portable types such as off_t, @@ -54,12 +54,12 @@ CHANGES IN LIBARCHIVE 3 There are a few cases where these changes will affect your source code: - · In some cases, libarchive's wider types will introduce the possibil‐ + 1m· 22mIn some cases, libarchive's wider types will introduce the possibil‐ ity of truncation: for example, on a system with a 16-bit uid_t, you risk having uid 65536 be truncated to uid 0, which can cause serious security problems. - · Typedef function pointer types will be incompatible. For example, + 1m· 22mTypedef function pointer types will be incompatible. For example, if you define custom skip callbacks, you may have to use code simi‐ lar to the following if you want to support building against libarchive2 and libarchive3: @@ -78,130 +78,130 @@ CHANGES IN LIBARCHIVE 3 Affected functions: - · archive_entry_gid(), archive_entry_set_gid() - · archive_entry_uid(), archive_entry_set_uid() - · archive_entry_ino(), archive_entry_set_ino() - · archive_read_data_block(), archive_write_data_block() - · archive_read_disk_gname(), archive_read_disk_uname() - · archive_read_disk_set_gname_lookup(), - archive_read_disk_set_group_lookup(), - archive_read_disk_set_uname_lookup(), - archive_read_disk_set_user_lookup() - · archive_skip_callback() - · archive_read_extract_set_skip_file(), - archive_write_disk_set_skip_file(), archive_write_set_skip_file() - · archive_write_disk_set_group_lookup(), - archive_write_disk_set_user_lookup() + 1m· archive_entry_gid22m(), 1marchive_entry_set_gid22m() + 1m· archive_entry_uid22m(), 1marchive_entry_set_uid22m() + 1m· archive_entry_ino22m(), 1marchive_entry_set_ino22m() + 1m· archive_read_data_block22m(), 1marchive_write_data_block22m() + 1m· archive_read_disk_gname22m(), 1marchive_read_disk_uname22m() + 1m· archive_read_disk_set_gname_lookup22m(), + 1marchive_read_disk_set_group_lookup22m(), + 1marchive_read_disk_set_uname_lookup22m(), + 1marchive_read_disk_set_user_lookup22m() + 1m· archive_skip_callback22m() + 1m· archive_read_extract_set_skip_file22m(), + 1marchive_write_disk_set_skip_file22m(), 1marchive_write_set_skip_file22m() + 1m· archive_write_disk_set_group_lookup22m(), + 1marchive_write_disk_set_user_lookup22m() Where these functions or their arguments took or returned gid_t, ino_t, off_t, or uid_t they now take or return int64_t or equivalent. - Deprecated Symbols + 1mDeprecated Symbols0m Symbols deprecated in libarchive3 will be removed in libarchive4. These symbols, along with their replacements if any, are listed below: - archive_position_compressed(), archive_position_uncompressed() - archive_filter_bytes() + 1marchive_position_compressed22m(), 1marchive_position_uncompressed22m() + 1marchive_filter_bytes22m() - archive_compression() - archive_filter_code() + 1marchive_compression22m() + 1marchive_filter_code22m() - archive_compression_name() - archive_filter_name() + 1marchive_compression_name22m() + 1marchive_filter_name22m() - archive_read_finish(), archive_write_finish() - archive_read_free(), archive_write_free() + 1marchive_read_finish22m(), 1marchive_write_finish22m() + 1marchive_read_free22m(), 1marchive_write_free22m() - archive_read_open_file(), archive_write_open_file() - archive_read_open_filename(), archive_write_open_filename() + 1marchive_read_open_file22m(), 1marchive_write_open_file22m() + 1marchive_read_open_filename22m(), 1marchive_write_open_filename22m() - archive_read_support_compression_all() - archive_read_support_filter_all() + 1marchive_read_support_compression_all22m() + 1marchive_read_support_filter_all22m() - archive_read_support_compression_bzip2() - archive_read_support_filter_bzip2() + 1marchive_read_support_compression_bzip222m() + 1marchive_read_support_filter_bzip222m() - archive_read_support_compression_compress() - archive_read_support_filter_compress() + 1marchive_read_support_compression_compress22m() + 1marchive_read_support_filter_compress22m() - archive_read_support_compression_gzip() - archive_read_support_filter_gzip() + 1marchive_read_support_compression_gzip22m() + 1marchive_read_support_filter_gzip22m() - archive_read_support_compression_lzip() - archive_read_support_filter_lzip() + 1marchive_read_support_compression_lzip22m() + 1marchive_read_support_filter_lzip22m() - archive_read_support_compression_lzma() - archive_read_support_filter_lzma() + 1marchive_read_support_compression_lzma22m() + 1marchive_read_support_filter_lzma22m() - archive_read_support_compression_none() - archive_read_support_filter_none() + 1marchive_read_support_compression_none22m() + 1marchive_read_support_filter_none22m() - archive_read_support_compression_program() - archive_read_support_filter_program() + 1marchive_read_support_compression_program22m() + 1marchive_read_support_filter_program22m() - archive_read_support_compression_program_signature() - archive_read_support_filter_program_signature() + 1marchive_read_support_compression_program_signature22m() + 1marchive_read_support_filter_program_signature22m() - archive_read_support_compression_rpm() - archive_read_support_filter_rpm() + 1marchive_read_support_compression_rpm22m() + 1marchive_read_support_filter_rpm22m() - archive_read_support_compression_uu() - archive_read_support_filter_uu() + 1marchive_read_support_compression_uu22m() + 1marchive_read_support_filter_uu22m() - archive_read_support_compression_xz() - archive_read_support_filter_xz() + 1marchive_read_support_compression_xz22m() + 1marchive_read_support_filter_xz22m() - archive_write_set_compression_bzip2() - archive_write_add_filter_bzip2() + 1marchive_write_set_compression_bzip222m() + 1marchive_write_add_filter_bzip222m() - archive_write_set_compression_compress() - archive_write_add_filter_compress() + 1marchive_write_set_compression_compress22m() + 1marchive_write_add_filter_compress22m() - archive_write_set_compression_gzip() - archive_write_add_filter_gzip() + 1marchive_write_set_compression_gzip22m() + 1marchive_write_add_filter_gzip22m() - archive_write_set_compression_lzip() - archive_write_add_filter_lzip() + 1marchive_write_set_compression_lzip22m() + 1marchive_write_add_filter_lzip22m() - archive_write_set_compression_lzma() - archive_write_add_filter_lzma() + 1marchive_write_set_compression_lzma22m() + 1marchive_write_add_filter_lzma22m() - archive_write_set_compression_none() - archive_write_add_filter_none() + 1marchive_write_set_compression_none22m() + 1marchive_write_add_filter_none22m() - archive_write_set_compression_program() - archive_write_add_filter_program() + 1marchive_write_set_compression_program22m() + 1marchive_write_add_filter_program22m() - archive_write_set_compression_filter() - archive_write_add_filter_filter() + 1marchive_write_set_compression_filter22m() + 1marchive_write_add_filter_filter22m() - Removed Symbols + 1mRemoved Symbols0m These symbols, listed below along with their replacements if any, were deprecated in libarchive2, and are not part of libarchive3. - archive_api_feature() - archive_version_number() + 1marchive_api_feature22m() + 1marchive_version_number22m() - archive_api_version() - archive_version_number() + 1marchive_api_version22m() + 1marchive_version_number22m() - archive_version() - archive_version_string() + 1marchive_version22m() + 1marchive_version_string22m() - archive_version_stamp() - archive_version_number() + 1marchive_version_stamp22m() + 1marchive_version_number22m() - archive_read_set_filter_options() - archive_read_set_options() or archive_read_set_filter_option() + 1marchive_read_set_filter_options22m() + 1marchive_read_set_options22m() or 1marchive_read_set_filter_option22m() - archive_read_set_format_options() - archive_read_set_options() or archive_read_set_format_option() + 1marchive_read_set_format_options22m() + 1marchive_read_set_options22m() or 1marchive_read_set_format_option22m() - archive_write_set_filter_options() - archive_write_set_options() or archive_write_set_filter_option() + 1marchive_write_set_filter_options22m() + 1marchive_write_set_options22m() or 1marchive_write_set_filter_option22m() - archive_write_set_format_options() - archive_write_set_options() or archive_write_set_format_option() + 1marchive_write_set_format_options22m() + 1marchive_write_set_options22m() or 1marchive_write_set_format_option22m() ARCHIVE_API_FEATURE ARCHIVE_VERSION_NUMBER @@ -251,7 +251,7 @@ CHANGES IN LIBARCHIVE 3 ARCHIVE_DEFAULT_BYTES_PER_BLOCK 10240 -SEE ALSO +1mSEE ALSO0m libarchive(3), archive_read(3), archive_read_filter(3), archive_read_format(3), archive_read_set_options(3), archive_write(3), archive_write_filter(3), archive_write_format(3), diff --git a/archivers/libarchive/files/doc/text/libarchive_internals.3.txt b/archivers/libarchive/files/doc/text/libarchive_internals.3.txt index 7b7fb35dd92..46529387ae0 100644 --- a/archivers/libarchive/files/doc/text/libarchive_internals.3.txt +++ b/archivers/libarchive/files/doc/text/libarchive_internals.3.txt @@ -1,15 +1,15 @@ LIBARCHIVE_INTERNALS(3) BSD Library Functions Manual LIBARCHIVE_INTERNALS(3) -NAME - libarchive_internals — description of libarchive internal interfaces +1mNAME0m + 1mlibarchive_internals 22m— description of libarchive internal interfaces -OVERVIEW - The libarchive library provides a flexible interface for reading and +1mOVERVIEW0m + The 1mlibarchive 22mlibrary provides a flexible interface for reading and writing streaming archive files such as tar and cpio. Internally, it follows a modular layered design that should make it easy to add new ar‐ chive and compression formats. -GENERAL ARCHITECTURE +1mGENERAL ARCHITECTURE0m Externally, libarchive exposes most operations through an opaque, object- style interface. The archive_entry(3) objects store information about a single filesystem object. The rest of the library provides facilities to @@ -27,17 +27,17 @@ GENERAL ARCHITECTURE clients to open an archive or disk writer, and then use a single set of code to select and write entries, regardless of the target. -READ ARCHITECTURE +1mREAD ARCHITECTURE0m From the outside, clients use the archive_read(3) API to manipulate an - archive object to read entries and bodies from an archive stream. Inter‐ - nally, the archive object is cast to an archive_read object, which holds + 1marchive 22mobject to read entries and bodies from an archive stream. Inter‐ + nally, the 1marchive 22mobject is cast to an 1marchive_read 22mobject, which holds all read-specific data. The API has four layers: The lowest layer is the I/O layer. This layer can be overridden by clients, but most clients use the packaged I/O callbacks provided, for example, by archive_read_open_memory(3), and archive_read_open_fd(3). The compres‐ sion layer calls the I/O layer to read bytes and decompresses them for the format layer. The format layer unpacks a stream of uncompressed - bytes and creates archive_entry objects from the incoming data. The API + bytes and creates 1marchive_entry 22mobjects from the incoming data. The API layer tracks overall state (for example, it prevents clients from reading data before reading a header) and invokes the format and compression layer operations through registered function pointers. In particular, @@ -49,7 +49,7 @@ READ ARCHITECTURE ders were invoked for each entry, but this design hindered error recov‐ ery.) - I/O Layer and Client Callbacks + 1mI/O Layer and Client Callbacks0m The read API goes to some lengths to be nice to clients. As a result, there are few restrictions on the behavior of the client callbacks. @@ -71,7 +71,7 @@ READ ARCHITECTURE single block; other clients may begin asynchronous I/O operations for the next block on each request. - Decompresssion Layer + 1mDecompresssion Layer0m The decompression layer not only handles decompression, it also buffers data so that the format handlers see a much nicer I/O model. The decom‐ pression API is a two stage peek/consume model. A read_ahead request @@ -81,10 +81,10 @@ READ ARCHITECTURE asking for a minimum of one byte and then copying as much data as is available. - A subsequent call to the consume() function advances the read pointer. - Note that data returned from a read_ahead() call is guaranteed to remain - in place until the next call to read_ahead(). Intervening calls to - consume() should not cause the data to move. + A subsequent call to the 1mconsume22m() function advances the read pointer. + Note that data returned from a 1mread_ahead22m() call is guaranteed to remain + in place until the next call to 1mread_ahead22m(). Intervening calls to + 1mconsume22m() should not cause the data to move. Skip requests must always be handled exactly. Decompression handlers that cannot seek forward should not register a skip handler; the API @@ -94,14 +94,14 @@ READ ARCHITECTURE Registration/Configuration When the client invokes the public support function, the decom‐ pression handler invokes the internal - __archive_read_register_compression() function to provide bid and - initialization functions. This function returns NULL on error or - else a pointer to a struct decompressor_t. This structure con‐ - tains a void * config slot that can be used for storing any cus‐ + 1m__archive_read_register_compression22m() function to provide bid and + initialization functions. This function returns 1mNULL 22mon error or + else a pointer to a 1mstruct decompressor_t22m. This structure con‐ + tains a 4mvoid24m 4m*24m 4mconfig24m slot that can be used for storing any cus‐ tomization information. Bid The bid function is invoked with a pointer and size of a block of data. The decompressor can access its config data through the - decompressor element of the archive_read object. The bid func‐ + 4mdecompressor24m element of the 1marchive_read 22mobject. The bid func‐ tion is otherwise stateless. In particular, it must not perform any I/O operations. @@ -116,28 +116,28 @@ READ ARCHITECTURE require two bytes for correct bidding.) Initialize The winning bidder will have its init function called. This - function should initialize the remaining slots of the struct - decompressor_t object pointed to by the decompressor element of - the archive_read object. In particular, it should allocate any - working data it needs in the data slot of that structure. The + function should initialize the remaining slots of the 4mstruct0m + 4mdecompressor_t24m object pointed to by the 4mdecompressor24m element of + the 4marchive_read24m object. In particular, it should allocate any + working data it needs in the 4mdata24m slot of that structure. The init function is called with the block of data that was used for tasting. At this point, the decompressor is responsible for all I/O requests to the client callbacks. The decompressor is free to read more data as and when necessary. Satisfy I/O requests - The format handler will invoke the read_ahead, consume, and skip + The format handler will invoke the 4mread_ahead24m, 4mconsume24m, and 4mskip0m functions as needed. Finish The finish method is called only once when the archive is closed. - It should release anything stored in the data and config slots of - the decompressor object. It should not invoke the client close + It should release anything stored in the 4mdata24m and 4mconfig24m slots of + the 4mdecompressor24m object. It should not invoke the client close callback. - Format Layer + 1mFormat Layer0m The read formats have a similar lifecycle to the decompression handlers: Registration Allocate your private data and initialize your pointers. - Bid Formats bid by invoking the read_ahead() decompression method but - not calling the consume() method. This allows each bidder to + Bid Formats bid by invoking the 1mread_ahead22m() decompression method but + not calling the 1mconsume22m() method. This allows each bidder to look ahead in the input stream. Bidders should not look further ahead than necessary, as long look aheads put pressure on the decompression layer to buffer lots of data. Most formats only @@ -168,47 +168,47 @@ READ ARCHITECTURE The skip data call should skip over all file data and trailing padding. This is called automatically by the API layer just before each header read. It is also called in response to the - client calling the public data_skip() function. + client calling the public 1mdata_skip22m() function. Cleanup On cleanup, the format should release all of its allocated mem‐ ory. - API Layer + 1mAPI Layer0m XXX to do XXX -WRITE ARCHITECTURE +1mWRITE ARCHITECTURE0m The write API has a similar set of four layers: an API layer, a format layer, a compression layer, and an I/O layer. The registration here is much simpler because only one format and one compression can be regis‐ tered at a time. - I/O Layer and Client Callbacks + 1mI/O Layer and Client Callbacks0m XXX To be written XXX - Compression Layer + 1mCompression Layer0m XXX To be written XXX - Format Layer + 1mFormat Layer0m XXX To be written XXX - API Layer + 1mAPI Layer0m XXX To be written XXX -WRITE_DISK ARCHITECTURE +1mWRITE_DISK ARCHITECTURE0m The write_disk API is intended to look just like the write API to clients. Since it does not handle multiple formats or compression, it is not layered internally. -GENERAL SERVICES - The archive_read, archive_write, and archive_write_disk objects all con‐ - tain an initial archive object which provides common support for a set of +1mGENERAL SERVICES0m + The 1marchive_read22m, 1marchive_write22m, and 1marchive_write_disk 22mobjects all con‐ + tain an initial 1marchive 22mobject which provides common support for a set of standard services. (Recall that ANSI/ISO C90 guarantees that you can cast freely between a pointer to a structure and a pointer to the first - element of that structure.) The archive object has a magic value that + element of that structure.) The 1marchive 22mobject has a magic value that indicates which API this object is associated with, slots for storing error information, and function pointers for virtualized API functions. -MISCELLANEOUS NOTES +1mMISCELLANEOUS NOTES0m Connecting existing archiving libraries into libarchive is generally quite difficult. In particular, many existing libraries strongly assume that you are reading from a file; they seek forwards and backwards as @@ -234,14 +234,14 @@ MISCELLANEOUS NOTES though it cannot always extract as much information as a dedicated ZIP program. -SEE ALSO +1mSEE ALSO0m archive_entry(3), archive_read(3), archive_write(3), archive_write_disk(3) libarchive(3), -HISTORY - The libarchive library first appeared in FreeBSD 5.3. +1mHISTORY0m + The 1mlibarchive 22mlibrary first appeared in FreeBSD 5.3. -AUTHORS - The libarchive library was written by Tim Kientzle <kientzle@acm.org>. +1mAUTHORS0m + The 1mlibarchive 22mlibrary was written by Tim Kientzle <kientzle@acm.org>. BSD January 26, 2011 BSD diff --git a/archivers/libarchive/files/doc/text/mtree.5.txt b/archivers/libarchive/files/doc/text/mtree.5.txt index b5765488d6e..bc20cbcdc33 100644 --- a/archivers/libarchive/files/doc/text/mtree.5.txt +++ b/archivers/libarchive/files/doc/text/mtree.5.txt @@ -1,15 +1,15 @@ MTREE(5) BSD File Formats Manual MTREE(5) -NAME - mtree — format of mtree dir hierarchy files +1mNAME0m + 1mmtree 22m— format of mtree dir hierarchy files -DESCRIPTION - The mtree format is a textual format that describes a collection of +1mDESCRIPTION0m + The 1mmtree 22mformat is a textual format that describes a collection of filesystem objects. Such files are typically used to create or verify directory hierarchies. - General Format - An mtree file consists of a series of lines, each providing information + 1mGeneral Format0m + An 1mmtree 22mfile consists of a series of lines, each providing information about a single filesystem object. Leading whitespace is always ignored. When encoding file or pathnames, any backslash character or character @@ -22,44 +22,44 @@ DESCRIPTION Blank Blank lines are ignored. - Comment Lines beginning with # are ignored. + Comment Lines beginning with 1m# 22mare ignored. - Special Lines beginning with / are special commands that influence + Special Lines beginning with 1m/ 22mare special commands that influence the interpretation of later lines. - Relative If the first whitespace-delimited word has no / characters, + Relative If the first whitespace-delimited word has no 1m/ 22mcharacters, it is the name of a file in the current directory. Any rela‐ tive entry that describes a directory changes the current directory. - dot-dot As a special case, a relative entry with the filename .. + dot-dot As a special case, a relative entry with the filename 4m..0m changes the current directory to the parent directory. Options on dot-dot entries are always ignored. - Full If the first whitespace-delimited word has a / character + Full If the first whitespace-delimited word has a 1m/ 22mcharacter after the first character, it is the pathname of a file rela‐ tive to the starting directory. There can be multiple full entries describing the same file. - Some tools that process mtree files may require that multiple lines + Some tools that process 1mmtree 22mfiles may require that multiple lines describing the same file occur consecutively. It is not permitted for the same file to be mentioned using both a relative and a full file spec‐ ification. - Special commands + 1mSpecial commands0m Two special commands are currently defined: - /set This command defines default values for one or more keywords. + 1m/set 22mThis command defines default values for one or more keywords. It is followed on the same line by one or more whitespace- separated keyword definitions. These definitions apply to all following files that do not specify a value for that key‐ word. - /unset This command removes any default value set by a previous /set + 1m/unset 22mThis command removes any default value set by a previous 1m/set0m command. It is followed on the same line by one or more key‐ words separated by whitespace. - Keywords + 1mKeywords0m After the filename, a full or relative entry consists of zero or more whitespace-separated keyword definitions. Each such definition consists of a key from the following list immediately followed by an '=' sign and @@ -68,113 +68,113 @@ DESCRIPTION Currently supported keywords are as follows: - cksum The checksum of the file using the default algorithm speci‐ + 1mcksum 22mThe checksum of the file using the default algorithm speci‐ fied by the cksum(1) utility. - device The device number for block or char file types. The value + 1mdevice 22mThe device number for 1mblock 22mor 1mchar 22mfile types. The value must be one of the following forms: - format,major,minor[,subunit] - A device with major, minor and optional subunit fields. + 4mformat24m,4mmajor24m,4mminor24m[,4msubunit24m] + A device with 4mmajor24m, 4mminor24m and optional 4msubunit24m fields. Their meaning is specified by the operating's system - format. See below for valid formats. + 4mformat24m. See below for valid formats. - number + 4mnumber0m Opaque number (as stored on the file system). - The following values for format are recognized: native, - 386bsd, 4bsd, bsdos, freebsd, hpux, isc, linux, netbsd, osf1, - sco, solaris, sunos, svr3, svr4, and ultrix. + The following values for 4mformat24m are recognized: 1mnative22m, + 1m386bsd22m, 1m4bsd22m, 1mbsdos22m, 1mfreebsd22m, 1mhpux22m, 1misc22m, 1mlinux22m, 1mnetbsd22m, 1mosf122m, + 1msco22m, 1msolaris22m, 1msunos22m, 1msvr322m, 1msvr422m, and 1multrix22m. See mknod(8) for more details. - contents The full pathname of a file that holds the contents of this + 1mcontents 22mThe full pathname of a file that holds the contents of this file. - flags The file flags as a symbolic name. See chflags(1) for infor‐ + 1mflags 22mThe file flags as a symbolic name. See chflags(1) for infor‐ mation on these names. If no flags are to be set the string “none” may be used to override the current default. - gid The file group as a numeric value. + 1mgid 22mThe file group as a numeric value. - gname The file group as a symbolic name. + 1mgname 22mThe file group as a symbolic name. - ignore Ignore any file hierarchy below this file. + 1mignore 22mIgnore any file hierarchy below this file. - inode The inode number. + 1minode 22mThe inode number. - link The target of the symbolic link when type=link. + 1mlink 22mThe target of the symbolic link when type=link. - md5 The MD5 message digest of the file. + 1mmd5 22mThe MD5 message digest of the file. - md5digest A synonym for md5. + 1mmd5digest 22mA synonym for 1mmd522m. - mode The current file's permissions as a numeric (octal) or sym‐ + 1mmode 22mThe current file's permissions as a numeric (octal) or sym‐ bolic value. - nlink The number of hard links the file is expected to have. + 1mnlink 22mThe number of hard links the file is expected to have. - nochange Make sure this file or directory exists but otherwise ignore + 1mnochange 22mMake sure this file or directory exists but otherwise ignore all attributes. - optional The file is optional; do not complain about the file if it is + 1moptional 22mThe file is optional; do not complain about the file if it is not in the file hierarchy. - resdevice The “resident” device number of the file, e.g. the ID of the + 1mresdevice 22mThe “resident” device number of the file, e.g. the ID of the device that contains the file. Its format is the same as the - one for device. + one for 1mdevice22m. - ripemd160digest + 1mripemd160digest0m The RIPEMD160 message digest of the file. - rmd160 A synonym for ripemd160digest. + 1mrmd160 22mA synonym for 1mripemd160digest22m. - rmd160digest - A synonym for ripemd160digest. + 1mrmd160digest0m + A synonym for 1mripemd160digest22m. - sha1 The FIPS 160-1 (“SHA-1”) message digest of the file. + 1msha1 22mThe FIPS 160-1 (“SHA-1”) message digest of the file. - sha1digest A synonym for sha1. + 1msha1digest 22mA synonym for 1msha122m. - sha256 The FIPS 180-2 (“SHA-256”) message digest of the file. + 1msha256 22mThe FIPS 180-2 (“SHA-256”) message digest of the file. - sha256digest - A synonym for sha256. + 1msha256digest0m + A synonym for 1msha25622m. - sha384 The FIPS 180-2 (“SHA-384”) message digest of the file. + 1msha384 22mThe FIPS 180-2 (“SHA-384”) message digest of the file. - sha384digest - A synonym for sha384. + 1msha384digest0m + A synonym for 1msha38422m. - sha512 The FIPS 180-2 (“SHA-512”) message digest of the file. + 1msha512 22mThe FIPS 180-2 (“SHA-512”) message digest of the file. - sha512digest - A synonym for sha512. + 1msha512digest0m + A synonym for 1msha51222m. - size The size, in bytes, of the file. + 1msize 22mThe size, in bytes, of the file. - time The last modification time of the file. + 1mtime 22mThe last modification time of the file. - type The type of the file; may be set to any one of the following: + 1mtype 22mThe type of the file; may be set to any one of the following: - block block special device - char character special device - dir directory - fifo fifo - file regular file - link symbolic link - socket socket + 1mblock 22mblock special device + 1mchar 22mcharacter special device + 1mdir 22mdirectory + 1mfifo 22mfifo + 1mfile 22mregular file + 1mlink 22msymbolic link + 1msocket 22msocket - uid The file owner as a numeric value. + 1muid 22mThe file owner as a numeric value. - uname The file owner as a symbolic name. + 1muname 22mThe file owner as a symbolic name. -SEE ALSO +1mSEE ALSO0m cksum(1), find(1), mtree(8) -BUGS -HISTORY - The mtree utility appeared in 4.3BSD-Reno. The MD5 digest capability was +1mBUGS0m +1mHISTORY0m + The 1mmtree 22mutility appeared in 4.3BSD-Reno. The MD5 digest capability was added in FreeBSD 2.1, in response to the widespread use of programs which can spoof cksum(1). The SHA-1 and RIPEMD160 digests were added in FreeBSD 4.0, as new attacks have demonstrated weaknesses in MD5. The diff --git a/archivers/libarchive/files/doc/text/tar.5.txt b/archivers/libarchive/files/doc/text/tar.5.txt index df37d9feb66..b7d389f59f0 100644 --- a/archivers/libarchive/files/doc/text/tar.5.txt +++ b/archivers/libarchive/files/doc/text/tar.5.txt @@ -1,17 +1,17 @@ TAR(5) BSD File Formats Manual TAR(5) -NAME - tar — format of tape archive files +1mNAME0m + 1mtar 22m— format of tape archive files -DESCRIPTION - The tar archive format collects any number of files, directories, and +1mDESCRIPTION0m + The 1mtar 22marchive format collects any number of files, directories, and other file system objects (symbolic links, device nodes, etc.) into a single stream of bytes. The format was originally designed to be used with tape drives that operate with fixed-size blocks, but is widely used as a general packaging mechanism. - General Format - A tar archive consists of a series of 512-byte records. Each file system + 1mGeneral Format0m + A 1mtar 22marchive consists of a series of 512-byte records. Each file system object requires a header record which stores basic metadata (pathname, owner, permissions, etc.) and zero or more records containing any file data. The end of the archive is indicated by two records consisting @@ -25,16 +25,16 @@ DESCRIPTION implementations although block sizes of 1MiB (2048 records) or larger are commonly used with modern high-speed tape drives. (Note: the terms “block” and “record” here are not entirely standard; this document fol‐ - lows the convention established by John Gilmore in documenting pdtar.) + lows the convention established by John Gilmore in documenting 1mpdtar22m.) - Old-Style Archive Format + 1mOld-Style Archive Format0m The original tar archive format has been extended many times to include additional information that various implementors found necessary. This section describes the variant implemented by the tar command included in Version 7 AT&T UNIX, which seems to be the earliest widely-used version of the tar program. - The header record for an old-style tar archive consists of the following: + The header record for an old-style 1mtar 22marchive consists of the following: struct header_old_tar { char name[100]; @@ -50,29 +50,29 @@ DESCRIPTION }; All unused bytes in the header record are filled with nulls. - name Pathname, stored as a null-terminated string. Early tar imple‐ + 4mname24m Pathname, stored as a null-terminated string. Early tar imple‐ mentations only stored regular files (including hardlinks to those files). One common early convention used a trailing "/" character to indicate a directory name, allowing directory per‐ missions and owner information to be archived and restored. - mode File mode, stored as an octal number in ASCII. + 4mmode24m File mode, stored as an octal number in ASCII. - uid, gid + 4muid24m, 4mgid0m User id and group id of owner, as octal numbers in ASCII. - size Size of file, as octal number in ASCII. For regular files only, + 4msize24m Size of file, as octal number in ASCII. For regular files only, this indicates the amount of data that follows the header. In particular, this field was ignored by early tar implementations when extracting hardlinks. Modern writers should always store a zero length for hardlink entries. - mtime Modification time of file, as an octal number in ASCII. This + 4mmtime24m Modification time of file, as an octal number in ASCII. This indicates the number of seconds since the start of the epoch, 00:00:00 UTC January 1, 1970. Note that negative values should be avoided here, as they are handled inconsistently. - checksum + 4mchecksum0m Header checksum, stored as an octal number in ASCII. To compute the checksum, set the checksum field to all spaces, then sum all bytes in the header using unsigned arithmetic. This field should @@ -83,13 +83,13 @@ DESCRIPTION Modern robust readers compute the checksum both ways and accept the header if either computation matches. - linkflag, linkname + 4mlinkflag24m, 4mlinkname0m In order to preserve hardlinks and conserve tape, a file with multiple links is only written to the archive the first time it - is encountered. The next time it is encountered, the linkflag is - set to an ASCII ‘1’ and the linkname field holds the first name + is encountered. The next time it is encountered, the 4mlinkflag24m is + set to an ASCII ‘1’ and the 4mlinkname24m field holds the first name under which this file appears. (Note that regular files have a - null value in the linkflag field.) + null value in the 4mlinkflag24m field.) Early tar implementations varied in how they terminated these fields. The tar command in Version 7 AT&T UNIX used the following conventions @@ -102,20 +102,20 @@ DESCRIPTION For best portability, modern implementations should fill the numeric fields with leading zeros. - Pre-POSIX Archives + 1mPre-POSIX Archives0m An early draft of IEEE Std 1003.1-1988 (“POSIX.1”) served as the basis - for John Gilmore's pdtar program and many system implementations from the + for John Gilmore's 1mpdtar 22mprogram and many system implementations from the late 1980s and early 1990s. These archives generally follow the POSIX ustar format described below with the following variations: - · The magic value consists of the five characters “ustar” followed + 1m· 22mThe magic value consists of the five characters “ustar” followed by a space. The version field contains a space character fol‐ lowed by a null. - · The numeric fields are generally filled with leading spaces (not + 1m· 22mThe numeric fields are generally filled with leading spaces (not leading zeros as recommended in the final standard). - · The prefix field is often not used, limiting pathnames to the 100 + 1m· 22mThe prefix field is often not used, limiting pathnames to the 100 characters of old-style archives. - POSIX ustar Archives + 1mPOSIX ustar Archives0m IEEE Std 1003.1-1988 (“POSIX.1”) defined a standard tar file format to be read and written by compliant implementations of tar(1). This format is often called the “ustar” format, after the magic value used in the @@ -142,8 +142,8 @@ DESCRIPTION char pad[12]; }; - typeflag - Type of entry. POSIX extended the earlier linkflag field with + 4mtypeflag0m + Type of entry. POSIX extended the earlier 4mlinkflag24m field with several new type values: “0” Regular file. NUL should be treated as a synonym, for compatibility purposes. @@ -161,7 +161,7 @@ DESCRIPTION support the corresponding extension. Uppercase letters "A" through "Z" are reserved for custom extensions. Note that sockets and whiteout entries are not archivable. - It is worth noting that the size field, in particular, has dif‐ + It is worth noting that the 4msize24m field, in particular, has dif‐ ferent meanings depending on the type. For regular files, of course, it indicates the amount of data following the header. For directories, it may be used to indicate the total size of all @@ -169,40 +169,40 @@ DESCRIPTION allocate directory space. For all other types, it should be set to zero by writers and ignored by readers. - magic Contains the magic value “ustar” followed by a NUL byte to indi‐ + 4mmagic24m Contains the magic value “ustar” followed by a NUL byte to indi‐ cate that this is a POSIX standard archive. Full compliance requires the uname and gname fields be properly set. - version + 4mversion0m Version. This should be “00” (two copies of the ASCII digit zero) for POSIX standard archives. - uname, gname + 4muname24m, 4mgname0m User and group names, as null-terminated ASCII strings. These should be used in preference to the uid/gid values when they are set and the corresponding names exist on the system. - devmajor, devminor + 4mdevmajor24m, 4mdevminor0m Major and minor numbers for character device or block device entry. - name, prefix + 4mname24m, 4mprefix0m If the pathname is too long to fit in the 100 bytes provided by - the standard format, it can be split at any / character with the + the standard format, it can be split at any 4m/24m character with the first portion going into the prefix field. If the prefix field - is not empty, the reader will prepend the prefix value and a / + is not empty, the reader will prepend the prefix value and a 4m/0m character to the regular name field to obtain the full pathname. - The standard does not require a trailing / character on directory + The standard does not require a trailing 4m/24m character on directory names, though most implementations still include this for compat‐ ibility reasons. Note that all unused bytes must be set to NUL. Field termination is specified slightly differently by POSIX than by pre‐ - vious implementations. The magic, uname, and gname fields must have a - trailing NUL. The pathname, linkname, and prefix fields must have a + vious implementations. The 4mmagic24m, 4muname24m, and 4mgname24m fields must have a + trailing NUL. The 4mpathname24m, 4mlinkname24m, and 4mprefix24m fields must have a trailing NUL unless they fill the entire field. (In particular, it is - possible to store a 256-character pathname if it happens to have a / as + possible to store a 256-character pathname if it happens to have a 4m/24m as the 156th character.) POSIX requires numeric fields to be zero-padded in the front, and requires them to be terminated with either space or NUL characters. @@ -211,7 +211,7 @@ DESCRIPTION sionally extending it by adding new fields to the blank area at the end of the header record. - Numeric Extensions + 1mNumeric Extensions0m There have been several attempts to extend the range of sizes or times supported by modifying how numbers are stored in the header. @@ -221,7 +221,7 @@ DESCRIPTION the twelfth byte for a trailing NUL character. Allowing 12 octal digits allows file sizes up to 64 GB. - Another extension, utilized by GNU tar, star, and other newer tar imple‐ + Another extension, utilized by GNU tar, star, and other newer 1mtar 22mimple‐ mentations, permits binary numbers in the standard numeric fields. This is flagged by setting the high bit of the first byte. The remainder of the field is treated as a signed twos-complement value. This permits @@ -237,7 +237,7 @@ DESCRIPTION This extension was short-lived and is no longer supported by any imple‐ mentation. - Pax Interchange Format + 1mPax Interchange Format0m There are many attributes that cannot be portably stored in a POSIX ustar archive. IEEE Std 1003.1-2001 (“POSIX.1”) defined a “pax interchange format” that uses two new types of entries to hold text-formatted meta‐ @@ -265,12 +265,12 @@ DESCRIPTION that, unlike the historic header, numeric values are stored using deci‐ mal, not octal. A description of some common keys follows: - atime, ctime, mtime + 1matime22m, 1mctime22m, 1mmtime0m File access, inode change, and modification times. These fields can be negative or include a decimal point and a fractional value. - hdrcharset + 1mhdrcharset0m The character set used by the pax extension values. By default, all textual values in the pax extended attributes are assumed to be in UTF-8, including pathnames, user names, and group names. @@ -285,73 +285,73 @@ DESCRIPTION this flag should not be used as a general mechanism to allow filenames to be stored in arbitrary encodings. - uname, uid, gname, gid + 1muname22m, 1muid22m, 1mgname22m, 1mgid0m User name, group name, and numeric UID and GID values. The user name and group name stored here are encoded in UTF8 and can thus include non-ASCII characters. The UID and GID fields can be of arbitrary length. - linkpath + 1mlinkpath0m The full path of the linked-to file. Note that this is encoded in UTF8 and can thus include non-ASCII characters. - path The full pathname of the entry. Note that this is encoded in + 1mpath 22mThe full pathname of the entry. Note that this is encoded in UTF8 and can thus include non-ASCII characters. - realtime.*, security.* + 1mrealtime.*22m, 1msecurity.*0m These keys are reserved and may be used for future standardiza‐ tion. - size The size of the file. Note that there is no length limit on this + 1msize 22mThe size of the file. Note that there is no length limit on this field, allowing conforming archives to store files much larger than the historic 8GB limit. - SCHILY.* - Vendor-specific attributes used by Joerg Schilling's star imple‐ + 1mSCHILY.*0m + Vendor-specific attributes used by Joerg Schilling's 1mstar 22mimple‐ mentation. - SCHILY.acl.access, SCHILY.acl.default - Stores the access and default ACLs as textual strings in a format - that is an extension of the format specified by POSIX.1e draft - 17. In particular, each user or group access specification can - include a fourth colon-separated field with the numeric UID or - GID. This allows ACLs to be restored on systems that may not - have complete user or group information available (such as when - NIS/YP or LDAP services are temporarily unavailable). + 1mSCHILY.acl.access22m, 1mSCHILY.acl.default, SCHILY.acl.ace0m + Stores the access, default and NFSv4 ACLs as textual strings in a + format that is an extension of the format specified by POSIX.1e + draft 17. In particular, each user or group access specification + can include an additional colon-separated field with the numeric + UID or GID. This allows ACLs to be restored on systems that may + not have complete user or group information available (such as + when NIS/YP or LDAP services are temporarily unavailable). - SCHILY.devminor, SCHILY.devmajor + 1mSCHILY.devminor22m, 1mSCHILY.devmajor0m The full minor and major numbers for device nodes. - SCHILY.fflags + 1mSCHILY.fflags0m The file flags. - SCHILY.realsize + 1mSCHILY.realsize0m The full size of the file on disk. XXX explain? XXX - SCHILY.dev, SCHILY.ino, SCHILY.nlinks + 1mSCHILY.dev, SCHILY.ino22m, 1mSCHILY.nlinks0m The device number, inode number, and link count for the entry. In particular, note that a pax interchange format archive using - Joerg Schilling's SCHILY.* extensions can store all of the data - from struct stat. + Joerg Schilling's 1mSCHILY.* 22mextensions can store all of the data + from 4mstruct24m 4mstat24m. - LIBARCHIVE.* - Vendor-specific attributes used by the libarchive library and + 1mLIBARCHIVE.*0m + Vendor-specific attributes used by the 1mlibarchive 22mlibrary and programs that use it. - LIBARCHIVE.creationtime + 1mLIBARCHIVE.creationtime0m The time when the file was created. (This should not be confused with the POSIX “ctime” attribute, which refers to the time when the file metadata was last changed.) - LIBARCHIVE.xattr.namespace.key + 1mLIBARCHIVE.xattr.4m22mnamespace24m.4mkey0m Libarchive stores POSIX.1e-style extended attributes using keys - of this form. The key value is URL-encoded: All non-ASCII char‐ + of this form. The 4mkey24m value is URL-encoded: All non-ASCII char‐ acters and the two special characters “=” and “%” are encoded as “%” followed by two uppercase hexadecimal digits. The value of this key is the extended attribute value encoded in base 64. XXX Detail the base-64 format here XXX - VENDOR.* + 1mVENDOR.*0m XXX document other vendor-specific extensions XXX Any values stored in an extended attribute override the corresponding @@ -365,12 +365,12 @@ DESCRIPTION header and use extended attributes whenever a text value contains non- ASCII characters. - In addition to the x entry described above, the pax interchange format - also supports a g entry. The g entry is identical in format, but speci‐ + In addition to the 1mx 22mentry described above, the pax interchange format + also supports a 1mg 22mentry. The 1mg 22mentry is identical in format, but speci‐ fies attributes that serve as defaults for all subsequent archive - entries. The g entry is not widely used. + entries. The 1mg 22mentry is not widely used. - Besides the new x and g entries, the pax interchange format has a few + Besides the new 1mx 22mand 1mg 22mentries, the pax interchange format has a few other minor variations from the earlier ustar format. The most troubling one is that hardlinks are permitted to have data following them. This allows readers to restore any hardlink to a file without having to rewind @@ -378,15 +378,15 @@ DESCRIPTION for robust readers, as it is no longer clear whether or not they should ignore the size field for hardlink entries. - GNU Tar Archives + 1mGNU Tar Archives0m The GNU tar program started with a pre-POSIX format similar to that described earlier and has extended it using several different mechanisms: It added new fields to the empty space in the header (some of which was later used by POSIX for conflicting purposes); it allowed the header to be continued over multiple records; and it defined new entries that mod‐ - ify following entries (similar in principle to the x entry described + ify following entries (similar in principle to the 1mx 22mentry described above, but each GNU special entry is single-purpose, unlike the general- - purpose x entry). As a result, GNU tar archives are not POSIX compati‐ + purpose 1mx 22mentry). As a result, GNU tar archives are not POSIX compati‐ ble, although more lenient POSIX-compliant readers can successfully extract most GNU tar archives. @@ -420,7 +420,7 @@ DESCRIPTION char pad[17]; }; - typeflag + 4mtypeflag0m GNU tar uses the following special entry types, in addition to those defined by POSIX: @@ -461,11 +461,11 @@ DESCRIPTION ume. The "M" typeflag indicates that this entry contin‐ ues an existing file. Such entries can only occur as the first or second entry in an archive (the latter only if - the first entry is a volume label). The size field spec‐ - ifies the size of this entry. The offset field at bytes + the first entry is a volume label). The 4msize24m field spec‐ + ifies the size of this entry. The 4moffset24m field at bytes 369-380 specifies the offset where this file fragment - begins. The realsize field specifies the total size of - the file (which must equal size plus offset). When + begins. The 4mrealsize24m field specifies the total size of + the file (which must equal 4msize24m plus 4moffset24m). When extracting, GNU tar checks that the header file name is the one it is expecting, that the header offset is in the correct sequence, and that the sum of offset and size is @@ -488,26 +488,26 @@ DESCRIPTION with “extra” header extensions (an older format that is no longer used), or “sparse” extensions. - V The name field should be interpreted as a tape/volume + V The 4mname24m field should be interpreted as a tape/volume header name. This entry should generally be ignored on extraction. - magic The magic field holds the five characters “ustar” followed by a + 4mmagic24m The magic field holds the five characters “ustar” followed by a space. Note that POSIX ustar archives have a trailing null. - version + 4mversion0m The version field holds a space character followed by a null. Note that POSIX ustar archives use two copies of the ASCII digit “0”. - atime, ctime + 4matime24m, 4mctime0m The time the file was last accessed and the time of last change - of file information, stored in octal as with mtime. + of file information, stored in octal as with 4mmtime24m. - longnames + 4mlongnames0m This field is apparently no longer used. - Sparse offset / numbytes + Sparse 4moffset24m 4m/24m 4mnumbytes0m Each such structure specifies a single fragment of a sparse file. The two fields store values as octal numbers. The fragments are each padded to a multiple of 512 bytes in the archive. On @@ -515,7 +515,7 @@ DESCRIPTION (including any extension headers), and the data is then read and written to the file at appropriate offsets. - isextended + 4misextended0m If this is set to non-zero, the header will be followed by addi‐ tional “sparse header” records. Each such record contains infor‐ mation about as many as 21 additional sparse blocks as shown @@ -530,28 +530,28 @@ DESCRIPTION char padding[7]; }; - realsize + 4mrealsize0m A binary representation of the file's complete size, with a much - larger range than the POSIX file size. In particular, with M + larger range than the POSIX file size. In particular, with 1mM0m type files, the current entry is only a portion of the file. In that case, the POSIX size field will indicate the size of this - entry; the realsize field will indicate the total size of the + entry; the 4mrealsize24m field will indicate the total size of the file. - GNU tar pax archives + 1mGNU tar pax archives0m GNU tar 1.14 (XXX check this XXX) and later will write pax interchange - format archives when you specify the --posix flag. This format follows - the pax interchange format closely, using some SCHILY tags and introduc‐ + format archives when you specify the 1m--posix 22mflag. This format follows + the pax interchange format closely, using some 1mSCHILY 22mtags and introduc‐ ing new keywords to store sparse file information. There have been three iterations of the sparse file support, referred to as “0.0”, “0.1”, and “1.0”. - GNU.sparse.numblocks, GNU.sparse.offset, GNU.sparse.numbytes, - GNU.sparse.size - The “0.0” format used an initial GNU.sparse.numblocks attribute + 1mGNU.sparse.numblocks22m, 1mGNU.sparse.offset22m, 1mGNU.sparse.numbytes22m, + 1mGNU.sparse.size0m + The “0.0” format used an initial 1mGNU.sparse.numblocks 22mattribute to indicate the number of blocks in the file, a pair of - GNU.sparse.offset and GNU.sparse.numbytes to indicate the offset - and size of each block, and a single GNU.sparse.size to indicate + 1mGNU.sparse.offset 22mand 1mGNU.sparse.numbytes 22mto indicate the offset + and size of each block, and a single 1mGNU.sparse.size 22mto indicate the full size of the file. This is not the same as the size in the tar header because the latter value does not include the size of any holes. This format required that the order of attributes @@ -559,7 +559,7 @@ DESCRIPTION of the same attribute names, which is not officially permitted by the standards. - GNU.sparse.map + 1mGNU.sparse.map0m The “0.1” format used a single attribute that stored a comma-sep‐ arated list of decimal numbers. Each pair of numbers indicated the offset and size, respectively, of a block of data. This does @@ -567,50 +567,50 @@ DESCRIPTION does not recognize this extension, since many pax implementations simply discard unrecognized attributes. - GNU.sparse.major, GNU.sparse.minor, GNU.sparse.name, GNU.sparse.realsize + 1mGNU.sparse.major22m, 1mGNU.sparse.minor22m, 1mGNU.sparse.name22m, 1mGNU.sparse.realsize0m The “1.0” format stores the sparse block map in one or more 512-byte blocks prepended to the file data in the entry body. The pax attributes indicate the existence of this map (via the - GNU.sparse.major and GNU.sparse.minor fields) and the full size - of the file. The GNU.sparse.name holds the true name of the + 1mGNU.sparse.major 22mand 1mGNU.sparse.minor 22mfields) and the full size + of the file. The 1mGNU.sparse.name 22mholds the true name of the file. To avoid confusion, the name stored in the regular tar header is a modified name so that extraction errors will be apparent to users. - Solaris Tar + 1mSolaris Tar0m XXX More Details Needed XXX Solaris tar (beginning with SunOS XXX 5.7 ?? XXX) supports an “extended” format that is fundamentally similar to pax interchange format, with the following differences: - · Extended attributes are stored in an entry whose type is X, not - x, as used by pax interchange format. The detailed format of - this entry appears to be the same as detailed above for the x + 1m· 22mExtended attributes are stored in an entry whose type is 1mX22m, not + 1mx22m, as used by pax interchange format. The detailed format of + this entry appears to be the same as detailed above for the 1mx0m entry. - · An additional A header is used to store an ACL for the following + 1m· 22mAn additional 1mA 22mheader is used to store an ACL for the following regular entry. The body of this entry contains a seven-digit octal number followed by a zero byte, followed by the textual ACL description. The octal value is the number of ACL entries plus a constant that indicates the ACL type: 01000000 for POSIX.1e ACLs and 03000000 for NFSv4 ACLs. - AIX Tar + 1mAIX Tar0m XXX More details needed XXX - AIX Tar uses a ustar-formatted header with the type A for storing coded + AIX Tar uses a ustar-formatted header with the type 1mA 22mfor storing coded ACL information. Unlike the Solaris format, AIX tar writes this header after the regular file body to which it applies. The pathname in this - header is either NFS4 or AIXC to indicate the type of ACL stored. The + header is either 1mNFS4 22mor 1mAIXC 22mto indicate the type of ACL stored. The actual ACL is stored in platform-specific binary format. - Mac OS X Tar + 1mMac OS X Tar0m The tar distributed with Apple's Mac OS X stores most regular files as two separate files in the tar archive. The two files have the same name except that the first one has “._” prepended to the last path element. This special file stores an AppleDouble-encoded binary blob with addi‐ tional metadata about the second file, including ACL, extended attributes, and resources. To recreate the original file on disk, each - separate file can be extracted and the Mac OS X copyfile() function can + separate file can be extracted and the Mac OS X 1mcopyfile22m() function can be used to unpack the separate metadata file and apply it to th regular file. Conversely, the same function provides a “pack” option to encode the extended metadata from a file into a separate file whose contents can @@ -621,54 +621,54 @@ DESCRIPTION extensions needs to be included in the archive for each one, doubling the overhead required for files with long names. - Summary of tar type codes + 1mSummary of tar type codes0m The following list is a condensed summary of the type codes used in tar header records generated by different tar implementations. More details about specific implementations can be found above: NUL Early tar programs stored a zero byte for regular files. - 0 POSIX standard type code for a regular file. - 1 POSIX standard type code for a hard link description. - 2 POSIX standard type code for a symbolic link description. - 3 POSIX standard type code for a character device node. - 4 POSIX standard type code for a block device node. - 5 POSIX standard type code for a directory. - 6 POSIX standard type code for a FIFO. - 7 POSIX reserved. - 7 GNU tar used for pre-allocated files on some systems. - A Solaris tar ACL description stored prior to a regular file header. - A AIX tar ACL description stored after the file body. - D GNU tar directory dump. - K GNU tar long linkname for the following header. - L GNU tar long pathname for the following header. - M GNU tar multivolume marker, indicating the file is a continuation of + 1m0 22mPOSIX standard type code for a regular file. + 1m1 22mPOSIX standard type code for a hard link description. + 1m2 22mPOSIX standard type code for a symbolic link description. + 1m3 22mPOSIX standard type code for a character device node. + 1m4 22mPOSIX standard type code for a block device node. + 1m5 22mPOSIX standard type code for a directory. + 1m6 22mPOSIX standard type code for a FIFO. + 1m7 22mPOSIX reserved. + 1m7 22mGNU tar used for pre-allocated files on some systems. + 1mA 22mSolaris tar ACL description stored prior to a regular file header. + 1mA 22mAIX tar ACL description stored after the file body. + 1mD 22mGNU tar directory dump. + 1mK 22mGNU tar long linkname for the following header. + 1mL 22mGNU tar long pathname for the following header. + 1mM 22mGNU tar multivolume marker, indicating the file is a continuation of a file from the previous volume. - N GNU tar long filename support. Deprecated. - S GNU tar sparse regular file. - V GNU tar tape/volume header name. - X Solaris tar general-purpose extension header. - g POSIX pax interchange format global extensions. - x POSIX pax interchange format per-file extensions. - -SEE ALSO + 1mN 22mGNU tar long filename support. Deprecated. + 1mS 22mGNU tar sparse regular file. + 1mV 22mGNU tar tape/volume header name. + 1mX 22mSolaris tar general-purpose extension header. + 1mg 22mPOSIX pax interchange format global extensions. + 1mx 22mPOSIX pax interchange format per-file extensions. + +1mSEE ALSO0m ar(1), pax(1), tar(1) -STANDARDS - The tar utility is no longer a part of POSIX or the Single Unix Standard. +1mSTANDARDS0m + The 1mtar 22mutility is no longer a part of POSIX or the Single Unix Standard. It last appeared in Version 2 of the Single UNIX Specification (“SUSv2”). It has been supplanted in subsequent standards by pax(1). The ustar for‐ mat is currently part of the specification for the pax(1) utility. The pax interchange file format is new with IEEE Std 1003.1-2001 (“POSIX.1”). -HISTORY - A tar command appeared in Seventh Edition Unix, which was released in - January, 1979. It replaced the tp program from Fourth Edition Unix which - in turn replaced the tap program from First Edition Unix. John Gilmore's - pdtar public-domain implementation (circa 1987) was highly influential - and formed the basis of GNU tar (circa 1988). Joerg Shilling's star +1mHISTORY0m + A 1mtar 22mcommand appeared in Seventh Edition Unix, which was released in + January, 1979. It replaced the 1mtp 22mprogram from Fourth Edition Unix which + in turn replaced the 1mtap 22mprogram from First Edition Unix. John Gilmore's + 1mpdtar 22mpublic-domain implementation (circa 1987) was highly influential + and formed the basis of 1mGNU tar 22m(circa 1988). Joerg Shilling's 1mstar0m archiver is another open-source (CDDL) archiver (originally developed circa 1985) which features complete support for pax interchange format. - This documentation was written as part of the libarchive and bsdtar + This documentation was written as part of the 1mlibarchive 22mand 1mbsdtar0m project by Tim Kientzle <kientzle@FreeBSD.org>. -BSD December 23, 2011 BSD +BSD December 27, 2016 BSD diff --git a/archivers/libarchive/files/doc/wiki/Makefile b/archivers/libarchive/files/doc/wiki/Makefile index a8e2799e0a5..c8d52219d11 100644 --- a/archivers/libarchive/files/doc/wiki/Makefile +++ b/archivers/libarchive/files/doc/wiki/Makefile @@ -104,15 +104,15 @@ ManPageArchiveWriteSetPassphrase3.wiki: ../mdoc2wiki.awk ../../libarchive/archiv ManPageCpio5.wiki: ../mdoc2wiki.awk ../../libarchive/cpio.5 awk -f ../mdoc2wiki.awk < ../../libarchive/cpio.5 > ManPageCpio5.wiki +ManPageLibarchiveFormats5.wiki: ../mdoc2wiki.awk ../../libarchive/libarchive-formats.5 + awk -f ../mdoc2wiki.awk < ../../libarchive/libarchive-formats.5 > ManPageLibarchiveFormats5.wiki + ManPageLibarchive3.wiki: ../mdoc2wiki.awk ../../libarchive/libarchive.3 awk -f ../mdoc2wiki.awk < ../../libarchive/libarchive.3 > ManPageLibarchive3.wiki ManPageLibarchiveChanges3.wiki: ../mdoc2wiki.awk ../../libarchive/libarchive_changes.3 awk -f ../mdoc2wiki.awk < ../../libarchive/libarchive_changes.3 > ManPageLibarchiveChanges3.wiki -ManPageLibarchiveFormats5.wiki: ../mdoc2wiki.awk ../../libarchive/libarchive-formats.5 - awk -f ../mdoc2wiki.awk < ../../libarchive/libarchive-formats.5 > ManPageLibarchiveFormats5.wiki - ManPageLibarchiveInternals3.wiki: ../mdoc2wiki.awk ../../libarchive/libarchive_internals.3 awk -f ../mdoc2wiki.awk < ../../libarchive/libarchive_internals.3 > ManPageLibarchiveInternals3.wiki @@ -127,4 +127,4 @@ ManPageBsdtar1.wiki: ../mdoc2wiki.awk ../../tar/bsdtar.1 ManPageBsdcpio1.wiki: ../mdoc2wiki.awk ../../cpio/bsdcpio.1 awk -f ../mdoc2wiki.awk < ../../cpio/bsdcpio.1 > ManPageBsdcpio1.wiki -all: ManPageArchiveEntry3.wiki ManPageArchiveEntryAcl3.wiki ManPageArchiveEntryLinkify3.wiki ManPageArchiveEntryPaths3.wiki ManPageArchiveEntryPerms3.wiki ManPageArchiveEntryStat3.wiki ManPageArchiveEntryTime3.wiki ManPageArchiveRead3.wiki ManPageArchiveReadAddPassphrase3.wiki ManPageArchiveReadData3.wiki ManPageArchiveReadDisk3.wiki ManPageArchiveReadExtract3.wiki ManPageArchiveReadFilter3.wiki ManPageArchiveReadFormat3.wiki ManPageArchiveReadFree3.wiki ManPageArchiveReadHeader3.wiki ManPageArchiveReadNew3.wiki ManPageArchiveReadOpen3.wiki ManPageArchiveReadSetOptions3.wiki ManPageArchiveUtil3.wiki ManPageArchiveWrite3.wiki ManPageArchiveWriteBlocksize3.wiki ManPageArchiveWriteData3.wiki ManPageArchiveWriteDisk3.wiki ManPageArchiveWriteFilter3.wiki ManPageArchiveWriteFinishEntry3.wiki ManPageArchiveWriteFormat3.wiki ManPageArchiveWriteFree3.wiki ManPageArchiveWriteHeader3.wiki ManPageArchiveWriteNew3.wiki ManPageArchiveWriteOpen3.wiki ManPageArchiveWriteSetOptions3.wiki ManPageArchiveWriteSetPassphrase3.wiki ManPageCpio5.wiki ManPageLibarchive3.wiki ManPageLibarchiveChanges3.wiki ManPageLibarchiveFormats5.wiki ManPageLibarchiveInternals3.wiki ManPageMtree5.wiki ManPageTar5.wiki ManPageBsdtar1.wiki ManPageBsdcpio1.wiki +all: ManPageArchiveEntry3.wiki ManPageArchiveEntryAcl3.wiki ManPageArchiveEntryLinkify3.wiki ManPageArchiveEntryPaths3.wiki ManPageArchiveEntryPerms3.wiki ManPageArchiveEntryStat3.wiki ManPageArchiveEntryTime3.wiki ManPageArchiveRead3.wiki ManPageArchiveReadAddPassphrase3.wiki ManPageArchiveReadData3.wiki ManPageArchiveReadDisk3.wiki ManPageArchiveReadExtract3.wiki ManPageArchiveReadFilter3.wiki ManPageArchiveReadFormat3.wiki ManPageArchiveReadFree3.wiki ManPageArchiveReadHeader3.wiki ManPageArchiveReadNew3.wiki ManPageArchiveReadOpen3.wiki ManPageArchiveReadSetOptions3.wiki ManPageArchiveUtil3.wiki ManPageArchiveWrite3.wiki ManPageArchiveWriteBlocksize3.wiki ManPageArchiveWriteData3.wiki ManPageArchiveWriteDisk3.wiki ManPageArchiveWriteFilter3.wiki ManPageArchiveWriteFinishEntry3.wiki ManPageArchiveWriteFormat3.wiki ManPageArchiveWriteFree3.wiki ManPageArchiveWriteHeader3.wiki ManPageArchiveWriteNew3.wiki ManPageArchiveWriteOpen3.wiki ManPageArchiveWriteSetOptions3.wiki ManPageArchiveWriteSetPassphrase3.wiki ManPageCpio5.wiki ManPageLibarchiveFormats5.wiki ManPageLibarchive3.wiki ManPageLibarchiveChanges3.wiki ManPageLibarchiveInternals3.wiki ManPageMtree5.wiki ManPageTar5.wiki ManPageBsdtar1.wiki ManPageBsdcpio1.wiki diff --git a/archivers/libarchive/files/doc/wiki/ManPageArchiveEntry3.wiki b/archivers/libarchive/files/doc/wiki/ManPageArchiveEntry3.wiki index 195f6ce3ad7..83d692f01f0 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageArchiveEntry3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageArchiveEntry3.wiki @@ -36,7 +36,7 @@ it includes everything from '''struct stat''' plus associated pathname, textual group and user names, etc. These objects are used by -[[ManPageibarchive3]] +[[ManPageLibarchive3]] to represent the metadata associated with a particular entry in an archive. === Create and Destroy=== @@ -64,16 +64,16 @@ object. Due to high number of functions, the accessor functions can be found in man pages grouped by the purpose. <dl> -<dt>[[ManPagerchiventrycl3]]</dt><dd> +<dt>[[ManPageArchiveEntryAcl3]]</dt><dd> Access Control List manipulation -</dd><dt>[[ManPagerchiventryaths3]]</dt><dd> +</dd><dt>[[ManPageArchiveEntryPaths3]]</dt><dd> Path name manipulation -</dd><dt>[[ManPagerchiventryerms3]]</dt><dd> +</dd><dt>[[ManPageArchiveEntryPerms3]]</dt><dd> User, group and mode manipulation -</dd><dt>[[ManPagerchiventrytat3]]</dt><dd> +</dd><dt>[[ManPageArchiveEntryStat3]]</dt><dd> Functions not in the other groups and copying to/from ''struct'' stat. -</dd><dt>[[ManPagerchiventryime3]]</dt><dd> +</dd><dt>[[ManPageArchiveEntryTime3]]</dt><dd> Time field manipulation </dd></dl> @@ -107,11 +107,11 @@ narrow string for the same data, the previously-set wide string will be discarded in favor of the new data. == SEE ALSO == -[[ManPagerchiventrycl3]], -[[ManPagerchiventryaths3]], -[[ManPagerchiventryerms3]], -[[ManPagerchiventryime3]] -[[ManPageibarchive3]], +[[ManPageArchiveEntryAcl3]], +[[ManPageArchiveEntryPaths3]], +[[ManPageArchiveEntryPerms3]], +[[ManPageArchiveEntryTime3]] +[[ManPageLibarchive3]], == HISTORY == The '''libarchive''' diff --git a/archivers/libarchive/files/doc/wiki/ManPageArchiveEntryAcl3.wiki b/archivers/libarchive/files/doc/wiki/ManPageArchiveEntryAcl3.wiki index 07a55c82171..41563d1381f 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageArchiveEntryAcl3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageArchiveEntryAcl3.wiki @@ -4,10 +4,14 @@ ARCHIVE_ENTRY_ACL(3) manual page '''archive_entry_acl_add_entry_w''', '''archive_entry_acl_clear''', '''archive_entry_acl_count''', +'''archive_entry_acl_from_text''', +'''archive_entry_acl_from_text_w,''' '''archive_entry_acl_next''', '''archive_entry_acl_next_w''', '''archive_entry_acl_reset''', -'''archive_entry_acl_text_w''' +'''archive_entry_acl_to_text''', +'''archive_entry_acl_to_text_w''', +'''archive_entry_acl_types''' - functions for manipulating Access Control Lists in archive entry descriptions == LIBRARY == Streaming Archive Library (libarchive, -larchive) @@ -32,6 +36,14 @@ Streaming Archive Library (libarchive, -larchive) <br> ''int'' <br> +'''archive_entry_acl_from_text'''(''struct archive_entry *a'', ''const char *text'', ''int type''); +<br> +''int'' +<br> +'''archive_entry_acl_from_text_w'''(''struct archive_entry *a'', ''const wchar_t *text'', ''int type''); +<br> +''int'' +<br> '''archive_entry_acl_next'''(''struct archive_entry *a'', ''int type'', ''int *ret_type'', ''int *ret_permset'', ''int *ret_tag'', ''int *ret_qual'', ''const char **ret_name''); <br> ''int'' @@ -42,34 +54,44 @@ Streaming Archive Library (libarchive, -larchive) <br> '''archive_entry_acl_reset'''(''struct archive_entry *a'', ''int type''); <br> -''const wchar_t *'' +''char *'' +<br> +'''archive_entry_acl_to_text'''(''struct archive_entry *a'', ''ssize_t *len_p'', ''int flags''); +<br> +''wchar_t *'' <br> -'''archive_entry_acl_text_w'''(''struct archive_entry *a'', ''int flags''); +'''archive_entry_acl_to_text_w'''(''struct archive_entry *a'', ''ssize_t *len_p'', ''int flags''); +<br> +''int'' +<br> +'''archive_entry_acl_types'''(''struct archive_entry *a''); == DESCRIPTION == -An -"Access Control List" -is a generalisation of the classic Unix permission system. +The +"Access Control Lists (ACLs)" +extend the standard Unix perssion model. The ACL interface of '''libarchive''' -is derived from the POSIX.1e draft, but restricted to simplify dealing -with practical implementations in various Operating Systems and archive formats. - -An ACL consists of a number of independent entries. +supports both POSIX.1e and NFSv4 style ACLs. Use of ACLs is restricted by +various levels of ACL support in operating systems, file systems and archive +formats. +=== POSIX.1e Access Control Lists=== +A POSIX.1e ACL consists of a number of independent entries. Each entry specifies the permission set as bitmask of basic permissions. -Valid permissions are: +Valid permissions in the +are: <dl> <dt></dt><dd> -ARCHIVE_ENTRY_ACL_EXECUTE +ARCHIVE_ENTRY_ACL_READ (.B r ) </dd><dt></dt><dd> -ARCHIVE_ENTRY_ACL_WRITE +ARCHIVE_ENTRY_ACL_WRITE (.B w ) </dd><dt></dt><dd> -ARCHIVE_ENTRY_ACL_READ +ARCHIVE_ENTRY_ACL_EXECUTE (.B x ) </dd></dl> The permissions correspond to the normal Unix permissions. -The tag specifies the principal to which the permission applies. +The +specifies the principal to which the permission applies. Valid values are: -<dl> <dt></dt><dd> ARCHIVE_ENTRY_ACL_USER The user specified by the name field. @@ -87,8 +109,9 @@ ARCHIVE_ENTRY_ACL_MASK The maximum permissions to be obtained via group permissions. </dd><dt></dt><dd> ARCHIVE_ENTRY_ACL_OTHER -Any principal who doesn't have a user or group entry. -</dd></dl> +Any principal who is not file owner or a member of the owning group. +</dd> + The principals ARCHIVE_ENTRY_ACL_USER_OBJ, ARCHIVE_ENTRY_ACL_GROUP_OBJ @@ -97,7 +120,7 @@ ARCHIVE_ENTRY_ACL_OTHER are equivalent to user, group and other in the classic Unix permission model and specify non-extended ACL entries. -All files have an access ACL +All files with have an access ACL () ARCHIVE_ENTRY_ACL_TYPE_ACCESS. This specifies the permissions required for access to the file itself. @@ -105,13 +128,142 @@ Directories have an additional ACL () ARCHIVE_ENTRY_ACL_TYPE_DEFAULT, which controls the initial access ACL for newly created directory entries. +=== NFSv4 Access Control Lists=== +A NFSv4 ACL consists of multiple individual entries called Access Control +Entries (ACEs). +There are four possible types of a NFSv4 ACE: +<dt></dt><dd> +ARCHIVE_ENTRY_ACL_TYPE_ALLOW +Allow principal to perform actions requiring given permissions. +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_TYPE_DENY +Prevent principal from performing actions requiring given permissions. +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_TYPE_AUDIT +Log access attempts by principal which require given permissions. +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_TYPE_ALARM +Trigger a system alarm on access attempts by principal which require given +permissions. +</dd> + +The +specifies the principal to which the permission applies. +Valid values are: +<dt></dt><dd> +ARCHIVE_ENTRY_ACL_USER +The user specified by the name field. +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_USER_OBJ +The owner of the file. +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_GROUP +The group specied by the name field. +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_GROUP_OBJ +The group who owns the file. +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_EVERYONE +Any principal who is not file owner or a member of the owning group. +</dd> + +Entries with the +ARCHIVE_ENTRY_ACL_USER +or +ARCHIVE_ENTRY_ACL_GROUP +tag store the user and group name in the +string and optionally the user or group ID in the +integer. + +NFSv4 ACE permissions and flags are stored in the same +bitfield. Some permissions share the same constant and permission character but +have different effect on directories than on files. The following ACE +permissions are supported: +<dl> +<dt></dt><dd> +ARCHIVE_ENTRY_ACL_READ_DATA (.B r ) +Read data (file). +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_LIST_DIRECTORY (.B r ) +List entries (directory). +</dd><dt>ARCHIVE_ENTRY_ACL_WRITE_DATA (.B w )</dt><dd> +Write data (file). +</dd><dt>ARCHIVE_ENTRY_ACL_ADD_FILE (.B w )</dt><dd> +Create files (directory). +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_EXECUTE (.B x ) +Execute file or change into a directory. +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_APPEND_DATA (.B p ) +Append data (file). +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_ADD_SUBDIRECTORY (.B p ) +Create subdirectories (directory). +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_DELETE_CHILD (.B D ) +Remove files and subdirectories inside a directory. +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_DELETE (.B d ) +Remove file or directory. +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_READ_ATTRIBUTES (.B a ) +Read file or directory attributes. +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_WRITE_ATTRIBUTES (.B A ) +Write file or directory attributes. +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_READ_NAMED_ATTRS (.B R ) +Read named file or directory attributes. +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_WRITE_NAMED_ATTRS (.B W ) +Write named file or directory attributes. +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_READ_ACL (.B c ) +Read file or directory ACL. +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_WRITE_ACL (.B C ) +Write file or directory ACL. +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_WRITE_OWNER (.B o ) +Change owner of a file or directory. +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_SYNCHRONIZE (.B s ) +Use synchronous I/O. +</dd></dl> + +The following NFSv4 ACL inheritance flags are supported: +<dl> +<dt></dt><dd> +ARCHIVE_ENTRY_ACL_ENTRY_FILE_INHERIT (.B f ) +Inherit parent directory ACE to files. +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_ENTRY_DIRECTORY_INHERIT (.B d ) +Inherit parent directory ACE to subdirectories. +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_ENTRY_INHERIT_ONLY (.B i ) +Only inherit, do not apply the permission on the directory itself. +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_ENTRY_NO_PROPAGATE_INHERIT (.B n ) +Do not propagate inherit flags. Only first-level entries inherit ACLs. +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_ENTRY_SUCCESSFUL_ACCESS (.B S ) +Trigger alarm or audit on succesful access. +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_ENTRY_FAILED_ACCESS (.B F ) +Trigger alarm or audit on failed access. +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_ENTRY_INHERITED (.B I ) +Mark that ACE was inherited. +</dd></dl> +=== Functions=== '''archive_entry_acl_add_entry'''() and '''archive_entry_acl_add_entry_w'''() add a single ACL entry. For the access ACL and non-extended principals, the classic Unix permissions -are updated. +are updated. An archive enry cannot contain both POSIX.1e and NFSv4 ACL +entries. '''archive_entry_acl_clear'''() removes all ACL entries and resets the enumeration pointer. @@ -119,14 +271,65 @@ removes all ACL entries and resets the enumeration pointer. '''archive_entry_acl_count'''() counts the ACL entries that have the given type mask. can be the bitwise-or of +<dl> +<dt></dt><dd> ARCHIVE_ENTRY_ACL_TYPE_ACCESS -and -ARCHIVE_ENTRY_ACL_TYPE_DEFAULT. -If +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_TYPE_DEFAULT +</dd></dl> +for POSIX.1e ACLs and +<dl> +<dt></dt><dd> +ARCHIVE_ENTRY_ACL_TYPE_ALLOW +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_TYPE_DENY +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_TYPE_AUDIT +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_TYPE_ALARM +</dd></dl> +for NFSv4 ACLs. For POSIX.1e ACLs if ARCHIVE_ENTRY_ACL_TYPE_ACCESS is included and at least one extended ACL entry is found, the three non-extened ACLs are added. +'''archive_entry_acl_from_text'''() +and +'''archive_entry_acl_from_text_w'''() +add new +(or merge with existing) +ACL entries from +(wide) +text. The argument +may take one of the following values: +<dl> +<dt></dt><dd> +ARCHIVE_ENTRY_ACL_TYPE_ACCESS +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_TYPE_DEFAULT +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_TYPE_NFS4 +</dd></dl> +Supports all formats that can be created with +'''archive_entry_acl_to_text'''() +or respective +'''archive_entry_acl_to_text_w'''(). +Existing ACL entries are preserved. To get a clean new ACL from text +'''archive_entry_acl_clear'''() +must be called first. Entries prefixed with +"default:" +are treated as +ARCHIVE_ENTRY_ACL_TYPE_DEFAULT +unless +is +ARCHIVE_ENTRY_ACL_TYPE_NFS4. +Invalid entries, non-parseable ACL entries and entries beginning with +the +Sq # +character +(comments) +are skipped. + '''archive_entry_acl_next'''() and '''archive_entry_acl_next_w'''() @@ -142,35 +345,92 @@ or '''archive_entry_acl_next_w'''(). The function returns either 0, if no non-extended ACLs are found. In this case, the access permissions should be obtained by -[[ManPagerchiventryode3]] +[[ManPageArchiveEntryMode3]] or set using [[chmod(2)|http://www.freebsd.org/cgi/man.cgi?query=chmod&sektion=2]]. Otherwise, the function returns the same value as '''archive_entry_acl_count'''(). -'''archive_entry_acl_text_w'''() -converts the ACL entries for the given type mask into a wide string. -In addition to the normal type flags, -ARCHIVE_ENTRY_ACL_STYLE_EXTRA_ID +'''archive_entry_acl_to_text'''() and +'''archive_entry_acl_to_text_w'''() +convert the ACL entries for the given type into a +(wide) +string of ACL entries separated by newline. If the the pointer +is not NULL, then the function shall return the length of the string +(not including the NULL terminator) +in the location pointed to by +. +The +argument is a bitwise-or. + +The following flags are effective only on POSIX.1e ACL: +<dl> +<dt></dt><dd> +ARCHIVE_ENTRY_ACL_TYPE_ACCESS +Output access ACLs. +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_TYPE_DEFAULT +Output POSIX.1e default ACLs. +</dd><dt></dt><dd> ARCHIVE_ENTRY_ACL_STYLE_MARK_DEFAULT -can be specified to further customize the result. -The returned long string is valid until the next call to -'''archive_entry_acl_clear'''(), -'''archive_entry_acl_add_entry'''(), -'''archive_entry_acl_add_entry_w'''() +Prefix each default ACL entry with the word +"default:". +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_STYLE_SOLARIS +The mask and other ACLs don not contain a double colon. +</dd></dl> + +The following flags are effecive only on NFSv4 ACL: +<dl> +<dt></dt><dd> +ARCHIVE_ENTRY_ACL_STYLE_COMPACT +Do not output minus characters for unset permissions and flags in NFSv4 ACL +permission and flag fields. +</dd></dl> + +The following flags are effective on both POSIX.1e and NFSv4 ACL: +<dl> +<dt></dt><dd> +ARCHIVE_ENTRY_ACL_STYLE_EXTRA_ID +Add an additional colon-separated field containing the user or group id. +</dd><dt></dt><dd> +ARCHIVE_ENTRY_ACL_STYLE_SEPARATOR_COMMA +Separate ACL entries with comma instead of newline. +</dd></dl> + +If the archive entry contains NFSv4 ACLs, all types of NFSv4 ACLs are returned. +It the entry contains POSIX.1e ACLs and none of the flags +ARCHIVE_ENTRY_ACL_TYPE_ACCESS or -'''archive_entry_acl_text_w'''(). +ARCHIVE_ENTRY_ACL_TYPE_DEFAULT +are specified, both access and default entries are returned and default entries +are prefixed with +"default:". + +'''archive_entry_acl_types'''() +get ACL entry types contained in an archive entry's ACL. As POSIX.1e and NFSv4 +ACL entries cannot be mixed, this function is a very efficient way to detect if +an ACL already contains POSIX.1e or NFSv4 ACL entries. == RETURN VALUES == '''archive_entry_acl_count'''() and '''archive_entry_acl_reset'''() returns the number of ACL entries that match the given type mask. -If the type mask includes +For POSIX.1e ACLS if the type mask includes ARCHIVE_ENTRY_ACL_TYPE_ACCESS and at least one extended ACL entry exists, the three classic Unix permissions are counted. +'''archive_entry_acl_from_text'''() +and +'''archive_entry_acl_from_text_w'''() +return +ARCHIVE_OK +if all entries were successfully parsed and +ARCHIVE_WARN +if one or more entries were invalid or non-parseable. + '''archive_entry_acl_next'''() and '''archive_entry_acl_next_w'''() @@ -185,20 +445,16 @@ if '''archive_entry_acl_reset'''() has not been called first. -'''archive_entry_text_w'''() -returns a wide string representation of the ACL entrise matching the -given type mask. -The returned long string is valid until the next call to -'''archive_entry_acl_clear'''(), -'''archive_entry_acl_add_entry'''(), -'''archive_entry_acl_add_entry_w'''() -or -'''archive_entry_acl_text_w'''(). +'''archive_entry_acl_to_text'''() +returns a string representing the ACL entries matching the given type and +flags on success or NULL on error. + +'''archive_entry_acl_to_text_w'''() +returns a wide string representing the ACL entries matching the given type +and flags on success or NULL on error. + +'''archive_entry_acl_types'''() +returns a bitmask of ACL entry types or 0 if archive entry has no ACL entries. == SEE ALSO == -[[ManPagerchiventry3]] -[[ManPageibarchive3]], -== BUGS == -ARCHIVE_ENTRY_ACL_STYLE_EXTRA_ID -and -ARCHIVE_ENTRY_ACL_STYLE_MARK_DEFAULT -are not documented. +[[ManPageArchiveEntry3]], +[[ManPageLibarchive3]] diff --git a/archivers/libarchive/files/doc/wiki/ManPageArchiveEntryLinkify3.wiki b/archivers/libarchive/files/doc/wiki/ManPageArchiveEntryLinkify3.wiki index 1e35c5984c0..a94b398c97e 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageArchiveEntryLinkify3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageArchiveEntryLinkify3.wiki @@ -64,7 +64,7 @@ The '''archive_entry_linkresolver_set_strategy'''() function selects the optimal hardlink strategy for the given format. The format code can be obtained from -[[ManPagerchiveormat3]]. +[[ManPageArchiveFormat3]]. The function can be called more than once, but it is recommended to flush all deferred entries first. @@ -194,4 +194,4 @@ on [[malloc(3)|http://www.freebsd.org/cgi/man.cgi?query=malloc&sektion=3]] failures. == SEE ALSO == -[[ManPagerchiventry3]] +[[ManPageArchiveEntry3]] diff --git a/archivers/libarchive/files/doc/wiki/ManPageArchiveEntryPaths3.wiki b/archivers/libarchive/files/doc/wiki/ManPageArchiveEntryPaths3.wiki index 56ebec2aacf..8e4cd945525 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageArchiveEntryPaths3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageArchiveEntryPaths3.wiki @@ -127,7 +127,7 @@ Streaming Archive Library (libarchive, -larchive) '''archive_entry_update_symlink_utf8'''(''struct archive_entry *a'', ''const char *path''); == DESCRIPTION == Path names supported by -[[ManPagerchiventry3]]: +[[ManPageArchiveEntry3]]: <dl> <dt>hardlink</dt><dd> Destination of the hardlink. @@ -140,7 +140,7 @@ the destination for that. Path in the archive </dd><dt>sourcepath</dt><dd> Path on the disk for use by -[[ManPagerchiveeadisk3]]. +[[ManPageArchiveReadDisk3]]. </dd><dt>symlink</dt><dd> Destination of the symbolic link. </dd></dl> @@ -171,5 +171,5 @@ It doesn't have a corresponding get accessor function. is an alias for '''archive_entry_copy_XXX'''(). == SEE ALSO == -[[ManPagerchiventry3]] -[[ManPageibarchive3]], +[[ManPageArchiveEntry3]] +[[ManPageLibarchive3]], diff --git a/archivers/libarchive/files/doc/wiki/ManPageArchiveEntryPerms3.wiki b/archivers/libarchive/files/doc/wiki/ManPageArchiveEntryPerms3.wiki index 6e5a1daa88d..079034c681f 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageArchiveEntryPerms3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageArchiveEntryPerms3.wiki @@ -207,11 +207,11 @@ every name that is recognized. [[strtofflags(3)|http://www.freebsd.org/cgi/man.cgi?query=strtofflags&sektion=3]], which stops parsing at the first unrecognized name.) == SEE ALSO == -[[ManPagerchiventry3]], -[[ManPagerchiventrycl3]], -[[ManPagerchiveeadisk3]], -[[ManPagerchiveriteisk3]] -[[ManPageibarchive3]], +[[ManPageArchiveEntry3]], +[[ManPageArchiveEntryAcl3]], +[[ManPageArchiveReadDisk3]], +[[ManPageArchiveWriteDisk3]] +[[ManPageLibarchive3]], == BUGS == The platform types ''uid_t'' diff --git a/archivers/libarchive/files/doc/wiki/ManPageArchiveEntryStat3.wiki b/archivers/libarchive/files/doc/wiki/ManPageArchiveEntryStat3.wiki index 55bfdef6fc4..e96169f1c32 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageArchiveEntryStat3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageArchiveEntryStat3.wiki @@ -258,7 +258,7 @@ The functions and '''archive_entry_ino64'''() are used by -[[ManPagerchiventryinkify3]] +[[ManPageArchiveEntryLinkify3]] to find hardlinks. The pair of device and inode is supposed to identify hardlinked files. @@ -301,8 +301,8 @@ platforms. Some archive formats use the combined form, while other formats use the split form. == SEE ALSO == -[[ManPagerchiventrycl3]], -[[ManPagerchiventryerms3]], -[[ManPagerchiventryime3]], -[[ManPageibarchive3]], +[[ManPageArchiveEntryAcl3]], +[[ManPageArchiveEntryPerms3]], +[[ManPageArchiveEntryTime3]], +[[ManPageLibarchive3]], [[stat(2)|http://www.freebsd.org/cgi/man.cgi?query=stat&sektion=2]] diff --git a/archivers/libarchive/files/doc/wiki/ManPageArchiveEntryTime3.wiki b/archivers/libarchive/files/doc/wiki/ManPageArchiveEntryTime3.wiki index 2425c1c3332..bff82575627 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageArchiveEntryTime3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageArchiveEntryTime3.wiki @@ -111,7 +111,7 @@ These functions create and manipulate the time fields in an Supported time fields are atime (access time), birthtime (creation time), ctime (last time an inode property was changed) and mtime (modification time). -[[ManPageibarchive3]] +[[ManPageLibarchive3]] provides a high-resolution interface. The timestamps are truncated automatically depending on the archive format (for archiving) or the filesystem capabilities (for restoring). @@ -124,8 +124,8 @@ The current state can be queried using '''XXX_is_set'''(). Unset time fields have a second and nanosecond field of 0. == SEE ALSO == -[[ManPagerchiventry3]] -[[ManPageibarchive3]], +[[ManPageArchiveEntry3]] +[[ManPageLibarchive3]], == HISTORY == The '''libarchive''' diff --git a/archivers/libarchive/files/doc/wiki/ManPageArchiveRead3.wiki b/archivers/libarchive/files/doc/wiki/ManPageArchiveRead3.wiki index 69b6c479aa8..0b6e08d283d 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageArchiveRead3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageArchiveRead3.wiki @@ -15,7 +15,7 @@ headers and associated data, then close the archive and release all resources. === Create archive object=== See -[[ManPagerchiveeadew3]]. +[[ManPageArchiveReadNew3]]. To read an archive, you must first obtain an initialized '''struct archive''' @@ -23,9 +23,9 @@ object from '''archive_read_new'''(). === Enable filters and formats=== See -[[ManPagerchiveeadilter3]] +[[ManPageArchiveReadFilter3]] and -[[ManPagerchiveeadormat3]]. +[[ManPageArchiveReadFormat3]]. You can then modify this object for the desired operations with the various @@ -49,10 +49,10 @@ to enable auto-detect for all formats and compression types currently supported by the library. === Set options=== See -[[ManPagerchiveeadetptions3]]. +[[ManPageArchiveReadSetOptions3]]. === Open archive=== See -[[ManPagerchiveeadpen3]]. +[[ManPageArchiveReadOpen3]]. Once you have prepared the '''struct archive''' @@ -72,10 +72,10 @@ callback functions are free to read whatever block size is most appropriate for the medium. === Consume archive=== See -[[ManPagerchiveeadeader3]], -[[ManPagerchiveeadata3]] +[[ManPageArchiveReadHeader3]], +[[ManPageArchiveReadData3]] and -[[ManPagerchiveeadxtract3]]. +[[ManPageArchiveReadExtract3]]. Each archive entry consists of a header followed by a certain amount of data. @@ -112,7 +112,7 @@ In particular, many applications will want to override the pathname, file permissions, or ownership. === Release resources=== See -[[ManPagerchiveeadree3]]. +[[ManPageArchiveReadFree3]]. Once you have finished reading data from the archive, you should call @@ -174,16 +174,16 @@ myclose(struct archive *a, void *client_data) ``` == SEE ALSO == [[ManPageBsdtar1]], -[[ManPageibarchive3]], -[[ManPagerchiveeadew3]], -[[ManPagerchiveeadata3]], -[[ManPagerchiveeadxtract3]], -[[ManPagerchiveeadilter3]], -[[ManPagerchiveeadormat3]], -[[ManPagerchiveeadeader3]], -[[ManPagerchiveeadpen3]], -[[ManPagerchiveeadetptions3]], -[[ManPagerchivetil3]], +[[ManPageLibarchive3]], +[[ManPageArchiveReadNew3]], +[[ManPageArchiveReadData3]], +[[ManPageArchiveReadExtract3]], +[[ManPageArchiveReadFilter3]], +[[ManPageArchiveReadFormat3]], +[[ManPageArchiveReadHeader3]], +[[ManPageArchiveReadOpen3]], +[[ManPageArchiveReadSetOptions3]], +[[ManPageArchiveUtil3]], [[ManPageTar5]] == HISTORY == The diff --git a/archivers/libarchive/files/doc/wiki/ManPageArchiveReadAddPassphrase3.wiki b/archivers/libarchive/files/doc/wiki/ManPageArchiveReadAddPassphrase3.wiki index 3f70ec9aa61..466505c5522 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageArchiveReadAddPassphrase3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageArchiveReadAddPassphrase3.wiki @@ -37,6 +37,6 @@ function failed. </dd></dl> == SEE ALSO == [[ManPageBsdtar1]], -[[ManPageibarchive3]], -[[ManPagerchiveead3]], -[[ManPagerchiveeadetptions3]] +[[ManPageLibarchive3]], +[[ManPageArchiveRead3]], +[[ManPageArchiveReadSetOptions3]] diff --git a/archivers/libarchive/files/doc/wiki/ManPageArchiveReadData3.wiki b/archivers/libarchive/files/doc/wiki/ManPageArchiveReadData3.wiki index e6c7afc295b..da4647cf141 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageArchiveReadData3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageArchiveReadData3.wiki @@ -89,13 +89,13 @@ and functions. == SEE ALSO == [[ManPageBsdtar1]], -[[ManPageibarchive3]], -[[ManPagerchiveead3]], -[[ManPagerchiveeadxtract3]], -[[ManPagerchiveeadilter3]], -[[ManPagerchiveeadormat3]], -[[ManPagerchiveeadeader3]], -[[ManPagerchiveeadpen3]], -[[ManPagerchiveeadetptions3]], -[[ManPagerchivetil3]], +[[ManPageLibarchive3]], +[[ManPageArchiveRead3]], +[[ManPageArchiveReadExtract3]], +[[ManPageArchiveReadFilter3]], +[[ManPageArchiveReadFormat3]], +[[ManPageArchiveReadHeader3]], +[[ManPageArchiveReadOpen3]], +[[ManPageArchiveReadSetOptions3]], +[[ManPageArchiveUtil3]], [[ManPageTar5]] diff --git a/archivers/libarchive/files/doc/wiki/ManPageArchiveReadDisk3.wiki b/archivers/libarchive/files/doc/wiki/ManPageArchiveReadDisk3.wiki index 15d837a103c..bb7d01a3eb8 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageArchiveReadDisk3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageArchiveReadDisk3.wiki @@ -35,11 +35,11 @@ Streaming Archive Library (libarchive, -larchive) <br> '''archive_read_disk_set_symlink_hybrid'''(''struct archive *''); <br> -''int'' +''const char *'' <br> '''archive_read_disk_gname'''(''struct archive *'', ''gid_t''); <br> -''int'' +''const char *'' <br> '''archive_read_disk_uname'''(''struct archive *'', ''uid_t''); <br> @@ -138,7 +138,7 @@ object with information about a particular file. The '''archive_entry''' object must have already been created with -[[ManPagerchiventryew3]] +[[ManPageArchiveEntryNew3]] and at least one of the source path or path fields must already be set. (If both are set, the source path will be used.) @@ -179,7 +179,7 @@ if it was not invoked manually, then releases all resources. More information about the ''struct'' archive object and the overall design of the library can be found in the -[[ManPageibarchive3]] +[[ManPageLibarchive3]] overview. == EXAMPLE == The following illustrates basic usage of the library by @@ -243,12 +243,12 @@ and '''archive_error_string'''() functions. == SEE ALSO == -[[ManPagerchiveead3]], -[[ManPagerchivetil3]], -[[ManPagerchiverite3]], -[[ManPagerchiveriteisk3]], +[[ManPageArchiveRead3]], +[[ManPageArchiveUtil3]], +[[ManPageArchiveWrite3]], +[[ManPageArchiveWriteDisk3]], [[ManPageBsdtar1]], -[[ManPageibarchive3]] +[[ManPageLibarchive3]] == HISTORY == The '''libarchive''' @@ -289,7 +289,7 @@ to look up such information. This API should provide a set of methods for walking a directory tree. That would make it a direct parallel of the -[[ManPagerchiveead3]] +[[ManPageArchiveRead3]] API. When such methods are implemented, the "hybrid" diff --git a/archivers/libarchive/files/doc/wiki/ManPageArchiveReadExtract3.wiki b/archivers/libarchive/files/doc/wiki/ManPageArchiveReadExtract3.wiki index b33adeba7a0..e3ec018be18 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageArchiveReadExtract3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageArchiveReadExtract3.wiki @@ -24,34 +24,34 @@ Streaming Archive Library (libarchive, -larchive) <dl> <dt>'''archive_read_extract'''(), '''archive_read_extract_set_skip_file'''()</dt><dd> A convenience function that wraps the corresponding -[[ManPagerchiveriteisk3]] +[[ManPageArchiveWriteDisk3]] interfaces. The first call to '''archive_read_extract'''() creates a restore object using -[[ManPagerchiveriteiskew3]] +[[ManPageArchiveWriteDiskNew3]] and -[[ManPagerchiveriteiskettandardookup3]], +[[ManPageArchiveWriteDiskSetStandardLookup3]], then transparently invokes -[[ManPagerchiveriteisketptions3]], -[[ManPagerchiveriteeader3]], -[[ManPagerchiveriteata3]], +[[ManPageArchiveWriteDiskSetOptions3]], +[[ManPageArchiveWriteHeader3]], +[[ManPageArchiveWriteData3]], and -[[ManPagerchiveriteinishntry3]] +[[ManPageArchiveWriteFinishEntry3]] to create the entry on disk and copy data into it. The ''flags'' argument is passed unmodified to -[[ManPagerchiveriteisketptions3]]. +[[ManPageArchiveWriteDiskSetOptions3]]. </dd><dt>'''archive_read_extract2'''()</dt><dd> This is another version of '''archive_read_extract'''() that allows you to provide your own restore object. In particular, this allows you to override the standard lookup functions using -[[ManPagerchiveriteisketroupookup3]], +[[ManPageArchiveWriteDiskSetGroupLookup3]], and -[[ManPagerchiveriteisketserookup3]]. +[[ManPageArchiveWriteDiskSetUserLookup3]]. Note that '''archive_read_extract2'''() does not accept a @@ -91,12 +91,12 @@ and functions. == SEE ALSO == [[ManPageBsdtar1]], -[[ManPageibarchive3]], -[[ManPagerchiveead3]], -[[ManPagerchiveeadata3]], -[[ManPagerchiveeadilter3]], -[[ManPagerchiveeadormat3]], -[[ManPagerchiveeadpen3]], -[[ManPagerchiveeadetptions3]], -[[ManPagerchivetil3]], +[[ManPageLibarchive3]], +[[ManPageArchiveRead3]], +[[ManPageArchiveReadData3]], +[[ManPageArchiveReadFilter3]], +[[ManPageArchiveReadFormat3]], +[[ManPageArchiveReadOpen3]], +[[ManPageArchiveReadSetOptions3]], +[[ManPageArchiveUtil3]], [[ManPageTar5]] diff --git a/archivers/libarchive/files/doc/wiki/ManPageArchiveReadFilter3.wiki b/archivers/libarchive/files/doc/wiki/ManPageArchiveReadFilter3.wiki index f0e87b6bbe9..ead30b911eb 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageArchiveReadFilter3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageArchiveReadFilter3.wiki @@ -130,8 +130,8 @@ and '''archive_error_string'''() functions. == SEE ALSO == -[[ManPageibarchive3]], -[[ManPagerchiveead3]], -[[ManPagerchiveeadata3]], -[[ManPagerchiveeadormat3]], -[[ManPagerchiveeadormat3]] +[[ManPageLibarchive3]], +[[ManPageArchiveRead3]], +[[ManPageArchiveReadData3]], +[[ManPageArchiveReadFormat3]], +[[ManPageArchiveReadFormat3]] diff --git a/archivers/libarchive/files/doc/wiki/ManPageArchiveReadFormat3.wiki b/archivers/libarchive/files/doc/wiki/ManPageArchiveReadFormat3.wiki index f938a999754..9ffe5b42188 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageArchiveReadFormat3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageArchiveReadFormat3.wiki @@ -150,11 +150,11 @@ and functions. == SEE ALSO == [[ManPageBsdtar1]], -[[ManPageibarchive3]], -[[ManPagerchiveeadata3]], -[[ManPagerchiveeadilter3]], -[[ManPagerchiveeadetptions3]], -[[ManPagerchivetil3]], +[[ManPageLibarchive3]], +[[ManPageArchiveReadData3]], +[[ManPageArchiveReadFilter3]], +[[ManPageArchiveReadSetOptions3]], +[[ManPageArchiveUtil3]], [[ManPageTar5]] == BUGS == Many traditional archiver programs treat diff --git a/archivers/libarchive/files/doc/wiki/ManPageArchiveReadFree3.wiki b/archivers/libarchive/files/doc/wiki/ManPageArchiveReadFree3.wiki index 10f372d8640..90b094922ac 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageArchiveReadFree3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageArchiveReadFree3.wiki @@ -58,11 +58,11 @@ and '''archive_error_string'''() functions. == SEE ALSO == -[[ManPageibarchive3]], -[[ManPagerchiveeadew3]], -[[ManPagerchiveeadata3]], -[[ManPagerchiveeadilter3]], -[[ManPagerchiveeadormat3]], -[[ManPagerchiveeadpen3]], -[[ManPagerchiveeadetptions3]], -[[ManPagerchivetil3]] +[[ManPageLibarchive3]], +[[ManPageArchiveReadNew3]], +[[ManPageArchiveReadData3]], +[[ManPageArchiveReadFilter3]], +[[ManPageArchiveReadFormat3]], +[[ManPageArchiveReadOpen3]], +[[ManPageArchiveReadSetOptions3]], +[[ManPageArchiveUtil3]] diff --git a/archivers/libarchive/files/doc/wiki/ManPageArchiveReadHeader3.wiki b/archivers/libarchive/files/doc/wiki/ManPageArchiveReadHeader3.wiki index 30611b28403..7eb59499f56 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageArchiveReadHeader3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageArchiveReadHeader3.wiki @@ -51,13 +51,13 @@ and functions. == SEE ALSO == [[ManPageBsdtar1]], -[[ManPageibarchive3]], -[[ManPagerchiveead3]], -[[ManPagerchiveeadata3]], -[[ManPagerchiveeadxtract3]], -[[ManPagerchiveeadilter3]], -[[ManPagerchiveeadormat3]], -[[ManPagerchiveeadpen3]], -[[ManPagerchiveeadetptions3]], -[[ManPagerchivetil3]], +[[ManPageLibarchive3]], +[[ManPageArchiveRead3]], +[[ManPageArchiveReadData3]], +[[ManPageArchiveReadExtract3]], +[[ManPageArchiveReadFilter3]], +[[ManPageArchiveReadFormat3]], +[[ManPageArchiveReadOpen3]], +[[ManPageArchiveReadSetOptions3]], +[[ManPageArchiveUtil3]], [[ManPageTar5]] diff --git a/archivers/libarchive/files/doc/wiki/ManPageArchiveReadNew3.wiki b/archivers/libarchive/files/doc/wiki/ManPageArchiveReadNew3.wiki index 41b3c2bec53..70c3cfd3fd7 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageArchiveReadNew3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageArchiveReadNew3.wiki @@ -20,13 +20,13 @@ is returned on error. A complete description of the '''struct archive''' object can be found in the overview manual page for -[[ManPageibarchive3]]. +[[ManPageLibarchive3]]. == SEE ALSO == [[ManPageBsdtar1]], -[[ManPageibarchive3]], -[[ManPagerchiveeadata3]], -[[ManPagerchiveeadilter3]], -[[ManPagerchiveeadormat3]], -[[ManPagerchiveeadetptions3]], -[[ManPagerchivetil3]], +[[ManPageLibarchive3]], +[[ManPageArchiveReadData3]], +[[ManPageArchiveReadFilter3]], +[[ManPageArchiveReadFormat3]], +[[ManPageArchiveReadSetOptions3]], +[[ManPageArchiveUtil3]], [[ManPageTar5]] diff --git a/archivers/libarchive/files/doc/wiki/ManPageArchiveReadOpen3.wiki b/archivers/libarchive/files/doc/wiki/ManPageArchiveReadOpen3.wiki index 06f24538da7..d5028c5bff4 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageArchiveReadOpen3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageArchiveReadOpen3.wiki @@ -92,7 +92,7 @@ A complete description of the and '''struct archive_entry''' objects can be found in the overview manual page for -[[ManPageibarchive3]]. +[[ManPageLibarchive3]]. == CLIENT CALLBACKS == The callback functions must match the following prototypes: <ul> @@ -180,11 +180,11 @@ and functions. == SEE ALSO == [[ManPageBsdtar1]], -[[ManPageibarchive3]], -[[ManPagerchiveead3]], -[[ManPagerchiveeadata3]], -[[ManPagerchiveeadilter3]], -[[ManPagerchiveeadormat3]], -[[ManPagerchiveeadetptions3]], -[[ManPagerchivetil3]], +[[ManPageLibarchive3]], +[[ManPageArchiveRead3]], +[[ManPageArchiveReadData3]], +[[ManPageArchiveReadFilter3]], +[[ManPageArchiveReadFormat3]], +[[ManPageArchiveReadSetOptions3]], +[[ManPageArchiveUtil3]], [[ManPageTar5]] diff --git a/archivers/libarchive/files/doc/wiki/ManPageArchiveReadSetOptions3.wiki b/archivers/libarchive/files/doc/wiki/ManPageArchiveReadSetOptions3.wiki index aef201eb521..b2bca417c4b 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageArchiveReadSetOptions3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageArchiveReadSetOptions3.wiki @@ -182,6 +182,6 @@ and functions. == SEE ALSO == [[ManPageBsdtar1]], -[[ManPageibarchive3]], -[[ManPagerchiveriteetptions3]], -[[ManPagerchiveead3]] +[[ManPageLibarchive3]], +[[ManPageArchiveWriteSetOptions3]], +[[ManPageArchiveRead3]] diff --git a/archivers/libarchive/files/doc/wiki/ManPageArchiveUtil3.wiki b/archivers/libarchive/files/doc/wiki/ManPageArchiveUtil3.wiki index 48341524eac..2f07b658add 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageArchiveUtil3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageArchiveUtil3.wiki @@ -79,7 +79,7 @@ Streaming Archive Library (libarchive, -larchive) These functions provide access to various information about the '''struct archive''' object used in the -[[ManPageibarchive3]] +[[ManPageLibarchive3]] library. <dl> <dt>'''archive_clear_error'''()</dt><dd> @@ -111,9 +111,9 @@ to </dd><dt>'''archive_file_count'''()</dt><dd> Returns a count of the number of files processed by this archive object. The count is incremented by calls to -[[ManPagerchiveriteeader3]] +[[ManPageArchiveWriteHeader3]] or -[[ManPagerchiveeadexteader3]]. +[[ManPageArchiveReadNextHeader3]]. </dd><dt>'''archive_filter_code'''()</dt><dd> Returns a numeric code identifying the indicated filter. See @@ -202,9 +202,9 @@ Field-width specifiers and other printf features are not uniformly supported and should not be used. </dd></dl> == SEE ALSO == -[[ManPagerchiveead3]], -[[ManPagerchiverite3]], -[[ManPageibarchive3]], +[[ManPageArchiveRead3]], +[[ManPageArchiveWrite3]], +[[ManPageLibarchive3]], [[printf(3)|http://www.freebsd.org/cgi/man.cgi?query=printf&sektion=3]] == HISTORY == The diff --git a/archivers/libarchive/files/doc/wiki/ManPageArchiveWrite3.wiki b/archivers/libarchive/files/doc/wiki/ManPageArchiveWrite3.wiki index 9f7218111b4..301f75c7d44 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageArchiveWrite3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageArchiveWrite3.wiki @@ -15,7 +15,7 @@ object, set any desired options, initialize the archive, append entries, then close the archive and release all resources. === Create archive object=== See -[[ManPagerchiveriteew3]]. +[[ManPageArchiveWriteNew3]]. To write an archive, you must first obtain an initialized '''struct archive''' @@ -23,10 +23,10 @@ object from '''archive_write_new'''(). === Enable filters and formats, configure block size and padding=== See -[[ManPagerchiveriteilter3]], -[[ManPagerchiveriteormat3]] +[[ManPageArchiveWriteFilter3]], +[[ManPageArchiveWriteFormat3]] and -[[ManPagerchiveritelocksize3]]. +[[ManPageArchiveWriteBlocksize3]]. You can then modify this object for the desired operations with the various @@ -40,10 +40,10 @@ functions to enable the corresponding compression and format support. === Set options=== See -[[ManPagerchiveeadetptions3]]. +[[ManPageArchiveReadSetOptions3]]. === Open archive=== See -[[ManPagerchiveritepen3]]. +[[ManPageArchiveWriteOpen3]]. Once you have prepared the '''struct archive''' @@ -59,9 +59,9 @@ specify a filename, file descriptor, object, or a block of memory from which to write the archive data. === Produce archive=== See -[[ManPagerchiveriteeader3]] +[[ManPageArchiveWriteHeader3]] and -[[ManPagerchiveriteata3]]. +[[ManPageArchiveWriteData3]]. Individual archive entries are written in a three-step process: @@ -78,7 +78,7 @@ field, which specifies the type of object and field, which specifies the size of the data portion of the object. === Release resources=== See -[[ManPagerchiveriteree3]]. +[[ManPageArchiveWriteFree3]]. After all entries have been written, use the '''archive_write_free'''() @@ -180,8 +180,8 @@ int main(int argc, const char **argv) ``` == SEE ALSO == [[ManPageBsdtar1]], -[[ManPageibarchive3]], -[[ManPagerchiveriteetptions3]], +[[ManPageLibarchive3]], +[[ManPageArchiveWriteSetOptions3]], [[ManPageCpio5]], [[ManPageMtree5]], [[ManPageTar5]] diff --git a/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteBlocksize3.wiki b/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteBlocksize3.wiki index 8bdfd7db57e..7975a5a3e16 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteBlocksize3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteBlocksize3.wiki @@ -86,8 +86,8 @@ and functions. == SEE ALSO == [[ManPageBsdtar1]], -[[ManPageibarchive3]], -[[ManPagerchiveriteetptions3]], +[[ManPageLibarchive3]], +[[ManPageArchiveWriteSetOptions3]], [[ManPageCpio5]], [[ManPageMtree5]], [[ManPageTar5]] diff --git a/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteData3.wiki b/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteData3.wiki index 21f4ab459d1..b21eb42199e 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteData3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteData3.wiki @@ -31,9 +31,9 @@ Clients should treat any value less than zero as an error and consider any non-negative value as success. == SEE ALSO == [[ManPageBsdtar1]], -[[ManPageibarchive3]], -[[ManPagerchiveriteinishntry3]], -[[ManPagerchiveriteetptions3]], +[[ManPageLibarchive3]], +[[ManPageArchiveWriteFinishEntry3]], +[[ManPageArchiveWriteSetOptions3]], [[ManPageCpio5]], [[ManPageMtree5]], [[ManPageTar5]] diff --git a/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteDisk3.wiki b/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteDisk3.wiki index f4868c9fdf6..11248c14e16 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteDisk3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteDisk3.wiki @@ -216,7 +216,7 @@ Build and write a header using the data in the provided '''struct archive_entry''' structure. See -[[ManPagerchiventry3]] +[[ManPageArchiveEntry3]] for information on creating and populating '''struct archive_entry''' objects. @@ -269,10 +269,10 @@ if it was not invoked manually, then releases all resources. More information about the ''struct'' archive object and the overall design of the library can be found in the -[[ManPageibarchive3]] +[[ManPageLibarchive3]] overview. Many of these functions are also documented under -[[ManPagerchiverite3]]. +[[ManPageArchiveWrite3]]. == RETURN VALUES == Most functions return '''ARCHIVE_OK''' @@ -305,10 +305,10 @@ and '''archive_error_string'''() functions. == SEE ALSO == -[[ManPagerchiveead3]], -[[ManPagerchiverite3]], +[[ManPageArchiveRead3]], +[[ManPageArchiveWrite3]], [[ManPageBsdtar1]], -[[ManPageibarchive3]] +[[ManPageLibarchive3]] == HISTORY == The '''libarchive''' diff --git a/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteFilter3.wiki b/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteFilter3.wiki index 3ec3e46e017..b9148e9ba6b 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteFilter3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteFilter3.wiki @@ -119,10 +119,10 @@ and functions. == SEE ALSO == [[ManPageBsdtar1]], -[[ManPageibarchive3]], -[[ManPagerchiverite3]], -[[ManPagerchiveriteormat3]], -[[ManPagerchiveriteetptions3]], +[[ManPageLibarchive3]], +[[ManPageArchiveWrite3]], +[[ManPageArchiveWriteFormat3]], +[[ManPageArchiveWriteSetOptions3]], [[ManPageCpio5]], [[ManPageMtree5]], [[ManPageTar5]] diff --git a/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteFinishEntry3.wiki b/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteFinishEntry3.wiki index 405df8b6129..3d6ff146852 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteFinishEntry3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteFinishEntry3.wiki @@ -39,9 +39,9 @@ and functions. == SEE ALSO == [[ManPageBsdtar1]], -[[ManPageibarchive3]], -[[ManPagerchiveriteata3]], -[[ManPagerchiveriteetptions3]], +[[ManPageLibarchive3]], +[[ManPageArchiveWriteData3]], +[[ManPageArchiveWriteSetOptions3]], [[ManPageCpio5]], [[ManPageMtree5]], [[ManPageTar5]] diff --git a/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteFormat3.wiki b/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteFormat3.wiki index 697fb115a4a..60fa69c54b6 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteFormat3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteFormat3.wiki @@ -165,7 +165,7 @@ Supported extensions: .7z, .zip, .jar, .cpio, .iso, .a, .ar, .tar, .tgz, .tar.gz </dt> <dd> Set the format as specified. More details on the formats supported by libarchive can be found in the -[[ManPageibarchiveormats5]] +[[ManPageLibarchiveFormats5]] manual page. </dd></dl> == RETURN VALUES == @@ -181,10 +181,10 @@ and functions. == SEE ALSO == [[ManPageBsdtar1]], -[[ManPageibarchive3]], -[[ManPagerchiverite3]], -[[ManPagerchiveriteetptions3]], +[[ManPageLibarchive3]], +[[ManPageArchiveWrite3]], +[[ManPageArchiveWriteSetOptions3]], [[ManPageCpio5]], -[[ManPageibarchiveormats5]], +[[ManPageLibarchiveFormats5]], [[ManPageMtree5]], [[ManPageTar5]] diff --git a/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteFree3.wiki b/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteFree3.wiki index 4ca2cf9c798..1d94a56b16f 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteFree3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteFree3.wiki @@ -66,8 +66,8 @@ and functions. == SEE ALSO == [[ManPageBsdtar1]], -[[ManPageibarchive3]], -[[ManPagerchiveriteetptions3]], +[[ManPageLibarchive3]], +[[ManPageArchiveWriteSetOptions3]], [[ManPageCpio5]], [[ManPageMtree5]], [[ManPageTar5]] diff --git a/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteHeader3.wiki b/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteHeader3.wiki index 22547ea2468..412db20eddd 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteHeader3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteHeader3.wiki @@ -15,7 +15,7 @@ Build and write a header using the data in the provided '''struct archive_entry''' structure. See -[[ManPagerchiventry3]] +[[ManPageArchiveEntry3]] for information on creating and populating '''struct archive_entry''' objects. @@ -37,8 +37,8 @@ and functions. == SEE ALSO == [[ManPageBsdtar1]], -[[ManPageibarchive3]], -[[ManPagerchiveriteetptions3]], +[[ManPageLibarchive3]], +[[ManPageArchiveWriteSetOptions3]], [[ManPageCpio5]], [[ManPageMtree5]], [[ManPageTar5]] diff --git a/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteNew3.wiki b/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteNew3.wiki index 3feb06718e5..b8c311f7012 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteNew3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteNew3.wiki @@ -20,12 +20,12 @@ is returned on error. A complete description of the '''struct archive''' object can be found in the overview manual page for -[[ManPageibarchive3]]. +[[ManPageLibarchive3]]. == SEE ALSO == [[ManPageBsdtar1]], -[[ManPageibarchive3]], -[[ManPagerchiverite3]], -[[ManPagerchiveriteetptions3]], +[[ManPageLibarchive3]], +[[ManPageArchiveWrite3]], +[[ManPageArchiveWriteSetOptions3]], [[ManPageCpio5]], [[ManPageMtree5]], [[ManPageTar5]] diff --git a/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteOpen3.wiki b/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteOpen3.wiki index 6dad34e522a..369d7554a6d 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteOpen3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteOpen3.wiki @@ -37,6 +37,7 @@ Freeze the settings, open the archive, and prepare for writing entries. This is the most generic form of this function, which accepts pointers to three callback functions which will be invoked by the compression layer to write the constructed archive. +This does not alter the default archive padding. </dd><dt>'''archive_write_open_fd'''()</dt><dd> A convenience form of '''archive_write_open'''() @@ -94,12 +95,21 @@ is currently in use. You should be careful to ensure that this variable remains allocated until after the archive is closed. +This function will disable padding unless you +have specifically set the block size. </dd></dl> More information about the ''struct'' archive object and the overall design of the library can be found in the -[[ManPageibarchive3]] +[[ManPageLibarchive3]] overview. + +Note that the convenience forms above vary in how +they block the output. +See +[[ManPageArchiveWriteBlocksize3]] +if you need to control the block size used for writes +or the end-of-file padding behavior. == CLIENT CALLBACKS == To use this library, you will need to define and register callback functions that will be invoked to write data to the @@ -186,12 +196,13 @@ and functions. == SEE ALSO == [[ManPageBsdtar1]], -[[ManPageibarchive3]], -[[ManPagerchiverite3]], -[[ManPagerchiveriteilter3]], -[[ManPagerchiveriteormat3]], -[[ManPagerchiveriteew3]], -[[ManPagerchiveriteetptions3]], +[[ManPageLibarchive3]], +[[ManPageArchiveWrite3]], +[[ManPageArchiveWriteBlocksize3]], +[[ManPageArchiveWriteFilter3]], +[[ManPageArchiveWriteFormat3]], +[[ManPageArchiveWriteNew3]], +[[ManPageArchiveWriteSetOptions3]], [[ManPageCpio5]], [[ManPageMtree5]], [[ManPageTar5]] diff --git a/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteSetOptions3.wiki b/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteSetOptions3.wiki index 7c78d80dc30..f2c60fc073e 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteSetOptions3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteSetOptions3.wiki @@ -422,9 +422,9 @@ and functions. == SEE ALSO == [[ManPageBsdtar1]], -[[ManPageibarchive3]], -[[ManPagerchiveeadetptions3]], -[[ManPagerchiverite3]] +[[ManPageLibarchive3]], +[[ManPageArchiveReadSetOptions3]], +[[ManPageArchiveWrite3]] == HISTORY == The '''libarchive''' diff --git a/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteSetPassphrase3.wiki b/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteSetPassphrase3.wiki index ec9791d8fbf..4f6a97cc846 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteSetPassphrase3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageArchiveWriteSetPassphrase3.wiki @@ -37,6 +37,6 @@ function. </dd></dl> == SEE ALSO == [[ManPageBsdtar1]], -[[ManPageibarchive3]], -[[ManPagerchiverite3]], -[[ManPagerchiveriteetptions3]] +[[ManPageLibarchive3]], +[[ManPageArchiveWrite3]], +[[ManPageArchiveWriteSetOptions3]] diff --git a/archivers/libarchive/files/doc/wiki/ManPageBsdcpio1.wiki b/archivers/libarchive/files/doc/wiki/ManPageBsdcpio1.wiki index d186bc55fe3..d5a3a2de106 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageBsdcpio1.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageBsdcpio1.wiki @@ -115,10 +115,10 @@ The POSIX.1 tar format. The default format is ''odc''. See -[[ManPageibarchiveormats5]] +[[ManPageLibarchiveFormats5]] for more complete information about the formats currently supported by the underlying -[[ManPageibarchive3]] +[[ManPageLibarchive3]] library. </dd><dt>-h, --help</dt><dd> Print usage information. @@ -365,9 +365,9 @@ standard syntax. [[gzip(1)|http://www.freebsd.org/cgi/man.cgi?query=gzip&sektion=1]], [[mt(1)|http://www.freebsd.org/cgi/man.cgi?query=mt&sektion=1]], [[pax(1)|http://www.freebsd.org/cgi/man.cgi?query=pax&sektion=1]], -[[ManPageibarchive3]], +[[ManPageLibarchive3]], [[ManPageCpio5]], -[[ManPageibarchiveormats5]], +[[ManPageLibarchiveFormats5]], [[ManPageTar5]] == STANDARDS == There is no current POSIX standard for the cpio command; it appeared @@ -397,7 +397,7 @@ actually predates even though it was not well-known outside of AT&T until some time later. This is a complete re-implementation based on the -[[ManPageibarchive3]] +[[ManPageLibarchive3]] library. == BUGS == The cpio archive format has several basic limitations: diff --git a/archivers/libarchive/files/doc/wiki/ManPageBsdtar1.wiki b/archivers/libarchive/files/doc/wiki/ManPageBsdtar1.wiki index 46cc2c063e9..e6c5260f22c 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageBsdtar1.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageBsdtar1.wiki @@ -100,7 +100,7 @@ Unless specifically stated otherwise, options are applicable in all operating modes. <dl> <dt>'''@'''''archive''</dt><dd> -(c and r mode only) +(c and r modes only) The specified archive is opened and the entries in it will be appended to the current archive. As a simple example, @@ -156,6 +156,16 @@ tar -a -jcf archive.xxx source.c source.h ``` if it is unknown suffix or no suffix, creates a new archive with restricted pax format and bzip2 compression. +</dd><dt>--acls</dt><dd> +(c, r, u, x modes only) +Archive or extract POSIX.1e or NFSv4 ACLs. This is the reverse of +--no-acls +and the default behavior in c, r, and u modes (except Mac OS X) or if +'''tar''' +is run in x mode as root. On Mac OS X this option translates extended ACLs +to NFSv4 ACLs. To store extended ACLs the +--mac-metadata +option is preferred. </dd><dt>-B, --read-full-blocks</dt><dd> Ignored for compatibility with other [[ManPageBsdtar1]] @@ -180,15 +190,18 @@ options and before extracting any files. (x mode only) Before removing file system objects to replace them, clear platform-specific file flags that might prevent removal. -</dd><dt>--disable-copyfile</dt><dd> -Mac OS X specific. -Disable the use of -[[copyfile(3)|http://www.freebsd.org/cgi/man.cgi?query=copyfile&sektion=3]]. </dd><dt>--exclude ''pattern''</dt><dd> Do not process files or directories that match the specified pattern. Note that exclusions take precedence over patterns or filenames specified on the command line. +</dd><dt>--fflags</dt><dd> +(c, r, u, x modes only) +Archive or extract file flags. This is the reverse of +--no-fflags +and the default behavior in c, r, and u modes or if +'''tar''' +is run in x mode as root. </dd><dt>--format ''format''</dt><dd> (c, r, u mode only) Use the specified format for the created archive. @@ -199,7 +212,7 @@ Supported formats include and "ustar". Other formats may also be supported; see -[[ManPageibarchiveormats5]] +[[ManPageLibarchiveFormats5]] for more information about currently-supported formats. In r and u modes, when extending an existing archive, the format specified here must be compatible with the format of the existing archive on disk. @@ -237,11 +250,11 @@ On create, this sets the group name that will be stored in the archive; the name will not be verified against the system group database. </dd><dt>-H</dt><dd> -(c and r mode only) +(c and r modes only) Symbolic links named on the command line will be followed; the target of the link will be archived, not the link itself. </dd><dt>-h</dt><dd> -(c and r mode only) +(c and r modes only) Synonym for -L. </dd><dt>-I</dt><dd> @@ -251,7 +264,8 @@ Synonym for Show usage. </dd><dt>--hfsCompression</dt><dd> (x mode only) -Mac OS X specific(v10.6 or later). Compress extracted regular files with HFS+ compression. +Mac OS X specific (v10.6 or later). Compress extracted regular files with HFS+ +compression. </dd><dt>--ignore-zeros</dt><dd> An alias of --options '''read_concatenated_archives''' @@ -304,7 +318,7 @@ later copies will not overwrite earlier copies. Do not overwrite existing files that are newer than the versions appearing in the archive being extracted. </dd><dt>-L, --dereference</dt><dd> -(c and r mode only) +(c and r modes only) All symbolic links will be followed. Normally, symbolic links are archived as such. With this option, the target of the link will be archived instead. @@ -339,6 +353,16 @@ In extract or list modes, this option is ignored. (x mode only) Do not extract modification time. By default, the modification time is set to the time stored in the archive. +</dd><dt>--mac-metadata</dt><dd> +(c, r, u and x mode only) +Mac OS X specific. Archive or extract extended ACLs and extended attributes +using +[[copyfile(3)|http://www.freebsd.org/cgi/man.cgi?query=copyfile&sektion=3]] +in AppleDouble format. This is the reverse of +--no-mac-metadata. +and the default behavior in c, r, and u modes or if +'''tar''' +is run in x mode as root. </dd><dt>-n, --norecurse, --no-recursion</dt><dd> (c, r, u modes only) Do not recursively archive the contents of directories. @@ -379,6 +403,30 @@ This is often used to read filenames output by the -print0 option to [[find(1)|http://www.freebsd.org/cgi/man.cgi?query=find&sektion=1]]. +</dd><dt>--no-acls</dt><dd> +(c, r, u, x modes only) +Do not archive or extract POSIX.1e or NFSv4 ACLs. This is the reverse of +--acls +and the default behavior if +'''tar''' +is run as non-root in x mode (on Mac OS X also in c, r and u modes). +</dd><dt>--no-fflags</dt><dd> +(c, r, u, x modes only) +Do not archive or extract file flags. This is the reverse of +--fflags +and the default behavior if +'''tar''' +is run as non-root in x mode. +</dd><dt>--no-mac-metadata</dt><dd> +(x mode only) +Mac OS X specific. Do not archive or extract ACLs and extended attributes using +[[copyfile(3)|http://www.freebsd.org/cgi/man.cgi?query=copyfile&sektion=3]] +in AppleDouble format. This is the reverse of +--mac-metadata. +and the default behavior if +'''tar''' +is run as non-root in x mode. +</dd><dt>-n, --norecurse, --no-recursion</dt><dd> </dd><dt>--no-same-owner</dt><dd> (x mode only) Do not extract owner and group IDs. @@ -395,7 +443,21 @@ This is the reverse of -p and the default behavior if '''tar''' -is run as non-root. +is run as non-root and can be overridden by also specifying +--acls, +--fflags, +--mac-metadata, +--same-owner, +--same-permissions +and +--xattrs. +</dd><dt>--no-xattrs</dt><dd> +(c, r, u, x modes only) +Do not archive or extract extended attributes. This is the reverse of +--xattrs +and the default behavior if +'''tar''' +is run as non-root in x mode. </dd><dt>--numeric-owner</dt><dd> This is equivalent to --uname @@ -577,14 +639,18 @@ This option suppresses these behaviors. </dd><dt>-p, --insecure, --preserve-permissions</dt><dd> (x mode only) Preserve file permissions. -Attempt to restore the full permissions, including owner, file modes, file -flags and ACLs, if available, for each item extracted from the archive. -This is the default, if +Attempt to restore the full permissions, including owner, file modes, ACLs, +extended atributes and extended file flags, if available, for each item +extracted from the archive. This is the default, if '''tar''' is being run by root and can be overridden by also specifying ---no-same-owner +--no-acls, +--no-fflags, +--no-mac-metadata, +--no-same-owner, +--no-same-permissions and ---no-same-permissions. +--no-xattrs. </dd><dt>--passphrase ''passphrase''</dt><dd> The ''passphrase'' @@ -686,7 +752,7 @@ you probably want to use -n as well. </dd><dt>--totals</dt><dd> -(c, r, u mode only) +(c, r, u modes only) After archiving all files, print a summary to stderr. </dd><dt>-U, --unlink, --unlink-first</dt><dd> (x mode only) @@ -748,6 +814,13 @@ Read a list of exclusion patterns from the specified file. See --exclude for more information about the handling of exclusions. +</dd><dt>--xattrs</dt><dd> +(c, r, u, x modes only) +Archive or extract extended attributes. This is the reverse of +--no-xattrs +and the default behavior in c, r, and u modes or if +'''tar''' +is run in x mode as root. </dd><dt>-y</dt><dd> (c mode only) Compress the resulting archive with @@ -920,9 +993,9 @@ For more details, see the explanation of the and '''archive_write_set_options'''() API calls that are described in -[[ManPagerchiveead3]] +[[ManPageArchiveRead3]] and -[[ManPagerchiverite3]]. +[[ManPageArchiveWrite3]]. == COMPATIBILITY == The bundled-arguments format is supported for compatibility with historic implementations. @@ -1065,8 +1138,8 @@ components, or symlinks to other directories. [[pax(1)|http://www.freebsd.org/cgi/man.cgi?query=pax&sektion=1]], [[shar(1)|http://www.freebsd.org/cgi/man.cgi?query=shar&sektion=1]], [[xz(1)|http://www.freebsd.org/cgi/man.cgi?query=xz&sektion=1]], -[[ManPageibarchive3]], -[[ManPageibarchiveormats5]], +[[ManPageLibarchive3]], +[[ManPageLibarchiveFormats5]], [[ManPageTar5]] == STANDARDS == There is no current POSIX standard for the tar command; it appeared @@ -1098,7 +1171,7 @@ beginning with FreeBSD 1.0. This is a complete re-implementation based on the -[[ManPageibarchive3]] +[[ManPageLibarchive3]] library. It was first released with FreeBSD 5.4 diff --git a/archivers/libarchive/files/doc/wiki/ManPageLibarchive3.wiki b/archivers/libarchive/files/doc/wiki/ManPageLibarchive3.wiki index 2d7ae34b925..3cb828b9443 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageLibarchive3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageLibarchive3.wiki @@ -117,19 +117,19 @@ More detailed information can be found in the individual manual pages for each API or utility function. == READING AN ARCHIVE == See -[[ManPagerchiveead3]]. +[[ManPageArchiveRead3]]. == WRITING AN ARCHIVE == See -[[ManPagerchiverite3]]. +[[ManPageArchiveWrite3]]. == WRITING ENTRIES TO DISK == The -[[ManPagerchiveriteisk3]] +[[ManPageArchiveWriteDisk3]] API allows you to write -[[ManPagerchiventry3]] +[[ManPageArchiveEntry3]] objects to disk using the same API used by -[[ManPagerchiverite3]]. +[[ManPageArchiveWrite3]]. The -[[ManPagerchiveriteisk3]] +[[ManPageArchiveWriteDisk3]] API is used internally by '''archive_read_extract'''('';'') using it directly can provide greater control over how entries @@ -139,21 +139,21 @@ archive-to-archive copy and archive-to-disk extraction operations. == READING ENTRIES FROM DISK == The -[[ManPagerchiveeadisk3]] +[[ManPageArchiveReadDisk3]] supports for populating -[[ManPagerchiventry3]] +[[ManPageArchiveEntry3]] objects from information in the filesystem. This includes the information accessible from the [[stat(2)|http://www.freebsd.org/cgi/man.cgi?query=stat&sektion=2]] system call as well as ACLs, extended attributes, and other metadata. The -[[ManPagerchiveeadisk3]] +[[ManPageArchiveReadDisk3]] API also supports iterating over directory trees, which allows directories of files to be read using an API compatible with the -[[ManPagerchiveead3]] +[[ManPageArchiveRead3]] API. == DESCRIPTION == Detailed descriptions of each function are provided by the @@ -168,7 +168,7 @@ The structure contains a complete description of a single archive entry. It uses an opaque interface that is fully documented in -[[ManPagerchiventry3]]. +[[ManPageArchiveEntry3]]. Users familiar with historic formats should be aware that the newer variants have eliminated most restrictions on the length of textual fields. @@ -216,14 +216,14 @@ and functions can be used to obtain more information. == ENVIRONMENT == There are character set conversions within the -[[ManPagerchiventry3]] +[[ManPageArchiveEntry3]] functions that are impacted by the currently-selected locale. == SEE ALSO == [[ManPageBsdtar1]], -[[ManPagerchiventry3]], -[[ManPagerchiveead3]], -[[ManPagerchivetil3]], -[[ManPagerchiverite3]], +[[ManPageArchiveEntry3]], +[[ManPageArchiveRead3]], +[[ManPageArchiveUtil3]], +[[ManPageArchiveWrite3]], [[ManPageTar5]] == HISTORY == The diff --git a/archivers/libarchive/files/doc/wiki/ManPageLibarchiveChanges3.wiki b/archivers/libarchive/files/doc/wiki/ManPageLibarchiveChanges3.wiki index 40e411d47fd..8893b8ba8db 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageLibarchiveChanges3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageLibarchiveChanges3.wiki @@ -291,13 +291,13 @@ ARCHIVE_DEFAULT_BYTES_PER_BLOCK ``` </dd></dl> == SEE ALSO == -[[ManPageibarchive3]], -[[ManPagerchiveead3]], -[[ManPagerchiveeadilter3]], -[[ManPagerchiveeadormat3]], -[[ManPagerchiveeadetptions3]], -[[ManPagerchiverite3]], -[[ManPagerchiveriteilter3]], -[[ManPagerchiveriteormat3]], -[[ManPagerchiveriteetptions3]], -[[ManPagerchivetil3]] +[[ManPageLibarchive3]], +[[ManPageArchiveRead3]], +[[ManPageArchiveReadFilter3]], +[[ManPageArchiveReadFormat3]], +[[ManPageArchiveReadSetOptions3]], +[[ManPageArchiveWrite3]], +[[ManPageArchiveWriteFilter3]], +[[ManPageArchiveWriteFormat3]], +[[ManPageArchiveWriteSetOptions3]], +[[ManPageArchiveUtil3]] diff --git a/archivers/libarchive/files/doc/wiki/ManPageLibarchiveFormats5.wiki b/archivers/libarchive/files/doc/wiki/ManPageLibarchiveFormats5.wiki index e0cbe5fb11f..54663b2094d 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageLibarchiveFormats5.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageLibarchiveFormats5.wiki @@ -4,7 +4,7 @@ LIBARCHIVE-FORMATS(5) manual page - archive formats supported by the libarchive library == DESCRIPTION == The -[[ManPageibarchive3]] +[[ManPageLibarchive3]] library reads and writes a variety of streaming archive formats. Generally speaking, all of these archive formats consist of a series of "entries". @@ -21,7 +21,7 @@ to support, though many programs do use libarchive convenience functions to enable all supported formats. === Tar Formats=== The -[[ManPageibarchive3]] +[[ManPageLibarchive3]] library can read most tar archives. It can write POSIX-standard "ustar" @@ -40,7 +40,7 @@ subsequent entries. <dl> <dt>'''gnutar'''</dt><dd> The -[[ManPageibarchive3]] +[[ManPageLibarchive3]] library can read most GNU-format tar archives. It currently supports the most popular GNU extensions, including modern long filename and linkname support, as well as atime and ctime data. @@ -50,12 +50,12 @@ It can read GNU sparse file entries, including the new POSIX-based formats. The -[[ManPageibarchive3]] +[[ManPageLibarchive3]] library can write GNU tar format, including long filename and linkname support, as well as atime and ctime data. </dd><dt>'''pax'''</dt><dd> The -[[ManPageibarchive3]] +[[ManPageLibarchive3]] library can read and write POSIX-compliant pax interchange format archives. Pax interchange format archives are an extension of the older ustar @@ -163,8 +163,6 @@ and device numbers. </dd><dt>Solaris extensions</dt><dd> Libarchive recognizes ACL and extended attribute records written by Solaris tar. -Currently, libarchive only has support for old-style ACLs; the -newer NFSv4 ACLs are recognized but discarded. </dd></dl> The first tar program appeared in Seventh Edition Unix in 1979. @@ -381,7 +379,7 @@ although many of the keywords cannot currently be stored in an '''archive_entry''' object. When writing, libarchive supports use of the -[[ManPagerchiveriteetptions3]] +[[ManPageArchiveWriteSetOptions3]] interface to specify which keywords should be included in the output. If libarchive was compiled with access to suitable diff --git a/archivers/libarchive/files/doc/wiki/ManPageLibarchiveInternals3.wiki b/archivers/libarchive/files/doc/wiki/ManPageLibarchiveInternals3.wiki index a980ba4ce33..c7841683462 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageLibarchiveInternals3.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageLibarchiveInternals3.wiki @@ -13,15 +13,15 @@ make it easy to add new archive and compression formats. Externally, libarchive exposes most operations through an opaque, object-style interface. The -[[ManPagerchiventry3]] +[[ManPageArchiveEntry3]] objects store information about a single filesystem object. The rest of the library provides facilities to write -[[ManPagerchiventry3]] +[[ManPageArchiveEntry3]] objects to archive files, read them from archive files, and write them to disk. (There are plans to add a facility to read -[[ManPagerchiventry3]] +[[ManPageArchiveEntry3]] objects from disk as well.) The read and write APIs each have four layers: a public API @@ -37,7 +37,7 @@ an archive or disk writer, and then use a single set of code to select and write entries, regardless of the target. == READ ARCHITECTURE == From the outside, clients use the -[[ManPagerchiveead3]] +[[ManPageArchiveRead3]] API to manipulate an '''archive''' object to read entries and bodies from an archive stream. @@ -50,9 +50,9 @@ The API has four layers: The lowest layer is the I/O layer. This layer can be overridden by clients, but most clients use the packaged I/O callbacks provided, for example, by -[[ManPagerchiveeadpenemory3]], +[[ManPageArchiveReadOpenMemory3]], and -[[ManPagerchiveeadpend3]]. +[[ManPageArchiveReadOpenFd3]]. The compression layer calls the I/O layer to read bytes and decompresses them for the format layer. The format layer unpacks a stream of uncompressed bytes and @@ -319,11 +319,11 @@ Fortunately, such archives are very rare, and libarchive can read most ZIP archives, though it cannot always extract as much information as a dedicated ZIP program. == SEE ALSO == -[[ManPagerchiventry3]], -[[ManPagerchiveead3]], -[[ManPagerchiverite3]], -[[ManPagerchiveriteisk3]] -[[ManPageibarchive3]], +[[ManPageArchiveEntry3]], +[[ManPageArchiveRead3]], +[[ManPageArchiveWrite3]], +[[ManPageArchiveWriteDisk3]] +[[ManPageLibarchive3]], == HISTORY == The '''libarchive''' diff --git a/archivers/libarchive/files/doc/wiki/ManPageTar5.wiki b/archivers/libarchive/files/doc/wiki/ManPageTar5.wiki index ce3d208ce7e..249152dbadf 100644 --- a/archivers/libarchive/files/doc/wiki/ManPageTar5.wiki +++ b/archivers/libarchive/files/doc/wiki/ManPageTar5.wiki @@ -414,11 +414,11 @@ archives to store files much larger than the historic 8GB limit. Vendor-specific attributes used by Joerg Schilling's '''star''' implementation. -</dd><dt>'''SCHILY.acl.access''', '''SCHILY.acl.default'''</dt><dd> -Stores the access and default ACLs as textual strings in a format +</dd><dt>'''SCHILY.acl.access''', '''SCHILY.acl.default,''' '''SCHILY.acl.ace'''</dt><dd> +Stores the access, default and NFSv4 ACLs as textual strings in a format that is an extension of the format specified by POSIX.1e draft 17. -In particular, each user or group access specification can include a fourth -colon-separated field with the numeric UID or GID. +In particular, each user or group access specification can include +an additional colon-separated field with the numeric UID or GID. This allows ACLs to be restored on systems that may not have complete user or group information available (such as when NIS/YP or LDAP services are temporarily unavailable). |