#include "rpmio.h"
#include "rpmmessages.h"
#include "rpmerr.h"
#include "header.h"
#include "popt.h"
Include dependency graph for rpmlib.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Definition in file rpmlib.h.
|
Value: ( RPMTRANS_FLAG_NOPRE | \ RPMTRANS_FLAG_NOPOST | \ RPMTRANS_FLAG_NOPREUN | \ RPMTRANS_FLAG_NOPOSTUN \ ) Definition at line 952 of file rpmlib.h. Referenced by installArgCallback(), main(), and rpmtsRun(). |
|
Value: ( RPMTRANS_FLAG_NOTRIGGERPREIN | \ RPMTRANS_FLAG_NOTRIGGERIN | \ RPMTRANS_FLAG_NOTRIGGERUN | \ RPMTRANS_FLAG_NOTRIGGERPOSTUN \ ) Definition at line 959 of file rpmlib.h. Referenced by installArgCallback(), main(), and rpmtsRun(). |
|
|
|
No. of arch/os tables. |
|
|
|
|
|
Definition at line 72 of file rpmlib.h. Referenced by addRelation(), init_rpm(), rpmalAdd(), rpmalAllFileSatisfiesDepend(), rpmalAllSatisfiesDepend(), rpmteAddedKey(), rpmteSetAddedKey(), rpmtsAddAvailableElement(), rpmtsAddEraseElement(), rpmtsAddInstallElement(), and rpmtsOrder(). |
|
Definition at line 169 of file rpmlib.h. Referenced by _tagName(), _tagType(), _tagValue(), rpmdbAdd(), rpmdbMoveDatabase(), rpmdbOpenAll(), rpmdbOpenDatabase(), rpmdbRemove(), and rpmgiNext(). |
|
Definition at line 173 of file rpmlib.h. Referenced by _tagName(), _tagType(), _tagValue(), rpmcliArgIter(), rpmgiGlobArgv(), and rpmgiNext(). |
|
Definition at line 171 of file rpmlib.h. Referenced by _tagName(), _tagType(), _tagValue(), rpmdbAdd(), rpmdbMoveDatabase(), rpmdbOpenAll(), rpmdbOpenDatabase(), and rpmdbRemove(). |
|
Definition at line 167 of file rpmlib.h. Referenced by _tagName(), _tagType(), _tagValue(), rpmdbAdd(), rpmdbMoveDatabase(), rpmdbOpenAll(), rpmdbOpenDatabase(), rpmdbRemove(), rpmgiNext(), rpmtsCheck(), and unsatisfiedDepend(). |
|
Definition at line 174 of file rpmlib.h. Referenced by _tagName(), _tagType(), _tagValue(), rpmcliArgIter(), rpmgiGlobArgv(), and rpmgiNext(). |
|
Definition at line 172 of file rpmlib.h. Referenced by _tagName(), _tagType(), _tagValue(), rpmcliArgIter(), rpmgiGlobArgv(), and rpmgiNext(). |
|
Definition at line 168 of file rpmlib.h. Referenced by rpmcliArgIter(), rpmdbInitIterator(), rpmErase(), rpmQueryVerify(), rpmts_AddErase(), and rpmtsInitIterator(). |
|
Pseudo-tags used by the rpmdb and rpmgi iterator API's.
Definition at line 166 of file rpmlib.h. Referenced by _tagName(), _tagType(), _tagValue(), dbiFindMatches(), dbiOpen(), dbiTagsInit(), handleInstInstalledFiles(), handleRmvdInstalledFiles(), init_rpm(), markReplacedFiles(), rpmcliArgIter(), rpmdb_length(), rpmdb_Match(), rpmdb_subscript(), rpmdbAdd(), rpmdbFindByFile(), rpmdbFreeIterator(), rpmdbInitIterator(), rpmdbNextIterator(), rpmdbOpenDatabase(), rpmdbRebuild(), rpmdbRemove(), rpmgiInitFilter(), rpmgiNext(), rpmpsmStage(), rpmQueryVerify(), rpmts_AddErase(), and rpmts_Match(). |
|
Definition at line 170 of file rpmlib.h. Referenced by _tagName(), _tagType(), _tagValue(), rpmdbAdd(), rpmdbMoveDatabase(), rpmdbOpenAll(), rpmdbOpenDatabase(), rpmdbRemove(), and rpmgiNext(). |
|
|
|
|
|
Definition at line 544 of file rpmlib.h. Referenced by rpmfiFState(), and showQueryPackage(). |
|
Definition at line 1014 of file rpmlib.h. Referenced by packageBinaries(), rpmpsmStage(), and writeRPM(). |
|
|
|
|
|
|
|
|
|
Don't rely on sizeof(struct) |
|
Definition at line 1015 of file rpmlib.h. Referenced by packageSources(), and writeRPM(). |
|
Referenced by initSourceHeaderScriptlets(). |
|
Referenced by initSourceHeaderScriptlets(). |
|
Referenced by initSourceHeaderScriptlets(). |
|
Referenced by initSourceHeaderScriptlets(). |
|
Referenced by initSourceHeaderScriptlets(). |
|
Referenced by initSourceHeaderScriptlets(). |
|
Referenced by initSourceHeaderScriptlets(). |
|
Referenced by initSourceHeaderScriptlets(). |
|
Referenced by initSourceHeaderScriptlets(). |
|
Referenced by initSourceHeaderScriptlets(). |
|
|
|
|
|
Referenced by _tagName(). |
|
|
|
|
|
|
|
|
|
|
|
Referenced by hdr_subscript(), and rpmdbAdd(). |
|
|
|
|
|
|
|
|
|
|
|
Referenced by _tagName(), addTE(), hdruuidTag(), rpmHeadersIdentical(), and rpmteChain(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Referenced by addTE(), pkguuidTag(), and rpmteChain(). |
|
|
|
Referenced by rpmdsELF(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 774 of file rpmlib.h. Referenced by dnlInitIterator(), fsmCommitLinks(), fsmMakeLinks(), fsmStage(), handleInstInstalledFiles(), handleOverlappedFiles(), rpmtsRun(), saveHardLink(), and skipFiles(). |
|
File disposition(s) during package install/erase transaction.
|
|
File types. These are the file types used internally by rpm. The file type is determined by applying stat(2) macros like S_ISDIR to the file mode tag from a header. The values are arbitrary, but are identical to the linux stat(2) file types. |
|
File Attributes.
|
|
File States (when installed).
|
|
|
|
Package read return codes.
|
|
We pass these around as an array with a sentinel.
|
|
Scriptlet identifiers.
|
|
Scriptlet states (when installed).
|
|
|
File types. These are the file types used internally by rpm. The file type is determined by applying stat(2) macros like S_ISDIR to the file mode tag from a header. The values are arbitrary, but are identical to the linux stat(2) file types. |
|
File Attributes.
|
|
File States (when installed).
|
|
|
|
Package read return codes.
|
|
Scriptlet identifiers.
|
|
Scriptlet states (when installed).
|
|
Check header consistency, performing headerGetEntry() the hard way. Sanity checks on the header are performed while looking for a header-only digest or signature to verify the blob. If found, the digest or signature is verified.
Definition at line 691 of file package.c. References _, _free(), _print_pkts, alloca(), pgpDigParams_s::hash_algo, pgpDig_s::hdrmd5ctx, pgpDig_s::hdrsha1ctx, header_magic, headerVerifyInfo(), pgpDig_s::nbytes, PGPHASHALGO_SHA1, pgpPrtPkts(), REGION_TAG_COUNT, RPM_BIN_TYPE, RPM_STRING_TYPE, RPMDIGEST_NONE, rpmDigestInit(), rpmDigestUpdate(), rpmIsDebug, RPMMESS_ERROR, rpmMessage, RPMRC_FAIL, RPMRC_NOTFOUND, RPMRC_OK, rpmswEnter(), rpmswExit(), RPMTAG_DSAHEADER, RPMTAG_HEADERIMMUTABLE, RPMTAG_RSAHEADER, RPMTAG_SHA1HEADER, RPMTS_OP_DIGEST, rpmtsCleanDig(), rpmtsDig(), rpmtsOp(), rpmtsSetSig(), rpmtsVSFlags(), rpmVerifySignature(), RPMVSF_NODSAHEADER, RPMVSF_NORSAHEADER, RPMVSF_NOSHA1HEADER, pgpDig_s::signature, snprintf(), pgpDigParams_s::version, xmalloc(), and xstrdup(). Referenced by rpmpsmStage(), rpmReadHeader(), rpmts_HdrCheck(), rpmtsInitIterator(), and rpmtsRebuildDB(). |
|
Perform simple sanity and range checks on header tag(s).
Definition at line 647 of file package.c. References entryInfo_s::count, hdrchkAlign, hdrchkData, hdrchkRange, hdrchkType, entryInfo_s::offset, entryInfo_s::tag, and entryInfo_s::type. Referenced by headerCheck(), and rpmReadSignature(). |
|
Install source package.
Definition at line 166 of file psm.c. References _, _free(), Access(), CPIO_MAP_GID, CPIO_MAP_MODE, CPIO_MAP_PATH, CPIO_MAP_UID, FA_CREATE, Fclose(), fdLink, headerFree(), headerIsEntry(), headerLink(), headerMacrosLoad(), PSM_FINI, PSM_PKGINSTALL, PSM_PROCESS, RPMERR_CREATE, RPMERR_NOSPEC, RPMERR_NOTSRPM, rpmError, rpmfiBuildFNames(), rpmfiFree(), RPMFILE_SPECFILE, rpmfiLink, rpmfiNew(), rpmGenPath(), rpmMkdirPath(), rpmpsmStage(), RPMRC_FAIL, RPMRC_NOKEY, RPMRC_NOTTRUSTED, RPMRC_OK, rpmReadPackageFile(), RPMTAG_BASENAMES, RPMTAG_COOKIE, RPMTAG_SOURCERPM, rpmtsAddInstallElement(), rpmtsClean(), rpmtsElement(), rpmtsFree(), rpmtsLink, rpmtsRootDir(), stpcpy(), W_OK, xmalloc(), and xstrdup(). Referenced by rpmInstall(), and rpmInstallSource(). |
|
Return checked and loaded header.
Definition at line 1016 of file package.c. References _, _free(), block(), errno, fdGetOPath(), FDSTAT_READ, Fileno(), headerToken_s::flags, hdrchkData, hdrchkTags, header_magic, headerCheck(), HEADERFLAG_ALLOCATED, headerFree(), headerGetStatbuf(), headerLink(), headerLoad(), headerSetEndOff(), headerSetOrigin(), headerSetStartOff(), Realpath(), RPMRC_FAIL, RPMRC_OK, snprintf(), _FD_s::stats, timedRead, urlPath(), xmalloc(), and xstrdup(). Referenced by rpmReadPackageFile(). |
|
Return package header from file handle, verifying digests/signatures.
Definition at line 1138 of file package.c. References _, _chk, _free(), _print_pkts, alloca(), rpmop_s::count, _FD_s::digests, fdInitDigest(), fdstat_op(), FDSTAT_READ, Fileno(), Fread(), Fstrerror(), pgpDigParams_s::hash_algo, _FDDIGEST_s::hashalgo, _FDDIGEST_s::hashctx, pgpDig_s::hdrmd5ctx, pgpDig_s::hdrsha1ctx, header_magic, headerFree(), headerFreeData(), headerGetEntry(), headerIsEntry(), headerLink(), headerMergeLegacySigs(), pgpDig_s::md5ctx, pgpDig_s::nbytes, _FD_s::ndigests, PGPHASHALGO_MD5, PGPHASHALGO_RIPEMD160, PGPHASHALGO_SHA1, PGPHASHALGO_SHA256, PGPHASHALGO_SHA384, PGPHASHALGO_SHA512, pgpPrtPkts(), readLead(), rpm3to4(), RPMDIGEST_NONE, rpmDigestInit(), rpmDigestUpdate(), RPMERR_FREAD, RPMERR_NEWPACKAGE, RPMERR_SIGGEN, rpmError, rpmFreeSignature(), rpmIsDebug, RPMMESS_DEBUG, RPMMESS_ERROR, RPMMESS_WARNING, rpmMessage, RPMRC_FAIL, RPMRC_NOKEY, RPMRC_NOTFOUND, RPMRC_NOTTRUSTED, RPMRC_OK, rpmReadHeader(), rpmReadSignature(), RPMSIGTAG_DSA, RPMSIGTAG_GPG, RPMSIGTAG_MD5, RPMSIGTAG_PGP, RPMSIGTAG_PGP5, RPMSIGTAG_RSA, RPMSIGTAG_SHA1, rpmswAdd(), rpmswEnter(), rpmswExit(), rpmswSub(), RPMTAG_HEADERIMMUTABLE, RPMTS_OP_DIGEST, RPMTS_OP_READHDR, RPMTS_OP_SIGNATURE, rpmtsCleanDig(), rpmtsDig(), rpmtsOp(), rpmtsSetSig(), rpmtsStashKeyid(), rpmtsVSFlags(), rpmVerifySignature(), RPMVSF_NEEDPAYLOAD, RPMVSF_NODSA, RPMVSF_NODSAHEADER, RPMVSF_NOMD5, RPMVSF_NORSA, RPMVSF_NORSAHEADER, RPMVSF_NOSHA1HEADER, pgpDig_s::sha1ctx, pgpDig_s::signature, _FD_s::stats, and pgpDigParams_s::version. Referenced by IDTXglob(), readRPM(), rpmgiReadHeader(), rpmInstall(), rpmInstallSourcePackage(), rpmts_HdrFromFdno(), rpmtsRun(), and rpmtsSolve(). |
|
Compare headers to determine which header is "newer".
Definition at line 53 of file psm.c. References headerGetEntry(), RPMTAG_EPOCH, RPMTAG_RELEASE, RPMTAG_VERSION, and rpmvercmp. Referenced by hdr_compare(), and rpmInstall(). |
|
Return tag name from value.
Definition at line 976 of file rpmlib.h. References headerTagIndices_s::tagName. Referenced by checkForDuplicates(), checkForRequired(), handlePreambleTag(), i18nTag(), mapTagName(), printNewSpecfile(), rpmdsMergePRCO(), rpmdsTagName(), rpmfcMergePR(), rpmgiInitFilter(), rpmgiNext(), rpmHeaderGetEntry(), stashSt(), str2uuid(), XrpmgiLink(), and XrpmgiUnlink(). |
|
Return tag data type from value.
Definition at line 991 of file rpmlib.h. References headerTagIndices_s::tagType. Referenced by writeRPM(). |
|
Return tag value from name.
Definition at line 1005 of file rpmlib.h. References headerTagIndices_s::tagValue. Referenced by dbiTagsInit(), rpmdsSysinfo(), and rpmgiInitFilter(). |
|
Definition at line 38 of file rpmrc.c. Referenced by rpmFreeRpmrc(), rpmPlatform(), rpmPlatformScore(), and rpmtsAddInstallElement(). |
|
Definition at line 36 of file rpmrc.c. Referenced by rpmFreeRpmrc(), rpmPlatform(), rpmPlatformScore(), and rpmtsAddInstallElement(). |
|
Definition at line 95 of file macro.c. Referenced by rpmcliAllArgCallback(), and rpmcliFini(). |
|
Definition at line 62 of file depends.c. Referenced by printVersion(). |
|
|
|
Definition at line 90 of file macro.c. Referenced by newSpec(). |
|
Table of query format extensions.
Definition at line 3307 of file formats.c. Referenced by hdr_subscript(), hdrPrintErased(), hdrPrintInstalled(), hdrSprintf(), init_rpm(), packageBinaries(), parseForSimple(), printNewSpecfile(), queryHeader(), rpmcliImportPubkey(), rpmDisplayQueryTags(), rpmfiNew(), rpmHeaderGetEntry(), rpmpsmStage(), rpmShowProgress(), rpmtsSolve(), and runScript(). |
|
|
|
Definition at line 94 of file tagname.c. Referenced by rpmcliFini(). |
|
Automatically generated table of tag name/value pairs.
Definition at line 205 of file tagtbl.c. Referenced by hdrPrintErased(), hdrPrintInstalled(), hdrSprintf(), init_rpm(), packageBinaries(), parseForSimple(), printNewSpecfile(), queryHeader(), rpmcliImportPubkey(), rpmDisplayQueryTags(), rpmfiNew(), rpmHeaderGetEntry(), rpmpsmStage(), rpmShowProgress(), rpmtsSolve(), runScript(), tagLoadIndex(), and tagNumFromPyObject(). |
|
Number of entries in rpmTagTable.
Definition at line 208 of file tagtbl.c. Referenced by init_rpm(), rpmDisplayQueryTags(), tagLoadIndex(), and tagNumFromPyObject(). |
|
Definition at line 8 of file misc.c. Referenced by rpmcliImportPubkey(). |