Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

rpmio/rpmmalloc.c File Reference

More...

#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(), headerLoad(), headerNew(), hGetNEVR(), htCreate(), ignoreDep(), initGlobs(), main(), mapInitIterator(), newFSM(), newPackage(), newRpmdb(), newSpec(), newStringBuf(), parseFormat(), parseSpec(), processSourceFiles(), rpmAddSignature(), rpmalCreate(), rpmdbAdd(), rpmdbAppendIterator(), rpmdbFindByFile(), rpmdbFindFpList(), rpmdbInitIterator(), rpmdbSetIteratorRE(), rpmDigestDup(), rpmDigestInit(), rpmdsDup(), rpmdsNew(), rpmdsSingle(), rpmdsThis(), rpmecNew(), rpmfcGenerateDepends(), rpmfcNew(), rpmfiNew(), rpmGetFilesystemUsage(), rpmGetRpmlibProvides(), rpmInstallSourcePackage(), rpmpsAppend(), rpmpsCreate(), rpmpsmNew(), rpmpsmStage(), rpmReadPackageManifest(), rpmteNew(), rpmteNewTSI(), rpmtsCreate(), rpmtsInitDSI(), rpmtsOrder(), rpmtsRun(), saveHardLink(), XfdNew(), and XrpmtsiInit().

void* xmalloc (  size_t    size ) 
 

Definition at line 24 of file rpmmalloc.c.

References vmefail().

Referenced by addFile(), addSource(), addTE(), apprentice_1(), apprentice_map(), argvSplit(), base64Format(), buildArgCallback(), convertAMD(), copyEntry(), cpioHeaderRead(), dbt2set(), depflagsFormat(), do_inject(), doAddSubtract(), doHeaderUnload(), doLookup(), doputenv(), doReadRC(), dosetenv(), expandMacroTable(), fflagsFormat(), fmagicProcess(), formatValue(), fpCacheCreate(), fsmFsPath(), fsmStage(), genChangelog(), genCpioListAndHeader(), grabData(), headerAddI18NString(), headerAppendEntry(), headerCheck(), headerCopyLoad(), headerInitIterator(), headerRead(), hexFormat(), htAddEntry(), htCreate(), machAddEquiv(), machCompatCacheAdd(), main(), makeGPGSignature(), makePGPSignature(), mireDup(), newOpenFileInfo(), newStringBuf(), octalFormat(), parseForLang(), parseRCPOT(), permsFormat(), pgpArmorWrap(), pgpHexSet(), pgpPrtSig(), pgpPrtUserID(), pgpsigFormat(), printNewSpecfile(), pushMacro(), queryArgCallback(), readIcon(), readLine(), realDateFormat(), relocateFileList(), rpmcliImportPubkey(), rpmdbInitIterator(), rpmdbRebuild(), rpmDigestFinal(), rpmdsDup(), rpmdsDupArgv(), rpmdsMerge(), rpmdsNew(), rpmdsNewDNEVR(), rpmdsSingle(), rpmdsThis(), rpmfd_Fopen(), rpmfiBuildFClasses(), rpmfiBuildFDeps(), rpmfiBuildFNames(), rpmfiFN(), rpmfiNew(), rpmGlob(), rpmInstallSourcePackage(), rpmioSlurp(), rpmProblemString(), rpmpsmStage(), rpmReadHeader(), rpmReadSignature(), rpmRebuildTargetVars(), rpmSetVarArch(), rpmtsGetKeys(), rpmtsRun(), set2dbt(), shescapeFormat(), showQueryPackage(), splitString(), triggercondsTag(), triggertypeTag(), uncompressbuf(), urlFind(), valueMakeInteger(), valueMakeString(), verifyPGPSignature(), vfs_parse_ls_lga(), 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(), fmagicSMatch(), fsmMkdirs(), ftpNLST(), ftsStashLatest(), getFilesystemList(), gidToGname(), gnameToGid(), handleInstInstalledFiles(), headerAddEntry(), headerAddI18NString(), headerAppendEntry(), headerSprintf(), hsaReserve(), htAddEntry(), IDTXgrow(), installArgCallback(), machAddEquiv(), machCompatCacheAdd(), main(), mkdbname(), parse(), parseForLang(), PBM_REALLOC(), psmRegisterFork(), queryArgCallback(), readLine(), relocateFileList(), removePackage(), rpmalAdd(), rpmalAllFileSatisfiesDepend(), rpmalAllSatisfiesDepend(), rpmalDel(), rpmalMakeIndex(), rpmdbGrowIterator(), rpmdbSetIteratorRE(), rpmfcExpandAppend(), rpmfiNew(), rpmGlob(), rpmGraph(), rpmInstall(), rpmioSlurp(), rpmPlatform(), rpmpsAppend(), 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(), findProgramPath(), fmagicSetup(), forceIncludeFile(), formatValue(), fsmMakeLinks(), fsmStage(), ftsStashLatest(), genSourceRpmName(), getFilesystemList(), getGidS(), getGname(), getGnameS(), getUidS(), getUname(), getUnameS(), headerCheck(), headerSprintf(), hexFormat(), i18nTag(), ignoreDep(), installArgCallback(), instprefixTag(), machAddEquiv(), machCompatCacheAdd(), main(), mireDup(), octalFormat(), parseExpressionBoolean(), parseExpressionString(), parseForSimple(), parseScript(), parseSpec(), permsFormat(), pgpsigFormat(), poptAddItem(), poptGetNextOpt(), poptSetExecPath(), poptSetOtherOptionHelp(), printNewSpecfile(), processPackageFiles(), processSourceFiles(), pushMacro(), rdToken(), readLine(), realDateFormat(), rpmalAdd(), rpmalAllFileSatisfiesDepend(), rpmcliQuery(), rpmdsCompare(), rpmExpand(), rpmfcELF(), rpmfcGenerateDepends(), rpmfd_Fopen(), rpmfi_BN(), rpmfi_DN(), rpmfi_FClass(), rpmfi_FGroup(), rpmfi_FLink(), rpmfi_FN(), rpmfi_FUser(), rpmfi_MD5(), rpmfi_subscript(), rpmfiNew(), rpmGetPath(), rpmGlob(), rpmInitMacros(), rpmInstall(), rpmInstallSourcePackage(), rpmPermsString(), rpmPlatform(), rpmpsAppend(), rpmQueryVerify(), rpmReadHeader(), rpmReadRC(), rpmReadSignature(), rpmRebuildTargetVars(), rpmSetMachine(), rpmSetVar(), rpmSetVarArch(), rpmtsSetCurrDir(), rpmtsSetRootDir(), stashSt(), triggercondsTag(), triggertypeFormat(), triggertypeTag(), urlFind(), urlSplit(), writeLinkedFile(), writeRPM(), and xmlFormat().


Generated on Wed Mar 17 14:58:44 2004 for rpm by doxygen1.2.18