rpmio/rpmmalloc.c File Reference

#include "system.h"
#include "debug.h"

Go to the source code of this file.

Functions

void * vmefail (size_t size)
void * xmalloc (size_t size)
void * xcalloc (size_t nmemb, size_t size)
void * xrealloc (void *ptr, size_t size)
char * xstrdup (const char *str)


Detailed Description

Definition in file rpmmalloc.c.


Function Documentation

void* vmefail ( size_t  size  ) 

Definition at line 13 of file rpmmalloc.c.

References _, and EXIT_FAILURE.

Referenced by xcalloc(), xmalloc(), xrealloc(), and xstrdup().

void* xcalloc ( size_t  nmemb,
size_t  size 
)

Definition at line 34 of file rpmmalloc.c.

References vmefail().

Referenced by addRelation(), addTriggerIndex(), argiAdd(), checkResponse(), db3New(), dbiIndexNewItem(), dbiTagsInit(), defaultMachine(), dnlInitIterator(), fsmMkdirs(), fssizesTag(), ftpNLST(), ftpOpendir(), genCpioListAndHeader(), getFilesystemList(), handleInstInstalledFiles(), headerGetLangs(), hGetNEVR(), hGetNEVRA(), htCreate(), IDTXnew(), ignoreDep(), initGlobs(), main(), mapInitIterator(), newFSM(), newItem(), newPackage(), newRpmdb(), newSpec(), newStringBuf(), parseFormat(), parseSpec(), pgpNewDig(), processSourceFiles(), rpmalCreate(), rpmaviNew(), rpmdbAdd(), rpmdbAppendIterator(), rpmdbFindByFile(), rpmdbFindFpList(), rpmdbInitIterator(), rpmdbSetIteratorRE(), rpmDigestDup(), rpmDigestInit(), rpmdsDup(), rpmdsNew(), rpmdsSingle(), rpmdsThis(), rpmecNew(), rpmfcGenerateDepends(), rpmfcNew(), rpmfiNew(), rpmGetFilesystemUsage(), rpmGetRpmlibProvides(), rpmgiNew(), rpmpsAppend(), rpmpsCreate(), rpmpsmNew(), rpmReadPackageManifest(), rpmsxNew(), rpmsxParse(), rpmteNew(), rpmteNewTSI(), rpmtsCreate(), rpmtsInitDSI(), rpmtsOrder(), rpmtsRun(), rpmtsScoreInit(), saveHardLink(), XfdNew(), and XrpmtsiInit().

void* xmalloc ( size_t  size  ) 

Definition at line 24 of file rpmmalloc.c.

References vmefail().

Referenced by addFile(), addSource(), addTE(), argvSplit(), base64Format(), bin2hex(), buildArgCallback(), convertAMD(), copyEntry(), cpioHeaderRead(), dbt2set(), depflagsFormat(), do_inject(), doAddSubtract(), doHeaderUnload(), doLookup(), doputenv(), doReadRC(), dosetenv(), expandMacro(), expandMacroTable(), fflagsFormat(), formatValue(), fpCacheCreate(), fsmFsPath(), fsmStage(), genChangelog(), genCpioListAndHeader(), grabData(), hexFormat(), htAddEntry(), htCreate(), machAddEquiv(), machCompatCacheAdd(), main(), makeGPGSignature(), makePGPSignature(), mireDup(), newOpenFileInfo(), newSl(), newSt(), newStringBuf(), octalFormat(), parseFmt(), parseForLang(), parseRCPOT(), permsFormat(), pgpArmorWrap(), pgpHexSet(), pgpPrtSig(), pgpPrtUserID(), printNewSpecfile(), processSourceFiles(), pushMacro(), queryArgCallback(), readIcon(), readLine(), realDateFormat(), rpmcliImportPubkey(), rpmdbInitIterator(), rpmdbRebuild(), rpmDigestFinal(), rpmdsDup(), rpmdsDupArgv(), rpmdsMerge(), rpmdsNew(), rpmdsNewDNEVR(), rpmdsSingle(), rpmdsThis(), rpmfd_Fopen(), rpmfiBuildFClasses(), rpmfiBuildFContexts(), rpmfiBuildFDeps(), rpmfiBuildFNames(), rpmfiBuildFSContexts(), rpmfiBuildREContexts(), rpmfiFN(), rpmfiNew(), rpmGlob(), rpmioSlurp(), rpmProblemString(), rpmpsmStage(), rpmReadHeader(), rpmReadSignature(), rpmRebuildTargetVars(), rpmSetVarArch(), rpmsxParse(), rpmsxSort(), rpmtsGetKeys(), rpmtsRun(), set2dbt(), shescapeFormat(), showQueryPackage(), splitString(), triggercondsTag(), triggertypeTag(), urlFind(), valueMakeInteger(), valueMakeString(), verifyRSASignature(), vrpmlog(), xmlFormat(), and XurlNew().

