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. | |
const char * | rpmfiFContext (rpmfi fi) |
Return current file security context 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 (const 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 | rpmfiBuildFContexts (Header h, const char ***fcontextp, int *fcp) |
Retrieve file security contexts from header. | |
void | rpmfiBuildFSContexts (Header h, const char ***fcontextp, int *fcp) |
Retrieve file security contexts from file system. | |
void | rpmfiBuildREContexts (Header h, const char ***fcontextp, int *fcp) |
Retrieve file security contexts from policy RE's. | |
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 215 of file rpmfi.h. Referenced by mapInitIterator(), packageBinaries(), packageSources(), rpmalAdd(), rpmfiNew(), rpmInstallSourcePackage(), rpmpsmNew(), rpmte_FI(), rpmtsRun(), and verifyHeader(). |
|
Definition at line 192 of file rpmfi.h. Referenced by mapFreeIterator(), rpmalAdd(), rpmfiFree(), and verifyHeader(). |
|
Return current base name from file info set.
Definition at line 108 of file rpmfi.c. 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 1444 of file rpmfi.c. References _free(), Header, rpmfi, rpmfiFC(), rpmfiFClass(), rpmfiFree(), rpmfiInit(), rpmfiNew(), rpmfiNext(), RPMTAG_BASENAMES, stpcpy(), and xmalloc(). Referenced by fileclassTag(). |
|
Retrieve file security contexts from header. This function is used to retrieve file contexts from the header.
Definition at line 1499 of file rpmfi.c. References _free(), Header, rpmfi, rpmfiFC(), rpmfiFContext(), rpmfiFree(), rpmfiInit(), rpmfiNew(), rpmfiNext(), RPMTAG_BASENAMES, stpcpy(), and xmalloc(). Referenced by filecontextsTag(). |
|
Retrieve per-file dependencies from header. This function is used to retrieve per-file dependencies from the header.
Definition at line 1702 of file rpmfi.c. References _free(), Header, int_32, rpmds, rpmdsDNEVR(), rpmdsFree(), rpmdsNew(), rpmdsNext(), rpmdsSetIx(), rpmfi, rpmfiFC(), rpmfiFDepends(), rpmfiFree(), rpmfiInit(), rpmfiNew(), rpmfiNext(), RPMTAG_BASENAMES, stpcpy(), and xmalloc(). Referenced by fileprovideTag(), and filerequireTag(). |
|
Retrieve file security contexts from file system. This function is used to retrieve file contexts from the file system.
Definition at line 1554 of file rpmfi.c. References _free(), alloca(), freecon, Header, lgetfilecon, rpmfi, rpmfiFC(), rpmfiFN(), rpmfiFree(), rpmfiInit(), rpmfiNew(), rpmfiNext(), RPMTAG_BASENAMES, security_context_t, xmalloc(), and xrealloc(). Referenced by fscontextsTag(). |
|
Retrieve file security contexts from policy RE's. This function is used to retrieve file contexts from policy RE's.
Definition at line 1625 of file rpmfi.c. References _free(), alloca(), Header, rpmfi, rpmfiFC(), rpmfiFMode(), rpmfiFN(), rpmfiFree(), rpmfiInit(), rpmfiNew(), rpmfiNext(), rpmsx, rpmsxFContext(), rpmsxFree(), rpmsxNew(), RPMTAG_BASENAMES, xmalloc(), and xrealloc(). Referenced by recontextsTag(). |
|
Return union of all file color bits from file info set.
Definition at line 271 of file rpmfi.c. References uint_32. |
|
Return file info comparison.
Definition at line 517 of file rpmfi.c. References fileTypes, rpmfiFLink(), rpmfiFMode(), rpmfiMD5(), and whatis(). Referenced by handleInstInstalledFiles(), and handleOverlappedFiles(). |
|
Return directory count from file info set.
Definition at line 62 of file rpmfi.c. Referenced by rpmalAdd(), rpmalDel(), rpmfi_DC(), and skipFiles(). |
|
Return file disposition.
Definition at line 546 of file rpmfi.c. References _, domd5(), FA_ALTNAME, fileAction, fileTypes, int_16, LINK, rpmfiFFlags(), rpmfiFLink(), rpmfiFMode(), rpmfiFN(), rpmfiMD5(), RPMMESS_DEBUG, rpmMessage, and whatis(). Referenced by handleInstInstalledFiles(). |
|
Return current directory name from file info set.
Definition at line 121 of file rpmfi.c. Referenced by handleInstInstalledFiles(), rpmalAdd(), rpmalDel(), rpmfi_DN(), and skipFiles(). |
|
Return current directory index from file info set.
Definition at line 92 of file rpmfi.c. Referenced by rpmalAdd(), rpmfi_DX(), and skipFiles(). |
|
Return file count from file info set.
Definition at line 57 of file rpmfi.c. Referenced by handleOverlappedFiles(), markReplacedFiles(), rpmalAdd(), rpmalDel(), rpmfcGenerateDepends(), rpmfi_FC(), rpmfi_length(), rpmfiBuildFClasses(), rpmfiBuildFContexts(), rpmfiBuildFDeps(), rpmfiBuildFSContexts(), rpmfiBuildREContexts(), rpmpsmStage(), rpmteColorDS(), rpmtsCheckDSIProblems(), rpmtsRun(), and showQueryPackage(). |
|
Return current file class from file info set.
Definition at line 295 of file rpmfi.c. Referenced by rpmfi_FClass(), and rpmfiBuildFClasses(). |
|
Return current file color bits from file info set.
Definition at line 281 of file rpmfi.c. References uint_32. Referenced by handleInstInstalledFiles(), handleOverlappedFiles(), rpmalAdd(), rpmfi_FColor(), rpmteColorDS(), and skipFiles(). |
|
Return current file security context from file info set.
Definition at line 310 of file rpmfi.c. Referenced by rpmfiBuildFContexts(), and rpmVerifyFile(). |
|
Return current file depends dictionary from file info set.
Definition at line 323 of file rpmfi.c. References int_32. Referenced by rpmfiBuildFDeps(), and rpmteColorDS(). |
|
Return current file flags from file info set.
Definition at line 154 of file rpmfi.c. References int_32. 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 395 of file rpmfi.c. Referenced by rpmfi_FGroup(), rpmfi_iternext(), rpmVerifyFile(), and showQueryPackage(). |
|
Return current file inode from file info set.
Definition at line 258 of file rpmfi.c. References int_32. Referenced by rpmfi_iternext(). |
|
Return current file linkto (i.e. symlink(2) target) from file info set.
Definition at line 219 of file rpmfi.c. Referenced by rpmfi_FLink(), rpmfiCompare(), rpmfiDecideFate(), rpmVerifyFile(), and showQueryPackage(). |
|
Return current file mode from file info set.
Definition at line 180 of file rpmfi.c. References int_16. Referenced by handleOverlappedFiles(), rpmfi_FMode(), rpmfi_iternext(), rpmfiBuildREContexts(), rpmfiCompare(), rpmfiDecideFate(), rpmVerifyFile(), showQueryPackage(), and skipFiles(). |
|
Return current file modify time from file info set.
Definition at line 368 of file rpmfi.c. References int_32. Referenced by rpmfi_FMtime(), rpmfi_iternext(), rpmVerifyFile(), and showQueryPackage(). |
|
Return current file name from file info set.
Definition at line 134 of file rpmfi.c. References stpcpy(), and xmalloc(). Referenced by handleOverlappedFiles(), isDocFile(), rpmfcGenerateDepends(), rpmfcGenerateDependsHelper(), rpmfi_FN(), rpmfi_iternext(), rpmfi_print(), rpmfi_subscript(), rpmfiBuildFSContexts(), rpmfiBuildREContexts(), rpmfiDecideFate(), rpmtsCheck(), rpmVerifyFile(), showQueryPackage(), and verifyHeader(). |
|
Return (calculated) current file nlink count from file info set.
Definition at line 346 of file rpmfi.c. References int_16, and int_32. Referenced by rpmfi_iternext(), and showQueryPackage(). |
|
Return current file rdev from file info set.
Definition at line 245 of file rpmfi.c. References int_16. Referenced by rpmfi_FRdev(), rpmfi_iternext(), rpmVerifyFile(), and showQueryPackage(). |
|
Destroy a file info set.
Definition at line 1098 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(), rpmfiBuildFContexts(), rpmfiBuildFDeps(), rpmfiBuildFSContexts(), rpmfiBuildREContexts(), rpmInstallSourcePackage(), rpmpsmFree(), rpmtsAddAvailableElement(), rpmtsRun(), showQueryPackage(), and showVerifyPackage(). |
|
Return current file size from file info set.
Definition at line 232 of file rpmfi.c. References int_32. Referenced by handleInstInstalledFiles(), handleOverlappedFiles(), rpmfi_FSize(), rpmfi_iternext(), rpmVerifyFile(), and showQueryPackage(). |
|
Return current file state from file info set.
Definition at line 193 of file rpmfi.c. References rpmfileState. Referenced by handleOverlappedFiles(), rpmfi_FState(), rpmfi_iternext(), rpmVerifyFile(), and showQueryPackage(). |
|
Return current file owner from file info set.
Definition at line 381 of file rpmfi.c. Referenced by rpmfi_FUser(), rpmfi_iternext(), rpmVerifyFile(), and showQueryPackage(). |
|
Return current file index from file info set.
Definition at line 73 of file rpmfi.c. Referenced by rpmfi_FX(). |
|
Initialize file iterator index.
Definition at line 433 of file rpmfi.c. References rpmfi. Referenced by handleInstInstalledFiles(), handleOverlappedFiles(), rpmalAdd(), rpmfcGenerateDepends(), rpmfcGenerateDependsHelper(), rpmfi_iternext(), rpmfi_print(), rpmfiBuildFClasses(), rpmfiBuildFContexts(), rpmfiBuildFDeps(), rpmfiBuildFSContexts(), rpmfiBuildREContexts(), rpmteColorDS(), rpmtsCheck(), rpmtsRun(), showQueryPackage(), skipFiles(), and verifyHeader(). |
|
Initialize directory iterator index.
Definition at line 467 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 206 of file rpmfi.c. Referenced by handleOverlappedFiles(), rpmfi_iternext(), rpmfi_MD5(), rpmfiCompare(), rpmfiDecideFate(), rpmVerifyFile(), and showQueryPackage(). |
|
|
Return next file iterator index.
Definition at line 409 of file rpmfi.c. References _rpmfi_debug. Referenced by handleInstInstalledFiles(), handleOverlappedFiles(), rpmalAdd(), rpmfcGenerateDepends(), rpmfcGenerateDependsHelper(), rpmfi_iternext(), rpmfi_print(), rpmfiBuildFClasses(), rpmfiBuildFContexts(), rpmfiBuildFDeps(), rpmfiBuildFSContexts(), rpmfiBuildREContexts(), rpmteColorDS(), rpmtsCheck(), rpmtsRun(), showQueryPackage(), skipFiles(), and verifyHeader(). |
|
Return next directory iterator index.
Definition at line 447 of file rpmfi.c. References _rpmfi_debug. Referenced by skipFiles(). |
|
Set current directory index in file info set.
Definition at line 97 of file rpmfi.c. Referenced by rpmalAdd(), and rpmalDel(). |
|
Set current file index in file info set.
Definition at line 78 of file rpmfi.c. Referenced by handleInstInstalledFiles(), handleOverlappedFiles(), and rpmfi_subscript(). |
|
Return formatted string representation of package disposition.
Definition at line 633 of file rpmfi.c. References 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 167 of file rpmfi.c. References int_32. Referenced by rpmfi_iternext(), rpmfi_VFlags(), and rpmVerifyFile(). |
|
Return file type from mode_t.
Definition at line 503 of file rpmfi.c. References fileTypes, S_ISLNK, and S_ISSOCK. Referenced by relocateFileList(), rpmfiCompare(), rpmfiDecideFate(), and skipFiles(). |
|
Definition at line 46 of file rpmfi.c. References _rpmfi_debug, and rpmfi. |
|
Definition at line 35 of file rpmfi.c. References _rpmfi_debug, and rpmfi. |
|
|