rpm 5.2.1

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

Data Structures | Macros | Typedefs | 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 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 | 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 | freecon(_c) do {} while(0)
#define | getfilecon(_fn, _c) (-1)
#define | lgetfilecon(_fn, _c) (-1)
#define | fgetfilecon(_fd, _c) (-1)
#define | setfilecon(_fn, _c) (-1)
#define | lsetfilecon(_fn, _c) (-1)
#define | fsetfilecon(_fd, _c) (-1)
#define | security_check_context(_c) (0)
#define | is_selinux_enabled() (-1)
#define | rpm_execcon(_v, _fn, _av, _envp) (0)
#define | matchpathcon_init(_fn) (-1)
#define | matchpathcon(_fn, _fmode, _s) (-1)
#define | matchpathcon_fini() do {} while(0)
#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' More...
#define | SUPPORT_INITDB 1
| Mark –initdb and –verifydb for destruction. More...
#define | SUPPORT_VERIFYDB 1

## Typedefs
typedef char * | security_context_t

## 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_mntent * | getmntent (FILE *filep)

## Variables
int | errno
const char * | program_name

## Macro Definition Documentation

#define _ | ( |  | Text | ) | Text

Definition at line 498 of file system.h.

Referenced by _specQuery(), addChangelog(), addFile(), addFileToTagAux(), addMacro(), addSource(), argerror(), armorFormat(), base64Format(), bncdataFormat(), buildHost(), buildSpec(), cdataFormat(), checkForDuplicates(), checkForRequired(), checkForValidArchitectures(), checkOwners(), checkUnpackagedFiles(), compare(), copyFile(), copyNextLineFromOFI(), cpio_copy(), cpio_doio(), createDir(), cvtdberr(), dateFormat(), dayFormat(), db3open(), dbiFindMatches(), dbiOpen(), depflagsFormat(), deptypeFormat(), digestFormat(), doAddSubtract(), doDefine(), doIcon(), doLogical(), doMultiplyDivide(), doPatch(), doPatchMacro(), doPrimary(), doRelational(), doSetupMacro(), doUndefine(), doUntar(), expandMacro(), expandMacros(), fflagsFormat(), fiIntersect(), findPreambleTag(), freeArgs(), fsmMapAttrs(), fsmStage(), ftpStrerror(), genCpioListAndHeader(), getFilesystemList(), getGidS(), getGname(), getGnameS(), getOutputFrom(), getUidS(), getUname(), getUnameS(), grabArgs(), handlePreambleTag(), headerCheck(), iconvFormat(), IDTXglob(), ignoreDep(), installArgCallback(), intFormat(), iosmMapAttrs(), iosmStage(), iosmStrerror(), isCompressed(), main(), makeGPGSignature(), manageFile(), miFreeHeader(), 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(), permsFormat(), pgpsigFormat(), pkgUnpackagedSubdirs(), prepFetch(), printExpansion(), printMacro(), printNewSpecfile(), printVersion(), processBinaryFile(), processBinaryFiles(), processMetadataFile(), processPackageFiles(), processScriptFiles(), processSourceFiles(), queryHeader(), rdLead(), rdSignature(), rdToken(), readFile(), readLine(), readLineFromOFI(), realDateFormat(), repoArgCallback(), repoCheckTimeStamps(), repoCloseMDFile(), repoDoFinalMove(), repoDoRepoMetadata(), repoGetFileList(), repoMkdir(), repoOpenMDFile(), repoReadHeader(), repoTestSetupDirs(), repoWriteMetadataDocs(), rfileHeaderSprintf(), rfileXMLWrite(), rpmalAllFileSatisfiesDepend(), rpmalAllSatisfiesDepend(), rpmCheckPassPhrase(), rpmcliImportPubkeys(), rpmcliInit(), rpmcliInstall(), rpmcliInstallCheck(), rpmcliInstallOrder(), rpmcliInstallRun(), rpmcliInstallSuggests(), rpmcliSign(), rpmdbAdd(), rpmdbCount(), rpmdbFindByFile(), rpmdbGrowIterator(), rpmdbMireApply(), rpmdbNew(), rpmdbRebuild(), rpmdbRemove(), rpmdcArgCallback(), rpmdcInitFile(), rpmdcParseCoreutils(), rpmdcParseZeroInstall(), rpmdsCompare(), rpmdsNotify(), rpmdsPipe(), rpmdsSysinfoFile(), rpmDumpMacroTable(), rpmErase(), rpmfcApply(), rpmfcExpandRegexps(), rpmfcGenerateDependsHelper(), rpmfcMatchRegexps(), rpmGetFilesystemUsage(), rpmgiInitFilter(), rpmgiNext(), rpmgiOpen(), rpmInstallSource(), rpmInstallSourcePackage(), rpmioInit(), rpmlogMessage(), rpmmgBuffer(), rpmmgFile(), rpmmgNew(), rpmmiInit(), rpmmiNext(), rpmMkdirPath(), rpmProblemString(), rpmpsmStage(), rpmQueryVerify(), rpmReadHeader(), rpmReadPackageFile(), rpmReadPackageManifest(), rpmReSign(), rpmRollback(), rpmShowProgress(), rpmShowRC(), rpmspecQuery(), rpmsxParse(), rpmTempFile(), rpmts_Die(), rpmtsAddInstallElement(), rpmtsFindPubkey(), rpmtsInitIterator(), rpmtsOpenDB(), rpmtsOpenSDB(), rpmtsOrder(), rpmtsRollback(), rpmtsRun(), rpmtsSolve(), rpmuuidMake(), rpmVerifySignature(), rpmVerifySignatures(), rpmWriteHeader(), rpnFormat(), runScript(), set(), shescapeFormat(), showQueryPackage(), singleSprintf(), sql_busy_handler(), sqlescapeFormat(), statFormat(), strsubFormat(), tagValidate(), timeCheck(), triggertypeFormat(), unsatisfiedDepend(), urlFind(), urlFini(), urlFreeCache(), urlSplit(), urlStrerror(), uuidFormat(), verifyDependencies(), verifyDSA(), verifyHeader(), verifyMD5(), verifyRSA(), verifySHA1(), verifySize(), vmefail(), writeRPM(), xmlFormat(), yamlFormat(), and zapRelation().

