rpm  5.4.10
Data Structures | Macros | Functions | Variables
system.h File Reference
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <time.h>
#include <strings.h>
#include <errno.h>
#include <sys/file.h>
#include <ctype.h>
#include "rpmio/glob.h"
#include "rpmio/fnmatch.h"
#include "../system.h"
#include <ruby.h>
Include dependency graph for system.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  our_mntent

Macros

#define st_birthtime   st_ctime /* Use st_ctime if no st_birthtime. */
#define MAXPHYS   (128 * 1024) /* max raw I/O transfer size */
#define TIMEVAL_TO_TIMESPEC(tv, ts)
#define TIMESPEC_TO_TIMEVAL(tv, ts)
#define major(dev)   (((dev) >> 8) & 0xff)
#define minor(dev)   ((dev) & 0xff)
#define makedev(maj, min)   (((maj) << 8) | (min))
#define EXIT_FAILURE   1
#define SEEK_SET   0
#define SEEK_CUR   1
#define SEEK_END   2
#define F_OK   0
#define X_OK   1
#define W_OK   2
#define R_OK   4
#define dirent   direct
#define NLENGTH(direct)   ((direct)->d_namlen)
#define __progname   program_name
#define setprogname(pn)
#define setlocale(Category, Locale)   /* empty */
#define bindtextdomain(Domain, Directory)   /* empty */
#define textdomain(Domain)   /* empty */
#define _(Text)   Text
#define D_(Text)   Text
#define dgettext(DomainName, Text)   Text
#define N_(Text)   Text
#define S_IFSOCK   (0xc000)
#define S_ISLNK(mode)   ((mode & 0xf000) == S_IFLNK)
#define S_ISSOCK(mode)   ((mode & 0xf000) == S_IFSOCK)
#define lchown   chown
#define our_mntent   struct our_mntent
#define GETMNTENT_ONE   1
#define GETMNTENT_TWO   0
#define MOUNTED   "/etc/mnttab"
#define FILE_RCSID(id)
#define Makedev(x, y)   makedev((x),(y))
 makedev() on QNX takes three parameters the additional one (first place) specifies the node for QNET as this applic is not QNET aware, we can set it to 'local node'
#define SUPPORT_IMPLICIT_TAG_DATA_TYPES   1
 Use the tag data type compiled into rpm, not the type from the header.
#define SUPPORT_I18NSTRING_TYPE   0
 Eliminate RPM_I18NSTRING_TYPE.
#define SUPPORT_NOSIGNATURES   1
 Eliminate signature/digest disablers.
#define HAVE_SETPROCTITLE   1
#define _save   _
#define _xmalloc   xmalloc
#define _xcalloc   xcalloc
#define _xrealloc   xrealloc
#define _xfree   xfree
#define _   _save
#define xmalloc   _xmalloc
#define xrealloc   _xrealloc
#define xfree   _xfree

Functions

char * memchr ()
char * stpcpy (char *dest, const char *src)
char * stpncpy (char *dest, const char *src, size_t n)
char * getenv (const char *name)
char * realpath (const char *path, char resolved_path[])
char * alloca ()
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)
void * vmefail (size_t size)
int setenv (const char *name, const char *value, int replace)
void unsetenv (const char *name)
struct our_mntentgetmntent (FILE *filep)

Variables

int errno
const char * program_name

Macro Definition Documentation

#define _   _save

Definition at line 30 of file system.h.

#define _ (   Text)    Text

Definition at line 30 of file system.h.

