|
rpm 5.3.12
|
Structure(s) used for file info tag sets. More...


Go to the source code of this file.
Defines | |
| #define | RPMFILE_STATE_MISSING -1 |
| #define | RPMFILE_SPOOK (RPMFILE_GHOST|RPMFILE_TYPED) |
| #define | RPMFILE_ALL ~(RPMFILE_NONE) |
Typedefs | |
| typedef enum rpmFileTypes_e | rpmFileTypes |
| File types. | |
| typedef enum rpmfileState_e | rpmfileState |
| File States (when installed). | |
| typedef enum rpmfileAttrs_e | rpmfileAttrs |
| File Attributes. | |
| typedef struct rpmfi_s * | rpmfi |
| File info tag sets from a header, so that a header can be discarded early. | |
Enumerations | |
| enum | rpmFileTypes_e { PIPE = 1, CDEV = 2, XDIR = 4, BDEV = 6, REG = 8, LINK = 10, SOCK = 12 } |
| File types. More... | |
| enum | rpmfileState_e { RPMFILE_STATE_NORMAL = 0, RPMFILE_STATE_REPLACED = 1, RPMFILE_STATE_NOTINSTALLED = 2, RPMFILE_STATE_NETSHARED = 3, RPMFILE_STATE_WRONGCOLOR = 4 } |
| File States (when installed). More... | |
| enum | rpmfileAttrs_e { RPMFILE_NONE = 0, RPMFILE_CONFIG = (1 << 0), RPMFILE_DOC = (1 << 1), RPMFILE_ICON = (1 << 2), RPMFILE_MISSINGOK = (1 << 3), RPMFILE_NOREPLACE = (1 << 4), RPMFILE_SPECFILE = (1 << 5), RPMFILE_GHOST = (1 << 6), RPMFILE_LICENSE = (1 << 7), RPMFILE_README = (1 << 8), RPMFILE_EXCLUDE = (1 << 9), RPMFILE_UNPATCHED = (1 << 10), RPMFILE_PUBKEY = (1 << 11), RPMFILE_POLICY = (1 << 12), RPMFILE_EXISTS = (1 << 13), RPMFILE_SPARSE = (1 << 14), RPMFILE_TYPED = (1 << 15), RPMFILE_SOURCE = (1 << 16), RPMFILE_PATCH = (1 << 17), RPMFILE_OPTIONAL = (1 << 18), RPMFILE_REMOVE = (1 << 19) } |
| File Attributes. More... | |
Variables | |
| int | _rpmfi_debug |
RPMFI | |
| #define | rpmfiUnlink(_fi, _msg) ((rpmfi) rpmioUnlinkPoolItem((rpmioItem)(_fi), _msg, __FILE__, __LINE__)) |
| #define | rpmfiLink(_fi, _msg) ((rpmfi) rpmioLinkPoolItem((rpmioItem)(_fi), _msg, __FILE__, __LINE__)) |
| #define | rpmfiFree(_fi) ((rpmfi) rpmioFreePoolItem((rpmioItem)(_fi), __FUNCTION__, __FILE__, __LINE__)) |
| rpmfi | rpmfiUnlink (rpmfi fi, const char *msg) |
| Unreference a file info set instance. | |
| rpmfi | rpmfiLink (rpmfi fi, const char *msg) |
| Reference a file info set instance. | |
| int | rpmfiFC (rpmfi fi) |
| Return file count from file info set. | |
| int | rpmfiFX (rpmfi fi) |
| Return current file index from file info set. | |
| int | rpmfiSetFX (rpmfi fi, int fx) |
| Set current file index in file info set. | |
| int | rpmfiDC (rpmfi fi) |
| Return directory count from file info set. | |
| int | rpmfiDX (rpmfi fi) |
| Return current directory index from file info set. | |
| int | rpmfiSetDX (rpmfi fi, int dx) |
| Set current directory index in file info set. | |
| int | rpmfiIsSource (rpmfi fi) |
| Return source rpm marker from file info set. | |
| const char * | rpmfiBN (rpmfi fi) |
| Return current base name from file info set. | |
| const char * | rpmfiDN (rpmfi fi) |
| Return current directory name from file info set. | |
| const char * | rpmfiFN (rpmfi fi) |
| Return current file name from file info set. | |
| size_t | rpmfiFNMaxLen (rpmfi fi) |
| Return maximum file name length from file info set. | |
| rpmuint32_t | rpmfiFFlags (rpmfi fi) |
| Return current file flags from file info set. | |
| rpmuint32_t | rpmfiSetFFlags (rpmfi fi, rpmuint32_t FFlags) |
| Set current file flags in file info set. | |
| rpmuint32_t | rpmfiVFlags (rpmfi fi) |
| Return current file verify flags from file info set. | |
| rpmuint32_t | rpmfiSetVFlags (rpmfi fi, rpmuint32_t VFlags) |
| Set current file verify flags in file info set. | |
| rpmuint16_t | rpmfiFMode (rpmfi fi) |
| Return current file mode from file info set. | |
| rpmfileState | rpmfiFState (rpmfi fi) |
| Return current file state from file info set. | |
| rpmfileState | rpmfiSetFState (rpmfi fi, rpmfileState fstate) |
| Set current file state in file info set. | |
| const unsigned char * | rpmfiDigest (rpmfi fi, int *algop, size_t *lenp) |
| Return current file (binary) digest from file info set. | |
| const char * | rpmfiFLink (rpmfi fi) |
| Return current file linkto (i.e. | |
| rpmuint32_t | rpmfiFSize (rpmfi fi) |
| Return current file size from file info set. | |
| rpmuint16_t | rpmfiFRdev (rpmfi fi) |
| Return current file rdev from file info set. | |
| rpmuint32_t | rpmfiFInode (rpmfi fi) |
| Return current file inode from file info set. | |
| rpmuint32_t | rpmfiColor (rpmfi fi) |
| Return union of all file color bits from file info set. | |
| rpmuint32_t | rpmfiFColor (rpmfi fi) |
| Return current file color bits from file info set. | |
| const char * | rpmfiFClass (rpmfi fi) |
| Return current file class from file info set. | |
| const char * | rpmfiFContext (rpmfi fi) |
| Return current file security context from file info set. | |
| rpmuint32_t | rpmfiFDepends (rpmfi fi, const rpmuint32_t **fddictp) |
| Return current file depends dictionary from file info set. | |
| rpmuint32_t | rpmfiFNlink (rpmfi fi) |
| Return (calculated) current file nlink count from file info set. | |
| rpmuint32_t | rpmfiFMtime (rpmfi fi) |
| Return current file modify time from file info set. | |
| const char * | rpmfiFUser (rpmfi fi) |
| Return current file owner from file info set. | |
| const char * | rpmfiFGroup (rpmfi fi) |
| Return current file group from file info set. | |
| void * | rpmfiBloomFN (const rpmfi fi) |
| Return file path Bloom filter. | |
| void * | rpmfiExclude (const rpmfi fi) |
| Return file info exclude patterns. | |
| int | rpmfiNExclude (const rpmfi fi) |
| Return no. | |
| void * | rpmfiInclude (const rpmfi fi) |
| Return file info include patterns. | |
| int | rpmfiNInclude (const rpmfi fi) |
| Return no. | |
| void * | rpmfiFNBF (rpmfi fi) |
| Return FN Bloom filter from file info set. | |
| int | rpmfiNext (rpmfi fi) |
| Return next file iterator index. | |
| rpmfi | rpmfiInit (rpmfi fi, int fx) |
| Initialize file iterator index. | |
| int | rpmfiNextD (rpmfi fi) |
| Return next directory iterator index. | |
| rpmfi | rpmfiInitD (rpmfi fi, int dx) |
| Initialize directory iterator index. | |
| int | rpmfiSetHeader (rpmfi fi, Header h) |
| Link a header to a file info set. | |
| rpmfi | rpmfiFree (rpmfi fi) |
| Destroy a file info set. | |
| rpmfi | rpmfiNew (const void *_ts, Header h, rpmTag tagN, int flags) |
| Create and load a file info set. | |
| int | rpmfiFStat (rpmfi fi, struct stat *st) |
| Return current stat(2) data from file info set. | |
| int | rpmfiStat (rpmfi fi, const char *path, struct stat *st) |
| Return lstat(2) data of path from file info set. | |
| void * | rpmfiOpendir (rpmfi fi, const char *name) |
| Return directory stream onto file info set. | |
| void | rpmfiBuildFClasses (Header h, const char ***fclassp, rpmuint32_t *fcp) |
| Retrieve file classes from header. | |
| void | rpmfiBuildFDeps (Header h, rpmTag tagN, const char ***fdepsp, rpmuint32_t *fcp) |
| Retrieve per-file dependencies from header. | |
| int | rpmfiCompare (const rpmfi afi, const rpmfi bfi) |
| Return file info comparison. | |
| int | rpmfiDecideFate (const rpmfi ofi, rpmfi nfi, int skipMissing) |
| Return file disposition. | |
| const char * | rpmfiTypeString (rpmfi fi) |
| Return formatted string representation of package disposition. | |
| rpmRelocation | rpmfiFreeRelocations (rpmRelocation relocs) |
| Free relocation array. | |
| rpmRelocation | rpmfiDupeRelocations (rpmRelocation relocs, int *nrelocsp) |
| Duplicate a relocation array. | |
| int | rpmfiAddRelocation (rpmRelocation *relp, int *nrelp, const char *oldPath, const char *newPath) |
| Add relocation element to array. | |
Structure(s) used for file info tag sets.
Definition in file rpmfi.h.
| #define RPMFILE_STATE_MISSING -1 |
Definition at line 41 of file rpmfi.h.
Referenced by rpmfiFState(), and showQueryPackage().
| typedef enum rpmfileAttrs_e rpmfileAttrs |
File Attributes.
| typedef enum rpmfileState_e rpmfileState |
File States (when installed).
| enum rpmfileAttrs_e |
File Attributes.
| enum rpmfileState_e |
| int rpmfiAddRelocation | ( | rpmRelocation * | relp, |
| int * | nrelp, | ||
| const char * | oldPath, | ||
| const char * | newPath | ||
| ) |
Add relocation element to array.
| *relocations | relocation array |
| *nrelocations | no. of elements |
| oldPath | old path |
| newPath | new path |
Definition at line 1720 of file rpmfi.c.
References xrealloc(), and xstrdup().
Referenced by installArgCallback(), and main().
| const char* rpmfiBN | ( | rpmfi | fi | ) |
Return current base name from file info set.
| fi | file info set |
Definition at line 134 of file rpmfi.c.
Referenced by arSetup(), handleInstInstalledFile(), rpmalAdd(), rpmfi_BN(), rpmtsFindBaseNamesInDB(), and rpmtsSkipFiles().
| void rpmfiBuildFClasses | ( | Header | h, |
| const char *** | fclassp, | ||
| rpmuint32_t * | fcp | ||
| ) |
Retrieve file classes from header.
This function is used to retrieve file classes from the header.
| h | header |
| *fclassp | array of file classes |
| *fcp | number of files |
Definition at line 1872 of file rpmfi.c.
References _free(), rpmfiFC(), rpmfiFClass(), rpmfiFree(), rpmfiInit(), rpmfiNew(), rpmfiNext(), stpcpy(), and xmalloc().
Referenced by fileclassTag().
| void rpmfiBuildFDeps | ( | Header | h, |
| rpmTag | tagN, | ||
| const char *** | fdepsp, | ||
| rpmuint32_t * | fcp | ||
| ) |
Retrieve per-file dependencies from header.
This function is used to retrieve per-file dependencies from the header.
| h | header |
| tagN | RPMTAG_PROVIDENAME | RPMTAG_REQUIRENAME |
| *fdepsp | array of file dependencies |
| *fcp | number of files |
Definition at line 2131 of file rpmfi.c.
References _free(), rpmdsDNEVR(), rpmdsFree(), rpmdsNew(), rpmdsNext(), rpmdsSetIx(), rpmfiFC(), rpmfiFDepends(), rpmfiFree(), rpmfiInit(), rpmfiNew(), rpmfiNext(), stpcpy(), and xmalloc().
Referenced by fileprovideTag(), and filerequireTag().
| rpmuint32_t rpmfiColor | ( | rpmfi | fi | ) |
Return file info comparison.
| afi | 1st file info |
| bfi | 2nd file info |
Definition at line 632 of file rpmfi.c.
References LINK, REG, rpmfiDigest(), rpmfiFLink(), rpmfiFMode(), and rpmfiWhatis().
Referenced by handleInstInstalledFile(), and handleOverlappedFiles().
| int rpmfiDC | ( | rpmfi | fi | ) |
Return directory count from file info set.
| fi | file info set |
Definition at line 85 of file rpmfi.c.
Referenced by rpmalAdd(), rpmalDel(), rpmfi_DC(), and rpmtsSkipFiles().
Return file disposition.
| ofi | old file info |
| nfi | new file info |
| skipMissing | OK to skip missing files? |
Definition at line 666 of file rpmfi.c.
References D_, dodigest(), FA_ALTNAME, FA_CREATE, FA_SAVE, FA_SKIP, LINK, Lstat(), Readlink(), REG, rpmfiDigest(), rpmfiFFlags(), rpmfiFLink(), rpmfiFMode(), rpmfiFN(), RPMFILE_MISSINGOK, RPMFILE_NOREPLACE, RPMFILE_SPARSE, rpmfiWhatis(), rpmlog(), RPMLOG_DEBUG, and XDIR.
Referenced by handleInstInstalledFile().
| const unsigned char* rpmfiDigest | ( | rpmfi | fi, |
| int * | algop, | ||
| size_t * | lenp | ||
| ) |
Return current file (binary) digest from file info set.
| fi | file info set |
| *algop | digest algorithm |
| *lenp | digest length (in bytes) |
Definition at line 295 of file rpmfi.c.
Referenced by handleOverlappedFiles(), rpmfi_Digest(), rpmfiCompare(), rpmfiDecideFate(), and showQueryPackage().
| const char* rpmfiDN | ( | rpmfi | fi | ) |
Return current directory name from file info set.
| fi | file info set |
Definition at line 145 of file rpmfi.c.
Referenced by handleInstInstalledFile(), rpmalAdd(), rpmalDel(), rpmfi_DN(), and rpmtsSkipFiles().
| rpmRelocation rpmfiDupeRelocations | ( | rpmRelocation | relocs, |
| int * | nrelocsp | ||
| ) |
Duplicate a relocation array.
| relocs | relocation array |
| *nrelocsp | no. of elements |
Definition at line 1745 of file rpmfi.c.
References rpmRelocation_s::newPath, rpmRelocation_s::oldPath, xmalloc(), and xstrdup().
Referenced by addTE().
| int rpmfiDX | ( | rpmfi | fi | ) |
Return current directory index from file info set.
| fi | file info set |
Definition at line 113 of file rpmfi.c.
Referenced by rpmalAdd(), rpmfi_DX(), and rpmtsSkipFiles().
| int rpmfiFC | ( | rpmfi | fi | ) |
Return file count from file info set.
| fi | file info set |
Definition at line 80 of file rpmfi.c.
Referenced by mapFind(), pkgUnpackagedSubdirs(), postPopulateInstallHeader(), removePackage(), rpmalAdd(), rpmalDel(), rpmfcGenerateDepends(), rpmfi_FC(), rpmfi_length(), rpmfiBuildFClasses(), rpmfiBuildFDeps(), rpmpsmStage(), rpmteColorDS(), rpmtsAddFingerprints(), rpmtsAddInstallElement(), rpmtsCheckDSIProblems(), rpmtsPrepare(), rpmtsSanityCheck(), showQueryPackage(), and showVerifyPackage().
| const char* rpmfiFClass | ( | rpmfi | fi | ) |
Return current file class from file info set.
| fi | file info set |
Definition at line 378 of file rpmfi.c.
Referenced by rpmfi_FClass(), and rpmfiBuildFClasses().
| rpmuint32_t rpmfiFColor | ( | rpmfi | fi | ) |
Return current file color bits from file info set.
| fi | file info set |
Definition at line 366 of file rpmfi.c.
Referenced by handleInstInstalledFile(), handleOverlappedFiles(), rpmalAdd(), rpmfi_FColor(), rpmteColorDS(), and rpmtsSkipFiles().
| const char* rpmfiFContext | ( | rpmfi | fi | ) |
| rpmuint32_t rpmfiFDepends | ( | rpmfi | fi, |
| const rpmuint32_t ** | fddictp | ||
| ) |
Return current file depends dictionary from file info set.
| fi | file info set |
| *fddictp | file depends dictionary array (or NULL) |
Definition at line 401 of file rpmfi.c.
Referenced by rpmfiBuildFDeps(), and rpmteColorDS().
| rpmuint32_t rpmfiFFlags | ( | rpmfi | fi | ) |
Return current file flags from file info set.
| fi | file info set |
Definition at line 212 of file rpmfi.c.
Referenced by handleInstInstalledFile(), handleOverlappedFiles(), rpmfcGenerateDepends(), rpmfi_FFlags(), rpmfi_iternext(), rpmfiDecideFate(), rpmInstallSourcePackage(), rpmtsSkipFiles(), and showQueryPackage().
| const char* rpmfiFGroup | ( | rpmfi | fi | ) |
Return current file group from file info set.
| fi | file info set |
Definition at line 465 of file rpmfi.c.
Referenced by rpmfi_FGroup(), rpmfi_iternext(), and showQueryPackage().
| rpmuint32_t rpmfiFInode | ( | rpmfi | fi | ) |
Return current file inode from file info set.
| fi | file info set |
Definition at line 345 of file rpmfi.c.
Referenced by rpmfi_iternext().
| const char* rpmfiFLink | ( | rpmfi | fi | ) |
Return current file linkto (i.e.
symlink(2) target) from file info set.
| fi | file info set |
Definition at line 312 of file rpmfi.c.
Referenced by rpmfi_FLink(), rpmfiCompare(), rpmfiDecideFate(), rpmtsAddFingerprints(), and showQueryPackage().
| rpmuint16_t rpmfiFMode | ( | rpmfi | fi | ) |
Return current file mode from file info set.
| fi | file info set |
Definition at line 260 of file rpmfi.c.
Referenced by fiIntersect(), handleOverlappedFiles(), rpmfcGenerateDepends(), rpmfi_FMode(), rpmfi_iternext(), rpmfiCompare(), rpmfiDecideFate(), rpmtsSkipFiles(), and showQueryPackage().
| rpmuint32_t rpmfiFMtime | ( | rpmfi | fi | ) |
Return current file modify time from file info set.
| fi | file info set |
Definition at line 442 of file rpmfi.c.
Referenced by rpmfi_FMtime(), rpmfi_iternext(), and showQueryPackage().
| const char* rpmfiFN | ( | rpmfi | fi | ) |
Return current file name from file info set.
| fi | file info set |
Definition at line 156 of file rpmfi.c.
References stpcpy(), urlPath(), and xmalloc().
Referenced by _rpmtsCheck(), checkUnpackagedFiles(), fiIntersect(), handleOverlappedFiles(), pkgUnpackagedSubdirs(), rpmfcGenerateDepends(), rpmfcGenerateDependsHelper(), rpmfi_FN(), rpmfi_iternext(), rpmfi_print(), rpmfi_subscript(), rpmfiDecideFate(), rpmfiOpendir(), rpmfiStat(), rpmInstallSourcePackage(), and showQueryPackage().
| void* rpmfiFNBF | ( | rpmfi | fi | ) |
| rpmuint32_t rpmfiFNlink | ( | rpmfi | fi | ) |
Return (calculated) current file nlink count from file info set.
| fi | file info set |
Definition at line 422 of file rpmfi.c.
Referenced by rpmfi_iternext(), rpmfiFStat(), rpmvfNew(), and showQueryPackage().
| size_t rpmfiFNMaxLen | ( | rpmfi | fi | ) |
Return maximum file name length from file info set.
| fi | file info set |
Definition at line 205 of file rpmfi.c.
Referenced by pkgUnpackagedSubdirs().
| rpmuint16_t rpmfiFRdev | ( | rpmfi | fi | ) |
Return current file rdev from file info set.
| fi | file info set |
Definition at line 334 of file rpmfi.c.
Referenced by rpmfi_FRdev(), rpmfi_iternext(), and showQueryPackage().
Destroy a file info set.
| fi | file info set |
Referenced by checkDuplicateFiles(), checkUnpackagedFiles(), delTE(), genCpioListAndHeader(), main(), packageBinaries(), packageSources(), pkgFini(), pkgUnpackagedSubdirs(), rpmalDel(), rpmalFree(), rpmfi_dealloc(), rpmfi_free(), rpmfiBuildFClasses(), rpmfiBuildFDeps(), rpmpsmFini(), rpmteSetFI(), rpmtsCheckInstalledFiles(), rpmtsProcess(), showQueryPackage(), showVerifyPackage(), and specFini().
| rpmRelocation rpmfiFreeRelocations | ( | rpmRelocation | relocs | ) |
Free relocation array.
| relocs | relocation array |
Definition at line 1732 of file rpmfi.c.
References _free(), rpmRelocation_s::newPath, and rpmRelocation_s::oldPath.
| rpmuint32_t rpmfiFSize | ( | rpmfi | fi | ) |
Return current file size from file info set.
| fi | file info set |
Definition at line 323 of file rpmfi.c.
Referenced by handleInstInstalledFile(), handleOverlappedFiles(), rpmfi_FSize(), rpmfi_iternext(), and showQueryPackage().
| int rpmfiFStat | ( | rpmfi | fi, |
| struct stat * | st | ||
| ) |
Return current stat(2) data from file info set.
| fi | file info set |
| *st | stat(2) data |
Definition at line 1770 of file rpmfi.c.
References gnameToGid(), rpmfiFNlink(), and unameToUid().
Referenced by rpmfiStat().
| rpmfileState rpmfiFState | ( | rpmfi | fi | ) |
Return current file state from file info set.
| fi | file info set |
Definition at line 271 of file rpmfi.c.
References RPMFILE_STATE_MISSING.
Referenced by handleOverlappedFiles(), rpmfi_FState(), rpmfi_iternext(), and showQueryPackage().
| const char* rpmfiFUser | ( | rpmfi | fi | ) |
Return current file owner from file info set.
| fi | file info set |
Definition at line 453 of file rpmfi.c.
Referenced by rpmfi_FUser(), rpmfi_iternext(), and showQueryPackage().
| int rpmfiFX | ( | rpmfi | fi | ) |
Return current file index from file info set.
| fi | file info set |
Definition at line 96 of file rpmfi.c.
Referenced by handleInstInstalledFile(), and rpmfi_FX().
Initialize file iterator index.
| fi | file info set |
| fx | file iterator index |
Definition at line 543 of file rpmfi.c.
Referenced by _rpmtsCheck(), arSetup(), checkUnpackagedFiles(), dnlInitIterator(), fiIntersect(), handleOverlappedFiles(), pkgUnpackagedSubdirs(), rpmalAdd(), rpmfcGenerateDepends(), rpmfcGenerateDependsHelper(), rpmfi_iternext(), rpmfi_print(), rpmfiBuildFClasses(), rpmfiBuildFDeps(), rpmfiOpendir(), rpmfiStat(), rpmInstallSourcePackage(), rpmteColorDS(), rpmtsAddFingerprints(), rpmtsFindBaseNamesInDB(), rpmtsPrepare(), rpmtsSkipFiles(), and showQueryPackage().
Initialize directory iterator index.
| fi | file info set |
| dx | directory iterator index |
Definition at line 577 of file rpmfi.c.
Referenced by rpmtsSkipFiles().
| int rpmfiIsSource | ( | rpmfi | fi | ) |
Reference a file info set instance.
| fi | file info set |
| msg |
Referenced by checkDuplicateFiles(), checkUnpackagedFiles(), mapInitIterator(), packageBinaries(), packageSources(), pkgUnpackagedSubdirs(), rpmalAdd(), rpmfiNew(), rpmpsmNew(), rpmte_FI(), rpmteSetFI(), and rpmtsProcess().
Create and load a file info set.
| _ts | transaction set (NULL skips path relocation) |
| h | header |
| tagN | RPMTAG_BASENAMES |
| flags | scareMem(0x1), nofilter(0x2) |
Definition at line 1398 of file rpmfi.c.
References _fdupedata, _fdupestring, _free(), _rpmfi_debug, alloca(), rpmDataType_u::argv, argvFree(), _HE_s::c, FA_UNKNOWN, headerFree(), headerGet(), headerIsEntry(), headerLink(), headerMacrosLoad(), headerMacrosUnload(), headerSprintf(), IOSM_MAP_GID, IOSM_MAP_MODE, IOSM_MAP_PATH, IOSM_MAP_UID, newFSM(), rpmRelocation_s::newPath, nibble(), _HE_s::p, PGPHASHALGO_CRC32, PGPHASHALGO_ERROR, PGPHASHALGO_MD2, PGPHASHALGO_MD5, PGPHASHALGO_RIPEMD128, PGPHASHALGO_RIPEMD160, PGPHASHALGO_RIPEMD256, PGPHASHALGO_RIPEMD320, PGPHASHALGO_SHA1, PGPHASHALGO_SHA224, PGPHASHALGO_SHA256, PGPHASHALGO_SHA384, PGPHASHALGO_SHA512, rpmDataType_u::ptr, relocateFileList(), rpmfiGetPool(), RPMFILE_ICON, RPMFILE_PATCH, RPMFILE_SOURCE, RPMFILE_SPECFILE, rpmfiLink(), rpmGenPath(), rpmGetPath(), rpmHeaderFormats, rpmteType(), rpmtsRelocateElement(), rpmtsRootDir(), stpcpy(), _HE_s::tag, TR_ADDED, rpmDataType_u::ui32p, xcalloc(), xmalloc(), xrealloc(), and xstrdup().
Referenced by addTE(), checkDuplicateFiles(), checkUnpackagedFiles(), genCpioListAndHeader(), hdr_fiFromHeader(), pkgUnpackagedSubdirs(), rpmfi_init(), rpmfiBuildFClasses(), rpmfiBuildFDeps(), rpmteOpen(), rpmtsCheckInstalledFiles(), rpmtsProcess(), showQueryPackage(), and showVerifyPackage().
| int rpmfiNext | ( | rpmfi | fi | ) |
Return next file iterator index.
| fi | file info set |
Definition at line 521 of file rpmfi.c.
References _rpmfi_debug.
Referenced by _rpmtsCheck(), arSetup(), checkUnpackagedFiles(), dnlInitIterator(), fiIntersect(), handleOverlappedFiles(), pkgUnpackagedSubdirs(), rpmalAdd(), rpmfcGenerateDepends(), rpmfcGenerateDependsHelper(), rpmfi_iternext(), rpmfi_print(), rpmfiBuildFClasses(), rpmfiBuildFDeps(), rpmfiOpendir(), rpmfiStat(), rpmInstallSourcePackage(), rpmteColorDS(), rpmtsAddFingerprints(), rpmtsFindBaseNamesInDB(), rpmtsPrepare(), rpmtsSkipFiles(), and showQueryPackage().
| int rpmfiNextD | ( | rpmfi | fi | ) |
Return next directory iterator index.
| fi | file info set |
Definition at line 557 of file rpmfi.c.
References _rpmfi_debug.
Referenced by rpmtsSkipFiles().
| void* rpmfiOpendir | ( | rpmfi | fi, |
| const char * | name | ||
| ) |
Return directory stream onto file info set.
| fi | file info set |
| name | directory path |
Definition at line 1828 of file rpmfi.c.
References _free(), _rpmfi_debug, argvAdd(), argvFree(), name, rpmfiFN(), rpmfiInit(), rpmfiNext(), and xcalloc().
| int rpmfiSetDX | ( | rpmfi | fi, |
| int | dx | ||
| ) |
Set current directory index in file info set.
| fi | file info set |
| dx | new directory index |
Definition at line 118 of file rpmfi.c.
Referenced by rpmalAdd(), and rpmalDel().
| rpmuint32_t rpmfiSetFFlags | ( | rpmfi | fi, |
| rpmuint32_t | FFlags | ||
| ) |
| rpmfileState rpmfiSetFState | ( | rpmfi | fi, |
| rpmfileState | fstate | ||
| ) |
| int rpmfiSetFX | ( | rpmfi | fi, |
| int | fx | ||
| ) |
Set current file index in file info set.
| fi | file info set |
| fx | new file index |
Definition at line 101 of file rpmfi.c.
Referenced by handleOverlappedFiles(), rpmfi_subscript(), and rpmtsCheckInstalledFiles().
Link a header to a file info set.
| fi | file info set |
| h | header |
Definition at line 1270 of file rpmfi.c.
References headerFree(), and headerLink().
Referenced by checkDuplicateFiles(), and showVerifyPackage().
| rpmuint32_t rpmfiSetVFlags | ( | rpmfi | fi, |
| rpmuint32_t | VFlags | ||
| ) |
| int rpmfiStat | ( | rpmfi | fi, |
| const char * | path, | ||
| struct stat * | st | ||
| ) |
Return lstat(2) data of path from file info set.
| fi | file info set |
| path | file path |
| *st | stat(2) data |
Definition at line 1797 of file rpmfi.c.
References _rpmfi_debug, rpmfiFN(), rpmfiFStat(), rpmfiInit(), and rpmfiNext().
| const char* rpmfiTypeString | ( | rpmfi | fi | ) |
Return formatted string representation of package disposition.
| fi | file info set |
Definition at line 762 of file rpmfi.c.
References rpmteType(), TR_ADDED, and TR_REMOVED.
Referenced by fsmStage().
Unreference a file info set instance.
| fi | file info set |
| msg |
Referenced by mapFreeIterator(), and rpmalAdd().
| rpmuint32_t rpmfiVFlags | ( | rpmfi | fi | ) |
Return current file verify flags from file info set.
| fi | file info set |
Definition at line 236 of file rpmfi.c.
Referenced by rpmfi_iternext(), and rpmfi_VFlags().
| int _rpmfi_debug |
1.7.4