]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
archive_errno, archive_error_string info in man pages unified a bit
authorRoman Neuhauser <neuhauser@sigpipe.cz>
Mon, 28 Mar 2011 09:19:08 +0000 (05:19 -0400)
committerRoman Neuhauser <neuhauser@sigpipe.cz>
Mon, 28 Mar 2011 09:19:08 +0000 (05:19 -0400)
SVN-Revision: 3107

19 files changed:
libarchive/archive_read_data.3
libarchive/archive_read_disk.3
libarchive/archive_read_extract.3
libarchive/archive_read_filter.3
libarchive/archive_read_format.3
libarchive/archive_read_free.3
libarchive/archive_read_header.3
libarchive/archive_read_open.3
libarchive/archive_read_set_options.3
libarchive/archive_write_blocksize.3
libarchive/archive_write_data.3
libarchive/archive_write_disk.3
libarchive/archive_write_filter.3
libarchive/archive_write_finish_entry.3
libarchive/archive_write_format.3
libarchive/archive_write_free.3
libarchive/archive_write_header.3
libarchive/archive_write_open.3
libarchive/archive_write_set_options.3

index 9896c9694e087025bb6af3d76e7d081f5d5717c2..a5898e7b8f4cf612186c66290fcd11a822cd5ac8 100644 (file)
@@ -111,11 +111,6 @@ The possible return codes include:
 and
 .Cm ARCHIVE_FATAL
 (there was a fatal error; the archive should be closed immediately).
-Detailed error codes and textual descriptions are available from the
-.Fn archive_errno
-and
-.Fn archive_error_string
-functions.
 .Pp
 .Fn archive_read_data
 returns a count of bytes actually read or zero at the end of the entry.
@@ -124,12 +119,15 @@ On error, a value of
 .Cm ARCHIVE_WARN ,
 or
 .Cm ARCHIVE_RETRY
-is returned and an error code and textual description can be retrieved from the
+is returned.
+.\"
+.Sh ERRORS
+Detailed error codes and textual descriptions are available from the
 .Fn archive_errno
 and
 .Fn archive_error_string
 functions.
-.\" .Sh ERRORS
+.\"
 .Sh SEE ALSO
 .Xr tar 1 ,
 .Xr libarchive 3 ,
index 2c9c4e53d69b615cee3ab53646c66ced5a7e31a9..d3b6101d711c0283341d3ef3a7617b80b414b66e 100644 (file)
@@ -237,15 +237,6 @@ for operations that might succeed if retried,
 for unusual conditions that do not prevent further operations, and
 .Cm ARCHIVE_FATAL
 for serious errors that make remaining operations impossible.
-The
-.Xr archive_errno 3
-and
-.Xr archive_error_string 3
-functions can be used to retrieve an appropriate error code and a
-textual error message.
-(See
-.Xr archive_util 3
-for details.)
 .Pp
 .Fn archive_read_disk_new
 returns a pointer to a newly-allocated
@@ -261,9 +252,17 @@ pointers to the textual name or NULL if the lookup failed for any reason.
 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.
-.Pp
+.\"
+.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 archive_read 3 ,
+.Xr archive_util 3 ,
 .Xr archive_write 3 ,
 .Xr archive_write_disk 3 ,
 .Xr tar 1 ,
index 1f9f13d0589199dee4b762ce03639ab24bae2561..950248e0740ab2baaa346c617825f7442e2ea3a2 100644 (file)
@@ -116,13 +116,12 @@ The possible return codes include:
 and
 .Cm ARCHIVE_FATAL
 (there was a fatal error; the archive should be closed immediately).
-.Pp
+.Sh ERRORS
 Detailed error codes and textual descriptions are available from the
 .Fn archive_errno
 and
 .Fn archive_error_string
 functions.
-.\" .Sh ERRORS
 .Sh SEE ALSO
 .Xr tar 1 ,
 .Xr libarchive 3 ,
index bf514cf1aada54092964baf6d99f61afec665f57..7b506ccc2764483d24c46547a1557436e7a71481 100644 (file)
@@ -111,15 +111,14 @@ if the compression is supported only through an external program.
 .Pp
 .Fn archive_read_support_filter_none
 always succeeds.
-.Pp
+.\"
+.Sh ERRORS
 Detailed error codes and textual descriptions are available from the
 .Fn archive_errno
 and
 .Fn archive_error_string
 functions.
 .\"
-.\" .Sh ERRORS
-.\"
 .Sh SEE ALSO
 .Xr libarchive 3 ,
 .Xr archive_read 3 ,