#define __progname program_name

Definition at line 456 of file system.h.

Referenced by argerror(), main(), mireSetLocale(), mireStudy(), mtree_error(), mtreeArgCallback(), mtreeCWalk(), mtreeReadExcludes(), mtreeSpec(), mtreeVisitD(), mtreeVisitF(), mtreeVWalk(), printVersion(), repo_error(), repoArgCallback(), repoProgress(), repoReadHeader(), rpmcliInit(), rpmdcArgCallback(), rpmdcCWalk(), rpmdcParseCoreutils(), rpmdcParseZeroInstall(), rpmioInit(), and set().

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

Definition at line 495 of file system.h.

Referenced by rpmcliInit(), and rpmioInit().

#define D_ | ( |  | Text | ) | Text

Definition at line 499 of file system.h.

Referenced by db3close(), db3open(), db_fini(), db_init(), dbiOpen(), dnlInitIterator(), findErases(), fsmMkdirs(), getOutputFrom(), iosmMkdirs(), makeGPGSignature(), printSize(), psmWait(), relocateFileList(), rpmcliInstall(), rpmdbAdd(), rpmdbCheckSignals(), rpmdbMoveDatabase(), rpmdbRebuild(), rpmdbRemove(), rpmdsProblem(), rpmErase(), rpmfcApply(), rpmfcClassify(), rpmfcMatchRegexps(), rpmfiDecideFate(), rpmioFreePool(), rpmioMkpath(), rpmioNewPool(), rpmpsmStage(), rpmQueryVerify(), rpmReadPackageManifest(), rpmRollback(), rpmtsAddObsoletes(), rpmtsAddUpgrades(), rpmtsEraseDebuginfo(), rpmtsInitDSI(), rpmtsOrder(), rpmtsRun(), rpmtsSolve(), runScript(), skipFiles(), sql_byteswapped(), sql_close(), sql_open(), sql_stat(), urlConnect(), urlGetFile(), and wrSignature().

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

