rpm
5.4.14
|
![]() |
Files | |
file | argv.c |
file | argv.h |
file | bzdio.c |
Support for BZIP2 compression library. | |
file | gzdio.c |
Support for ZLIB compression library. | |
file | xzdio.c |
Support for LZMA compression library. | |
file | macro.c |
file | mount.c |
file | poptIO.c |
Popt tables for all rpmio-only executables. | |
file | rpmcb.h |
file | rpmdav.c |
file | rpmdav.h |
file | rpmio.c |
file | rpmio.h |
file | rpmio_internal.h |
file | rpmiob.c |
file | rpmiotypes.h |
file | rpmjs.h |
file | rpmku.c |
file | rpmku.h |
file | rpmlog.c |
file | rpmlog.h |
Yet Another syslog(3) API clone. | |
file | rpmmacro.h |
file | rpmmalloc.c |
file | rpmmg.c |
file | rpmmg.h |
file | rpmperl.h |
file | rpmpgp.c |
Routines to handle RFC-2440 detached signatures. | |
file | rpmpython.h |
file | rpmrpc.c |
file | rpmruby.h |
Embedded Ruby interpreter. | |
file | rpmsq.c |
file | rpmsq.h |
file | rpmsql.h |
file | rpmsquirrel.h |
file | rpmsx.c |
file | rpmsx.h |
file | rpmsw.c |
file | rpmsw.h |
file | rpmtcl.h |
file | rpmurl.h |
file | rpmuuid.c |
file | strcasecmp.c |
file | strtolocale.c |
file | ugid.c |
file | ugid.h |
file | url.c |
Data Structures | |
struct | FDIO_s |
struct | _FDSTACK_s |
struct | _FDDIGEST_s |
struct | _FD_s |
The FD_t File Handle data structure. More... | |
struct | rpmioP_s |
struct | rpmsw_s |
struct | rpmop_s |
Cumulative statistics for an operation. More... | |
Typedefs | |
typedef struct rpmrepo_s * | rpmrepo |
typedef struct _FD_s * | FD_t |
typedef struct FDIO_s * | FDIO_t |
typedef struct _FDSTACK_s | FDSTACK_t |
typedef enum fdOpX_e | fdOpX |
Identify per-desciptor I/O operation statistics. More... | |
struct { | |
struct rpmop_s ops [FDSTAT_MAX] | |
} | FDSTAT_t |
Cumulative statistics for a descriptor. More... | |
typedef struct _FDDIGEST_s * | FDDIGEST_t |
typedef enum rpmRC_e | rpmRC |
RPM return codes. More... | |
typedef unsigned char | rpmuint8_t |
Private int typedefs to avoid C99 portability issues. More... | |
typedef int | rpmint32_t |
typedef struct yarnLock_s * | yarnLock |
typedef struct rpmioItem_s * | rpmioItem |
typedef struct rpmioPool_s * | rpmioPool |
typedef struct rpmiob_s * | rpmiob |
typedef struct rpmioP_s * | rpmioP |
typedef void *(* | rpmCallbackFunction )(const void *h, const rpmCallbackType what, const rpmuint64_t amount, const rpmuint64_t total, fnpyKey key, rpmCallbackData data) |
typedef struct rpmmg_s * | rpmmg |
typedef unsigned long int | rpmtime_t |
typedef struct rpmsw_s * | rpmsw |
typedef struct rpmop_s * | rpmop |
typedef enum rpmswOpX_e | rpmswOpX |
Indices for timestamps. More... | |
Enumerations | |
enum | fdOpX_e { FDSTAT_READ = 0, FDSTAT_WRITE = 1, FDSTAT_SEEK = 2, FDSTAT_CLOSE = 3, FDSTAT_DIGEST = 4, FDSTAT_MAX = 5 } |
Identify per-desciptor I/O operation statistics. More... | |
enum | rpmRC_e { RPMRC_OK = 0, RPMRC_NOTFOUND = 1, RPMRC_FAIL = 2, RPMRC_NOTTRUSTED = 3, RPMRC_NOKEY = 4, RPMRC_NOSIG = 5 } |
RPM return codes. More... | |
enum | rpmswOpX_e { RPMSW_OP_TOTAL = 0, RPMSW_OP_CHECK = 1, RPMSW_OP_ORDER = 2, RPMSW_OP_FINGERPRINT = 3, RPMSW_OP_REPACKAGE = 4, RPMSW_OP_INSTALL = 5, RPMSW_OP_ERASE = 6, RPMSW_OP_SCRIPTLETS = 7, RPMSW_OP_COMPRESS = 8, RPMSW_OP_UNCOMPRESS = 9, RPMSW_OP_DIGEST = 10, RPMSW_OP_SIGNATURE = 11, RPMSW_OP_DBADD = 12, RPMSW_OP_DBREMOVE = 13, RPMSW_OP_DBGET = 14, RPMSW_OP_DBPUT = 15, RPMSW_OP_DBDEL = 16, RPMSW_OP_READHDR = 17, RPMSW_OP_HDRLOAD = 18, RPMSW_OP_HDRGET = 19, RPMSW_OP_DEBUG = 20, RPMSW_OP_MAX = 20 } |
Indices for timestamps. More... | |
Functions | |
const char * | fdbg (FD_t fd) |
int | fdFgets (FD_t fd, char *buf, size_t len) |
FD_t | ftpOpen (const char *url, int flags, mode_t mode, urlinfo *uret) |
int | ftpReq (FD_t data, const char *ftpCmd, const char *ftpArg) |
int | ftpCmd (const char *cmd, const char *url, const char *arg2) |
int | ufdClose (void *cookie) |
static void | fdSetOpen (FD_t fd, const char *path, int flags, mode_t mode) |
static const char * | fdGetOPath (FD_t fd) |
static int | fdGetOFlags (FD_t fd) |
static mode_t | fdGetOMode (FD_t fd) |
static void | fdSetDig (FD_t fd, pgpDig dig) |
static pgpDig | fdGetDig (FD_t fd) |
static void | fdSetXAR (FD_t fd, rpmxar xar) |
static rpmxar | fdGetXAR (FD_t fd) |
static FDIO_t | fdGetIo (FD_t fd) |
static void | fdSetIo (FD_t fd, FDIO_t io) |
static FILE * | fdGetFILE (FD_t fd) |
static void * | fdGetFp (FD_t fd) |
static void | fdSetFp (FD_t fd, void *fp) |
static int | fdGetFdno (FD_t fd) |
static void | fdSetFdno (FD_t fd, int fdno) |
static void | fdSetContentLength (FD_t fd, ssize_t contentLength) |
static void | fdPush (FD_t fd, FDIO_t io, void *fp, int fdno) |
static void | fdPop (FD_t fd) |
static rpmop | fdstat_op (FD_t fd, fdOpX opx) |
static void | fdstat_enter (FD_t fd, int opx) |
static void | fdstat_exit (FD_t fd, int opx, ssize_t rc) |
static void | fdstat_print (FD_t fd, const char *msg, FILE *fp) |
static void | fdSetSyserrno (FD_t fd, int syserrno, const void *errcookie) |
static int | fdGetRdTimeoutSecs (FD_t fd) |
static unsigned long long | fdGetCpioPos (FD_t fd) |
static void | fdSetCpioPos (FD_t fd, long int cpioPos) |
static FD_t | c2f (void *cookie) |
static void | fdInitDigest (FD_t fd, pgpHashAlgo hashalgo, int _flags) |
Attach digest to fd. More... | |
static void | fdInitHmac (FD_t fd, const void *key, size_t keylen) |
Attach digest to fd. More... | |
static void | fdUpdateDigests (FD_t fd, const unsigned char *buf, ssize_t buflen) |
Update digest(s) attached to fd. More... | |
static void | fdFiniDigest (FD_t fd, pgpHashAlgo hashalgo, void *datap, size_t *lenp, int asAscii) |
static void | fdStealDigest (FD_t fd, pgpDig dig) |
static int | fdFileno (void *cookie) |
int | xstrcasecmp (const char *s1, const char *s2) |
Locale insensitive strcasecmp(3). More... | |
int | xstrncasecmp (const char *s1, const char *s2, size_t n) |
Locale insensitive strncasecmp(3). More... | |
const char * | xstrtolocale (const char *str) |
Force encoding of string. More... | |
static void * | _free (const void *p) |
Wrapper to free(3), hides const compilation noise, permit NULL, return NULL. More... | |
static rpmtime_t | tvsub (const struct timeval *etv, const struct timeval *btv) |
Return difference of 2 timeval stamps in micro-seconds. More... | |
int | rpmswEnter (rpmop op, ssize_t rc) |
Enter timed operation. More... | |
rpmtime_t | rpmswExit (rpmop op, ssize_t rc) |
Exit timed operation. More... | |
rpmtime_t | rpmswAdd (rpmop to, rpmop from) |
Sum statistic counters. More... | |
rpmtime_t | rpmswSub (rpmop to, rpmop from) |
Subtract statistic counters. More... | |
void | rpmswPrint (const char *name, rpmop op, FILE *fp) |
Print operation statistics. More... | |
Variables | |
int | _rpmrepo_debug |
int | _rpmio_debug |
size_t | _rpmiob_chunk |
int | _rpmmg_debug |
typedef off_t | _libio_off_t |
Hide libio API lossage. More... | |
typedef off_t | _libio_pos_t |
typedef off_t _libio_off_t |
typedef off_t _libio_pos_t |
typedef struct _FDDIGEST_s * FDDIGEST_t |
typedef struct _FDSTACK_s FDSTACK_t |
typedef { ... } * FDSTAT_t |
Cumulative statistics for a descriptor.
typedef void*(* rpmCallbackFunction)(const void *h, const rpmCallbackType what, const rpmuint64_t amount, const rpmuint64_t total,fnpyKey key,rpmCallbackData data) |
Definition at line 419 of file rpmiotypes.h.
typedef int rpmint32_t |
Definition at line 33 of file rpmiotypes.h.
typedef struct rpmiob_s* rpmiob |
Definition at line 60 of file rpmiotypes.h.
typedef struct rpmioItem_s* rpmioItem |
Definition at line 41 of file rpmiotypes.h.
typedef struct rpmioPool_s* rpmioPool |
Definition at line 56 of file rpmiotypes.h.
static rpmRC |
RPM return codes.
Verify DSA signature.
Verify RSA signature.
Verify header immutable region SHA-1 digest.
dig | container |
t | verbose success/failure text |
shactx | SHA-1 digest context |
dig | container |
t | verbose success/failure text |
rsactx | RSA digest context |
dig | container |
t | verbose success/failure text |
dsactx | DSA digest context |
Definition at line 616 of file signature.c.
typedef enum rpmswOpX_e rpmswOpX |
Indices for timestamps.
typedef unsigned char rpmuint8_t |
Private int typedefs to avoid C99 portability issues.
Definition at line 26 of file rpmiotypes.h.
typedef struct yarnLock_s* yarnLock |
Definition at line 37 of file rpmiotypes.h.
enum fdOpX_e |
Identify per-desciptor I/O operation statistics.
Definition at line 34 of file rpmio_internal.h.
enum rpmRC_e |
RPM return codes.
Definition at line 14 of file rpmiotypes.h.
enum rpmswOpX_e |
Indices for timestamps.
Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.
p | memory to free |
Definition at line 647 of file rpmiotypes.h.
References NULL.
Referenced by _fnTag(), _GetPass(), _rpmmc_free(), _rpmtsCheck(), _tagGenerate(), _tagName(), _tagValue(), addChangelog(), addFile(), addFileToTag(), addFileToTagAux(), addOrAppendListEntry(), addReqProv(), addSource(), addTE(), archScore(), argiFree(), argvFree(), argvSplit(), armorFormat(), base64Format(), bncdataFormat(), buildSpec(), cdataFormat(), checkForDuplicates(), checkForValidArchitectures(), checkPackageSet(), checkUnpackagedFiles(), Chroot(), closeCallback(), closeSpec(), compressFilelist(), cpio_doio(), cpioHeaderRead(), createDir(), ctxFini(), db3associate(), db3associate_foreign(), db3close(), db3open(), db3stat(), db_init(), dbiFindMatches(), dbiFreeIndexSet(), dbiMireKeys(), dbiTagsInit(), debevrfmtTag(), debevrTag(), debmd5sumsTag(), defaultMachine(), delTE(), dnlFreeIterator(), dodigest(), doIcon(), doPatch(), doPrimary(), doSetupMacro(), doUntar(), ensureOlder(), extractRegular(), fdFini(), FDGsqlTag(), FDGxmlTag(), FDGyamlTag(), fiIntersect(), filestatTag(), fillOutMainPackage(), findErases(), findPreambleTag(), Fopen(), for(), formatValue(), fpLookupSubdir(), freeAttrRec(), freeFileList(), freeFSM(), freeGlobs(), freeHardLink(), freeIOSM(), freeItem(), freeItems(), freeNames(), freeSl(), freeSources(), freeSt(), freeTriggerFiles(), fsmCommitLinks(), fsmMakeLinks(), fsmMapPath(), fsmMkdirs(), fsmStage(), fsmTeardown(), fssizesTag(), ftsCacheUpdate(), genCpioListAndHeader(), genSourceRpmName(), getFilesystemList(), getMachineInfo(), getOutputFrom(), getSignid(), getSourceDir(), grabArgs(), handleInstInstalledFile(), handleOneTrigger(), handleOverlappedFiles(), handlePreambleTag(), hCopyTag(), hdr_subscript(), hdrKeyList(), hdrSprintf(), hdrUnload(), headerCheck(), headerCopy(), headerCopyTags(), headerFini(), headerLoad(), headerMacrosLoad(), headerMacrosUnload(), headerMap(), headerMergeLegacySigs(), headerModifyEntry(), headerNEVRA(), headerRegenSigHeader(), headerReload(), headerRemoveEntry(), headerScrub(), headerSetBaseURL(), headerSetDigest(), headerSetOrigin(), headerSetParent(), headerSprintf(), headerUnload(), hGetColor(), hGetNVRA(), hLoadTID(), htFini(), i18nTag(), IDTXfree(), IDTXglob(), IDTXload(), if(), initGlobs(), initSourceHeader(), installArgCallback(), instprefixTag(), iosmCommitLinks(), iosmMakeLinks(), iosmMapPath(), iosmMkdirs(), iosmStage(), iosmTeardown(), isMemberInEntry(), isPart(), jsonFormat(), loadDBT(), localeTag(), lookupPackage(), main(), makeGPGSignature(), makeHDRSignature(), mapFreeIterator(), miFreeHeader(), mireClean(), mireSkip(), needswhatTag(), nwlookupTag(), Open(), open_dso(), packageBinaries(), packageSources(), parseBuildInstallClean(), parseChangelog(), parseCVOG(), parseDescription(), parseExpressionBoolean(), parseExpressionString(), parseFiles(), parseForRegexLang(), parseForSimple(), parsePreamble(), parseRCPOT(), parseScript(), parseSimplePart(), parseSpec(), pgpArmorUnwrap(), pgpArmorWrap(), pgpDigClean(), pgpDigFini(), pgpExtractPubkeyFingerprint(), pgpGrabPkts(), pgpMpiSet(), pgpPrtPkts(), pgpPrtUserID(), pgpPubkeyFingerprint(), pkgFini(), pkgUnpackagedSubdirs(), pointRpmEVR(), populateInstallHeader(), PRCOsqlTag(), PRCOxmlTag(), PRCOyamlTag(), prepFetch(), prepFetchVerbose(), printFileInfo(), processBinaryFile(), processBinaryFiles(), processMetadataFile(), processPackageFiles(), processSourceFiles(), providePackageNVR(), queryArgCallback(), rdLead(), rdSignature(), readFile(), readLine(), readLineFromOFI(), Realpath(), rebuildCompatTables(), relocateFileList(), rpmalAllSatisfiesDepend(), rpmalFini(), rpmalFreeIndex(), rpmbcClean(), rpmbcFree(), rpmbcMpiItem(), rpmbcSetDSA(), rpmbcSetRSA(), rpmCheckPassPhrase(), rpmcliAllArgCallback(), rpmcliConfigured(), rpmcliImportPubkey(), rpmcliImportPubkeys(), rpmcliInstall(), rpmcliInstallElementPath(), rpmcliInstallSuggests(), rpmcliQuery(), rpmdbAdd(), rpmdbClose(), rpmdbExportHR_MIB(), rpmdbExportL10N_SQL(), rpmdbNew(), rpmdbRemove(), rpmdbURIPath(), rpmdcParseZeroInstall(), rpmdcPrintFile(), rpmDigestFinal(), rpmdsCompare(), rpmdsCpuinfo(), rpmdsELF(), rpmdsEVRorder(), rpmdsFini(), rpmdsFreePRCO(), rpmdsLdconfig(), rpmdsMerge(), rpmdsNew(), rpmdsNext(), rpmdsNVRMatchesDep(), rpmdsPipe(), rpmdsSysinfo(), rpmdsThis(), rpmEVRfree(), rpmEVRmire(), rpmEVRorder(), rpmExpandNumeric(), rpmfcClassify(), rpmfcExec(), rpmfcExpandRegexps(), rpmfcGenerateDepends(), rpmfcGenerateDependsHelper(), rpmfcGenerateScriptletDeps(), rpmfcSCRIPT(), rpmfi_FClass_get(), rpmfiBuildFClasses(), rpmfiBuildFDeps(), rpmfiBuildFNames(), rpmfiFini(), rpmfiFreeRelocations(), rpmfiNew(), rpmfiOpendir(), rpmFreeFilesystems(), rpmFreeMacros(), rpmFreeRpmrc(), rpmfts_dealloc(), rpmGenPath(), rpmGetFilesystemUsage(), rpmgiFini(), rpmgiGlobArgv(), rpmgiInitFilter(), rpmgiLoadReadHeader(), rpmgiNext(), rpmgiOpen(), rpmGlob(), rpmhdrLoadTag(), rpmHeadersIdentical(), rpmheClean(), rpmheRealloc(), rpmHmacInit(), rpmInitMacros(), rpmInstallSourcePackage(), rpmioAllArgCallback(), rpmiobFini(), rpmiobSlurp(), rpmioFreePool(), rpmioInit(), rpmioParse(), rpmioPutPool(), rpmlibMarkers(), rpmLoadMacroFile(), rpmlogClose(), rpmmgFile(), rpmmgFini(), rpmmiAddPattern(), rpmmiFini(), rpmmiInit(), rpmnsArch(), rpmnsClean(), rpmnsProbeSignature(), rpmperlNew(), rpmPlatform(), rpmpsFini(), rpmpsFreeIterator(), rpmpsmFini(), rpmpsmStage(), rpmpsPrint(), rpmpythonNew(), rpmpythonRun(), rpmQueryVerify(), rpmrbLoadClasses(), rpmrbLoadFile(), rpmReadConfigFiles(), rpmReadHeader(), rpmReadHeaders(), rpmReadPackageFile(), rpmReadPackageManifest(), rpmReadRC(), rpmRebuildTargetVars(), rpmrepoCloseMDFile(), rpmrepoDoFinalMove(), rpmrepoDoPkgMetadata(), rpmrepoDoRepoMetadata(), rpmrepoFini(), rpmrepoInitPopt(), rpmrepoMkdir(), rpmrepoOpenMDFile(), rpmrepoReadHeader(), rpmrepoRfileDigest(), rpmrepoTestSetupDirs(), rpmReSign(), rpmrfileXMLWrite(), rpmRollback(), rpmSetMachine(), rpmShowProgress(), rpmShowRC(), rpmSingleHeaderFromFD(), rpmsqlFini(), rpmsqlNew(), rpmsqlRun(), rpmsxFini(), rpmsxNew(), rpmte_free(), rpmteChain(), rpmteFreeTSI(), rpmTempFile(), rpmteNew(), rpmtsAddInstallElement(), rpmtsAddObsoletes(), rpmtsAddUpgrades(), rpmtsAvailable(), rpmtsCallback(), rpmtsCheckInstalledFiles(), rpmtsClean(), rpmtsEraseDebuginfo(), rpmtsFindPubkey(), rpmtsFini(), rpmtsInitDSI(), rpmtsOpenDB(), rpmtsOpenSDB(), rpmtsPRCO(), rpmtsPrepare(), rpmtsProcess(), rpmtsRebuildDB(), rpmtsRollback(), rpmtsSanityCheck(), rpmtsSetCurrDir(), rpmtsSetRootDir(), rpmtsSetup(), rpmtsSkipFiles(), rpmtsSolve(), rpmVerifySignatures(), rpmVersionCompare(), rpmvfFree(), rpmvtNew(), rpmWriteHeader(), rpmWriteHeaders(), rpmxarFini(), rpmxarPull(), rpmxarStat(), rpmxarSwapBuf(), runImmedTriggers(), runInstScript(), runScript(), runTriggers(), runTriggersLoop(), saveHardLink(), scpFini(), scpReset(), scpResetAv(), scpResetKeys(), showQueryPackage(), showVerifyPackage(), specFini(), spewescapeFormat(), sql_cclose(), sql_cget(), sql_close(), sql_exec(), sql_initDB(), sql_open(), sql_stat(), stashSt(), statFormat(), str2uuid(), strsubFormat(), tag2uuidv1(), tag2uuidv5(), tagClean(), tagLoadATags(), tagStoreFree(), tagValidate(), tarHeaderReadName(), timeCheck(), triggercondsTag(), triggertypeTag(), tv2uuidv1(), unsatisfiedDepend(), urlFind(), urlFini(), urlFreeCache(), urlGetFile(), urlSplit(), uuidFormat(), valueFree(), vrpmlog(), whatneedsTag(), while(), wnlookupTag(), writeLinkedFile(), writeRPM(), xarSize(), xmlFormat(), and yamlFormat().
Definition at line 513 of file rpmio_internal.h.
Referenced by __fdClose(), __fdRead(), __fdWrite(), fdFileno(), fdSeek(), fdSeekNot(), ftpReq(), ufdClose(), ufdRead(), ufdSeek(), and ufdWrite().
const char* fdbg | ( | FD_t | fd | ) |
Definition at line 197 of file rpmio.c.
References be, buf, _FD_s::bytesRemain, bzdio, fdio, _FDSTACK_s::fdno, _FDSTACK_s::fp, fpio, _FD_s::fps, gzdio, i, _FDSTACK_s::io, lzdio, _FD_s::nfps, NULL, _FD_s::rd_timeoutsecs, sprintf(), ufdio, _FD_s::wr_chunked, and xzdio.
Referenced by __fdClose(), __fdOpen(), __fdRead(), __fdWrite(), Fclose(), fdDup(), fdGetPool(), Fdopen(), fdSeek(), Ferror(), Fgetpos(), Fileno(), Fread(), Fseek(), Fsetpos(), Ftell(), Fwrite(), Rewind(), and ufdOpen().
Definition at line 685 of file rpmio.c.
References _rpmio_debug, ec, errno, fdFileno(), fdno, fdRead, fdReadable(), fprintf(), int, nb, rc, _FD_s::rd_timeoutsecs, and _FD_s::syserrno.
Referenced by checkResponse(), and ftpNLST().
Definition at line 654 of file rpmio_internal.h.
References c2f(), fd, _FDSTACK_s::fdno, _FD_s::fps, and NULL.
Referenced by __fdClose(), __fdRead(), __fdWrite(), fdFgets(), fdReadable(), fdSeek(), fdWritable(), Ferror(), Fopen(), ftpAbort(), ftpLogin(), ftpReq(), httpReq(), ufdRead(), urlConnect(), and urlFini().
|
inlinestatic |
Definition at line 581 of file rpmio_internal.h.
References ctx, _FD_s::digests, FDSTAT_DIGEST, fdstat_enter(), fdstat_exit(), i, _FD_s::ndigests, NULL, rpmDigestAlgo(), rpmDigestFinal(), and void.
Referenced by dodigest(), extractRegular(), main(), rpmdcPrintFile(), rpmrepoCloseMDFile(), rpmrepoReadHeader(), rpmrepoRfileDigest(), statFormat(), and writeRPM().
Definition at line 493 of file rpmio_internal.h.
References _FD_s::fd_cpioPos, and FDSANE.
Referenced by arHeaderRead(), arHeaderWrite(), fsmSetup(), fsmStage(), iosmSetup(), and iosmStage().
Definition at line 231 of file rpmio_internal.h.
References _FD_s::dig, and FDSANE.
Referenced by readFile(), and rpmReadHeader().
Definition at line 328 of file rpmio_internal.h.
References _FDSTACK_s::fdno, FDSANE, _FD_s::fps, and _FD_s::nfps.
Referenced by Fclose(), Fopen(), and ufdWrite().
|
inlinestatic |
Definition at line 292 of file rpmio_internal.h.
References FDSANE, _FDSTACK_s::fp, _FD_s::fps, and _FD_s::nfps.
Definition at line 304 of file rpmio_internal.h.
References FDSANE, _FDSTACK_s::fp, _FD_s::fps, and _FD_s::nfps.
Referenced by addFileToTagAux(), Fdopen(), Fflush(), Fopen(), processPackageFiles(), readLineFromOFI(), rpmReadPackageManifest(), and urlFini().
Definition at line 268 of file rpmio_internal.h.
References FDSANE, _FD_s::fps, _FDSTACK_s::io, and _FD_s::nfps.
Referenced by Fflush(), Fgetpos(), Fread(), Fseek(), Fsetpos(), Ftell(), Fwrite(), getFdErrstr(), Rewind(), ufdRead(), and ufdWrite().
Definition at line 197 of file rpmio_internal.h.
References FDSANE, and _FD_s::oflags.
|
inlinestatic |
Definition at line 207 of file rpmio_internal.h.
References FDSANE, and _FD_s::omode.
|
inlinestatic |
Definition at line 187 of file rpmio_internal.h.
References FDSANE, and _FD_s::opath.
Referenced by Fadvise(), Fallocate(), Fchflags(), Fchmod(), Fchown(), Fstat(), rdLead(), rpmReadHeader(), rpmReadPackageManifest(), and rpmrepoCloseMDFile().
Definition at line 483 of file rpmio_internal.h.
References FDSANE, and _FD_s::rd_timeoutsecs.
Definition at line 256 of file rpmio_internal.h.
References FDSANE, and _FD_s::xar.
Referenced by rdLead(), rdSignature(), readFile(), rpmReadHeader(), and xarRead().
|
inlinestatic |
Attach digest to fd.
Definition at line 527 of file rpmio_internal.h.
References _FD_s::digests, FDSTAT_DIGEST, fdstat_enter(), fdstat_exit(), _FD_s::ndigests, rpmDigestInit(), and xrealloc.
Referenced by dodigest(), extractRegular(), main(), rpmdcInitFile(), rpmReadPackageFile(), rpmrepoOpenMDFile(), rpmrepoReadHeader(), rpmrepoRfileDigest(), rpmVerifySignatures(), statFormat(), and writeRPM().
Attach digest to fd.
Definition at line 545 of file rpmio_internal.h.
References _FD_s::digests, _FD_s::ndigests, NULL, rpmHmacInit(), and void.
Referenced by dodigest(), main(), and rpmdcInitFile().
Definition at line 373 of file rpmio_internal.h.
References FDSANE, fdSetFdno(), fdSetFp(), fdSetIo(), _FD_s::nfps, and NULL.
Referenced by Fclose().
Definition at line 358 of file rpmio_internal.h.
References FDSANE, fdSetFdno(), fdSetFp(), fdSetIo(), _FD_s::fps, and _FD_s::nfps.
Definition at line 348 of file rpmio_internal.h.
References _FD_s::bytesRemain, _FD_s::contentLength, and FDSANE.
Definition at line 503 of file rpmio_internal.h.
References _FD_s::fd_cpioPos, and FDSANE.
Referenced by fsmSetup(), iosmSetup(), and iosmStage().
Definition at line 217 of file rpmio_internal.h.
References _FD_s::dig, FDSANE, pgpDigFree(), and pgpDigLink().
Referenced by rpmReadHeader(), rpmReadPackageFile(), and rpmVerifySignatures().
Definition at line 338 of file rpmio_internal.h.
References _FDSTACK_s::fdno, fdno, FDSANE, _FD_s::fps, and _FD_s::nfps.
Referenced by __fdClose(), __fdOpen(), fdDup(), fdPop(), fdPush(), ftpReq(), and tcpConnect().
Definition at line 315 of file rpmio_internal.h.
References FDSANE, _FDSTACK_s::fp, _FD_s::fps, and _FD_s::nfps.
Referenced by Fclose(), Fdopen(), fdPop(), fdPush(), and ufdClose().
Definition at line 279 of file rpmio_internal.h.
References FDSANE, _FD_s::fps, _FDSTACK_s::io, and _FD_s::nfps.
Referenced by fdPop(), fdPush(), ftpOpen(), httpOpen(), ufdOpen(), and urlConnect().
Definition at line 171 of file rpmio_internal.h.
References FDSANE, flags, mode, NULL, _FD_s::oflags, _FD_s::omode, _FD_s::opath, and xstrdup().
Referenced by __fdOpen(), fdDup(), ftpOpen(), rpmtsCallback(), ufdOpen(), and urlConnect().
Definition at line 470 of file rpmio_internal.h.
References _FD_s::errcookie, FDSANE, and _FD_s::syserrno.
Referenced by ftpLogin(), ftpReq(), httpReq(), and tcpConnect().
Definition at line 243 of file rpmio_internal.h.
References FDSANE, rpmxarLink(), and _FD_s::xar.
Referenced by rdLead().
Definition at line 400 of file rpmio_internal.h.
References fdstat_op(), NULL, rpmswEnter(), _FD_s::stats, and void.
Referenced by __fdClose(), __fdRead(), __fdWrite(), fdFiniDigest(), fdInitDigest(), fdSeek(), and fdUpdateDigests().
Definition at line 412 of file rpmio_internal.h.
References _FD_s::bytesRemain, errno, fdstat_op(), FDSTAT_READ, FDSTAT_WRITE, NULL, rc, rpmswExit(), _FD_s::stats, _FD_s::syserrno, and void.
Referenced by __fdClose(), __fdRead(), __fdWrite(), fdFiniDigest(), fdInitDigest(), fdSeek(), and fdUpdateDigests().
Definition at line 387 of file rpmio_internal.h.
References FDSTAT_MAX, NULL, op, and _FD_s::stats.
Referenced by fdstat_enter(), fdstat_exit(), iosmStage(), rpmdcFiniFile(), rpmpsmStage(), rpmReadPackageFile(), and rpmrepoFclose().
Definition at line 435 of file rpmio_internal.h.
References rpmop_s::bytes, rpmop_s::count, FDSTAT_CLOSE, FDSTAT_READ, FDSTAT_SEEK, FDSTAT_WRITE, fprintf(), NULL, op, _FD_s::stats, and rpmop_s::usecs.
Definition at line 614 of file rpmio_internal.h.
References assert(), ctx, _FD_s::digests, i, _FD_s::ndigests, NULL, PGPHASHALGO_MD5, PGPHASHALGO_RIPEMD160, PGPHASHALGO_SHA1, PGPHASHALGO_SHA256, PGPHASHALGO_SHA384, PGPHASHALGO_SHA512, and rpmDigestAlgo().
Referenced by readFile(), and rpmReadPackageFile().
Update digest(s) attached to fd.
Definition at line 557 of file rpmio_internal.h.
References ctx, _FD_s::digests, FDSTAT_DIGEST, fdstat_enter(), fdstat_exit(), i, _FD_s::ndigests, NULL, rpmDigestUpdate(), and void.
Referenced by __fdRead(), and __fdWrite().
int ftpCmd | ( | const char * | cmd, |
const char * | url, | ||
const char * | arg2 | ||
) |
Definition at line 1672 of file rpmio.c.
References urlinfo_s::ctrl, fdFree(), ftpCommand(), NULL, path, rc, u, urlConnect(), urlPath(), and void.
Referenced by ftpChdir(), ftpMkdir(), ftpRename(), ftpRmdir(), and ftpUnlink().
Definition at line 2210 of file rpmio.c.
References assert(), _FD_s::bytesRemain, _FD_s::contentLength, urlinfo_s::data, exit, fd, fdLink(), fdNew(), fdSetIo(), fdSetOpen(), _FD_s::ftpFileDoneNeeded, ftpTimeoutSecs, NULL, _FD_s::rd_timeoutsecs, _FD_s::u, u, ufdio, urlConnect(), and urlLink().
Definition at line 1275 of file rpmio.c.
References _ftp_debug, alloca(), assert(), c2f(), _FD_s::contentLength, urlinfo_s::ctrl, errno, errxit, fdClose, fdFileno(), fdLink(), fdSetFdno(), fdSetSyserrno(), fdWrite, fprintf(), ftpCheckResponse(), ftpCommand(), FTPERR_BAD_SERVER_RESPONSE, FTPERR_FAILED_CONNECT, FTPERR_FAILED_DATA_CONNECT, FTPERR_PASSIVE_ERROR, FTPERR_SERVER_IO_ERROR, FTPERR_UNKNOWN, _FD_s::ftpFileDoneNeeded, ftpStrerror(), HAVE_GETADDRINFO, i, inet_aton, j, memset(), NI_MAXHOST, NULL, rc, res, sprintf(), stpcpy(), _FD_s::u, u, unsigned, URLSANE, void, and xx.
Sum statistic counters.
to | result statistics |
from | operation statistics |
Definition at line 280 of file rpmsw.c.
References rpmop_s::bytes, rpmop_s::count, NULL, and rpmop_s::usecs.
Referenced by fsmTeardown(), headerScrub(), iosmStage(), iosmTeardown(), psmWait(), rpmdcFiniFile(), rpmpsmStage(), rpmReadPackageFile(), rpmrepoFclose(), rpmtsCleanDig(), rpmtsCloseDB(), rpmtsCloseSDB(), and rpmtsPrintStats().
Enter timed operation.
op | operation statistics |
rc | -1 clears usec counter |
Definition at line 248 of file rpmsw.c.
References rpmop_s::begin, rpmop_s::bytes, rpmop_s::count, NULL, rpmswNow(), rpmop_s::usecs, and void.
Exit timed operation.
op | operation statistics |
rc | per-operation data (e.g. bytes transferred) |
Definition at line 264 of file rpmsw.c.
References rpmop_s::begin, rpmop_s::bytes, NULL, rc, rpmswDiff(), rpmswNow(), and rpmop_s::usecs.
Print operation statistics.
name | operation name |
op | operation statistics |
fp | file handle (NULL uses stderr) |
Definition at line 304 of file rpmsw.c.
References rpmop_s::bytes, rpmop_s::count, fprintf(), NULL, and rpmop_s::usecs.
Subtract statistic counters.
to | result statistics |
from | operation statistics |
Definition at line 292 of file rpmsw.c.
References rpmop_s::bytes, rpmop_s::count, NULL, and rpmop_s::usecs.
Referenced by rpmReadPackageFile().
|
inlinestatic |
Return difference of 2 timeval stamps in micro-seconds.
*etv | end timeval |
*btv | begin timeval |
Definition at line 111 of file rpmsw.c.
References NULL.
Referenced by rpmswDiff().
Definition at line 2091 of file rpmio.c.
References assert(), _FD_s::bytesRemain, c2f(), _FD_s::contentLength, urlinfo_s::ctrl, urlinfo_s::data, fdClose, fdFree(), fdGetFILE, fdReadable(), fdSetFp(), ftpAbort(), ftpFileDone(), _FD_s::ftpFileDoneNeeded, if(), noLibio, NULL, _FD_s::persist, rc, urlinfo_s::scheme, _FD_s::u, u, UFDONLY, URL_IS_FTP, urlFree(), urlType(), and void.
int xstrcasecmp | ( | const char * | s1, |
const char * | s2 | ||
) |
Locale insensitive strcasecmp(3).
Definition at line 9 of file strcasecmp.c.
References int, and xtolower().
Referenced by _tagValue(), argvStrcasecmp(), findTag(), hdr_subscript(), headerGet(), initSourceHeader(), isMemberInEntry(), machAddEquiv(), myTagValue(), parseYesNo(), rpmioAllArgCallback(), and rpmRebuildTargetVars().
int xstrncasecmp | ( | const char * | s1, |
const char * | s2, | ||
size_t | n | ||
) |
Locale insensitive strncasecmp(3).
Definition at line 30 of file strcasecmp.c.
References int, and xtolower().
Referenced by findPreambleTag(), isPart(), Link(), matchTok(), pgpHashAlgoStringToNumber(), and Rename().
const char* xstrtolocale | ( | const char * | str | ) |
Force encoding of string.
Definition at line 15 of file strtolocale.c.
References errno, NULL, result, sprintf(), status, void, xmalloc, and xrealloc.
Referenced by i18nTag(), localeTag(), and parseChangelog().
size_t _rpmiob_chunk |
Definition at line 11 of file rpmiob.c.
Referenced by rpmiobAppend(), and rpmiobNew().
int _rpmmg_debug |
Definition at line 21 of file rpmmg.c.
Referenced by doUntar(), rpmmgBuffer(), rpmmgFile(), and rpmmgGetPool().