'\" te .TH ARCHIVE_READ_OPTIONS 3 "February 2, 2012" "" .SH NAME .ad l \fB\%archive_read_set_filter_option\fP, \fB\%archive_read_set_format_option\fP, \fB\%archive_read_set_option\fP, \fB\%archive_read_set_options\fP \- functions controlling options for reading archives .SH LIBRARY .ad l Streaming Archive Library (libarchive, -larchive) .SH SYNOPSIS .ad l .br \fIint\fP .br \fB\%archive_read_set_filter_option\fP(\fI\%struct\ archive\ *\fP, \fI\%const\ char\ *module\fP, \fI\%const\ char\ *option\fP, \fI\%const\ char\ *value\fP); .br \fIint\fP .br \fB\%archive_read_set_format_option\fP(\fI\%struct\ archive\ *\fP, \fI\%const\ char\ *module\fP, \fI\%const\ char\ *option\fP, \fI\%const\ char\ *value\fP); .br \fIint\fP .br \fB\%archive_read_set_option\fP(\fI\%struct\ archive\ *\fP, \fI\%const\ char\ *module\fP, \fI\%const\ char\ *option\fP, \fI\%const\ char\ *value\fP); .br \fIint\fP .br \fB\%archive_read_set_options\fP(\fI\%struct\ archive\ *\fP, \fI\%const\ char\ *options\fP); .SH DESCRIPTION .ad l These functions provide a way for libarchive clients to configure specific read modules. .RS 5 .TP \fB\%archive_read_set_filter_option\fP(), \fB\%archive_read_set_format_option\fP() Specifies an option that will be passed to currently-registered filters (including decompression filters) or format readers. .PP If \fIoption\fP and \fIvalue\fP are both .BR NULL, these functions will do nothing and \fBARCHIVE_OK\fP will be returned. If \fIoption\fP is .BR NULL but \fIvalue\fP is not, these functions will do nothing and \fBARCHIVE_FAILED\fP will be returned. .PP If \fImodule\fP is not .BR NULL, \fIoption\fP and \fIvalue\fP will be provided to the filter or reader named \fImodule\fP. The return value will be that of the module. If there is no such module, \fBARCHIVE_FAILED\fP will be returned. .PP If \fImodule\fP is .BR NULL, \fIoption\fP and \fIvalue\fP will be provided to every registered module. If any module returns \fBARCHIVE_FATAL\fP, this value will be returned immediately. Otherwise, \fBARCHIVE_OK\fP will be returned if any module accepts the option, and \fBARCHIVE_FAILED\fP in all other cases. .TP \fB\%archive_read_set_option\fP() Calls \fB\%archive_read_set_format_option\fP(), then \fB\%archive_read_set_filter_option\fP(). If either function returns \fBARCHIVE_FATAL\fP, \fBARCHIVE_FATAL\fP will be returned immediately. Otherwise, greater of the two values will be returned. .TP \fB\%archive_read_set_options\fP() \fIoptions\fP is a comma-separated list of options. If \fIoptions\fP is .BR NULL or empty, \fBARCHIVE_OK\fP will be returned immediately. .PP Calls \fB\%archive_read_set_option\fP() with each option in turn. If any \fB\%archive_read_set_option\fP() call returns \fBARCHIVE_FATAL\fP, \fBARCHIVE_FATAL\fP will be returned immediately. .PP Individual options have one of the following forms: .RS 5 .TP \fIoption=value\fP The option/value pair will be provided to every module. Modules that do not accept an option with this name will ignore it. .TP \fIoption\fP The option will be provided to every module with a value of ``1''. .TP \fI!option\fP The option will be provided to every module with a NULL value. .TP \fImodule:option=value\fP, \fImodule:option\fP, \fImodule:!option\fP As above, but the corresponding option and value will be provided only to modules whose name matches \fImodule\fP. .RE .RE .SH OPTIONS .ad l .RS 5 .TP Format iso9660 .RS 5 .TP \fBjoliet\fP Support Joliet extensions. Defaults to enabled, use \fB!joliet\fP to disable. .TP \fBrockridge\fP Support RockRidge extensions. Defaults to enabled, use \fB!rockridge\fP to disable. .RE .RE .SH ERRORS .ad l Detailed error codes and textual descriptions are available from the \fB\%archive_errno\fP() and \fB\%archive_error_string\fP() functions. .\" Oracle has added the ARC stability level to this manual page .SH ATTRIBUTES See .BR attributes (5) for descriptions of the following attributes: .sp .TS box; cbp-1 | cbp-1 l | l . ATTRIBUTE TYPE ATTRIBUTE VALUE = Availability library/libarchive = Stability Uncommitted .TE .PP .SH SEE ALSO .ad l \fBtar\fP(1), \fBlibarchive\fP(3), \fBarchive_write_set_options\fP(3), \fBarchive_read\fP(3) .SH NOTES .\" Oracle has added source availability information to this manual page This software was built from source available at https://java.net/projects/solaris-userland. The original community source was downloaded from http://www.libarchive.org/downloads/libarchive-3.1.2.tar.gz Further information about this software can be found on the open source community website at http://www.libarchive.org/.