|
rpm 5.3.7
|
Structures used for ar(1) archives. More...

Go to the source code of this file.
Data Structures | |
| struct | arHeader_s |
| ar(1) archive header. More... | |
Defines | |
| #define | AR_MAGIC "!<arch>\n" |
| #define | AR_MARKER "`\n" |
Typedefs | |
| typedef struct arHeader_s * | arHeader |
Functions | |
| int | arHeaderRead (void *_iosm, struct stat *st) |
| Read ar(1) header. | |
| int | arHeaderWrite (void *_iosm, struct stat *st) |
| Write ar(1) header. | |
| int | arTrailerWrite (void *_iosm) |
| Write ar(1) trailer. | |
Variables | |
| int | _ar_debug |
Structures used for ar(1) archives.
Definition in file ar.h.
| #define AR_MAGIC "!<arch>\n" |
Definition at line 14 of file ar.h.
Referenced by arHeaderRead(), and arHeaderWrite().
| #define AR_MARKER "`\n" |
Definition at line 15 of file ar.h.
Referenced by arHeaderRead(), and arHeaderWrite().
| typedef struct arHeader_s* arHeader |
| int arHeaderRead | ( | void * | _iosm, |
| struct stat * | st | ||
| ) |
Read ar(1) header.
| _iosm | file path and stat info |
| st |
Definition at line 92 of file ar.c.
References _ar_debug, _iosmNext, _IOSMRC, AR_MAGIC, AR_MARKER, arRead(), fdGetCpioPos(), IOSM_POS, strntoul(), xisdigit(), and xstrdup().
Referenced by fsmSetup(), and iosmSetup().
| int arHeaderWrite | ( | void * | _iosm, |
| struct stat * | st | ||
| ) |
Write ar(1) header.
| _iosm | file path and stat info |
| st |
Definition at line 235 of file ar.c.
References _ar_debug, _iosmNext, _IOSMRC, AR_MAGIC, AR_MARKER, arWrite(), fdGetCpioPos(), arHeader_s::filesize, arHeader_s::gid, IOSM_PAD, arHeader_s::marker, arHeader_s::mode, arHeader_s::mtime, arHeader_s::name, snprintf(), and arHeader_s::uid.
Referenced by fsmSetup(), and iosmSetup().
| int arTrailerWrite | ( | void * | _iosm | ) |
Write ar(1) trailer.
| _iosm | file path and stat info |
Definition at line 309 of file ar.c.
References _ar_debug, _iosmNext, _IOSMRC, arWrite(), and IOSM_PAD.
Referenced by fsmSetup(), and iosmSetup().
1.7.3