centos man page for th_write

Query: th_write

OS: centos

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

th_read(3)							  C Library Calls							th_read(3)

NAME
th_read, th_write - read and write a file header block from a tar archive
SYNOPSIS
#include <libtar.h> int th_read(TAR *t); int th_write(TAR *t);
VERSION
This man page documents version 1.2 of libtar.
DESCRIPTION
The th_read() function reads the next block from the tar archive associated with the TAR handle t. It then sets the current tar header associated with t to the contents of the block read. The th_write() function writes the contents of the current tar header associated with t to the tar archive associated with t.
RETURN VALUE
On successful completion, th_read() and th_write() will return 0. On failure, they will return -1 and set errno to an appropriate value. On EOF, th_read() will return 1.
ERRORS
th_read() and th_write() will fail if: EINVAL Less than T_BLOCKSIZE blocks were read or written.
SEE ALSO
tar_block_read(3), tar_block_write(3) University of Illinois Jan 2001 th_read(3)
Related Man Pages
tar_extract_chardev(3) - centos
tar_extract_regfile(3) - centos
tar_extract_fifo(3) - centos
tar_append_eof(3) - centos
tar_extract_dir(3) - centos
Similar Topics in the Unix Linux Community
help me with write script shell to do grid-proxy-init
help with write-read locks inter-process
unzip failing with write error
a problem with write a script in Linux version 2.4.27-ubnt0
Help with write a master script to automatic 1000 process