Referenced by _rpmtsRun(), _specQuery(), addChangelog(), addFile(), addFileToTagAux(), addMacro(), addSource(), argerror(), armorFormat(), base64Format(), bncdataFormat(), build(), buildHost(), buildSpec(), cdataFormat(), checkForDuplicates(), checkForRequired(), checkForValidArchitectures(), checkOwners(), checkPackages(), checkUnpackagedFiles(), compare(), compile_single_pattern(), copyFile(), copyNextLineFromOFI(), cpio_copy(), cpio_doio(), createDir(), dateFormat(), dayFormat(), db3Acallback(), db3open(), dbiFindMatches(), dbiMireKeys(), dbiOpen(), depflagsFormat(), deptypeFormat(), digestFormat(), doAddSubtract(), doDefine(), doIcon(), doLogical(), doMultiplyDivide(), doPatch(), doPatchMacro(), doPrimary(), doRelational(), doSetupMacro(), doUndefine(), doUntar(), expandMacro(), expandMacros(), Fadvise(), Fallocate(), fflagsFormat(), fiIntersect(), findPreambleTag(), freeArgs(), fsmMapAttrs(), fsmStage(), ftpStrerror(), genCpioListAndHeader(), getFilesystemList(), getGidS(), getGname(), getGnameS(), getOutputFrom(), getUidS(), getUname(), getUnameS(), grabArgs(), grep_or_recurse(), grepArgCallback(), handlePreambleTag(), headerCheck(), hintFormat(), iconvFormat(), IDTXglob(), installArgCallback(), intFormat(), iosmMapAttrs(), iosmStage(), iosmStrerror(), isCompressed(), jsonFormat(), main(), makeGPGSignature(), manageFile(), miFreeHeader(), mireLoadPatternFiles(), mireRegcomp(), mireRegexec(), mireSetLocale(), mireStudy(), mtree_error(), mtreeArgCallback(), mtreeMiss(), mtreeReadExcludes(), mtreeSpec(), mtreeVisitD(), mtreeVisitF(), mtreeVWalk(), packageBinaries(), parseBuildInstallClean(), parseDescription(), parseExpression(), parseExpressionBoolean(), parseExpressionString(), parseFiles(), parseForAttr(), parseForConfig(), parseForDev(), parseForLang(), parseFormat(), parseForSimple(), parseForVerify(), parseNoSource(), parsePreamble(), parsePrep(), parseRCPOT(), parseScript(), parseSpec(), pcregrep(), permsFormat(), pgpsigFormat(), pkgUnpackagedSubdirs(), prepFetch(), printExpansion(), printMacro(), printNewSpecfile(), printVersion(), processBinaryFile(), processBinaryFiles(), processMetadataFile(), processPackageFiles(), processScriptFiles(), processSourceFiles(), queryHeader(), rdLead(), rdSignature(), rdToken(), readFile(), readLine(), readLineFromOFI(), realDateFormat(), rfileHeaderSprintf(), rpmalAllFileSatisfiesDepend(), rpmalAllSatisfiesDepend(), rpmCheckPassPhrase(), rpmcliImportPubkeys(), rpmcliInit(), rpmcliInstall(), rpmcliInstallCheck(), rpmcliInstallOrder(), rpmcliInstallRun(), rpmcliInstallSuggests(), rpmcliSign(), rpmdbCount(), rpmdbNew(), rpmdbRemove(), rpmdcArgCallback(), rpmdcInitFile(), rpmdcParseCoreutils(), rpmdcParseZeroInstall(), rpmdsCompare(), rpmdsNotify(), rpmdsPipe(), rpmdsSysinfoFile(), rpmDumpMacroTable(), rpmErase(), rpmEVRcompare(), rpmfcApply(), rpmfcExpandRegexps(), rpmfcGenerateDependsHelper(), rpmfcMatchRegexps(), rpmGetFilesystemUsage(), rpmgiInitFilter(), rpmgiLoadReadHeader(), rpmgiOpen(), rpmInstallSource(), rpmInstallSourcePackage(), rpmioInit(), rpmLoadMacroFile(), rpmlogMessage(), rpmmgBuffer(), rpmmgFile(), rpmmgNew(), rpmmiNext(), rpmMkdirPath(), rpmProblemString(), rpmpsmStage(), rpmQueryVerify(), rpmReadHeader(), rpmReadPackageFile(), rpmReadPackageManifest(), rpmrepoCheckTimeStamps(), rpmrepoCloseMDFile(), rpmrepoDoFinalMove(), rpmrepoDoRepoMetadata(), rpmrepoGetFileList(), rpmrepoInitPopt(), rpmrepoMkdir(), rpmrepoOpenMDFile(), rpmrepoReadHeader(), rpmrepoTestSetupDirs(), rpmReSign(), rpmrfileXMLWrite(), rpmRollback(), rpmShowProgress(), rpmShowRC(), rpmspecQuery(), rpmsqlRun(), rpmTempFile(), rpmts_Die(), rpmtsAddInstallElement(), rpmtsFindPubkey(), rpmtsOpenDB(), rpmtsOpenSDB(), rpmtsPrepare(), rpmtsRollback(), rpmtsSolve(), rpmuuidMake(), rpmVerifySignature(), rpmVerifySignatures(), rpmvfVerify(), rpmWriteHeader(), rpnFormat(), runScript(), set(), shescapeFormat(), showQueryPackage(), singleSprintf(), spewescapeFormat(), sql_busy_handler(), statFormat(), strsubFormat(), tagValidate(), timeCheck(), triggertypeFormat(), unsatisfiedDepend(), urlFind(), urlFini(), urlFreeCache(), urlSplit(), urlStrerror(), uuidFormat(), verifyDependencies(), verifyDSA(), verifyMD5(), verifyRSA(), verifySHA1(), verifySize(), vmefail(), writeRPM(), xmlFormat(), and yamlFormat().

