rpm
4.5
|
Go to the source code of this file.
Data Structures | |
struct | StringBufRec |
Macros | |
#define | BUF_CHUNK 1024 |
Functions | |
static int | xisspace (int c) |
Locale insensitive isspace(3). More... | |
static void * | _free (const void *p) |
Wrapper to free(3), hides const compilation noise, permit NULL, return NULL. More... | |
StringBuf | newStringBuf (void) |
StringBuf | freeStringBuf (StringBuf sb) |
void | truncStringBuf (StringBuf sb) |
void | stripTrailingBlanksStringBuf (StringBuf sb) |
char * | getStringBuf (StringBuf sb) |
void | appendStringBufAux (StringBuf sb, const char *s, int nl) |
#define BUF_CHUNK 1024 |
Definition at line 10 of file stringbuf.c.
Referenced by appendStringBufAux(), and newStringBuf().
|
inlinestatic |
Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.
p | memory to free |
Definition at line 34 of file stringbuf.c.
Referenced by addChangelog(), addFile(), addFileToTagAux(), addOrAppendListEntry(), addSource(), archScore(), argiFree(), argvFree(), armorFormat(), base64Format(), bncdataFormat(), cdataFormat(), checkFiles(), checkForValidArchitectures(), checkPackageSet(), checkSpec(), Chroot(), closeCallback(), closeSpec(), cpio_doio(), cpioHeaderRead(), db3close(), db3open(), db3stat(), db_init(), dbiFreeIndexSet(), dbiTagsInit(), defaultMachine(), delTE(), dnlFreeIterator(), dodigest(), doHeaderUnload(), doIcon(), doPatch(), doReadRC(), doSetupMacro(), doUntar(), ensureOlder(), expandFilelist(), extractRegular(), FDGsqlTag(), FDGxmlTag(), fillOutMainPackage(), formatValue(), freeAttrRec(), freeBadDeps(), freeFileList(), freeFormat(), freeFSM(), freeHardLink(), freeNames(), freePackage(), freeRpmVar(), freeSl(), freeSources(), freeSpec(), freeSplitString(), freeSt(), freeStringBuf(), freeTriggerFiles(), fsmCommitLinks(), fsmMakeLinks(), fsmMapPath(), fsmStage(), fssizesTag(), genCpioListAndHeader(), getFilesystemList(), getOutputFrom(), handleInstInstalledFiles(), handleOverlappedFiles(), handlePreambleTag(), hdr_dealloc(), hdrPrintErased(), hdrPrintInstalled(), hdrSprintf(), hdrUnload(), headerAddI18NString(), headerCheck(), headerCopyLoad(), headerFree(), headerFreeIterator(), headerFreeTag(), headerLoad(), headerMacrosLoad(), headerMacrosUnload(), headerModifyEntry(), headerRead(), headerReload(), headerRemoveEntry(), headerSetBaseURL(), headerSetDigest(), headerSetOrigin(), headerSprintf(), headerWrite(), i18nTag(), IDTXfree(), IDTXglob(), ignoreDep(), initSourceHeader(), localeTag(), machCompatCacheAdd(), main(), makeGPGSignature(), makeHDRSignature(), makePGPSignature(), makeTempFile(), mapFreeIterator(), miFreeHeader(), mireFreeAll(), mungeFilelist(), Open(), packageBinaries(), packageSources(), parseBuildInstallClean(), parseChangelog(), parseCVOG(), parseDescription(), parseExpressionBoolean(), parseExpressionString(), parseFiles(), parseForRegexLang(), parseForSimple(), parseRCPOT(), parseScript(), parseSpec(), pgpArmorWrap(), pgpCleanDig(), pgpExtractPubkeyFingerprint(), pgpFreeDig(), pgpGrabPkts(), pgpHexSet(), pgpPrtPkts(), pgpPrtUserID(), pgpPubkeyFingerprint(), pgpReadPkts(), popMacro(), PRCOsqlTag(), PRCOxmlTag(), prepFetch(), printFileInfo(), printNewSpecfile(), processBinaryFile(), processMetadataFile(), processPackageFiles(), processSourceFiles(), pushMacro(), readLine(), Realpath(), rebuildCompatTables(), relocateFileList(), rpmalAllFileSatisfiesDepend(), rpmalAllSatisfiesDepend(), rpmalDel(), rpmalFree(), rpmalFreeIndex(), rpmcliAllArgCallback(), rpmcliConfigured(), rpmcliFini(), rpmcliImportPubkey(), rpmcliImportPubkeys(), rpmcliQuery(), rpmdbAdd(), rpmdbClose(), rpmdbExportInfo(), rpmdbFindByFile(), rpmdbFindFpList(), rpmdbFreeIterator(), rpmdbInitIterator(), rpmdbNew(), rpmdbNextIterator(), rpmdbRebuild(), rpmdbRemove(), rpmdbSetIteratorRE(), rpmdbURIPath(), rpmDetectPGPVersion(), rpmds_compare(), rpmdsCompare(), rpmdsCpuinfo(), rpmdsELF(), rpmdsFree(), rpmdsFreePRCO(), rpmdsGetconf(), rpmdsLdconfig(), rpmdsMerge(), rpmdsNew(), rpmdsNext(), rpmdsPipe(), rpmdsSysinfo(), rpmecFree(), rpmExpandNumeric(), rpmfcClassify(), rpmfcExec(), rpmfcExpandRegexps(), rpmfcFree(), rpmfcFreeRegexps(), rpmfcGenerateDepends(), rpmfcGenerateDependsHelper(), rpmfd_Fopen(), rpmfiBuildFClasses(), rpmfiBuildFContexts(), rpmfiBuildFDeps(), rpmfiBuildFNames(), rpmfiBuildFSContexts(), rpmfiBuildREContexts(), rpmfiFree(), rpmfiNew(), rpmFreeFilesystems(), rpmFreeMacros(), rpmFreeRpmrc(), rpmfts_dealloc(), rpmfts_initialize(), rpmGenPath(), rpmGetFilesystemUsage(), rpmGetPassPhrase(), rpmgiFree(), rpmgiGlobArgv(), rpmgiInitFilter(), rpmgiLoadReadHeader(), rpmgiNext(), rpmgiOpen(), rpmGlob(), rpmheClean(), rpmInitMacros(), rpmInstall(), rpmInstallSource(), rpmInstallSourcePackage(), rpmLookupSignatureType(), rpmMachineScore(), rpmMergeHeaders(), rpmPlatform(), rpmps_ass_sub(), rpmpsFree(), rpmpsmFree(), rpmpsmStage(), rpmpsPrint(), rpmQueryVerify(), rpmReadConfigFiles(), rpmReadHeader(), rpmReadPackageFile(), rpmReadPackageManifest(), rpmReadRC(), rpmRebuildTargetVars(), rpmReSign(), rpmRollback(), rpmSetMachine(), rpmSetVarArch(), rpmShowProgress(), rpmShowRC(), rpmsxFree(), rpmsxParse(), rpmsxSort(), rpmteChain(), rpmteFree(), rpmteFreeTSI(), rpmts_HdrCheck(), rpmts_IDTXglob(), rpmts_Run(), rpmtsAddInstallElement(), rpmtsAddObsoletes(), rpmtsAddUpgrades(), rpmtsAvailable(), rpmtsCheck(), rpmtsClean(), rpmtsCreate(), rpmtsFindPubkey(), rpmtsFree(), rpmtsInitDSI(), rpmtsOpenDB(), rpmtsOpenSDB(), rpmtsOrder(), rpmtsRollback(), rpmtsRun(), rpmtsSetCurrDir(), rpmtsSetRootDir(), rpmtsSolve(), rpmVerifySignatures(), runInstScript(), runScript(), saveHardLink(), setPathDefault(), showQueryPackage(), skipFiles(), sqlescapeFormat(), statFormat(), str2uuid(), tarHeaderReadName(), triggercondsTag(), tv2uuidv1(), unsatisfiedDepend(), urlFind(), urlFreeCache(), urlSplit(), uuidFormat(), valueFree(), verifyMD5Signature(), verifyRSASignature(), verifySHA1Signature(), writeLinkedFile(), writeRPM(), XfdFree(), xmlFormat(), XrpmtsiFree(), XurlFree(), yamlFormat(), and zapRelation().
void appendStringBufAux | ( | StringBuf | sb, |
const char * | s, | ||
int | nl | ||
) |
Definition at line 88 of file stringbuf.c.
References StringBufRec::allocated, StringBufRec::buf, BUF_CHUNK, StringBufRec::free, StringBufRec::tail, and xrealloc().
Definition at line 52 of file stringbuf.c.
References _free(), and StringBufRec::buf.
Referenced by addFileToArrayTag(), addFileToTag(), addFileToTagAux(), checkFiles(), doSetupMacro(), freePackage(), freeSpec(), initSourceHeader(), parseChangelog(), parseDescription(), parsePrep(), parseScript(), processBinaryFiles(), processSourceFiles(), rpmfcExec(), rpmfcFree(), rpmfcGenerateDependsHelper(), rpmfcGenerateScriptletDeps(), rpmfcHelper(), and rpmReadPackageManifest().
char* getStringBuf | ( | StringBuf | sb | ) |
Definition at line 83 of file stringbuf.c.
References StringBufRec::buf.
Referenced by addChangelog(), addFileToArrayTag(), addFileToTag(), checkFiles(), doSetupMacro(), initSourceHeaderScriptlet(), parseDescription(), parsePrep(), parseScript(), processPackageFiles(), processSourceFiles(), rpmfcExec(), rpmfcGenerateDependsHelper(), rpmfcGenerateScriptletDeps(), rpmfcHelper(), and rpmReadPackageManifest().
StringBuf newStringBuf | ( | void | ) |
Definition at line 40 of file stringbuf.c.
References StringBufRec::allocated, StringBufRec::buf, BUF_CHUNK, StringBufRec::free, StringBufRec::tail, xcalloc(), and xmalloc().
Referenced by addFileToArrayTag(), addFileToTag(), doSetupMacro(), getOutputFrom(), initSourceHeader(), parseBuildInstallClean(), parseChangelog(), parseDescription(), parseFiles(), parseForSimple(), parsePrep(), parseScript(), processBinaryFiles(), processSourceFiles(), rpmfcGenerateDependsHelper(), rpmfcGenerateScriptletDeps(), rpmfcHelper(), and rpmReadPackageManifest().
void stripTrailingBlanksStringBuf | ( | StringBuf | sb | ) |
Definition at line 70 of file stringbuf.c.
References StringBufRec::allocated, StringBufRec::free, StringBufRec::tail, and xisspace().
Referenced by parseDescription(), parseScript(), and rpmfcGenerateScriptletDeps().
void truncStringBuf | ( | StringBuf | sb | ) |
Definition at line 61 of file stringbuf.c.
References StringBufRec::allocated, StringBufRec::buf, StringBufRec::free, and StringBufRec::tail.
Referenced by rpmfcGenerateScriptletDeps().
|
inlinestatic |
Locale insensitive isspace(3).
Definition at line 24 of file stringbuf.c.
Referenced by addChangelog(), copyNextLine(), dbiTagsInit(), doReadRC(), findPreambleTag(), isPart(), machCompatCacheAdd(), parseBits(), rdToken(), readLine(), rpmcliAllArgCallback(), rpmPlatform(), and stripTrailingBlanksStringBuf().