void* xrealloc ( void *  ptr,
size_t  size 
)

Todo:
Annotate ptr with returned/out.

Definition at line 45 of file rpmmalloc.c.

References vmefail().

Referenced by addCanon(), addDefault(), addFile(), appendStringBufAux(), argiAdd(), argvAdd(), argvAppend(), buildArgCallback(), currentDirectory(), dbiAppendSet(), dbiTagsInit(), expandMacroTable(), fsmMkdirs(), ftpNLST(), ftsStashLatest(), getFilesystemList(), gidToGname(), gnameToGid(), handleInstInstalledFiles(), hsaReserve(), htAddEntry(), IDTXgrow(), installArgCallback(), machAddEquiv(), machCompatCacheAdd(), main(), parseForLang(), PBM_REALLOC(), pgpsigFormat(), queryArgCallback(), readLine(), removePackage(), rpmalAdd(), rpmalAllFileSatisfiesDepend(), rpmalAllSatisfiesDepend(), rpmalDel(), rpmalMakeIndex(), rpmdbSetIteratorRE(), rpmfcExpandAppend(), rpmfiBuildFSContexts(), rpmfiBuildREContexts(), rpmGlob(), rpmGraph(), rpmInstall(), rpmioSlurp(), rpmPlatform(), rpmpsAppend(), rpmsxAdd(), rpmtsAddInstallElement(), rpmtsAvailable(), rpmtsSolve(), rpmtsStashKeyid(), showQueryPackage(), stashSt(), triggercondsTag(), uidToUname(), unameToUid(), urlFind(), and vrpmlog().

char* xstrdup ( const char *  str  ) 

Definition at line 55 of file rpmmalloc.c.

References vmefail().

Referenced by addCanon(), addDefault(), addFile(), addSource(), addTE(), addTriggerIndex(), argvAdd(), argvAppend(), argvSplit(), armorFormat(), base64Format(), buildArgCallback(), convertAMD(), cpio_doio(), db3New(), dbiTagsInit(), depflagsFormat(), doLookup(), doSetupMacro(), dupAttrRec(), fflagsFormat(), forceIncludeFile(), formatValue(), fsmMakeLinks(), fsmStage(), ftsStashLatest(), genSourceRpmName(), getFilesystemList(), getGidS(), getGname(), getGnameS(), getUidS(), getUname(), getUnameS(), hexFormat(), i18nTag(), ignoreDep(), installArgCallback(), instprefixTag(), machAddEquiv(), machCompatCacheAdd(), main(), mireDup(), octalFormat(), parseExpressionBoolean(), parseExpressionString(), parseForSimple(), parseScript(), parseSpec(), permsFormat(), pgpsigFormat(), printNewSpecfile(), processPackageFiles(), processSourceFiles(), pushMacro(), rdToken(), readLine(), realDateFormat(), rpmalAdd(), rpmalAllFileSatisfiesDepend(), rpmcliQuery(), rpmds_compare(), rpmds_iternext(), rpmds_Single(), rpmdsCompare(), rpmdsFilter(), rpmExpand(), rpmfcELF(), rpmfcGenerateDepends(), rpmfd_Fopen(), rpmfi_BN(), rpmfi_DN(), rpmfi_FClass(), rpmfi_FGroup(), rpmfi_FLink(), rpmfi_FN(), rpmfi_FUser(), rpmfi_MD5(), rpmfi_subscript(), rpmGetPath(), rpmgiInitFilter(), rpmgiNext(), rpmGlob(), rpmInitMacros(), rpmInstall(), rpmInstallSourcePackage(), rpmPermsString(), rpmPlatform(), rpmpsAppend(), rpmQueryVerify(), rpmReadHeader(), rpmReadRC(), rpmReadSignature(), rpmRebuildTargetVars(), rpmSetMachine(), rpmSetVar(), rpmSetVarArch(), rpmtsFindPubkey(), rpmtsScoreInit(), rpmtsSetCurrDir(), rpmtsSetRootDir(), stashSt(), triggercondsTag(), triggertypeFormat(), triggertypeTag(), urlFind(), urlSplit(), writeLinkedFile(), writeRPM(), and xmlFormat().


Generated on Fri Oct 12 08:44:56 2007 for rpm by  doxygen 1.5.2