Definition at line 501 of file system.h.

Referenced by i18nTag().

#define dirent direct

Definition at line 197 of file system.h.

Referenced by avOpendir(), avReaddir(), fts_build(), glob_in_dir(), and repoDoFinalMove().

#define EXIT_FAILURE 1

Definition at line 168 of file system.h.

Referenced by argerror(), db3open(), getOutputFrom(), main(), makeGPGSignature(), mtree_error(), mtreeArgCallback(), mtreeReadExcludes(), repo_error(), repoArgCallback(), rpmcliConfigured(), rpmcliInit(), rpmdbCheckSignals(), rpmdsGetconf(), rpmioAllArgCallback(), rpmioConfigured(), rpmioInit(), rpmReSign(), rpmts_Die(), and vrpmlog().

#define F_OK 0

Definition at line 183 of file system.h.

Referenced by checkSpec(), db3open(), doIcon(), rpmdbRebuild(), and rpmioAccess().

#define fgetfilecon | ( |  | _fd,
|  |  | _c
| ) |  | (-1)

Definition at line 311 of file system.h.

#define FILE_RCSID | ( |  | id | ) |

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

Definition at line 720 of file system.h.

#define freecon | ( |  | _c | ) | do {} while(0)

Definition at line 307 of file system.h.

Referenced by genCpioListAndHeader(), rpmdbMoveDatabase(), rpmfiBuildFSContexts(), and rpmfiBuildREContexts().

#define fsetfilecon | ( |  | _fd,
|  |  | _c
| ) |  | (-1)

Definition at line 315 of file system.h.

#define getfilecon | ( |  | _fn,
|  |  | _c
| ) |  | (-1)

Definition at line 309 of file system.h.

#define GETMNTENT_ONE 1

Definition at line 700 of file system.h.

#define GETMNTENT_TWO 0

Definition at line 701 of file system.h.

#define is_selinux_enabled | ( |  | ) | (-1)

Definition at line 319 of file system.h.

Referenced by rpmdbMoveDatabase(), and rpmtsCreate().

#define lchown chown

Definition at line 663 of file system.h.

Referenced by Lchown(), and mtreeMiss().

#define lgetfilecon | ( |  | _fn,
|  |  | _c
| ) |  | (-1)

Definition at line 310 of file system.h.

Referenced by rpmfiBuildFSContexts().

#define lsetfilecon | ( |  | _fn,
|  |  | _c
| ) |  | (-1)

Definition at line 314 of file system.h.

Referenced by iosmStage().

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

Definition at line 90 of file system.h.

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

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

Definition at line 92 of file system.h.

#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'

Definition at line 739 of file system.h.

Referenced by cpioHeaderRead(), and tarHeaderRead().

#define matchpathcon | ( |  | _fn,
|  |  | _fmode,
|  |  | _s
| ) |  | (-1)

Definition at line 324 of file system.h.

Referenced by fsmMapFContext(), fsmMkdirs(), genCpioListAndHeader(), iosmMapFContext(), iosmMkdirs(), rpmdbMoveDatabase(), and rpmfiBuildREContexts().

#define matchpathcon_fini | ( |  | ) | do {} while(0)

Definition at line 325 of file system.h.

Referenced by genCpioListAndHeader(), rpmcliInstall(), rpmdbMoveDatabase(), rpmfiBuildREContexts(), and rpmtsRun().

#define matchpathcon_init | ( |  | _fn | ) | (-1)

Definition at line 323 of file system.h.

Referenced by genCpioListAndHeader(), rpmdbMoveDatabase(), rpmfiBuildREContexts(), and rpmtsRun().

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

Definition at line 91 of file system.h.

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

#define MOUNTED "/etc/mnttab"

Definition at line 714 of file system.h.

Referenced by getFilesystemList().

#define N_ | ( |  | Text | ) | Text

Definition at line 504 of file system.h.

