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, allocateExtensionCache, dbiIndexNewItem, dbiTagsInit, defaultMachine, fssizesTag, ftpNLST, ftpOpendir, genCpioListAndHeader, generateDepends, getFilesystemList, headerGetLangs, headerLoad, headerNew, hGetNEVR, htCreate, IDTXnew, ignoreDep, initGlobs, main, newItem, newPackage, newRpmdb, newSpec, newStringBuf, parseFormat, parseSpec, pgpNewDig, processSourceFiles, rpmAddSignature, rpmalCreate, rpmdbAdd, rpmdbAppendIterator, rpmdbFindByFile, rpmdbFindFpList, rpmdbInitIterator, rpmdbSetIteratorRE, rpmDigestDup, rpmDigestInit, rpmdsNew, rpmdsSingle, rpmdsThis, rpmGetFilesystemUsage, rpmGetRpmlibProvides, rpmpsAppend, rpmpsCreate, rpmReadPackageManifest, rpmteNew, rpmteNewTSI, rpmtsCreate, rpmtsInitDSI, rpmtsOrder, and XrpmtsiInit.

void* xmalloc | ( | size_t | size | ) |

Definition at line 24 of file rpmmalloc.c.

References vmefail.

Referenced by addFile, addSource, addTE, armorFormat, base64Format, buildArgCallback, convertAMD, copyEntry, currentDirectory, dbt2set, depflagsFormat, do_inject, doAddSubtract, doBuildFileList, doHeaderUnload, doLookup, doputenv, doReadRC, dosetenv, expandMacroTable, fflagsFormat, formatValue, fpCacheCreate, genChangelog, genCpioListAndHeader, grabData, headerAddI18NString, headerAppendEntry, headerCheck, headerCopyLoad, headerInitIterator, headerRead, hexFormat, htAddEntry, htCreate, machAddEquiv, machCompatCacheAdd, main, makeGPGSignature, makePGPSignature, mireDup, newOpenFileInfo, newSl, newSt, newStringBuf, octalFormat, parseForLang, parseRCPOT, permsFormat, pgpHexSet, pgpPrtSig, pgpPrtUserID, pgpsigFormat, printNewSpecfile, pushMacro, queryArgCallback, readIcon, readLine, realDateFormat, rpmcliImportPubkey, rpmdbInitIterator, rpmdbRebuild, rpmDigestFinal, rpmdsNew, rpmdsNewDNEVR, rpmdsSingle, rpmdsThis, rpmfd_Fopen, rpmGlob, rpmProblemString, rpmReadHeader, rpmReadSignature, rpmRebuildTargetVars, rpmSetVarArch, rpmtsGetKeys, set2dbt, shescapeFormat, showQueryPackage, splitString, triggercondsTag, triggertypeTag, urlFind, valueMakeInteger, valueMakeString, verifyPGPSignature, vfs_parse_ls_lga, 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, buildArgCallback, currentDirectory, dbiAppendSet, dbiTagsInit, expandMacroTable, formatValue, ftpNLST, ftsStashLatest, generateDepends, getFilesystemList, gidToGname, gnameToGid, headerAddEntry, headerAddI18NString, headerAppendEntry, headerSprintf, htAddEntry, IDTXgrow, installArgCallback, machAddEquiv, machCompatCacheAdd, main, parseForLang, PBM_REALLOC, queryArgCallback, readLine, removePackage, rpmalAdd, rpmalAllFileSatisfiesDepend, rpmalAllSatisfiesDepend, rpmalDel, rpmalMakeIndex, rpmdbGrowIterator, rpmdbSetIteratorRE, rpmGlob, rpmGraph, rpmInstall, rpmPlatform, rpmpsAppend, rpmtsAddInstallElement, rpmtsAvailable, rpmtsSolve, rpmtsStashKeyid, showQueryPackage, singleSprintf, stashSt, triggercondsTag, uidToUname, unameToUid, and urlFind.

char* xstrdup | ( | const char * | str | ) |

Definition at line 55 of file rpmmalloc.c.

References vmefail.

Referenced by addCanon, addDefault, addFile, addSource, addTE, addTriggerIndex, armorFormat, base64Format, buildArgCallback, convertAMD, cpio_doio, dbiTagsInit, depflagsFormat, doLookup, doSetupMacro, dupAttrRec, fflagsFormat, findProgramPath, forceIncludeFile, formatValue, ftsStashLatest, generateDepends, 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, rpmdsCompare, rpmExpand, rpmfd_Fopen, rpmfi_BN, rpmfi_DN, rpmfi_FGroup, rpmfi_FLink, rpmfi_FN, rpmfi_FUser, rpmfi_MD5, rpmfi_subscript, rpmGetPath, rpmGlob, rpmInitMacros, rpmInstall, rpmPermsString, rpmPlatform, rpmpsAppend, rpmQueryVerify, rpmReadRC, rpmRebuildTargetVars, rpmSetMachine, rpmSetVar, rpmSetVarArch, rpmtsSetCurrDir, rpmtsSetRootDir, stashSt, triggercondsTag, triggertypeFormat, triggertypeTag, urlFind, urlSplit, and writeRPM.