#define __progname   program_name
#define _save   _

Definition at line 14 of file system.h.

#define _xcalloc   xcalloc

Definition at line 18 of file system.h.

#define _xfree   xfree

Definition at line 22 of file system.h.

#define _xmalloc   xmalloc

Definition at line 16 of file system.h.

#define _xrealloc   xrealloc

Definition at line 20 of file system.h.

#define bindtextdomain (   Domain,
  Directory 
)    /* empty */

Definition at line 481 of file system.h.

Referenced by rpmcliInit(), and rpmioInit().

#define D_ (   Text)    Text
#define dgettext (   DomainName,
  Text 
)    Text

Definition at line 487 of file system.h.

Referenced by i18nTag().

#define dirent   direct

Definition at line 230 of file system.h.

Referenced by fts_build(), Glob(), glob_in_dir(), and grep_or_recurse().

#define EXIT_FAILURE   1
#define F_OK   0

Definition at line 216 of file system.h.

Referenced by db3open(), doIcon(), getSourceDir(), and rpmioAccess().

#define FILE_RCSID (   id)
Value:
static inline const char *rcsid(const char *p) { \
return rcsid(p = id); \
}

Definition at line 708 of file system.h.

#define GETMNTENT_ONE   1

Definition at line 688 of file system.h.

#define GETMNTENT_TWO   0

Definition at line 689 of file system.h.

#define HAVE_SETPROCTITLE   1

Definition at line 5 of file system.h.

#define lchown   chown

Definition at line 651 of file system.h.

Referenced by Lchown(), and mtreeMiss().

#define major (   dev)    (((dev) >> 8) & 0xff)

Definition at line 123 of file system.h.

Referenced by cpioHeaderRead(), cpioHeaderWrite(), tarHeaderRead(), tarHeaderWrite(), and xarDev().

#define makedev (   maj,
  min 
)    (((maj) << 8) | (min))

Definition at line 125 of file system.h.

Referenced by xarDev().

#define Makedev (   x,
 
)    makedev((x),(y))

makedev() on QNX takes three parameters the additional one (first place) specifies the node for QNET as this applic is not QNET aware, we can set it to 'local node'

Definition at line 727 of file system.h.

Referenced by cpioHeaderRead(), and tarHeaderRead().

#define MAXPHYS   (128 * 1024) /* max raw I/O transfer size */

Definition at line 58 of file system.h.

#define minor (   dev)    ((dev) & 0xff)

Definition at line 124 of file system.h.

Referenced by cpioHeaderRead(), cpioHeaderWrite(), tarHeaderRead(), tarHeaderWrite(), and xarDev().

#define MOUNTED   "/etc/mnttab"

Definition at line 702 of file system.h.

Referenced by getFilesystemList().

#define N_ (   Text)    Text

Definition at line 490 of file system.h.

Referenced by rpmProblemString().

#define NLENGTH (   direct)    ((direct)->d_namlen)