Referenced by rpmProblemString().

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

Definition at line 198 of file system.h.

#define our_mntent struct our_mntent

Definition at line 698 of file system.h.

#define R_OK 4

Definition at line 186 of file system.h.

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

#define rpm_execcon | ( |  | _v,
|  |  | _fn,
|  |  | _av,
|  |  | _envp
| ) |  | (0)

Definition at line 321 of file system.h.

Referenced by runScript().

#define S_IFSOCK (0xc000)

Definition at line 619 of file system.h.

Referenced by avOpendir(), ftpOpendir(), inotype(), rpmfcClassify(), rpmsxParse(), and vfs_parse_filetype().

#define S_ISLNK | ( |  | mode | ) | ((mode & 0xf000) == S_IFLNK)

Definition at line 623 of file system.h.

Referenced by compare(), cpioHeaderRead(), cpioHeaderWrite(), fsmStage(), fts_stat(), genCpioListAndHeader(), iosmStage(), mtreeVisitF(), printFileInfo(), rpmdcPrintZeroInstall(), rpmfiWhatis(), rpmPermsString(), rpmTempFile(), rpmVerifyFile(), statFormat(), tarHeaderWrite(), vfs_parse_ls_lga(), and writeFile().

#define S_ISSOCK | ( |  | mode | ) | ((mode & 0xf000) == S_IFSOCK)

Definition at line 627 of file system.h.

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

#define security_check_context | ( |  | _c | ) | (0)

Definition at line 317 of file system.h.

Referenced by rpmsxParse().

#define SEEK_CUR 1

Definition at line 179 of file system.h.

Referenced by rpmSingleHeaderFromFD().

#define SEEK_END 2

Definition at line 180 of file system.h.

#define SEEK_SET 0

Definition at line 178 of file system.h.

#define setfilecon | ( |  | _fn,
|  |  | _c
| ) |  | (-1)

Definition at line 313 of file system.h.

Referenced by rpmdbMoveDatabase().

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

Definition at line 486 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 457 of file system.h.

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

#define SUPPORT_INITDB 1

Mark –initdb and –verifydb for destruction.

Definition at line 751 of file system.h.

#define SUPPORT_VERIFYDB 1

Definition at line 752 of file system.h.

#define textdomain | ( |  | Domain | ) | /* empty */

Definition at line 497 of file system.h.

Referenced by rpmcliInit(), and rpmioInit().

#define W_OK 2

Definition at line 185 of file system.h.

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

#define X_OK 1

Definition at line 184 of file system.h.

Referenced by rpmioAccess(), and unsatisfiedDepend().

## Typedef Documentation

typedef char* security_context_t

Definition at line 305 of file system.h.

## Function Documentation

char* alloca | ( |  | ) |

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

char* getenv | ( | const char * | name | ) |

Referenced by doFoo(), dosetenv(), glob(), Glob(), headerFindI18NString(), i18nTag(), mireSetLocale(), and rpmioAccess().

struct our_mntent* getmntent | ( | FILE * | filep | ) |
| read

Referenced by getFilesystemList().

char* memchr | ( |  | ) |

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

Referenced by doFoo(), and Realpath().

int setenv | ( | const char * | name,
|  | const char * | value,
|  | int | replace
| ) |  |

Referenced by i18nTag(), makeGPGSignature(), and rpmCheckPassPhrase().

char* stpcpy | ( | char * | dest,
|  | const char * | src
| ) |  |

