GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  TH_WRITE (3)

NAME

th_read, th_write - read and write a file header block from a tar archive

CONTENTS

Synopsis
Version
Description
Return Value
Errors
See Also

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)
Search for    or go to Top of page |  Section 3 |  Main Index


University of Illinois TH_READ (3) Jan 2001

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.