Definition at line 231 of file system.h.

#define our_mntent   struct our_mntent

Definition at line 686 of file system.h.

#define R_OK   4

Definition at line 219 of file system.h.

Referenced by rpmioAccess(), rpmsqlNew(), rpmtsPRCO(), and unsatisfiedDepend().

#define S_IFSOCK   (0xc000)

Definition at line 606 of file system.h.

Referenced by ftpOpendir(), inotype(), rpmfcClassify(), vfs_parse_filetype(), and xarMode().

#define S_ISLNK (   mode)    ((mode & 0xf000) == S_IFLNK)
#define S_ISSOCK (   mode)    ((mode & 0xf000) == S_IFSOCK)

Definition at line 614 of file system.h.

Referenced by compare(), fsmStage(), iosmStage(), rpmfiWhatis(), rpmPermsString(), and tarHeaderWrite().

#define SEEK_CUR   1

Definition at line 212 of file system.h.

Referenced by rpmSingleHeaderFromFD().

#define SEEK_END   2

Definition at line 213 of file system.h.

#define SEEK_SET   0

Definition at line 211 of file system.h.

#define setlocale (   Category,
  Locale 
)    /* empty */

Definition at line 472 of file system.h.

Referenced by mireSetLocale(), rpmcliInit(), rpmGlob(), and rpmioInit().

#define setprogname (   pn)
Value:
{ if ((__progname = strrchr(pn, '/')) != NULL) __progname++; \
else __progname = pn; \
}

Definition at line 429 of file system.h.

Referenced by main(), rpmcliInit(), and rpmioInit().

#define st_birthtime   st_ctime /* Use st_ctime if no st_birthtime. */

Definition at line 42 of file system.h.

#define SUPPORT_I18NSTRING_TYPE   0

Eliminate RPM_I18NSTRING_TYPE.

Definition at line 744 of file system.h.

Referenced by headerAppendEntry(), and headerMacrosLoad().

#define SUPPORT_IMPLICIT_TAG_DATA_TYPES   1

Use the tag data type compiled into rpm, not the type from the header.

Definition at line 739 of file system.h.

#define SUPPORT_NOSIGNATURES   1

Eliminate signature/digest disablers.

Definition at line 749 of file system.h.

#define textdomain (   Domain)    /* empty */

Definition at line 483 of file system.h.

Referenced by rpmcliInit(), and rpmioInit().

#define TIMESPEC_TO_TIMEVAL (   tv,
  ts 
)
Value:
{ \
(tv)->tv_sec = (ts)->tv_sec; \
(tv)->tv_usec = (ts)->tv_nsec / 1000; \
}

Definition at line 103 of file system.h.

Referenced by compare(), and mtreeVisitF().

#define TIMEVAL_TO_TIMESPEC (   tv,
  ts 
)
Value:
{ \
(ts)->tv_sec = (tv)->tv_sec; \
(ts)->tv_nsec = (tv)->tv_usec * 1000; \
}

Definition at line 97 of file system.h.

#define W_OK   2

Definition at line 218 of file system.h.

Referenced by createDir(), db3open(), main(), rpmioAccess(), and rpmrepoTestSetupDirs().

#define X_OK   1

Definition at line 217 of file system.h.

Referenced by rpmioAccess(), and unsatisfiedDepend().

#define xfree   _xfree

Definition at line 39 of file system.h.

#define xmalloc   _xmalloc

Definition at line 33 of file system.h.

