Use .Fo/.Fc and .Xo/.Xc to bring the line widths below 79 columns.
Correct a typo [a misplaced comma]. Reviewed by: ru
This commit is contained in:
parent
80c4d6eba3
commit
c7f03ab040
@ -75,7 +75,10 @@
|
|||||||
.Ft int
|
.Ft int
|
||||||
.Fn archive_read_support_compression_none "struct archive *"
|
.Fn archive_read_support_compression_none "struct archive *"
|
||||||
.Ft int
|
.Ft int
|
||||||
.Fn archive_read_support_compression_program "struct archive *" "const char *cmd"
|
.Fo archive_read_support_compression_program
|
||||||
|
.Fa "struct archive *"
|
||||||
|
.Fa "const char *cmd"
|
||||||
|
.Fc
|
||||||
.Ft int
|
.Ft int
|
||||||
.Fn archive_read_support_format_all "struct archive *"
|
.Fn archive_read_support_format_all "struct archive *"
|
||||||
.Ft int
|
.Ft int
|
||||||
@ -89,15 +92,32 @@
|
|||||||
.Ft int
|
.Ft int
|
||||||
.Fn archive_read_support_format_zip "struct archive *"
|
.Fn archive_read_support_format_zip "struct archive *"
|
||||||
.Ft int
|
.Ft int
|
||||||
.Fn archive_read_open "struct archive *" "void *client_data" "archive_open_callback *" "archive_read_callback *" "archive_close_callback *"
|
.Fo archive_read_open
|
||||||
|
.Fa "struct archive *"
|
||||||
|
.Fa "void *client_data"
|
||||||
|
.Fa "archive_open_callback *"
|
||||||
|
.Fa "archive_read_callback *"
|
||||||
|
.Fa "archive_close_callback *"
|
||||||
|
.Fc
|
||||||
.Ft int
|
.Ft int
|
||||||
.Fn archive_read_open2 "struct archive *" "void *client_data" "archive_open_callback *" "archive_read_callback *" "archive_skip_callback *" "archive_close_callback *"
|
.Fo archive_read_open2
|
||||||
|
.Fa "struct archive *"
|
||||||
|
.Fa "void *client_data"
|
||||||
|
.Fa "archive_open_callback *"
|
||||||
|
.Fa "archive_read_callback *"
|
||||||
|
.Fa "archive_skip_callback *"
|
||||||
|
.Fa "archive_close_callback *"
|
||||||
|
.Fc
|
||||||
.Ft int
|
.Ft int
|
||||||
.Fn archive_read_open_FILE "struct archive *" "FILE *file"
|
.Fn archive_read_open_FILE "struct archive *" "FILE *file"
|
||||||
.Ft int
|
.Ft int
|
||||||
.Fn archive_read_open_fd "struct archive *" "int fd" "size_t block_size"
|
.Fn archive_read_open_fd "struct archive *" "int fd" "size_t block_size"
|
||||||
.Ft int
|
.Ft int
|
||||||
.Fn archive_read_open_filename "struct archive *" "const char *filename" "size_t block_size"
|
.Fo archive_read_open_filename
|
||||||
|
.Fa "struct archive *"
|
||||||
|
.Fa "const char *filename"
|
||||||
|
.Fa "size_t block_size"
|
||||||
|
.Fc
|
||||||
.Ft int
|
.Ft int
|
||||||
.Fn archive_read_open_memory "struct archive *" "void *buff" "size_t size"
|
.Fn archive_read_open_memory "struct archive *" "void *buff" "size_t size"
|
||||||
.Ft int
|
.Ft int
|
||||||
@ -105,7 +125,12 @@
|
|||||||
.Ft ssize_t
|
.Ft ssize_t
|
||||||
.Fn archive_read_data "struct archive *" "void *buff" "size_t len"
|
.Fn archive_read_data "struct archive *" "void *buff" "size_t len"
|
||||||
.Ft int
|
.Ft int
|
||||||
.Fn archive_read_data_block "struct archive *" "const void **buff" "size_t *len" "off_t *offset"
|
.Fo archive_read_data_block
|
||||||
|
.Fa "struct archive *"
|
||||||
|
.Fa "const void **buff"
|
||||||
|
.Fa "size_t *len"
|
||||||
|
.Fa "off_t *offset"
|
||||||
|
.Fc
|
||||||
.Ft int
|
.Ft int
|
||||||
.Fn archive_read_data_skip "struct archive *"
|
.Fn archive_read_data_skip "struct archive *"
|
||||||
.\" #if ARCHIVE_API_VERSION < 3
|
.\" #if ARCHIVE_API_VERSION < 3
|
||||||
@ -115,9 +140,17 @@
|
|||||||
.Ft int
|
.Ft int
|
||||||
.Fn archive_read_data_into_fd "struct archive *" "int fd"
|
.Fn archive_read_data_into_fd "struct archive *" "int fd"
|
||||||
.Ft int
|
.Ft int
|
||||||
.Fn archive_read_extract "struct archive *" "struct archive_entry *" "int flags"
|
.Fo archive_read_extract
|
||||||
|
.Fa "struct archive *"
|
||||||
|
.Fa "struct archive_entry *"
|
||||||
|
.Fa "int flags"
|
||||||
|
.Fc
|
||||||
.Ft void
|
.Ft void
|
||||||
.Fn archive_read_extract_set_progress_callback "struct archive *" "void (*func)(void *)" "void *user_data"
|
.Fo archive_read_extract_set_progress_callback
|
||||||
|
.Fa "struct archive *"
|
||||||
|
.Fa "void (*func)(void *)"
|
||||||
|
.Fa "void *user_data"
|
||||||
|
.Fc
|
||||||
.Ft int
|
.Ft int
|
||||||
.Fn archive_read_close "struct archive *"
|
.Fn archive_read_close "struct archive *"
|
||||||
.Ft int
|
.Ft int
|
||||||
@ -136,7 +169,13 @@ order they would be used:
|
|||||||
Allocates and initializes a
|
Allocates and initializes a
|
||||||
.Tn struct archive
|
.Tn struct archive
|
||||||
object suitable for reading from an archive.
|
object suitable for reading from an archive.
|
||||||
.It Fn archive_read_support_compression_all , Fn archive_read_support_compression_bzip2 , Fn archive_read_support_compression_compress , Fn archive_read_support_compression_gzip , Fn archive_read_support_compression_none
|
.It Xo
|
||||||
|
.Fn archive_read_support_compression_all ,
|
||||||
|
.Fn archive_read_support_compression_bzip2 ,
|
||||||
|
.Fn archive_read_support_compression_compress ,
|
||||||
|
.Fn archive_read_support_compression_gzip ,
|
||||||
|
.Fn archive_read_support_compression_none
|
||||||
|
.Xc
|
||||||
Enables auto-detection code and decompression support for the
|
Enables auto-detection code and decompression support for the
|
||||||
specified compression.
|
specified compression.
|
||||||
Note that
|
Note that
|
||||||
@ -150,7 +189,14 @@ Data is fed through the specified external program before being dearchived.
|
|||||||
Note that this disables automatic detection of the compression format,
|
Note that this disables automatic detection of the compression format,
|
||||||
so it makes no sense to specify this in conjunction with any other
|
so it makes no sense to specify this in conjunction with any other
|
||||||
decompression option.
|
decompression option.
|
||||||
.It Fn archive_read_support_format_all , Fn archive_read_support_format_cpio , Fn archive_read_support_format_empty , Fn archive_read_support_format_iso9660 , Fn archive_read_support_format_tar, Fn archive_read_support_format_zip
|
.It Xo
|
||||||
|
.Fn archive_read_support_format_all ,
|
||||||
|
.Fn archive_read_support_format_cpio ,
|
||||||
|
.Fn archive_read_support_format_empty ,
|
||||||
|
.Fn archive_read_support_format_iso9660 ,
|
||||||
|
.Fn archive_read_support_format_tar ,
|
||||||
|
.Fn archive_read_support_format_zip
|
||||||
|
.Xc
|
||||||
Enables support---including auto-detection code---for the
|
Enables support---including auto-detection code---for the
|
||||||
specified archive format.
|
specified archive format.
|
||||||
For example,
|
For example,
|
||||||
@ -311,14 +357,26 @@ The callback functions must match the following prototypes:
|
|||||||
.Bl -item -offset indent
|
.Bl -item -offset indent
|
||||||
.It
|
.It
|
||||||
.Ft typedef ssize_t
|
.Ft typedef ssize_t
|
||||||
.Fn archive_read_callback "struct archive *" "void *client_data" "const void **buffer"
|
.Fo archive_read_callback
|
||||||
|
.Fa "struct archive *"
|
||||||
|
.Fa "void *client_data"
|
||||||
|
.Fa "const void **buffer"
|
||||||
|
.Fc
|
||||||
.It
|
.It
|
||||||
.\" #if ARCHIVE_API_VERSION < 2
|
.\" #if ARCHIVE_API_VERSION < 2
|
||||||
.Ft typedef int
|
.Ft typedef int
|
||||||
.Fn archive_skip_callback "struct archive *" "void *client_data" "size_t request"
|
.Fo archive_skip_callback
|
||||||
|
.Fa "struct archive *"
|
||||||
|
.Fa "void *client_data"
|
||||||
|
.Fa "size_t request"
|
||||||
|
.Fc
|
||||||
.\" #else
|
.\" #else
|
||||||
.\" .Ft typedef off_t
|
.\" .Ft typedef off_t
|
||||||
.\" .Fn archive_skip_callback "struct archive *" "void *client_data" "off_t request"
|
.\" .Fo archive_skip_callback
|
||||||
|
.\" .Fa "struct archive *"
|
||||||
|
.\" .Fa "void *client_data"
|
||||||
|
.\" .Fa "off_t request"
|
||||||
|
.\" .Fc
|
||||||
.\" #endif
|
.\" #endif
|
||||||
.It
|
.It
|
||||||
.Ft typedef int
|
.Ft typedef int
|
||||||
|
Loading…
Reference in New Issue
Block a user