Referenced by argvJoin(), arSetup(), avOpendir(), base64Format(), db3open(), dbiFindByLabel(), debevrfmtTag(), debmd5sumsTag(), depflagsFormat(), deptypeFormat(), doAddSubtract(), doFoo(), doPatch(), dosetenv(), doUntar(), dupMacroEntry(), ensureOlder(), FDGsqlTag(), FDGxmlTag(), FDGyamlTag(), Fdopen(), findTag(), formatValue(), fpsCompare(), fsmFsPath(), fsmMkdirs(), fsmRmdirs(), fsmStage(), ftpCommand(), ftpReq(), genCpioListAndHeader(), grabArgs(), handleOneTrigger(), headerSprintf(), hGetNVRA(), initGlobs(), iosmFsPath(), iosmMkdirs(), iosmRmdirs(), iosmStage(), localeTag(), main(), makeGPGSignature(), missingokTag(), needswhatTag(), pgpArmorWrap(), pgpsigFormat(), PRCOsqlTag(), PRCOxmlTag(), PRCOyamlTag(), printNewSpecfile(), providePackageNVR(), relocateFileList(), rpmbcSetRSA(), rpmcliAllArgCallback(), rpmcliImportPubkey(), rpmdbRebuild(), rpmdcPrintCoreutils(), rpmdcPrintZeroInstall(), rpmdsDupArgv(), rpmdsELF(), rpmdsNewDNEVR(), rpmdsNSAdd(), rpmdsNVRMatchesDep(), rpmdsThis(), rpmExpand(), rpmfcGenerateScriptletDeps(), rpmfiBuildFClasses(), rpmfiBuildFContexts(), rpmfiBuildFDeps(), rpmfiBuildFNames(), rpmfiFN(), rpmfiNew(), rpmfts_initialize(), rpmGetPath(), rpmInstallSourcePackage(), rpmioAccess(), rpmiobAppend(), rpmioMkpath(), rpmkuFindPubkey(), rpmkuStorePubkey(), rpmlibNeedsFeature(), rpmMCExpand(), rpmpsAppend(), rpmpsmStage(), rpmReSign(), rpmtsSetRootDir(), rpmVerifyFile(), rpmVerifySignatures(), runInstScript(), runScript(), runTriggersLoop(), showQueryPackage(), singleSprintf(), sql_open(), 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
| ) |  |

Referenced by doFoo(), doLookup(), rpmdbURIPath(), and strsubFormat().

void unsetenv | ( | const char * | name | ) |

Referenced by getOutputFrom(), i18nTag(), makeGPGSignature(), open_dso(), rpmCheckPassPhrase(), and runScript().

void* vmefail | ( | size_t | size | ) |

Definition at line 24 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 275 of file rpmmalloc.c.

References vmefail().

Referenced by _tagName(), addRelation(), addTriggerIndex(), argiAdd(), avContextCreate(), avOpendir(), base64Format(), bncdataFormat(), cdataFormat(), checkResponse(), dbiIndexNewItem(), dbiIntersect(), dbiTagsInit(), dnlInitIterator(), findTag(), fsmMkdirs(), fssizesTag(), ftpNLST(), ftpOpendir(), genCpioListAndHeader(), getFilesystemList(), grabArgs(), handleInstInstalledFiles(), handleOverlappedFiles(), headerLoad(), headerNew(), htCreate(), htGetKeys(), IDTXnew(), ignoreDep(), initGlobs(), iosmMkdirs(), main(), mapInitIterator(), mireRegcomp(), mireSkip(), missingokTag(), mtreeSpec(), newFSM(), newIOSM(), newItem(), newPackage(), newSpec(), parseCVOG(), parseFormat(), parseSpec(), pgpGrabPkts(), processMetadataFile(), processSourceFiles(), rdLead(), rpmalCreate(), rpmbcInit(), rpmdbAdd(), rpmdbFindByFile(), rpmdbFindFpList(), rpmdbNew(), rpmdbRemove(), rpmDigestDup(), rpmDigestInit(), rpmdsNew(), rpmdsNewPRCO(), rpmdsSetColor(), rpmdsSetRefs(), rpmdsSetResult(), rpmdsSingle(), rpmecNew(), rpmEVRnew(), rpmfcGenerateDepends(), rpmfiBuildFNames(), rpmfiNew(), rpmfiOpendir(), rpmGetFilesystemUsage(), rpmGetMacroEntries(), rpmgiNew(), rpmhookArgsNew(), rpmhookTableAddItem(), rpmhookTableNew(), rpmiobNew(), rpmioGetPool(), rpmioNewPool(), rpmmiGrow(), rpmmiInit(), rpmpsAppend(), rpmpsInitIterator(), rpmpsmNew(), rpmReadPackageManifest(), rpmsxParse(), rpmteNewTSI(), rpmtsCreate(), rpmtsInitDSI(), rpmtsOrder(), rpmtsRun(), saveHardLink(), scpNew(), showQueryPackage(), sql_cget(), sql_open(), sql_stat(), sqlescapeFormat(), str2uuid(), tagLoadATags(), tagLoadIndex(), tv2uuidv1(), vfs_parse_ls_lga(), XfdNew(), and XurlNew().

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

