Blame doc/text/archive_read_set_options.3.txt

Packit 08bd4c
ARCHIVE_READ_OPTIONS(3)  BSD Library Functions Manual  ARCHIVE_READ_OPTIONS(3)
Packit 08bd4c
Packit 08bd4c
NAME
Packit 08bd4c
     archive_read_set_filter_option, archive_read_set_format_option,
Packit 08bd4c
     archive_read_set_option, archive_read_set_options — functions controlling
Packit 08bd4c
     options for reading archives
Packit 08bd4c
Packit 08bd4c
LIBRARY
Packit 08bd4c
     Streaming Archive Library (libarchive, -larchive)
Packit 08bd4c
Packit 08bd4c
SYNOPSIS
Packit 08bd4c
     int
Packit 08bd4c
     archive_read_set_filter_option(struct archive *, const char *module,
Packit 08bd4c
	 const char *option, const char *value);
Packit 08bd4c
Packit 08bd4c
     int
Packit 08bd4c
     archive_read_set_format_option(struct archive *, const char *module,
Packit 08bd4c
	 const char *option, const char *value);
Packit 08bd4c
Packit 08bd4c
     int
Packit 08bd4c
     archive_read_set_option(struct archive *, const char *module,
Packit 08bd4c
	 const char *option, const char *value);
Packit 08bd4c
Packit 08bd4c
     int
Packit 08bd4c
     archive_read_set_options(struct archive *, const char *options);
Packit 08bd4c
Packit 08bd4c
DESCRIPTION
Packit 08bd4c
     These functions provide a way for libarchive clients to configure spe‐
Packit 08bd4c
     cific read modules.
Packit 08bd4c
Packit 08bd4c
     archive_read_set_filter_option(), archive_read_set_format_option()
Packit 08bd4c
	     Specifies an option that will be passed to currently-registered
Packit 08bd4c
	     filters (including decompression filters) or format readers.
Packit 08bd4c
Packit 08bd4c
	     If option and value are both NULL, these functions will do noth‐
Packit 08bd4c
	     ing and ARCHIVE_OK will be returned.  If option is NULL but value
Packit 08bd4c
	     is not, these functions will do nothing and ARCHIVE_FAILED will
Packit 08bd4c
	     be returned.
Packit 08bd4c
Packit 08bd4c
	     If module is not NULL, option and value will be provided to the
Packit 08bd4c
	     filter or reader named module.  The return value will be that of
Packit 08bd4c
	     the module.  If there is no such module, ARCHIVE_FAILED will be
Packit 08bd4c
	     returned.
Packit 08bd4c
Packit 08bd4c
	     If module is NULL, option and value will be provided to every
Packit 08bd4c
	     registered module.  If any module returns ARCHIVE_FATAL, this
Packit 08bd4c
	     value will be returned immediately.  Otherwise, ARCHIVE_OK will
Packit 08bd4c
	     be returned if any module accepts the option, and ARCHIVE_FAILED
Packit 08bd4c
	     in all other cases.
Packit 08bd4c
Packit 08bd4c
     archive_read_set_option()
Packit 08bd4c
	     Calls archive_read_set_format_option(), then
Packit 08bd4c
	     archive_read_set_filter_option().	If either function returns
Packit 08bd4c
	     ARCHIVE_FATAL, ARCHIVE_FATAL will be returned immediately.  Oth‐
Packit 08bd4c
	     erwise, greater of the two values will be returned.
Packit 08bd4c
Packit 08bd4c
     archive_read_set_options()
Packit 08bd4c
	     options is a comma-separated list of options.  If options is NULL
Packit 08bd4c
	     or empty, ARCHIVE_OK will be returned immediately.
Packit 08bd4c
Packit 08bd4c
	     Calls archive_read_set_option() with each option in turn.	If any
Packit 08bd4c
	     archive_read_set_option() call returns ARCHIVE_FATAL,
Packit 08bd4c
	     ARCHIVE_FATAL will be returned immediately.
Packit 08bd4c
Packit 08bd4c
	     Individual options have one of the following forms:
Packit 08bd4c
	     option=value
Packit 08bd4c
		     The option/value pair will be provided to every module.
Packit 08bd4c
		     Modules that do not accept an option with this name will
Packit 08bd4c
		     ignore it.
Packit 08bd4c
	     option  The option will be provided to every module with a value
Packit 08bd4c
		     of “1”.
Packit 08bd4c
	     !option
Packit 08bd4c
		     The option will be provided to every module with a NULL
Packit 08bd4c
		     value.
Packit 08bd4c
	     module:option=value, module:option, module:!option
Packit 08bd4c
		     As above, but the corresponding option and value will be
Packit 08bd4c
		     provided only to modules whose name matches module.
Packit 08bd4c
Packit 08bd4c
OPTIONS
Packit 08bd4c
     Format iso9660
Packit 08bd4c
	     joliet  Support Joliet extensions.  Defaults to enabled, use
Packit 08bd4c
		     !joliet to disable.
Packit 08bd4c
	     rockridge
Packit 08bd4c
		     Support RockRidge extensions.  Defaults to enabled, use
Packit 08bd4c
		     !rockridge to disable.
Packit 08bd4c
     Format tar
Packit 08bd4c
	     compat-2x
Packit 08bd4c
		     Libarchive 2.x incorrectly encoded Unicode filenames on
Packit 08bd4c
		     some platforms.  This option mimics the libarchive 2.x
Packit 08bd4c
		     filename handling so that such archives can be read cor‐
Packit 08bd4c
		     rectly.
Packit 08bd4c
	     hdrcharset
Packit 08bd4c
		     The value is used as a character set name that will be
Packit 08bd4c
		     used when translating filenames.
Packit 08bd4c
	     mac-ext
Packit 08bd4c
		     Support Mac OS metadata extension that records data in
Packit 08bd4c
		     special files beginning with a period and underscore.
Packit 08bd4c
		     Defaults to enabled on Mac OS, disabled on other plat‐
Packit 08bd4c
		     forms.  Use !mac-ext to disable.
Packit 08bd4c
	     read_concatenated_archives
Packit 08bd4c
		     Ignore zeroed blocks in the archive, which occurs when
Packit 08bd4c
		     multiple tar archives have been concatenated together.
Packit 08bd4c
		     Without this option, only the contents of the first con‐
Packit 08bd4c
		     catenated archive would be read.
Packit 08bd4c
Packit 08bd4c
ERRORS
Packit 08bd4c
     Detailed error codes and textual descriptions are available from the
Packit 08bd4c
     archive_errno() and archive_error_string() functions.
Packit 08bd4c
Packit 08bd4c
SEE ALSO
Packit 08bd4c
     tar(1), libarchive(3), archive_write_set_options(3), archive_read(3)
Packit 08bd4c
Packit 08bd4c
BSD			       February 2, 2012 			   BSD