rpm
5.4.14
|
Structure(s)and methods for a XAR archive wrapper format. More...
#include <rpmiotypes.h>
Go to the source code of this file.
Macros | |
#define | rpmxarUnlink(_xar, _msg) ((rpmxar)rpmioUnlinkPoolItem((rpmioItem)(_xar), _msg, __FILE__, __LINE__)) |
#define | rpmxarLink(_xar, _msg) ((rpmxar)rpmioLinkPoolItem((rpmioItem)(_xar), _msg, __FILE__, __LINE__)) |
#define | rpmxarFree(_xar, _msg) ((rpmxar)rpmioFreePoolItem((rpmioItem)(_xar), _msg, __FILE__, __LINE__)) |
Typedefs | |
typedef struct rpmxar_s * | rpmxar |
Functions | |
rpmxar | rpmxarUnlink (rpmxar xar, const char *msg) |
Unreference a xar archive instance. More... | |
rpmxar | rpmxarLink (rpmxar xar, const char *msg) |
Reference a xar archive instance. More... | |
rpmxar | rpmxarFree (rpmxar xar, const char *msg) |
Destroy a xar archive instance. More... | |
rpmxar | rpmxarNew (const char *fn, const char *fmode) |
Create a xar archive instance. More... | |
int | rpmxarNext (rpmxar xar) |
Iterate a xar archive instance. More... | |
int | rpmxarPush (rpmxar xar, const char *fn, unsigned char *b, size_t bsize) |
int | rpmxarPull (rpmxar xar, const char *fn) |
int | rpmxarSwapBuf (rpmxar xar, unsigned char *b, size_t bsize, unsigned char **obp, size_t *obsizep) |
ssize_t | xarRead (void *cookie, char *buf, size_t count) |
const char * | rpmxarPath (rpmxar xar) |
Return path of current archive member. More... | |
int | rpmxarStat (rpmxar xar, struct stat *st) |
Return stat(2) of current archive member. More... | |
Variables | |
int | _xar_debug |
Structure(s)and methods for a XAR archive wrapper format.
Definition in file rpmxar.h.
#define rpmxarFree | ( | _xar, | |
_msg | |||
) | ((rpmxar)rpmioFreePoolItem((rpmioItem)(_xar), _msg, __FILE__, __LINE__)) |
#define rpmxarLink | ( | _xar, | |
_msg | |||
) | ((rpmxar)rpmioLinkPoolItem((rpmioItem)(_xar), _msg, __FILE__, __LINE__)) |
#define rpmxarUnlink | ( | _xar, | |
_msg | |||
) | ((rpmxar)rpmioUnlinkPoolItem((rpmioItem)(_xar), _msg, __FILE__, __LINE__)) |
Reference a xar archive instance.
xar | xar archive |
msg |
Referenced by fdSetXAR(), and rpmxarNew().
rpmxar rpmxarNew | ( | const char * | fn, |
const char * | fmode | ||
) |
Create a xar archive instance.
fn | xar file |
fmode | "r" for reading, "w" for writing |
Definition at line 112 of file rpmxar.c.
References _xar_debug, assert(), flags, fprintf(), NULL, READ, rpmxarGetPool(), rpmxarLink(), WRITE, xar_iter_new, and xar_open.
Referenced by rdLead().
Iterate a xar archive instance.
xar | xar archive |
Definition at line 128 of file rpmxar.c.
References _xar_debug, fprintf(), NULL, rc, xar_file_first, and xar_file_next.
Referenced by rdLead(), rdSignature(), readFile(), rpmReadHeader(), and xarRead().
const char* rpmxarPath | ( | rpmxar | xar | ) |
Return path of current archive member.
xar | xar archive |
Definition at line 260 of file rpmxar.c.
References _xar_debug, fprintf(), NULL, path, and xar_get_path.
Referenced by rpmxarStat().
Definition at line 168 of file rpmxar.c.
References _free(), _xar_debug, b, fprintf(), int, NULL, path, rc, strcmp(), xar_extract_tobuffersz, and xar_get_path.
Referenced by rdLead(), rdSignature(), readFile(), rpmReadHeader(), and xarRead().
Definition at line 147 of file rpmxar.c.
References _xar_debug, fprintf(), NULL, strcmp(), void, xar_add_frombuffer, XAR_OPT_COMPRESSION, xar_opt_set, XAR_OPT_VAL_GZIP, and XAR_OPT_VAL_NONE.
Return stat(2) of current archive member.
xar | xar archive |
*st | stat(2) of current member |
Definition at line 395 of file rpmxar.c.
References _free(), _xar_debug, fprintf(), hashFunctionString(), memset(), path, rc, rpmxarPath(), xarDev(), xarGid(), xarMode(), xarSize(), xarTime(), and xarUid().
Unreference a xar archive instance.
xar | xar archive |
msg |
ssize_t xarRead | ( | void * | cookie, |
char * | buf, | ||
size_t | count | ||
) |
Definition at line 229 of file rpmxar.c.
References _xar_debug, assert(), b, fd, fdGetXAR(), fprintf(), nb, NULL, rc, RPMRC_FAIL, rpmxarNext(), rpmxarPull(), rpmxarSwapBuf(), void, and xx.
Referenced by __fdRead().