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 addIndexEntry, addTriggerIndex, alCreate, allocateExtensionCache, alMakeIndex, db3New, dbiIndexNewItem, dbiTagsInit, defaultMachine, fssizesTag, ftpNLST, genCpioListAndHeader, generateDepends, getFilesystemList, headerGetLangs, headerLoad, headerNew, htCreate, IDTXnew, ignoreDep, main, newPackage, newRpmdb, newSpec, newStringBuf, parseFormat, parseSpec, pgpNewDig, processSourceFiles, rpmdbAppendIterator, rpmdbFindByFile, rpmdbFindFpList, rpmdbInitIterator, rpmdbSetIteratorRE, rpmdepCheck, rpmDigestDup, rpmDigestInit, rpmGetFilesystemUsage, rpmGetRpmlibProvides, rpmReadPackageManifest, and rpmtransCreateSet.

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

Definition at line 24 of file rpmmalloc.c.

References vmefail.

Referenced by addFile, addRelation, addSource, alAddPackage, armorFormat, base64Format, buildArgCallback, checkPackageDeps, convertAMD, copyEntry, currentDirectory, db1cget, dbiSearch, depflagsFormat, do_inject, doAddSubtract, doBuildFileList, doHeaderUnload, doLookup, doputenv, doReadRC, dosetenv, expandMacroTable, fflagsFormat, formatValue, fpCacheCreate, genChangelog, genCpioListAndHeader, grabData, headerAddI18NString, headerAppendEntry, headerCopyLoad, headerInitIterator, headerRead, hexFormat, htAddEntry, htCreate, machAddEquiv, machCompatCacheAdd, main, makeGPGSignature, makePGPSignature, mireDup, newOpenFileInfo, newSl, newSt, newStringBuf, octalFormat, parseForLang, parseRCPOT, permsFormat, pgpHexSet, pgpPrtSig, pgpPrtUserID, printDepend, printNewSpecfile, pushMacro, queryArgCallback, readIcon, readLine, realDateFormat, rpmdbInitIterator, rpmdbRebuild, rpmdepOrder, rpmDigestFinal, rpmGlob, rpmProblemString, rpmRebuildTargetVars, rpmSetVarArch, shescapeFormat, showQueryPackage, splitString, triggercondsTag, triggertypeTag, urlFind, valueMakeInteger, valueMakeString, 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, alAddPackage, alAllFileSatisfiesDepend, alAllSatisfiesDepend, appendStringBufAux, buildArgCallback, checkPackageDeps, currentDirectory, dbiAppendSet, dbiTagsInit, expandMacroTable, formatValue, ftpNLST, generateDepends, getFilesystemList, gidToGname, gnameToGid, headerAddEntry, headerAddI18NString, headerAppendEntry, headerSprintf, htAddEntry, IDTXgrow, installArgCallback, machAddEquiv, machCompatCacheAdd, main, parseForLang, queryArgCallback, readLine, removePackage, rpmdbGrowIterator, rpmdbSetIteratorRE, rpmdepCheck, rpmGlob, rpmInstall, rpmtransAddPackage, 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, addTriggerIndex, alAddPackage, alAllFileSatisfiesDepend, armorFormat, base64Format, buildArgCallback, checkPackageDeps, convertAMD, cpio_doio, db1basename, db3New, dbiTagsInit, depflagsFormat, doLookup, doSetupMacro, dupAttrRec, fflagsFormat, findProgramPath, forceIncludeFile, formatValue, generateDepends, genSourceRpmName, getFilesystemList, getGidS, getGname, getGnameS, getUidS, getUname, getUnameS, headerSprintf, hexFormat, i18nTag, IDTXglob, ignoreDep, instprefixTag, machAddEquiv, machCompatCacheAdd, main, mireDup, octalFormat, parseExpression, parseExpressionBoolean, parseExpressionString, parseForSimple, parseScript, parseSpec, permsFormat, poptAddItem, poptGetNextOpt, poptSetExecPath, poptSetOtherOptionHelp, printNewSpecfile, processPackageFiles, processSourceFiles, pushMacro, rdToken, readLine, realDateFormat, rpmExpand, rpmGetPath, rpmGlob, rpmInitMacros, rpmInstall, rpmPermsString, rpmQueryVerify, rpmRangesOverlap, rpmReadRC, rpmRebuildTargetVars, rpmSetMachine, rpmSetVar, rpmSetVarArch, rpmtransCreateSet, stashSt, triggercondsTag, triggertypeFormat, triggertypeTag, urlFind, urlSplit, and writeRPM.