- ..
- archive_entry.3
- archive_entry_acl.3
- archive_entry_linkify.3
- archive_entry_misc.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
- ares_cancel.3
- ares_create_query.3
- ares_destroy.3
- ares_destroy_options.3
- ares_dup.3
- ares_expand_name.3
- ares_expand_string.3
- ares_fds.3
- ares_free_data.3
- ares_free_hostent.3
- ares_free_string.3
- ares_freeaddrinfo.3
- ares_get_servers.3
- ares_get_servers_ports.3
- ares_getaddrinfo.3
- ares_gethostbyaddr.3
- ares_gethostbyname.3
- ares_gethostbyname_file.3
- ares_getnameinfo.3
- ares_getsock.3
- ares_inet_ntop.3
- ares_inet_pton.3
- ares_init.3
- ares_init_options.3
- ares_library_cleanup.3
- ares_library_init.3
- ares_library_init_android.3
- ares_library_initialized.3
- ares_mkquery.3
- ares_parse_a_reply.3
- ares_parse_aaaa_reply.3
- ares_parse_caa_reply.3
- ares_parse_mx_reply.3
- ares_parse_naptr_reply.3
- ares_parse_ns_reply.3
- ares_parse_ptr_reply.3
- ares_parse_soa_reply.3
- ares_parse_srv_reply.3
- ares_parse_txt_reply.3
- ares_parse_uri_reply.3
- ares_process.3
- ares_query.3
- ares_save_options.3
- ares_search.3
- ares_send.3
- ares_set_local_dev.3
- ares_set_local_ip4.3
- ares_set_local_ip6.3
- ares_set_servers.3
- ares_set_servers_csv.3
- ares_set_servers_ports.3
- ares_set_servers_ports_csv.3
- ares_set_socket_callback.3
- ares_set_socket_configure_callback.3
- ares_set_socket_functions.3
- ares_set_sortlist.3
- ares_strerror.3
- ares_timeout.3
- ares_version.3
- editline.3
- el_deletestr.3
- el_end.3
- el_get.3
- el_getc.3
- el_gets.3
- el_init.3
- el_init_fd.3
- el_insertstr.3
- el_line.3
- el_parse.3
- el_push.3
- el_reset.3
- el_resize.3
- el_set.3
- el_source.3
- el_wdeletestr.3
- el_wget.3
- el_wgetc.3
- el_wgets.3
- el_winsertstr.3
- el_wline.3
- el_wparse.3
- el_wpush.3
- el_wset.3
- ev.3
- ffi.3
- ffi_call.3
- ffi_prep_cif.3
- ffi_prep_cif_var.3
- history.3
- history_end.3
- history_init.3
- history_w.3
- history_wend.3
- history_winit.3
- libarchive.3
- libarchive_changes.3
- libarchive_internals.3
- libsolv-bindings.3
- libsolv-constantids.3
- libsolv-history.3
- libsolv-pool.3
- libsolv.3
- libssh2_agent_connect.3
- libssh2_agent_disconnect.3
- libssh2_agent_free.3
- libssh2_agent_get_identity.3
- libssh2_agent_get_identity_path.3
- libssh2_agent_init.3
- libssh2_agent_list_identities.3
- libssh2_agent_set_identity_path.3
- libssh2_agent_userauth.3
- libssh2_banner_set.3
- libssh2_base64_decode.3
- libssh2_channel_close.3
- libssh2_channel_direct_tcpip.3
- libssh2_channel_direct_tcpip_ex.3
- libssh2_channel_eof.3
- libssh2_channel_exec.3
- libssh2_channel_flush.3
- libssh2_channel_flush_ex.3
- libssh2_channel_flush_stderr.3
- libssh2_channel_forward_accept.3
- libssh2_channel_forward_cancel.3
- libssh2_channel_forward_listen.3
- libssh2_channel_forward_listen_ex.3
- libssh2_channel_free.3
- libssh2_channel_get_exit_signal.3
- libssh2_channel_get_exit_status.3
- libssh2_channel_handle_extended_data.3
- libssh2_channel_handle_extended_data2.3
- libssh2_channel_ignore_extended_data.3
- libssh2_channel_open_ex.3
- libssh2_channel_open_session.3
- libssh2_channel_process_startup.3
- libssh2_channel_read.3
- libssh2_channel_read_ex.3
- libssh2_channel_read_stderr.3
- libssh2_channel_receive_window_adjust.3
- libssh2_channel_receive_window_adjust2.3
- libssh2_channel_request_pty.3
- libssh2_channel_request_pty_ex.3
- libssh2_channel_request_pty_size.3
- libssh2_channel_request_pty_size_ex.3
- libssh2_channel_send_eof.3
- libssh2_channel_set_blocking.3
- libssh2_channel_setenv.3
- libssh2_channel_setenv_ex.3
- libssh2_channel_shell.3
- libssh2_channel_subsystem.3
- libssh2_channel_wait_closed.3
- libssh2_channel_wait_eof.3
- libssh2_channel_window_read.3
- libssh2_channel_window_read_ex.3
- libssh2_channel_window_write.3
- libssh2_channel_window_write_ex.3
- libssh2_channel_write.3
- libssh2_channel_write_ex.3
- libssh2_channel_write_stderr.3
- libssh2_channel_x11_req.3
- libssh2_channel_x11_req_ex.3
- libssh2_exit.3
- libssh2_free.3
- libssh2_hostkey_hash.3
- libssh2_init.3
- libssh2_keepalive_config.3
- libssh2_keepalive_send.3
- libssh2_knownhost_add.3
- libssh2_knownhost_addc.3
- libssh2_knownhost_check.3
- libssh2_knownhost_checkp.3
- libssh2_knownhost_del.3
- libssh2_knownhost_free.3
- libssh2_knownhost_get.3
- libssh2_knownhost_init.3
- libssh2_knownhost_readfile.3
- libssh2_knownhost_readline.3
- libssh2_knownhost_writefile.3
- libssh2_knownhost_writeline.3
- libssh2_poll.3
- libssh2_poll_channel_read.3
- libssh2_publickey_add.3
- libssh2_publickey_add_ex.3
- libssh2_publickey_init.3
- libssh2_publickey_list_fetch.3
- libssh2_publickey_list_free.3
- libssh2_publickey_remove.3
- libssh2_publickey_remove_ex.3
- libssh2_publickey_shutdown.3
- libssh2_scp_recv.3
- libssh2_scp_recv2.3
- libssh2_scp_send.3
- libssh2_scp_send64.3
- libssh2_scp_send_ex.3
- libssh2_session_abstract.3
- libssh2_session_banner_get.3
- libssh2_session_banner_set.3
- libssh2_session_block_directions.3
- libssh2_session_callback_set.3
- libssh2_session_disconnect.3
- libssh2_session_disconnect_ex.3
- libssh2_session_flag.3
- libssh2_session_free.3
- libssh2_session_get_blocking.3
- libssh2_session_get_timeout.3
- libssh2_session_handshake.3
- libssh2_session_hostkey.3
- libssh2_session_init.3
- libssh2_session_init_ex.3
- libssh2_session_last_errno.3
- libssh2_session_last_error.3
- libssh2_session_method_pref.3
- libssh2_session_methods.3
- libssh2_session_set_blocking.3
- libssh2_session_set_last_error.3
- libssh2_session_set_timeout.3
- libssh2_session_startup.3
- libssh2_session_supported_algs.3
- libssh2_sftp_close.3
- libssh2_sftp_close_handle.3
- libssh2_sftp_closedir.3
- libssh2_sftp_fsetstat.3
- libssh2_sftp_fstat.3
- libssh2_sftp_fstat_ex.3
- libssh2_sftp_fstatvfs.3
- libssh2_sftp_fsync.3
- libssh2_sftp_get_channel.3
- libssh2_sftp_init.3
- libssh2_sftp_last_error.3
- libssh2_sftp_lstat.3
- libssh2_sftp_mkdir.3
- libssh2_sftp_mkdir_ex.3
- libssh2_sftp_open.3
- libssh2_sftp_open_ex.3
- libssh2_sftp_opendir.3
- libssh2_sftp_read.3
- libssh2_sftp_readdir.3
- libssh2_sftp_readdir_ex.3
- libssh2_sftp_readlink.3
- libssh2_sftp_realpath.3
- libssh2_sftp_rename.3
- libssh2_sftp_rename_ex.3
- libssh2_sftp_rewind.3
- libssh2_sftp_rmdir.3
- libssh2_sftp_rmdir_ex.3
- libssh2_sftp_seek.3
- libssh2_sftp_seek64.3
- libssh2_sftp_setstat.3
- libssh2_sftp_shutdown.3
- libssh2_sftp_stat.3
- libssh2_sftp_stat_ex.3
- libssh2_sftp_statvfs.3
- libssh2_sftp_symlink.3
- libssh2_sftp_symlink_ex.3
- libssh2_sftp_tell.3
- libssh2_sftp_tell64.3
- libssh2_sftp_unlink.3
- libssh2_sftp_unlink_ex.3
- libssh2_sftp_write.3
- libssh2_trace.3
- libssh2_trace_sethandler.3
- libssh2_userauth_authenticated.3
- libssh2_userauth_hostbased_fromfile.3
- libssh2_userauth_hostbased_fromfile_ex.3
- libssh2_userauth_keyboard_interactive.3
- libssh2_userauth_keyboard_interactive_ex.3
- libssh2_userauth_list.3
- libssh2_userauth_password.3
- libssh2_userauth_password_ex.3
- libssh2_userauth_publickey.3
- libssh2_userauth_publickey_fromfile.3
- libssh2_userauth_publickey_fromfile_ex.3
- libssh2_userauth_publickey_frommemory.3
- libssh2_version.3
- readline.3
- tok_end.3
- tok_init.3
- tok_line.3
- tok_reset.3
- tok_str.3
- tok_wend.3
- tok_winit.3
- tok_wline.3
- tok_wreset.3
- tok_wstr.3
archive_read_set_options.3 @a8e0244 — raw · history · blame
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 | .\" Copyright (c) 2011 Tim Kientzle
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" $FreeBSD$
.\"
.Dd January 31, 2020
.Dt ARCHIVE_READ_OPTIONS 3
.Os
.Sh NAME
.Nm archive_read_set_filter_option ,
.Nm archive_read_set_format_option ,
.Nm archive_read_set_option ,
.Nm archive_read_set_options
.Nd functions controlling options for reading archives
.\"
.Sh LIBRARY
Streaming Archive Library (libarchive, -larchive)
.Sh SYNOPSIS
.Ft int
.Fo archive_read_set_filter_option
.Fa "struct archive *"
.Fa "const char *module"
.Fa "const char *option"
.Fa "const char *value"
.Fc
.Ft int
.Fo archive_read_set_format_option
.Fa "struct archive *"
.Fa "const char *module"
.Fa "const char *option"
.Fa "const char *value"
.Fc
.Ft int
.Fo archive_read_set_option
.Fa "struct archive *"
.Fa "const char *module"
.Fa "const char *option"
.Fa "const char *value"
.Fc
.Ft int
.Fo archive_read_set_options
.Fa "struct archive *"
.Fa "const char *options"
.Fc
.Sh DESCRIPTION
These functions provide a way for libarchive clients to configure
specific read modules.
.Bl -tag -width indent
.It Xo
.Fn archive_read_set_filter_option ,
.Fn archive_read_set_format_option
.Xc
Specifies an option that will be passed to currently-registered
filters (including decompression filters) or format readers.
.Pp
If
.Ar option
and
.Ar value
are both
.Dv NULL ,
these functions will do nothing and
.Cm ARCHIVE_OK
will be returned.
If
.Ar option
is
.Dv NULL
but
.Ar value
is not, these functions will do nothing and
.Cm ARCHIVE_FAILED
will be returned.
.Pp
If
.Ar module
is not
.Dv NULL ,
.Ar option
and
.Ar value
will be provided to the filter or reader named
.Ar module .
The return value will be that of the module.
If there is no such module,
.Cm ARCHIVE_FAILED
will be returned.
.Pp
If
.Ar module
is
.Dv NULL ,
.Ar option
and
.Ar value
will be provided to every registered module.
If any module returns
.Cm ARCHIVE_FATAL ,
this value will be returned immediately.
Otherwise,
.Cm ARCHIVE_OK
will be returned if any module accepts the option, and
.Cm ARCHIVE_FAILED
in all other cases.
.\"
.It Xo
.Fn archive_read_set_option
.Xc
Calls
.Fn archive_read_set_format_option ,
then
.Fn archive_read_set_filter_option .
If either function returns
.Cm ARCHIVE_FATAL ,
.Cm ARCHIVE_FATAL
will be returned
immediately.
Otherwise, greater of the two values will be returned.
.\"
.It Xo
.Fn archive_read_set_options
.Xc
.Ar options
is a comma-separated list of options.
If
.Ar options
is
.Dv NULL
or empty,
.Cm ARCHIVE_OK
will be returned immediately.
.Pp
Calls
.Fn archive_read_set_option
with each option in turn.
If any
.Fn archive_read_set_option
call returns
.Cm ARCHIVE_FATAL ,
.Cm ARCHIVE_FATAL
will be returned immediately.
.Pp
Individual options have one of the following forms:
.Bl -tag -compact -width indent
.It Ar option=value
The option/value pair will be provided to every module.
Modules that do not accept an option with this name will ignore it.
.It Ar option
The option will be provided to every module with a value of
.Dq 1 .
.It Ar !option
The option will be provided to every module with a NULL value.
.It Ar module:option=value , Ar module:option , Ar module:!option
As above, but the corresponding option and value will be provided
only to modules whose name matches
.Ar module .
.El
.El
.\"
.Sh OPTIONS
.Bl -tag -compact -width indent
.It Format cab
.Bl -tag -compact -width indent
.It Cm hdrcharset
The value is used as a character set name that will be
used when translating file names.
.El
.It Format cpio
.Bl -tag -compact -width indent
.It Cm compat-2x
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 correctly.
.It Cm hdrcharset
The value is used as a character set name that will be
used when translating file names.
.It Cm pwb
When reading a binary CPIO archive, assume that it is
in the original PWB cpio format, and handle file mode
bits accordingly. The default is to assume v7 format.
.El
.It Format iso9660
.Bl -tag -compact -width indent
.It Cm joliet
Support Joliet extensions.
Defaults to enabled, use
.Cm !joliet
to disable.
.It Cm rockridge
Support RockRidge extensions.
Defaults to enabled, use
.Cm !rockridge
to disable.
.El
.It Format lha
.Bl -tag -compact -width indent
.It Cm hdrcharset
The value is used as a character set name that will be
used when translating file names.
.El
.It Format mtree
.Bl -tag -compact -width indent
.It Cm checkfs
Allow reading information missing from the mtree from the file system.
Disabled by default.
.El
.It Format rar
.Bl -tag -compact -width indent
.It Cm hdrcharset
The value is used as a character set name that will be
used when translating file names.
.El
.It Format tar
.Bl -tag -compact -width indent
.It Cm compat-2x
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 correctly.
.It Cm hdrcharset
The value is used as a character set name that will be
used when translating file names.
.It Cm mac-ext
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 platforms.
Use
.Cm !mac-ext
to disable.
.It Cm read_concatenated_archives
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 concatenated archive would be read.
.El
.El
.\"
.Sh ERRORS
Detailed error codes and textual descriptions are available from the
.Fn archive_errno
and
.Fn archive_error_string
functions.
.\"
.Sh SEE ALSO
.Xr tar 1 ,
.Xr archive_read 3 ,
.Xr archive_write_set_options 3 ,
.Xr libarchive 3
|