Referenced by _str2PCREpat(), _tagCanonicalize(), addFile(), addSource(), addTE(), argvJoin(), argvSplit(), arSetup(), bin2hex(), bncdataFormat(), cdataFormat(), cpioHeaderRead(), db3Acallback(), dbiMireKeys(), dbinstanceTag(), debevrfmtTag(), debmd5sumsTag(), doAddSubtract(), doLookup(), doputenv(), dosetenv(), dupMacroEntry(), expandMacro(), expandMacroTable(), FDGsqlTag(), FDGxmlTag(), FDGyamlTag(), formatValue(), fpCacheCreate(), fpLookupSubdir(), fsmFsPath(), fsmStage(), genCpioListAndHeader(), glob(), glob_in_dir(), grabData(), handleOneTrigger(), headerAppendEntry(), headerCheck(), headerendoffTag(), headerInit(), headerMap(), headerstartoffTag(), headerUnload(), hGetNVRA(), htAddEntry(), iosmFsPath(), iosmStage(), jsonFormat(), loadDBT(), localeTag(), machAddEquiv(), main(), makeGPGSignature(), mireDup(), mtreeReadExcludes(), mtreeVisitF(), needswhatTag(), newOpenFileInfo(), newSl(), newSpec(), newSt(), parseForLang(), parseRCPOT(), pgpArmorWrap(), pgpMpiHex(), pgpMpiSet(), pgpPrtUserID(), pkgmtimeTag(), pkgsizeTag(), PRCOsqlTag(), PRCOxmlTag(), PRCOyamlTag(), prefix_array(), printNewSpecfile(), pushMacro(), queryArgCallback(), rdSignature(), readLine(), relocateFileList(), rpmbcExportPubkey(), rpmbcExportSignature(), rpmbcSetRSA(), rpmcliImportPubkey(), rpmdcPrintCoreutils(), rpmdcPrintZeroInstall(), rpmdsDup(), rpmdsDupArgv(), rpmdsGetconf(), rpmdsMerge(), rpmdsNewDNEVR(), rpmdsSingle(), rpmdsThis(), rpmExpand(), rpmfd_Fopen(), rpmfiBuildFClasses(), rpmfiBuildFDeps(), rpmfiBuildFNames(), rpmfiDupeRelocations(), rpmfiFN(), rpmfiNew(), rpmgiEscapeSpaces(), rpmGlob(), rpmInitMacros(), rpmiobSlurp(), rpmjsRun(), rpmMCExpand(), rpmmiInit(), rpmProblemString(), rpmpsmStage(), rpmReadHeader(), rpmRebuildTargetVars(), rpmteChain(), rpmtsFindPubkey(), rpmtsPrepare(), runInstScript(), runScript(), runTriggersLoop(), set(), shescapeFormat(), showQueryPackage(), spewescapeFormat(), sql_cget(), sql_step(), strdup_iconv_check(), strsubFormat(), tag2uuidv5(), tarHeaderRead(), tarHeaderReadName(), triggercondsTag(), triggertypeTag(), urlFind(), urlStrdup(), uuidFormat(), valueMakeInteger(), valueMakeString(), vrpmlog(), whatneedsTag(), writeLinkedFile(), xmlFormat(), XpoptDupArgv(), XpoptParseArgvString(), xstrtolocale(), and yamlFormat().

#define xrealloc   _xrealloc

Function Documentation

char* alloca ( )