Definition at line 265 of file rpmmalloc.c.

References vmefail().

Referenced by _tagCanonicalize(), addFile(), addSource(), addTE(), argvJoin(), argvSplit(), arSetup(), bin2hex(), copyEntry(), cpioHeaderRead(), dbinstanceTag(), dbt2set(), debevrfmtTag(), debmd5sumsTag(), doAddSubtract(), doLookup(), doputenv(), dosetenv(), dupMacroEntry(), expandMacro(), expandMacroTable(), FDGsqlTag(), FDGxmlTag(), FDGyamlTag(), formatValue(), fpCacheCreate(), fsmFsPath(), fsmStage(), genCpioListAndHeader(), glob(), glob_in_dir(), grabData(), handleOneTrigger(), headerAddI18NString(), headerAppendEntry(), headerCheck(), headerendoffTag(), headerInit(), headerMap(), headerstartoffTag(), headerUnload(), hGetNVRA(), htAddEntry(), iosmFsPath(), iosmStage(), localeTag(), machAddEquiv(), main(), makeGPGSignature(), mireDup(), mtreeReadExcludes(), mtreeVisitF(), needswhatTag(), newOpenFileInfo(), newSl(), newSt(), parseForLang(), parseRCPOT(), pgpArmorWrap(), pgpMpiSet(), pgpPrtSig(), pgpPrtUserID(), pkgmtimeTag(), pkgsizeTag(), PRCOsqlTag(), PRCOxmlTag(), PRCOyamlTag(), prefix_array(), printNewSpecfile(), pushMacro(), queryArgCallback(), rdSignature(), readLine(), relocateFileList(), rpmbcSetRSA(), rpmcliImportPubkey(), rpmdbMireApply(), rpmdbRebuild(), rpmdcPrintCoreutils(), rpmdcPrintZeroInstall(), rpmDigestFinal(), rpmdsDup(), rpmdsDupArgv(), rpmdsGetconf(), rpmdsMerge(), rpmdsNewDNEVR(), rpmdsSingle(), rpmdsThis(), rpmExpand(), rpmfd_Fopen(), rpmfiBuildFClasses(), rpmfiBuildFContexts(), rpmfiBuildFDeps(), rpmfiBuildFNames(), rpmfiBuildFSContexts(), rpmfiBuildREContexts(), rpmfiDupeRelocations(), rpmfiFN(), rpmfiNew(), rpmgiEscapeSpaces(), rpmGlob(), rpmheRealloc(), rpmInitMacros(), rpmInstallSourcePackage(), rpmiobSlurp(), rpmMCExpand(), rpmProblemString(), rpmpsmStage(), rpmReadHeader(), rpmRebuildTargetVars(), rpmsxAdd(), rpmsxParse(), rpmsxSort(), rpmteChain(), rpmtsFindPubkey(), rpmtsRun(), runInstScript(), runScript(), runTriggersLoop(), set(), set2dbt(), shescapeFormat(), showQueryPackage(), sql_cget(), sql_step(), strsubFormat(), tag2uuidv5(), tarHeaderRead(), tarHeaderReadName(), triggercondsTag(), triggertypeTag(), urlFind(), urlStrdup(), uuidFormat(), valueMakeInteger(), valueMakeString(), vrpmlog(), whatneedsTag(), writeLinkedFile(), XpoptDupArgv(), XpoptParseArgvString(), xstrtolocale(), and yamlFormat().

void* xrealloc | ( | void * | ptr,
|  | size_t | size
| ) |  |

