diff options
author | kientzle <kientzle@FreeBSD.org> | 2005-01-08 19:51:04 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2005-01-08 19:51:04 +0000 |
commit | 03cce8d9d572049df802a195d36cb41878a71009 (patch) | |
tree | 6c8bbe17328fd5e43120eb77084150652671750e /lib/libarchive/archive_util.3 | |
parent | 9bbb1dc91d20531dfeed610b7490a6db86f0049a (diff) | |
download | FreeBSD-src-03cce8d9d572049df802a195d36cb41878a71009.zip FreeBSD-src-03cce8d9d572049df802a195d36cb41878a71009.tar.gz |
Documentation improvements. In particular,
expand and clarify the description of the client
callback functions and how they should handle errors.
Thanks to: Antony Dovgal
Diffstat (limited to 'lib/libarchive/archive_util.3')
-rw-r--r-- | lib/libarchive/archive_util.3 | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/lib/libarchive/archive_util.3 b/lib/libarchive/archive_util.3 index 4b37889..84589b8 100644 --- a/lib/libarchive/archive_util.3 +++ b/lib/libarchive/archive_util.3 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd October 1, 2003 +.Dd January 8, 2005 .Dt archive_util 3 .Os .Sh NAME @@ -94,12 +94,34 @@ by .Fn archive_errno and .Fn archive_error_string . -This function is sometimes useful within I/O callbacks. +This function should be used within I/O callbacks to set system-specific +error codes and error descriptions. +This function accepts a printf-like format string and arguments. +However, you should be careful to use only the following printf +format specifiers: +.Dq %c , +.Dq %d , +.Dq %jd , +.Dq %jo , +.Dq %ju , +.Dq %jx , +.Dq %ld , +.Dq %lo , +.Dq %lu , +.Dq %lx , +.Dq %o , +.Dq %u , +.Dq %s , +.Dq %x , +.Dq %% . +Field-width specifiers and other printf features are +not uniformly supported and should not be used. .El .Sh SEE ALSO .Xr archive_read 3 , .Xr archive_write 3 , -.Xr libarchive 3 +.Xr libarchive 3 , +.Xr printf 3 .Sh HISTORY The .Nm libarchive |