#include <sys/types.h>#include <sys/stat.h>#include <stdio.h>#include <sys/param.h>#include <unistd.h>#include <sys/time.h>#include <time.h>#include <utime.h>#include <string.h>#include <errno.h>#include <error.h>#include <stdlib.h>#include <fcntl.h>#include <dirent.h>#include <alloca.h>#include <ctype.h>#include <sys/mman.h>#include <sys/utsname.h>#include <sys/wait.h>#include <getopt.h>#include <grp.h>#include <err.h>#include <mcheck.h>#include <netdb.h>#include <pwd.h>#include <locale.h>#include <libintl.h>#include "misc/glob.h"#include "misc/fnmatch.h"#include <sys/socket.h>#include <poll.h>#include <mntent.h>Go to the source code of this file.
Defines | |
| #define | major(dev) (((dev) >> 8) & 0xff) |
| #define | minor(dev) ((dev) & 0xff) |
| #define | makedev(maj, min) (((maj) << 8) | (min)) |
| #define | getenv(_s) __secure_getenv(_s) |
| #define | getopt system_getopt |
| #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 | NLENGTH(direct) (strlen((direct)->d_name)) |
| #define | freecon(_c) |
| #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 | __progname program_name |
| #define | setprogname(pn) |
| #define | _(Text) dgettext (PACKAGE, Text) |
| #define | N_(Text) Text |
| #define | our_mntent struct mntent |
| #define | our_mntdir mnt_dir |
| #define | GETMNTENT_ONE 1 |
| #define | GETMNTENT_TWO 0 |
| #define | MOUNTED "/etc/mnttab" |
| #define | FILE_RCSID(id) |
Typedefs | |
| typedef char * | security_context_t |
Functions | |
| 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) |
Variables | |
| char ** | environ |
| int | errno |
| const char * | program_name |
Definition in file system.h.
| #define _ | ( | Text | ) | dgettext (PACKAGE, Text) |
Definition at line 472 of file system.h.
Referenced by _rpmtsAddRollbackElement(), _rpmtsRollback(), addCanon(), addChangelog(), addDefault(), addFile(), addFileToTagAux(), addSource(), argerror(), armorFormat(), base64Format(), build(), buildArgCallback(), buildForTarget(), buildHost(), buildSpec(), checkFiles(), checkForDuplicates(), checkForRequired(), checkForValidArchitectures(), checkOwners(), checkPassPhrase(), checkSpec(), copyFile(), copyNextLineFromOFI(), cpio_copy(), cpio_doio(), cpioStrerror(), cvtdberr(), dateFormat(), dayFormat(), db3close(), db3open(), db_fini(), db_init(), dbiFindMatches(), dbiOpen(), dbiTagsInit(), depflagsFormat(), dnlInitIterator(), do_inject(), doAddSubtract(), doDefine(), doFoo(), doLogical(), doMultiplyDivide(), doOutput(), doPatch(), doPatchMacro(), doPrimary(), doReadRC(), doRelational(), doScript(), doSetupMacro(), doShellEscape(), doUndefine(), doUntar(), expandMacro(), expandMacros(), fflagsFormat(), findPreambleTag(), formatValue(), freeArgs(), fsmMapAttrs(), fsmMkdirs(), fsmStage(), ftpStrerror(), genCpioListAndHeader(), getFilesystemList(), getGidS(), getGname(), getGnameS(), getMachineInfo(), getOutputFrom(), getRepackageHeaderFromTE(), getUidS(), getUname(), getUnameS(), grabArgs(), handlePreambleTag(), headerCheck(), headerCheckPayloadFormat(), headerDump(), headerInject(), hexFormat(), IDTXglob(), ignoreDep(), installArgCallback(), isCompressed(), isSpecFile(), machCompatCacheAdd(), main(), makeGPGSignature(), makePGPSignature(), makeTempFile(), manageFile(), miFreeHeader(), newRpmdb(), octalFormat(), packageBinaries(), parseBuildInstallClean(), parseDescription(), parseExpression(), parseExpressionBoolean(), parseExpressionString(), parseFiles(), parseFmt(), parseForAttr(), parseForConfig(), parseForDev(), parseForLang(), parseFormat(), parseForSimple(), parseForVerify(), parseNoSource(), parsePreamble(), parsePrep(), parseRCPOT(), parseScript(), parseSpec(), permsFormat(), pgpsigFormat(), printBanner(), printExpansion(), printMacro(), printNewSpecfile(), printSize(), printVersion(), processBinaryFile(), processBinaryFiles(), processMetadataFile(), processPackageFiles(), processScriptFiles(), processSourceFiles(), psmWait(), queryHeader(), rdToken(), readFile(), readIcon(), readLead(), readLine(), readLineFromOFI(), readRPM(), realDateFormat(), relocateFileList(), rpmalAllFileSatisfiesDepend(), rpmalAllSatisfiesDepend(), rpmcliImportPubkeys(), rpmcliInit(), rpmcliSign(), rpmdbAdd(), rpmdbCountPackages(), rpmdbFindByFile(), rpmdbGrowIterator(), rpmdbInitIterator(), rpmdbMoveDatabase(), rpmdbNextIterator(), rpmdbRebuild(), rpmdbRemove(), rpmdsCompare(), rpmdsNotify(), rpmdsProblem(), rpmDumpMacroTable(), rpmErase(), rpmfcClassify(), rpmfcGenerateDependsHelper(), rpmfiDecideFate(), rpmGetFilesystemUsage(), rpmGetPassPhrase(), rpmgiInitFilter(), rpmgiNext(), rpmgiOpen(), rpmGraph(), rpmInitCrypto(), rpmInstall(), rpmInstallSource(), rpmInstallSourcePackage(), rpmlogMessage(), rpmMkdirPath(), rpmProblemString(), rpmpsmStage(), rpmQueryVerify(), rpmReadHeader(), rpmReadPackageFile(), rpmReadPackageManifest(), rpmReadRC(), rpmReadSignature(), rpmReSign(), rpmRollback(), rpmShowProgress(), rpmspecQuery(), rpmsxParse(), rpmtsAddInstallElement(), rpmtsInitDSI(), rpmtsInitIterator(), rpmtsOpenDB(), rpmtsOpenSDB(), rpmtsOrder(), rpmtsRun(), rpmtsScoreFree(), rpmtsScoreGetEntry(), rpmtsScoreInit(), rpmtsSolve(), rpmVerifySignature(), rpmVerifySignatures(), rpmWriteSignature(), runScript(), showQueryPackage(), singleSprintf(), skipFiles(), timeCheck(), triggertypeFormat(), unsatisfiedDepend(), urlConnect(), urlFind(), urlFreeCache(), urlGetFile(), urlSplit(), verifyDependencies(), verifyDSASignature(), verifyHeader(), verifyMD5Signature(), verifyRSASignature(), verifySHA1Signature(), verifySizeSignature(), vmefail(), vrpmlog(), writeRPM(), xmlFormat(), XurlFree(), and zapRelation().
| #define __progname program_name |
Definition at line 444 of file system.h.
Referenced by argerror(), initTool(), main(), parseFmt(), and rpmcliInit().
| #define EXIT_FAILURE 1 |
Definition at line 168 of file system.h.
Referenced by argerror(), getOutputFrom(), load(), luaD_throw(), main(), rpmcliConfigured(), rpmcliInit(), rpmdbCheckSignals(), rpmDigestDup(), rpmReSign(), uncompressbuf(), unwrap(), usage(), vmefail(), and vrpmlog().
| #define F_OK 0 |
Definition at line 183 of file system.h.
Referenced by db3open(), and rpmdbRebuild().
| #define FILE_RCSID | ( | id | ) |
| #define freecon | ( | _c | ) |
Definition at line 299 of file system.h.
Referenced by rpmfiBuildFSContexts().
| #define getenv | ( | _s | ) | __secure_getenv(_s) |
Definition at line 140 of file system.h.
Referenced by dosetenv(), file_apprentice(), headerFindI18NString(), i18nTag(), main(), rpmGlob(), rpmReadRC(), and runInstScript().
| #define getopt system_getopt |
Definition at line 145 of file system.h.
Referenced by grabArgs(), and main().
| #define is_selinux_enabled | ( | ) | (-1) |
Definition at line 311 of file system.h.
Referenced by rpmtsCreate().
| #define lgetfilecon | ( | _fn, | |||
| _c | ) | (-1) |
Definition at line 302 of file system.h.
Referenced by rpmfiBuildFSContexts().
| #define lsetfilecon | ( | _fn, | |||
| _c | ) | (-1) |
Definition at line 306 of file system.h.
Referenced by fsmStage().
| #define major | ( | dev | ) | (((dev) >> 8) & 0xff) |
Definition at line 90 of file system.h.
Referenced by cpioHeaderRead(), cpioHeaderWrite(), and file_fsmagic().
| #define makedev | ( | maj, | |||
| min | ) | (((maj) << 8) | (min)) |
Definition at line 92 of file system.h.
Referenced by cpioHeaderRead().
| #define minor | ( | dev | ) | ((dev) & 0xff) |
Definition at line 91 of file system.h.
Referenced by cpioHeaderRead(), cpioHeaderWrite(), and file_fsmagic().
| #define MOUNTED "/etc/mnttab" |
Definition at line 703 of file system.h.
Referenced by getFilesystemList().
| #define N_ | ( | Text | ) | Text |
Definition at line 483 of file system.h.
Referenced by rpmProblemString().
| #define our_mntent struct mntent |
Definition at line 671 of file system.h.
Referenced by getFilesystemList().
| #define rpm_execcon | ( | _v, | |||
| _fn, | |||||
| _av, | |||||
| _envp | ) | (0) |
Definition at line 313 of file system.h.
Referenced by runScript().
| #define security_check_context | ( | _c | ) | (0) |
Definition at line 309 of file system.h.
Referenced by rpmsxParse().
| #define SEEK_CUR 1 |
Definition at line 179 of file system.h.
Referenced by rpmSingleHeaderFromFD().
| #define SEEK_SET 0 |
Definition at line 178 of file system.h.
Referenced by apprentice_compile(), file_pipe2file(), readRPM(), uncompressbuf(), and writeRPM().
| #define setprogname | ( | pn | ) |
{ if ((__progname = strrchr(pn, '/')) != NULL) __progname++; \
else __progname = pn; \
}
Definition at line 445 of file system.h.
Referenced by initTool(), main(), and rpmcliInit().
| #define W_OK 2 |
Definition at line 185 of file system.h.
Referenced by db3open(), and rpmMkdirPath().
| typedef char* security_context_t |
| 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(), dbiIndexNewItem(), dbiTagsInit(), dbt2set(), defaultMachine(), dnlInitIterator(), fsmMkdirs(), fssizesTag(), ftpNLST(), ftpOpendir(), genCpioListAndHeader(), getFilesystemList(), handleInstInstalledFiles(), headerGetLangs(), headerLoad(), headerNew(), hGetNEVR(), hGetNEVRA(), htCreate(), IDTXnew(), ignoreDep(), initGlobs(), main(), mapInitIterator(), newFSM(), newItem(), newPackage(), newRpmdb(), newSpec(), newStringBuf(), parseFormat(), parseSpec(), pgpNewDig(), processSourceFiles(), rpmalCreate(), rpmaviNew(), rpmdbAdd(), rpmdbAppendIterator(), rpmdbFindByFile(), rpmdbFindFpListExclude(), rpmdbInitIterator(), rpmdbSetIteratorRE(), rpmDigestDup(), rpmDigestInit(), rpmdsDup(), rpmdsNew(), rpmdsSingle(), rpmdsThis(), rpmecNew(), rpmfcGenerateDepends(), rpmfcNew(), rpmfiNew(), rpmGetFilesystemUsage(), rpmGetRpmlibProvides(), rpmgiNew(), rpmpsAppend(), rpmpsCreate(), rpmpsmNew(), rpmReadPackageManifest(), rpmsxNew(), rpmsxParse(), rpmteNew(), rpmteNewTSI(), rpmtsCreate(), rpmtsInitDSI(), rpmtsOrder(), rpmtsRun(), rpmtsScoreInit(), saveHardLink(), XfdNew(), xmlFormat(), and XrpmtsiInit().
| void* xmalloc | ( | size_t | size | ) |
Definition at line 24 of file rpmmalloc.c.
References vmefail().
Referenced by addFile(), addSource(), addTE(), argvSplit(), base64Format(), bin2hex(), buildArgCallback(), compressFilelist(), convertAMD(), copyEntry(), cpioHeaderRead(), depflagsFormat(), do_inject(), doAddSubtract(), doHeaderUnload(), doLookup(), doputenv(), doReadRC(), dosetenv(), expandMacro(), expandMacroTable(), fflagsFormat(), formatValue(), fpCacheCreate(), fsmFsPath(), fsmStage(), genChangelog(), genCpioListAndHeader(), grabData(), headerAddI18NString(), headerAppendEntry(), headerCheck(), headerCopyLoad(), headerInitIterator(), headerRead(), hexFormat(), htAddEntry(), htCreate(), machAddEquiv(), machCompatCacheAdd(), main(), makeGPGSignature(), makePGPSignature(), mireDup(), newOpenFileInfo(), newSl(), newSt(), newStringBuf(), octalFormat(), parseFmt(), parseForLang(), parseRCPOT(), permsFormat(), pgpArmorWrap(), pgpPrtSig(), pgpPrtUserID(), printNewSpecfile(), processSourceFiles(), pushMacro(), queryArgCallback(), readIcon(), readLine(), realDateFormat(), relocateFileList(), rpmcliImportPubkey(), rpmdbInitIterator(), rpmdbRebuild(), rpmDigestFinal(), rpmdsDup(), rpmdsDupArgv(), rpmdsMerge(), rpmdsNew(), rpmdsNewDNEVR(), rpmdsSingle(), rpmdsThis(), rpmEscapeSpaces(), rpmfd_Fopen(), rpmfiBuildFClasses(), rpmfiBuildFContexts(), rpmfiBuildFDeps(), rpmfiBuildFNames(), rpmfiBuildFSContexts(), rpmfiBuildREContexts(), rpmfiFN(), rpmfiNew(), rpmGlob(), rpmInstallSourcePackage(), rpmioSlurp(), rpmProblemString(), rpmpsmStage(), rpmReadHeader(), rpmReadSignature(), rpmRebuildTargetVars(), rpmSetVarArch(), rpmsxAdd(), rpmsxParse(), rpmsxSort(), rpmtsGetKeys(), rpmtsRun(), set2dbt(), shescapeFormat(), showQueryPackage(), splitString(), triggercondsTag(), triggertypeTag(), urlFind(), valueMakeInteger(), valueMakeString(), vfs_parse_ls_lga(), vrpmlog(), xmlFormat(), and XurlNew().
| void* xrealloc | ( | void * | ptr, | |
| size_t | size | |||
| ) |
Definition at line 45 of file rpmmalloc.c.
References vmefail().
Referenced by addCanon(), addDefault(), addFile(), appendStringBufAux(), argiAdd(), argvAdd(), argvAppend(), buildArgCallback(), currentDirectory(), dbiGrowSet(), dbiTagsInit(), expandMacroTable(), fsmMkdirs(), ftpNLST(), ftsStashLatest(), getFilesystemList(), gidToGname(), gnameToGid(), handleInstInstalledFiles(), headerAddEntry(), headerAddI18NString(), headerAppendEntry(), headerSprintf(), hsaReserve(), htAddEntry(), IDTXgrow(), installArgCallback(), machAddEquiv(), machCompatCacheAdd(), main(), parseForLang(), PBM_REALLOC(), pgpsigFormat(), queryArgCallback(), readLineFromOFI(), relocateFileList(), removePackage(), rpmalAdd(), rpmalAllFileSatisfiesDepend(), rpmalAllSatisfiesDepend(), rpmalDel(), rpmalMakeIndex(), rpmdbSetIteratorRE(), rpmfcExpandAppend(), rpmfiBuildFSContexts(), rpmfiBuildREContexts(), rpmfiNew(), rpmGlob(), rpmGraph(), rpmInstall(), rpmioSlurp(), rpmPlatform(), rpmpsAppend(), rpmsxAdd(), 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(), dbiTagsInit(), depflagsFormat(), doLookup(), doSetupMacro(), dupAttrRec(), fflagsFormat(), 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(), printNewSpecfile(), processPackageFiles(), processSourceFiles(), pushMacro(), rdToken(), readLineFromOFI(), realDateFormat(), rpmalAdd(), rpmalAllFileSatisfiesDepend(), rpmcliAllArgCallback(), rpmcliQuery(), rpmds_compare(), rpmds_iternext(), rpmds_Single(), rpmdsCompare(), rpmdsFilter(), 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(), rpmgiInitFilter(), rpmgiNext(), rpmGlob(), rpmInitMacros(), rpmInstall(), rpmInstallSourcePackage(), rpmPermsString(), rpmPlatform(), rpmpsAppend(), rpmQueryVerify(), rpmReadHeader(), rpmReadRC(), rpmReadSignature(), rpmRebuildTargetVars(), rpmSetMachine(), rpmSetVar(), rpmSetVarArch(), rpmtsFindPubkey(), rpmtsScoreInit(), rpmtsSetCurrDir(), rpmtsSetRootDir(), stashSt(), triggercondsTag(), triggertypeFormat(), triggertypeTag(), urlFind(), urlSplit(), writeLinkedFile(), writeRPM(), and xmlFormat().
| char** environ |
Definition at line 30 of file signature.c.
Referenced by checkPassPhrase(), main(), makeGPGSignature(), makePGPSignature(), open_dso(), rpmsqExecve(), and runScript().
| int errno |
Referenced by apprentice_compile(), apprentice_file(), apprentice_map(), checkOwners(), checkPassPhrase(), cpioStrerror(), currentDirectory(), dbiOpen(), doScript(), doUntar(), fdFgets(), fdReadable(), fdstat_exit(), fdWritable(), file_fsmagic(), file_pipe2file(), fsmStage(), Fstrerror(), ftpLogin(), ftpReq(), fts_build(), Fts_close(), Fts_read(), fts_safe_changedir(), fts_stat(), getFilesystemList(), getOutputFrom(), gzdClose(), gzdRead(), gzdSeek(), gzdWrite(), httpReq(), load(), main(), makeGPGSignature(), makePGPSignature(), makeTempFile(), mergesort(), mget(), packageBinaries(), processSourceFiles(), readLead(), rpmdbRebuild(), rpmfcClassify(), rpmGetFilesystemUsage(), rpmgiLoadReadHeader(), rpmioFileExists(), rpmioMkpath(), rpmMkdirPath(), rpmpsmStage(), rpmQueryVerify(), rpmsqAction(), rpmsqExecve(), rpmsxParse(), runScript(), sigchld_cancel(), sread(), swrite(), tcpConnect(), ufdRead(), ufdWrite(), uncompressbuf(), unwrap(), urlStrerror(), and verifyHeader().
| const char* program_name |
1.6.1