Todo:
  Annotate ptr with returned/out.

Definition at line 286 of file rpmmalloc.c.

References vmefail().

Referenced by _poptSaveString(), addFile(), argiAdd(), argvAdd(), argvAppend(), avContextAdd(), cacheStashLatest(), currentDirectory(), dbiAppendSet(), dbiTagsInit(), enterChroot(), expandMacroTable(), fsmMkdirs(), ftpNLST(), getFilesystemList(), gidToGname(), glob(), glob_in_dir(), gnameToGid(), handleInstInstalledFiles(), headerAddEntry(), headerAddI18NString(), headerAppendEntry(), headerSprintf(), hsaReserve(), htAddEntry(), IDTXgrow(), installArgCallback(), iosmMkdirs(), isPart(), machAddEquiv(), mireAppend(), mireFreeAll(), parseForLang(), PBM_REALLOC(), pgpsigFormat(), pgpStashKeyid(), pkgUnpackagedSubdirs(), queryArgCallback(), readLineFromOFI(), relocateFileList(), removePackage(), rpmalAdd(), rpmalAllFileSatisfiesDepend(), rpmalAllSatisfiesDepend(), rpmalDel(), rpmalMakeIndex(), rpmcliAllArgCallback(), rpmdbGrowIterator(), rpmExpand(), rpmfcExpandAppend(), rpmfiAddRelocation(), rpmfiBuildFSContexts(), rpmfiBuildREContexts(), rpmfiNew(), rpmGetMacroEntries(), rpmGlob(), rpmiobAppend(), rpmiobSlurp(), rpmMCExpand(), rpmmiAddPattern(), rpmpsAppend(), rpmsxAdd(), rpmtsAddInstallElement(), rpmtsAvailable(), rpmtsSolve(), showQueryPackage(), sql_step(), stashSt(), triggercondsTag(), uidToUname(), unameToUid(), urlFind(), vrpmlog(), and xstrtolocale().

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

Definition at line 296 of file rpmmalloc.c.

References vmefail().

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

## Variable Documentation

int errno

Referenced by Access(), Chdir(), checkfd(), checkOwners(), Chmod(), Chown(), Chroot(), compare(), currentDirectory(), db3open(), dbiOpen(), enterChroot(), Fchmod(), Fchown(), fdFgets(), fdReadable(), fdstat_exit(), fdWritable(), fsmStage(), Fstat(), Fstrerror(), ftpLogin(), ftpOpendir(), ftpReq(), fts_build(), Fts_close(), Fts_read(), fts_safe_changedir(), fts_stat(), getFilesystemList(), getHostAddress(), getOutputFrom(), glob(), glob_in_dir(), headerMap(), headerScrub(), httpReq(), iosmStage(), iosmStrerror(), Lchown(), Lstat(), main(), makeGPGSignature(), Mkfifo(), Mknod(), mtreeArgCallback(), mtreeCWalk(), mtreeMiss(), mtreeVisitD(), mtreeVWalk(), Open(), packageBinaries(), prepFetch(), processSourceFiles(), rdLead(), rdSignature(), Readlink(), repoDoFinalMove(), repoGetFileList(), repoMkdir(), repoWriteMetadataDocs(), rlink(), rpm_mergesort(), rpmCheckPassPhrase(), rpmdbRebuild(), rpmdcCWalk(), rpmdsGetconf(), rpmGetFilesystemUsage(), rpmgiLoadReadHeader(), rpmgiOpen(), rpmioMkpath(), rpmmgNew(), rpmmiGet(), rpmMkdirPath(), rpmpsmStage(), rpmQueryVerify(), rpmReadHeader(), rpmsqAction(), rpmsqExecve(), rpmsxParse(), rpmTempFile(), runScript(), set(), Stat(), statFormat(), strdup_locale_convert(), Symlink(), tcpConnect(), ufdRead(), ufdWrite(), unsatisfiedDepend(), urlStrerror(), Utime(), Utimes(), verifyHeader(), and xstrtolocale().

const char* program_name