Referenced by __crc32_combine(), __crc64_combine(), addChangelogEntry(), addFileToArrayTag(), addFileToTag(), addOrAppendListEntry(), addReqProv(), addTE(), cacheStashLatest(), checkForDuplicates(), checkPackageSet(), compressFilelist(), dateToTimet(), db3Acallback(), db3open(), debevrTag(), debmd5sumsTag(), depflagsFormat(), deptypeFormat(), doDefine(), doFoo(), doIcon(), doLookup(), doOutput(), doScript(), doShellEscape(), doUndefine(), ensureOlder(), expandMacro(), expandMacros(), expandT(), expandU(), fiIntersect(), fillOutMainPackage(), findEntry(), findErases(), findTag(), fnmatch(), formatValue(), fsmStage(), ftpCommand(), ftpLogin(), ftpReq(), ftsCacheUpdate(), genCpioListAndHeader(), getDigestAlgo(), getSignid(), grabArgs(), handleInstInstalledFile(), handleOneTrigger(), handlePreambleTag(), hCopyTag(), hdr_subscript(), hdrKeyList(), headerCheck(), headerCopy(), headerCopyTags(), headerLoad(), headerMacrosLoad(), headerMacrosUnload(), headerMergeLegacySigs(), headerNEVRA(), headerRegenSigHeader(), headerSprintf(), hGetColor(), hintFormat(), hLoadTID(), hSaveBlinks(), hSaveFlinks(), httpReq(), i18nTag(), IDTXglob(), IDTXload(), initSourceHeader(), initSourceHeaderScriptlet(), intFormat(), iosmStage(), isMemberInEntry(), jsonFormat(), lookupPackage(), main(), makeGPGSignature(), makeHDRSignature(), mireRegexec(), mireSkip(), needswhatTag(), nwlookupTag(), packageBinaries(), packageSources(), parseDescription(), parseForAttr(), parseForConfig(), parseForDev(), parseForLang(), parseForVerify(), parsePreamble(), parseRCPOT(), parseScript(), parseSpec(), pgpArmorUnwrap(), pgpGrabPkts(), pgpPrtPkt(), pgpPrtPkts(), pgpPubkeyFingerprint(), pkgUnpackagedSubdirs(), pointRpmEVR(), populateInstallHeader(), postPopulateInstallHeader(), printFileInfo(), printNewSpecfile(), processBinaryFiles(), processMetadataFile(), processPackageFiles(), processScriptFiles(), providePackageNVR(), rdSignature(), readFile(), regionSwab(), relocateFileList(), removeSillyDeps(), rpmAddSignature(), rpmalAllSatisfiesDepend(), rpmcliImportPubkey(), rpmcliInstall(), rpmdbAdd(), rpmdbExportHR_MIB(), rpmdbRemove(), rpmDefineMacro(), rpmdsCompare(), rpmdsNew(), rpmdsNSAdd(), rpmdsNVRMatchesDep(), rpmdsSysinfo(), rpmdsThis(), rpmfcGenerateDepends(), rpmfcGenerateScriptletDeps(), rpmfi_Digest(), rpmfi_FDigest_get(), rpmfiBuildFNames(), rpmfiFNBF(), rpmfiNew(), rpmGenPath(), rpmGetFilesystemUsage(), rpmGetPath(), rpmhdrLoadTag(), rpmHeadersIdentical(), rpmInstallSourcePackage(), rpmioMkpath(), rpmkuFindPubkey(), rpmkuStorePubkey(), rpmlibMarkers(), rpmlibNeedsFeature(), rpmLoadMacroFile(), rpmmiInit(), rpmnsProbeSignature(), rpmps_ass_sub(), rpmpsmStage(), rpmQueryVerify(), rpmrbLoadClasses(), rpmReadPackageFile(), rpmReSign(), rpmspecQuery(), rpmsqExecve(), rpmteChain(), rpmteColorDS(), rpmteNew(), rpmts_Rollback(), rpmtsAddFingerprints(), rpmtsAddInstallElement(), rpmtsAddUpgrades(), rpmtsCallback(), rpmtsCheckInstalledFiles(), rpmtsEraseDebuginfo(), rpmtsFindPubkey(), rpmtsRollback(), rpmtsSanityCheck(), rpmtsSetRootDir(), rpmtsSkipFiles(), rpmtsSolve(), rpmVerifySignatures(), rpmVersionCompare(), rpmvfVerify(), rpnFormat(), runImmedTriggers(), runInstScript(), runScript(), setPathDefault(), stashSt(), str2uuid(), strntoul(), timeCheck(), triggercondsTag(), triggertypeTag(), unsatisfiedDepend(), urlFind(), uuidFormat(), verifyDependencies(), whatneedsTag(), wnlookupTag(), writeFile(), writeRPM(), xmlFormat(), XpoptParseArgvString(), and yamlFormat().

char* getenv ( const char *  name)
struct our_mntent* getmntent ( FILE *  filep)
read

Referenced by getFilesystemList().

char* memchr ( )

Referenced by rpmdsELF().

char* realpath ( const char *  path,
char  resolved_path[] 
)

Referenced by doFoo(), and Realpath().

int setenv ( const char *  name,
const char *  value,
int  replace 
)
char* stpcpy ( char *  dest,
const char *  src 
)

