rpm  5.4.10
Data Structures | Macros | Typedefs | Functions | Variables
tar.h File Reference

Structures used for tar(1) archives. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  tarHeader_s
 Tar archive header information. More...
 

Macros

#define TAR_MAGIC   "ustar" /* ustar and a null */
 
#define TAR_VERSION   " " /* Be compatible with GNU tar format */
 
#define TAR_BLOCK_SIZE   512
 
#define TAR_MAGIC_LEN   6
 
#define TAR_VERSION_LEN   2
 
#define TAR_NAME_SIZE   100
 

Typedefs

typedef struct tarHeader_starHeader
 

Functions

int tarHeaderRead (void *_iosm, struct stat *st)
 Read tar header from payload. More...
 
int tarHeaderWrite (void *_iosm, struct stat *st)
 Write tar header to payload. More...
 
int tarTrailerWrite (void *_iosm)
 Write cpio trailer to payload. More...
 

Variables

int _tar_debug
 

Detailed Description

Structures used for tar(1) archives.

Definition in file tar.h.

Macro Definition Documentation

§ TAR_BLOCK_SIZE

#define TAR_BLOCK_SIZE   512

Definition at line 17 of file tar.h.

Referenced by fsmSetup(), iosmSetup(), tarHeaderRead(), and tarHeaderWriteBlock().

§ TAR_MAGIC

#define TAR_MAGIC   "ustar" /* ustar and a null */

Definition at line 14 of file tar.h.

Referenced by tarHeaderRead(), and tarHeaderWriteBlock().

§ TAR_MAGIC_LEN

#define TAR_MAGIC_LEN   6

Definition at line 18 of file tar.h.

§ TAR_NAME_SIZE

#define TAR_NAME_SIZE   100

Definition at line 22 of file tar.h.

§ TAR_VERSION

#define TAR_VERSION   " " /* Be compatible with GNU tar format */

Definition at line 15 of file tar.h.

Referenced by tarHeaderWriteBlock().

§ TAR_VERSION_LEN

#define TAR_VERSION_LEN   2

Definition at line 19 of file tar.h.

Typedef Documentation

§ tarHeader

typedef struct tarHeader_s* tarHeader

Definition at line 11 of file tar.h.

Function Documentation

§ tarHeaderRead()

int tarHeaderRead ( void *  _iosm,
struct stat *  st 
)

§ tarHeaderWrite()

int tarHeaderWrite ( void *  _iosm,
struct stat *  st 
)

§ tarTrailerWrite()

int tarTrailerWrite ( void *  _iosm)

Write cpio trailer to payload.

Return values
_fsmfile path and stat info
Returns
0 on success

Definition at line 499 of file tar.c.

References _iosmNext, _IOSMRC, _tar_debug, iosm_s::blksize, IOSM_PAD, and tarWrite().

Referenced by fsmSetup(), and iosmSetup().

Variable Documentation

§ _tar_debug

int _tar_debug