index 4fde5b92536ce6b127f1e683e491513cc6b9f3f8..b33d714efef937f2d3e07bba3bf0bf41b26b1365 100644 (file)
@@ -100,13 +100,14 @@ These functions return
 .Cm ARCHIVE_OK
 on success, or
 .Cm ARCHIVE_FATAL .
-.Pp
+.\"
+.Sh ERRORS
 Detailed error codes and textual descriptions are available from the
 .Fn archive_errno
 and
 .Fn archive_error_string
 functions.
-.\" .Sh ERRORS
+.\"
 .Sh SEE ALSO
 .Xr tar 1 ,
 .Xr libarchive 3 ,
index 1d6fa1b913cad8d31d171344ec39cbbfc542e479..5838e20c98a607288d847443a709d0fa1877aba2 100644 (file)
@@ -72,13 +72,14 @@ These functions return
 .Cm ARCHIVE_OK
 on success, or
 .Cm ARCHIVE_FATAL .
-.Pp
+.\"
+.Sh ERRORS
 Detailed error codes and textual descriptions are available from the
 .Fn archive_errno
 and
 .Fn archive_error_string
 functions.
-.\" .Sh ERRORS
+.\"
 .Sh SEE ALSO
 .Xr libarchive 3 ,
 .Xr archive_read_new 3 ,
index 4879ffd3e3ae82012d672bc27186120f0d23398c..f8543f7acaf8eb143602b9999f6fecbcae565e5d 100644 (file)
@@ -67,13 +67,14 @@ These functions return
 and
 .Cm ARCHIVE_FATAL
 (there was a fatal error; the archive should be closed immediately).
-.Pp
+.\"
+.Sh ERRORS
 Detailed error codes and textual descriptions are available from the
 .Fn archive_errno
 and
 .Fn archive_error_string
 functions.
-.\" .Sh ERRORS
+.\"
 .Sh SEE ALSO
 .Xr tar 1 ,
 .Xr libarchive 3 ,
index 847a624b46ab198bf6ecb2c6a501269dc350c37a..ff156416f03b628d8f2be153104240a22435a7e9 100644 (file)
@@ -211,25 +211,14 @@ These functions return
 .Cm ARCHIVE_OK
 on success, or
 .Cm ARCHIVE_FATAL .
-.Pp
+.\"
+.Sh ERRORS
 Detailed error codes and textual descriptions are available from the
 .Fn archive_errno
 and
 .Fn archive_error_string
 functions.
-.Pp
-The library expects the client callbacks to behave similarly.
-If there is an error, you can use
-.Fn archive_set_error
-to set an appropriate error code and description,
-then return one of the non-zero values above.
-(Note that the value eventually returned to the client may
-not be the same; many errors that are not critical at the level
-of basic I/O can prevent the archive from being properly read,
-thus most I/O errors eventually cause
-.Cm ARCHIVE_FATAL
-to be returned.)
-.\" .Sh ERRORS
+.\"
 .Sh SEE ALSO
 .Xr tar 1 ,
 .Xr libarchive 3 ,
index 7ddb00b702722b1cc0f2110786f9a66dc0b4cdf4..2079d2e2652aaa9895de51982a5cb6a3a34791ca 100644 (file)
@@ -192,6 +192,14 @@ Defaults to enabled, use
 to disable.
 .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 libarchive 3 ,
index 10ec249ffce8638f85db0b9a9b5d70abc1df75a3..239fa922a8409569f723f3b2cf32601e5ded6ef4 100644 (file)
@@ -95,12 +95,14 @@ indicates the default block size
 .Pc ,
 or
 .Cm ARCHIVE_FATAL .
-.Pp
+.\"
+.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 libarchive 3 ,
index c773400d92780da9a1bd4124db40f91dfaaf8e86..2c98b3e78442bedbf86f1c6dd10687911d60c12f 100644 (file)
@@ -42,12 +42,14 @@ Write data corresponding to the header just written.
 This function returns the number of bytes actually written, or
 .Li -1
 on error.
-.Pp
+.\"
+.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 libarchive 3 ,
index 708ed31106d82d9fd60b75bb6f6b6159b6a166bc..90bbdcf9541468193c0fc49488764a037f541b0e 100644 (file)
@@ -289,12 +289,6 @@ for operations that might succeed if retried,
 for unusual conditions that do not prevent further operations, and
 .Cm ARCHIVE_FATAL
 for serious errors that make remaining operations impossible.
-The
-.Fn archive_errno
-and
-.Fn archive_error_string
-functions can be used to retrieve an appropriate error code and a
-textual error message.
 .Pp
 .Fn archive_write_disk_new
 returns a pointer to a newly-allocated
