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

Structures used to handle tar payloads within rpm packages. 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 compatable 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 tarTrailerWrite (FSM_t fsm)
 Write cpio trailer to payload.
 
int tarHeaderWrite (FSM_t fsm, struct stat *st)
 Write tar header to payload.
 
int tarHeaderRead (FSM_t fsm, struct stat *st)
 Read tar header from payload.
 

Variables

int _tar_debug
 

Detailed Description

Structures used to handle tar payloads within rpm packages.

Definition in file tar.h.

Macro Definition Documentation

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

Definition at line 12 of file tar.h.

Referenced by tarHeaderRead(), and tarHeaderWriteBlock().

#define TAR_MAGIC_LEN   6

Definition at line 16 of file tar.h.

#define TAR_NAME_SIZE   100

Definition at line 20 of file tar.h.

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

Definition at line 13 of file tar.h.

Referenced by tarHeaderWriteBlock().

#define TAR_VERSION_LEN   2

Definition at line 17 of file tar.h.

Typedef Documentation

typedef struct tarHeader_s* tarHeader

Definition at line 9 of file tar.h.

Function Documentation

int tarHeaderRead ( FSM_t  fsm,
struct stat *  st 
)
int tarHeaderWrite ( FSM_t  fsm,
struct stat *  st 
)
int tarTrailerWrite ( FSM_t  fsm)

Write cpio trailer to payload.

Return values
fsmfile path and stat info
Returns
0 on success

Definition at line 455 of file tar.c.

References _tar_debug, fsm_s::blksize, FSM_PAD, and fsmNext().

Referenced by fsmSetup().

Variable Documentation

int _tar_debug

Definition at line 21 of file tar.c.