Referenced by _str2PCREpat(), argvJoin(), arSetup(), base64Format(), db3open(), debevrfmtTag(), debmd5sumsTag(), depflagsFormat(), deptypeFormat(), doAddSubtract(), doFoo(), doPatch(), dosetenv(), doUntar(), dupMacroEntry(), ensureOlder(), FDGsqlTag(), FDGxmlTag(), FDGyamlTag(), Fdopen(), findTag(), fmtBits(), fmtDBafflags(), fmtDBaflags(), fmtDBCflags(), fmtDBeflags(), fmtDBoflags(), fmtKDR(), formatValue(), fsmFsPath(), fsmMkdirs(), fsmRmdirs(), fsmStage(), ftpCommand(), ftpReq(), genCpioListAndHeader(), grabArgs(), handleOneTrigger(), headerSprintf(), hGetNVRA(), hintFormat(), initGlobs(), iosmFsPath(), iosmMkdirs(), iosmRmdirs(), iosmStage(), localeTag(), main(), makeGPGSignature(), missingokTag(), needswhatTag(), pgpArmorWrap(), pgpsigFormat(), PRCOsqlTag(), PRCOxmlTag(), PRCOyamlTag(), printNewSpecfile(), providePackageNVR(), relocateFileList(), rpmbcSetRSA(), rpmcliAllArgCallback(), rpmcliImportPubkey(), rpmdcPrintCoreutils(), rpmdcPrintZeroInstall(), rpmdsDupArgv(), rpmdsELF(), rpmdsNewDNEVR(), rpmdsNSAdd(), rpmdsNVRMatchesDep(), rpmdsThis(), rpmExpand(), rpmfcGenerateScriptletDeps(), rpmfiBuildFClasses(), rpmfiBuildFDeps(), rpmfiBuildFNames(), rpmfiFN(), rpmfiFNBF(), rpmfiNew(), rpmfts_initialize(), rpmGetPath(), rpmioAccess(), rpmiobAppend(), rpmioMkpath(), rpmkuFindPubkey(), rpmkuStorePubkey(), rpmlibNeedsFeature(), rpmMCExpand(), rpmmiInit(), rpmpsAppend(), rpmpsmStage(), rpmReSign(), rpmtsSetRootDir(), rpmVerifySignatures(), runInstScript(), runScript(), runTriggersLoop(), showQueryPackage(), singleSprintf(), statFormat(), strsubFormat(), tarHeaderWriteBlock(), urlFind(), verifyDependencies(), verifyDSA(), verifyMD5(), verifyRSA(), verifySHA1(), verifySize(), whatneedsTag(), writeFile(), writeLinkedFile(), xmlFormat(), xmlstrcpy(), and yamlFormat().

char* stpncpy ( char *  dest,
const char *  src,
size_t  n 
)
void unsetenv ( const char *  name)
void* vmefail ( size_t  size)

Definition at line 28 of file rpmmalloc.c.

References _, and EXIT_FAILURE.

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

void* xcalloc ( size_t  nmemb,
size_t  size 
)
void* xmalloc ( size_t  size)

Definition at line 290 of file rpmmalloc.c.

References vmefail().

void* xrealloc ( void *  ptr,
size_t  size 
)
Todo:
Annotate ptr with returned/out.

Definition at line 311 of file rpmmalloc.c.

References vmefail().

char* xstrdup ( const char *  str)

Definition at line 321 of file rpmmalloc.c.

References vmefail().