@@ -302,12 +296,18 @@ returns a pointer to a newly-allocated
 object.
 .Pp
 .Fn archive_write_data
-returns a count of the number of bytes actually written.
-On error, -1 is returned and the
+returns a count of the number of bytes actually written,
+or
+.Li -1
+on error.
+.\"
+.Sh ERRORS
+Detailed error codes and textual descriptions are available from the
 .Fn archive_errno
 and
 .Fn archive_error_string
-functions will return appropriate values.
+functions.
+.\"
 .Sh SEE ALSO
 .Xr archive_read 3 ,
 .Xr archive_write 3 ,
index cd2474ae655f35681c45e82b69f2bc279afd9ee4..f084a51db476b30b2b578b4f05e9195235fbb0cc 100644 (file)
@@ -79,12 +79,14 @@ These functions return
 .Cm ARCHIVE_OK
 on success, or
 .Cm ARCHIVE_FATAL .
-.Pp
+.\"
+.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 libarchive 3 ,
index 4b80f762fbd6dbe5f3a5097a2ba8dab3f76012cb..06c002ebeaa9c66fb02b0fb2ac4d63e6456192df 100644 (file)
@@ -56,12 +56,14 @@ for operations that might succeed if retried,
 for unusual conditions that do not prevent further operations, and
 .Cm ARCHIVE_FATAL
 for serious errors that make remaining operations impossible.
-.Pp
+.\"
+.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 libarchive 3 ,
index 3ef0d3252f958b0ab3638326d95c139a98429769..b3e7e3535886bc97ec823676598c6ceb4df63d67 100644 (file)
@@ -80,12 +80,14 @@ These functions return
 .Cm ARCHIVE_OK
 on success, or
 .Cm ARCHIVE_FATAL .
-.Pp
+.\"
+.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 libarchive 3 ,
index fdd0aa01365c426a35252ce803b7e51f265fd769..d939780ddc390bc8459852952b6d3cd7752f08a9 100644 (file)
@@ -64,13 +64,14 @@ These functions return
 .Cm ARCHIVE_OK
 on success, or
 .Cm ARCHIVE_FATAL .
-.Pp
+.\"
+.Sh ERRORS
 Detailed error codes and textual descriptions are available from the
 .Fn archive_errno
 and
 .Fn archive_error_string
 functions.
-.\" .Sh ERRORS
+.\"
 .Sh SEE ALSO
 .Xr tar 1 ,
 .Xr libarchive 3 ,
index 0e759148da97d2fbc7aac8dbda48a91936d912cb..f76175b0f0724d732f401122f9c887f5d72b6e3f 100644 (file)
@@ -54,6 +54,14 @@ for operations that might succeed if retried,
 for unusual conditions that do not prevent further operations, and
 .Cm ARCHIVE_FATAL
 for serious errors that make remaining operations impossible.
+.\"
+.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 libarchive 3 ,
index 4e03b19c105c4086c8ac3003dc28216329b306f5..ab2d4841cec9d15113dbc6d2db124e412deef92c 100644 (file)
@@ -189,18 +189,6 @@ On failure, the callback should invoke
 to register an error code and message and
 return
 .Cm ARCHIVE_FATAL.
-.\" .Sh EXAMPLE
-.Sh RETURN VALUES
-These functions return
-.Cm ARCHIVE_OK
-on success, or
-.Cm ARCHIVE_FATAL .
-.Pp
-Detailed error codes and textual descriptions are available from the
-.Fn archive_errno
-and
-.Fn archive_error_string
-functions.
 .Pp
 Note that if the client-provided write callback function
 returns a non-zero value, that error will be propagated back to the caller
@@ -218,6 +206,20 @@ to provide values that can then be retrieved by
 .Fn archive_errno
 and
 .Fn archive_error_string .
+.\" .Sh EXAMPLE
+.Sh RETURN VALUES
+These functions return
+.Cm ARCHIVE_OK
+on success, or
+.Cm ARCHIVE_FATAL .
+.\"
+.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 libarchive 3 ,
index c0a73b9d0533194d6711852434933ad429e84f47..7e5cf212b0fd50d857c3388b4f1985cb1adc6fae 100644 (file)
@@ -412,6 +412,14 @@ archive_write_set_format_iso9660(a);
 archive_write_set_options(a, "boot=kernel.img,compression=9");
 archive_write_open_filename(a, filename, blocksize);
 .Ed
+.\"
+.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 libarchive 3 ,