Go to the source code of this file.
Defines | |
#define | rpmfiUnlink(_fi, _msg) XrpmfiUnlink(_fi, _msg, __FILE__, __LINE__) |
#define | rpmfiLink(_fi, _msg) XrpmfiLink(_fi, _msg, __FILE__, __LINE__) |
Functions | |
rpmfi | rpmfiUnlink (rpmfi fi, const char *msg) |
Unreference a file info set instance. | |
rpmfi | XrpmfiUnlink (rpmfi fi, const char *msg, const char *fn, unsigned ln) |
rpmfi | rpmfiLink (rpmfi fi, const char *msg) |
Reference a file info set instance. | |
rpmfi | XrpmfiLink (rpmfi fi, const char *msg, const char *fn, unsigned ln) |
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. | |
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. | |
int_32 | rpmfiFFlags (rpmfi fi) |
Return current file flags from file info set. | |
int_32 | rpmfiVFlags (rpmfi fi) |
Return current file verify flags from file info set. | |
int_16 | rpmfiFMode (rpmfi fi) |
Return current file mode from file info set. | |
rpmfileState | rpmfiFState (rpmfi fi) |
Return current file state from file info set. | |
const unsigned char * | rpmfiMD5 (rpmfi fi) |
Return current file (binary) md5 digest from file info set. | |
const char * | rpmfiFLink (rpmfi fi) |
Return current file linkto (i.e. | |
int_32 | rpmfiFSize (rpmfi fi) |
Return current file size from file info set. | |
int_16 | rpmfiFRdev (rpmfi fi) |
Return current file rdev from file info set. | |
int_32 | rpmfiFInode (rpmfi fi) |
Return current file inode from file info set. | |
uint_32 | rpmfiColor (rpmfi fi) |
Return union of all file color bits from file info set. | |
uint_32 | 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. | |
int_32 | rpmfiFDepends (rpmfi fi, const int_32 **fddictp) |
Return current file depends dictionary from file info set. | |
int_32 | rpmfiFNlink (rpmfi fi) |
Return (calculated) current file nlink count from file info set. | |
int_32 | 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. | |
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. | |
rpmfi | rpmfiFree (rpmfi fi) |
Destroy a file info set. | |
rpmfi | rpmfiNew (rpmts ts, Header h, rpmTag tagN, int scareMem) |
Create and load a file info set. | |
void | rpmfiBuildFClasses (Header h, const char ***fclassp, int *fcp) |
Retrieve file classes from header. | |
void | rpmfiBuildFDeps (Header h, rpmTag tagN, const char ***fdepsp, int *fcp) |
Retrieve per-file dependencies from header. | |
fileTypes | whatis (uint_16 mode) |
Return file type from mode_t. | |
int | rpmfiCompare (const rpmfi afi, const rpmfi bfi) |
Return file info comparison. | |
fileAction | rpmfiDecideFate (const rpmfi ofi, rpmfi nfi, int skipMissing) |
Return file disposition. | |
const char *const | rpmfiTypeString (rpmfi fi) |
Return formatted string representation of package disposition. | |
Variables | |
int | _rpmfi_debug |
Definition in file rpmfi.h.
|
Definition at line 216 of file rpmfi.h. Referenced by mapInitIterator(), packageBinaries(), packageSources(), rpmalAdd(), rpmfiNew(), rpmInstallSourcePackage(), rpmpsmNew(), rpmte_FI(), rpmtsRun(), and verifyHeader(). |
|
Definition at line 193 of file rpmfi.h. Referenced by mapFreeIterator(), rpmalAdd(), rpmfiFree(), and verifyHeader(). |
|
Return current base name from file info set.
Definition at line 107 of file rpmfi.c. References rpmfi. Referenced by handleInstInstalledFiles(), rpmalAdd(), rpmfi_BN(), and skipFiles(). |
|
Retrieve file classes from header. This function is used to retrieve file classes from the header.
Definition at line 1417 of file rpmfi.c. References _free(), rpmfi, rpmfiFC(), rpmfiFClass(), rpmfiFree(), rpmfiInit(), rpmfiNew(), rpmfiNext(), RPMTAG_BASENAMES, stpcpy(), and xmalloc(). Referenced by fileclassTag(). |
|
Retrieve per-file dependencies from header. This function is used to retrieve per-file dependencies from the header.
Definition at line 1472 of file rpmfi.c. References _free(), int_32, rpmds, rpmdsDNEVR(), rpmdsFree(), rpmdsNew(), rpmdsNext(), rpmdsSetIx(), rpmfi, rpmfiFC(), rpmfiFDepends(), rpmfiFree(), rpmfiInit(), rpmfiNew(), rpmfiNext(), rpmTag, RPMTAG_BASENAMES, RPMTAG_PROVIDENAME, RPMTAG_REQUIRENAME, stpcpy(), and xmalloc(). Referenced by fileprovideTag(), and filerequireTag(). |
|
Return union of all file color bits from file info set.
|
|
Return file info comparison.
Definition at line 503 of file rpmfi.c. References fileTypes, LINK, REG, rpmfi, rpmfiFLink(), rpmfiFMode(), rpmfiMD5(), and whatis(). Referenced by handleInstInstalledFiles(), and handleOverlappedFiles(). |
|
Return directory count from file info set.
Definition at line 61 of file rpmfi.c. References rpmfi. Referenced by rpmalAdd(), rpmalDel(), rpmfi_DC(), and skipFiles(). |
|
Return file disposition.
Definition at line 532 of file rpmfi.c. References _, domd5(), FA_ALTNAME, FA_CREATE, FA_SAVE, FA_SKIP, fileAction, fileTypes, int_16, LINK, REG, rpmfi, rpmfiFFlags(), rpmfiFLink(), rpmfiFMode(), rpmfiFN(), RPMFILE_MISSINGOK, RPMFILE_NOREPLACE, rpmfiMD5(), RPMMESS_DEBUG, rpmMessage, whatis(), and XDIR. Referenced by handleInstInstalledFiles(). |
|
Return current directory name from file info set.
Definition at line 120 of file rpmfi.c. References rpmfi. Referenced by handleInstInstalledFiles(), rpmalAdd(), rpmalDel(), rpmfi_DN(), and skipFiles(). |
|
Return current directory index from file info set.
Definition at line 91 of file rpmfi.c. References rpmfi. Referenced by rpmalAdd(), rpmfi_DX(), and skipFiles(). |
|
Return file count from file info set.
Definition at line 56 of file rpmfi.c. References rpmfi. Referenced by handleOverlappedFiles(), markReplacedFiles(), rpmalAdd(), rpmalDel(), rpmfcGenerateDepends(), rpmfi_FC(), rpmfi_length(), rpmfiBuildFClasses(), rpmfiBuildFDeps(), rpmpsmStage(), rpmteColorDS(), rpmtsCheckDSIProblems(), rpmtsRun(), and showQueryPackage(). |
|
Return current file class from file info set.
Definition at line 294 of file rpmfi.c. References rpmfi. Referenced by rpmfi_FClass(), and rpmfiBuildFClasses(). |
|
Return current file color bits from file info set.
Definition at line 280 of file rpmfi.c. References rpmfi, and uint_32. Referenced by handleInstInstalledFiles(), handleOverlappedFiles(), rpmalAdd(), rpmfi_FColor(), rpmteColorDS(), and skipFiles(). |
|
Return current file depends dictionary from file info set.
Definition at line 309 of file rpmfi.c. Referenced by rpmfiBuildFDeps(), and rpmteColorDS(). |
|
Return current file flags from file info set.
Definition at line 153 of file rpmfi.c. Referenced by handleInstInstalledFiles(), handleOverlappedFiles(), rpmfcGenerateDepends(), rpmfi_FFlags(), rpmfi_iternext(), rpmfiDecideFate(), rpmVerifyFile(), showQueryPackage(), skipFiles(), and verifyHeader(). |
|
Return current file group from file info set.
Definition at line 381 of file rpmfi.c. References rpmfi. Referenced by rpmfi_FGroup(), rpmfi_iternext(), rpmVerifyFile(), and showQueryPackage(). |
|
Return current file inode from file info set.
Definition at line 257 of file rpmfi.c. Referenced by rpmfi_iternext(). |
|
Return current file linkto (i.e. symlink(2) target) from file info set.
Definition at line 218 of file rpmfi.c. References rpmfi. Referenced by rpmfi_FLink(), rpmfiCompare(), rpmfiDecideFate(), rpmVerifyFile(), and showQueryPackage(). |
|
Return current file mode from file info set.
Definition at line 179 of file rpmfi.c. Referenced by handleOverlappedFiles(), rpmfi_FMode(), rpmfi_iternext(), rpmfiCompare(), rpmfiDecideFate(), rpmVerifyFile(), showQueryPackage(), and skipFiles(). |
|
Return current file modify time from file info set.
Definition at line 354 of file rpmfi.c. Referenced by rpmfi_FMtime(), rpmfi_iternext(), rpmVerifyFile(), and showQueryPackage(). |
|
Return current file name from file info set.
Definition at line 133 of file rpmfi.c. References rpmfi, stpcpy(), and xmalloc(). Referenced by handleOverlappedFiles(), rpmfcGenerateDepends(), rpmfcGenerateDependsHelper(), rpmfi_FN(), rpmfi_iternext(), rpmfi_print(), rpmfi_subscript(), rpmfiDecideFate(), rpmtsCheck(), rpmVerifyFile(), showQueryPackage(), and verifyHeader(). |
|
Return (calculated) current file nlink count from file info set.
Definition at line 332 of file rpmfi.c. References int_16, int_32, and rpmfi. Referenced by rpmfi_iternext(), and showQueryPackage(). |
|
Return current file rdev from file info set.
Definition at line 244 of file rpmfi.c. Referenced by rpmfi_FRdev(), rpmfi_iternext(), rpmVerifyFile(), and showQueryPackage(). |
|
Destroy a file info set.
Definition at line 1073 of file rpmfi.c. References _free(), _rpmfi_debug, freeFSM(), headerFree(), HFD_t, rpmfi, and rpmfiUnlink. Referenced by delTE(), freePackage(), freeSpec(), genCpioListAndHeader(), handleInstInstalledFiles(), packageBinaries(), packageSources(), rpmalDel(), rpmalFree(), rpmfi_dealloc(), rpmfiBuildFClasses(), rpmfiBuildFDeps(), rpmInstallSourcePackage(), rpmpsmFree(), rpmtsAddAvailableElement(), rpmtsRun(), showQueryPackage(), and showVerifyPackage(). |
|
Return current file size from file info set.
Definition at line 231 of file rpmfi.c. Referenced by handleInstInstalledFiles(), handleOverlappedFiles(), rpmfi_FSize(), rpmfi_iternext(), rpmVerifyFile(), and showQueryPackage(). |
|
Return current file state from file info set.
Definition at line 192 of file rpmfi.c. References rpmfi, RPMFILE_STATE_MISSING, and rpmfileState. Referenced by handleOverlappedFiles(), rpmfi_FState(), rpmfi_iternext(), rpmVerifyFile(), and showQueryPackage(). |
|
Return current file owner from file info set.
Definition at line 367 of file rpmfi.c. References rpmfi. Referenced by rpmfi_FUser(), rpmfi_iternext(), rpmVerifyFile(), and showQueryPackage(). |
|
Return current file index from file info set.
Definition at line 72 of file rpmfi.c. References rpmfi. Referenced by rpmfi_FX(). |
|
Initialize file iterator index.
Definition at line 419 of file rpmfi.c. References rpmfi. Referenced by handleInstInstalledFiles(), handleOverlappedFiles(), rpmalAdd(), rpmfcGenerateDepends(), rpmfcGenerateDependsHelper(), rpmfi_iternext(), rpmfi_print(), rpmfiBuildFClasses(), rpmfiBuildFDeps(), rpmpsmStage(), rpmteColorDS(), rpmtsCheck(), rpmtsRun(), showQueryPackage(), skipFiles(), and verifyHeader(). |
|
Initialize directory iterator index.
Definition at line 453 of file rpmfi.c. References rpmfi. Referenced by skipFiles(). |
|
Reference a file info set instance.
|
|
Return current file (binary) md5 digest from file info set.
Definition at line 205 of file rpmfi.c. References rpmfi. Referenced by handleOverlappedFiles(), rpmfi_iternext(), rpmfi_MD5(), rpmfiCompare(), rpmfiDecideFate(), rpmVerifyFile(), and showQueryPackage(). |
|
|
Return next file iterator index.
Definition at line 395 of file rpmfi.c. References _rpmfi_debug, and rpmfi. Referenced by handleInstInstalledFiles(), handleOverlappedFiles(), rpmalAdd(), rpmfcGenerateDepends(), rpmfcGenerateDependsHelper(), rpmfi_iternext(), rpmfi_print(), rpmfiBuildFClasses(), rpmfiBuildFDeps(), rpmpsmStage(), rpmteColorDS(), rpmtsCheck(), rpmtsRun(), showQueryPackage(), skipFiles(), and verifyHeader(). |
|
Return next directory iterator index.
Definition at line 433 of file rpmfi.c. References _rpmfi_debug, and rpmfi. Referenced by skipFiles(). |
|
Set current directory index in file info set.
Definition at line 96 of file rpmfi.c. References rpmfi. Referenced by rpmalAdd(), and rpmalDel(). |
|
Set current file index in file info set.
Definition at line 77 of file rpmfi.c. References rpmfi. Referenced by handleInstInstalledFiles(), handleOverlappedFiles(), and rpmfi_subscript(). |
|
Return formatted string representation of package disposition.
Definition at line 617 of file rpmfi.c. References rpmfi, rpmteType(), TR_ADDED, and TR_REMOVED. Referenced by fsmStage(). |
|
Unreference a file info set instance.
|
|
Return current file verify flags from file info set.
Definition at line 166 of file rpmfi.c. Referenced by rpmfi_iternext(), rpmfi_VFlags(), and rpmVerifyFile(). |
|
Return file type from mode_t.
Definition at line 489 of file rpmfi.c. References BDEV, CDEV, fileTypes, LINK, PIPE, REG, S_ISLNK, S_ISSOCK, SOCK, uint_16, and XDIR. Referenced by relocateFileList(), rpmfiCompare(), rpmfiDecideFate(), and skipFiles(). |
|
Definition at line 45 of file rpmfi.c. References _rpmfi_debug, and rpmfi. |
|
Definition at line 34 of file rpmfi.c. References _rpmfi_debug, and rpmfi. |
|
Definition at line 11 of file rpmfi.h. Referenced by rpmfiFree(), rpmfiNew(), rpmfiNext(), rpmfiNextD(), XrpmfiLink(), and XrpmfiUnlink(). |