Referenced by _poptSaveString(), _rpmtsCheck(), addFile(), addSource(), addTE(), addTriggerIndex(), argvAdd(), argvAppend(), argvSplit(), arHeaderRead(), armorFormat(), base64Format(), bncdataFormat(), cacheStashLatest(), cdataFormat(), cpio_doio(), createDir(), db3associate(), db3associate_foreign(), dbiFindMatches(), dbiTagsInit(), depflagsFormat(), deptypeFormat(), digestFormat(), doLookup(), doPatch(), doSetupMacro(), doUntar(), dupAttrRec(), expandMacro(), fdSetOpen(), fflagsFormat(), forceIncludeFile(), formatValue(), fpLookupSubdir(), fsmMakeLinks(), fsmStage(), ftpRealpath(), genSourceRpmName(), getFilesystemList(), getGidS(), getGname(), getGnameS(), getUidS(), getUname(), getUnameS(), glob(), grepArgCallback(), headerCheck(), headerNEVRA(), headerReload(), headerSetBaseURL(), headerSetDigest(), headerSetOrigin(), headerSetParent(), headerSprintf(), hintFormat(), i18nTag(), iconvFormat(), installArgCallback(), instprefixTag(), intFormat(), iosmMakeLinks(), iosmStage(), iosmStrerror(), isPart(), jsonFormat(), localeTag(), lookupPackage(), machAddEquiv(), main(), mireDup(), mireRegcomp(), mireSetLocale(), mtreeReadExcludes(), parseChangelog(), parseCVOG(), parseExpressionBoolean(), parseExpressionString(), parseForSimple(), parseScript(), parseSimplePart(), parseSpec(), permsFormat(), pgpsigFormat(), pkgbaseurlTag(), pkgdigestTag(), pkgoriginTag(), pkgUnpackagedSubdirs(), populateInstallHeader(), printNewSpecfile(), processPackageFiles(), processSourceFiles(), pushMacro(), rdLead(), rdSignature(), rdToken(), readLineFromOFI(), realDateFormat(), Realpath(), rpmcliAllArgCallback(), rpmcliConfigured(), rpmcliImportPubkey(), rpmcliInit(), rpmcliInstall(), rpmcliQuery(), rpmcliWalkFirst(), rpmdbExportHR_MIB(), rpmdbExportL10N_SQL(), rpmdbURIPath(), rpmdcParseCoreutils(), rpmdcParseZeroInstall(), rpmds_compare(), rpmds_iternext(), rpmds_Single(), rpmdsCompare(), rpmdsCpuinfo(), rpmdsELF(), rpmdsEVRorder(), rpmdsGetconf(), rpmdsLdconfig(), rpmdsNew(), rpmdsNVRMatchesDep(), rpmdsPipe(), rpmdsSysinfo(), rpmdsThis(), rpmEVRmire(), rpmEVRorder(), rpmEVRparse(), rpmExpand(), rpmfcGenerateDepends(), rpmfcHelper(), rpmfd_Fopen(), rpmfi_BN(), rpmfi_Digest(), rpmfi_DN(), rpmfi_FClass(), rpmfi_FClass_get(), rpmfi_FGroup(), rpmfi_FLink(), rpmfi_FN(), rpmfi_FUser(), rpmfi_subscript(), rpmfiAddRelocation(), rpmfiDupeRelocations(), rpmfiNew(), rpmGetPath(), rpmgiInitFilter(), rpmgiNext(), rpmGlob(), rpmInitMacros(), rpmInstallSourcePackage(), rpmioAllArgCallback(), rpmioInit(), rpmioParse(), rpmkuFindPubkey(), rpmkuPassPhrase(), rpmlibMarkers(), rpmMCExpand(), rpmmgBuffer(), rpmmgFile(), rpmmgNew(), rpmmiInit(), rpmPermsString(), rpmps_ass_sub(), rpmpsAppend(), rpmpsmStage(), rpmpythonSlurp(), rpmQueryVerify(), rpmReadHeader(), rpmRebuildTargetVars(), rpmrepoCloseMDFile(), rpmrepoDoPkgMetadata(), rpmrepoDoRepoMetadata(), rpmrepoRealpath(), rpmSetMachine(), rpmsqlNew(), rpmsqlRun(), rpmsxMatch(), rpmts_Check(), rpmtsFindPubkey(), rpmtsSetCurrDir(), rpmtsSetRootDir(), rpmWriteHeader(), rpnFormat(), runTriggersLoop(), shescapeFormat(), spewescapeFormat(), sql_open(), sql_step(), stashSt(), statFormat(), strdup_iconv_check(), strsubFormat(), triggercondsTag(), triggertypeFormat(), triggertypeTag(), unsatisfiedDepend(), urlFind(), urlSplit(), uuidFormat(), vrpmlog(), writeFile(), writeLinkedFile(), writeRPM(), xmlFormat(), and yamlFormat().

Variable Documentation

int errno
const char* program_name