Deleted Added
full compact
archive_read_format.3 (315432) archive_read_format.3 (353376)
1.\" Copyright (c) 2003-2011 Tim Kientzle
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 88 unchanged lines hidden (view full) ---

97.Fn archive_read_support_format_zip
98.Xc
99Enables support---including auto-detection code---for the
100specified archive format.
101For example,
102.Fn archive_read_support_format_tar
103enables support for a variety of standard tar formats, old-style tar,
104ustar, pax interchange format, and many common variants.
1.\" Copyright (c) 2003-2011 Tim Kientzle
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 88 unchanged lines hidden (view full) ---

97.Fn archive_read_support_format_zip
98.Xc
99Enables support---including auto-detection code---for the
100specified archive format.
101For example,
102.Fn archive_read_support_format_tar
103enables support for a variety of standard tar formats, old-style tar,
104ustar, pax interchange format, and many common variants.
105.It Fn archive_read_support_format_all
105.It Fn archive_read_support_format_all
106Enables support for all available formats except the
107.Dq raw
108format (see below).
109.It Fn archive_read_support_format_by_code
110Enables a single format specified by the format code.
111This can be useful when reading a single archive twice;
112use
113.Fn archive_format

--- 6 unchanged lines hidden (view full) ---

120using this function.
121.It Fn archive_read_support_format_empty
122Enables support for treating empty files as empty archives.
123Because empty files are valid for several different formats,
124it is not possible to accurately determine a format for
125an empty file based purely on contents.
126So empty files are treated by libarchive as a distinct
127format.
106Enables support for all available formats except the
107.Dq raw
108format (see below).
109.It Fn archive_read_support_format_by_code
110Enables a single format specified by the format code.
111This can be useful when reading a single archive twice;
112use
113.Fn archive_format

--- 6 unchanged lines hidden (view full) ---

120using this function.
121.It Fn archive_read_support_format_empty
122Enables support for treating empty files as empty archives.
123Because empty files are valid for several different formats,
124it is not possible to accurately determine a format for
125an empty file based purely on contents.
126So empty files are treated by libarchive as a distinct
127format.
128.It Fn archive_read_support_format_raw
128.It Fn archive_read_support_format_raw
129The
130.Dq raw
131format handler allows libarchive to be used to read arbitrary data.
132It treats any data stream as an archive with a single entry.
133The pathname of this entry is
134.Dq data ;
135all other entry fields are unset.
136This is not enabled by

--- 11 unchanged lines hidden (view full) ---

148Detailed error codes and textual descriptions are available from the
149.Fn archive_errno
150and
151.Fn archive_error_string
152functions.
153.\"
154.Sh SEE ALSO
155.Xr tar 1 ,
129The
130.Dq raw
131format handler allows libarchive to be used to read arbitrary data.
132It treats any data stream as an archive with a single entry.
133The pathname of this entry is
134.Dq data ;
135all other entry fields are unset.
136This is not enabled by

--- 11 unchanged lines hidden (view full) ---

148Detailed error codes and textual descriptions are available from the
149.Fn archive_errno
150and
151.Fn archive_error_string
152functions.
153.\"
154.Sh SEE ALSO
155.Xr tar 1 ,
156.Xr libarchive 3 ,
157.Xr archive_read_data 3 ,
158.Xr archive_read_filter 3 ,
159.Xr archive_read_set_options 3 ,
160.Xr archive_util 3 ,
156.Xr archive_read_data 3 ,
157.Xr archive_read_filter 3 ,
158.Xr archive_read_set_options 3 ,
159.Xr archive_util 3 ,
160.Xr libarchive 3 ,
161.Xr tar 5
162.Sh BUGS
163Many traditional archiver programs treat
164empty files as valid empty archives.
165For example, many implementations of
166.Xr tar 1
167allow you to append entries to an empty file.
168Of course, it is impossible to determine the format of an empty file
169by inspecting the contents, so this library treats empty files as
170having a special
171.Dq empty
172format.
173.Pp
174Using the
175.Dq raw
176handler together with any other handler will often work
177but can produce surprising results.
161.Xr tar 5
162.Sh BUGS
163Many traditional archiver programs treat
164empty files as valid empty archives.
165For example, many implementations of
166.Xr tar 1
167allow you to append entries to an empty file.
168Of course, it is impossible to determine the format of an empty file
169by inspecting the contents, so this library treats empty files as
170having a special
171.Dq empty
172format.
173.Pp
174Using the
175.Dq raw
176handler together with any other handler will often work
177but can produce surprising results.