system.h File Reference

#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

Detailed Description

Definition in file system.h.


Define Documentation

#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
#define F_OK   0

Definition at line 183 of file system.h.

Referenced by db3open(), and rpmdbRebuild().

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

Definition at line 303 of file system.h.

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

Definition at line 709 of file system.h.

#define freecon ( _c   ) 

Definition at line 299 of file system.h.

Referenced by rpmfiBuildFSContexts().

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

Definition at line 307 of file system.h.

#define getenv ( _s   )     __secure_getenv(_s)
#define getfilecon ( _fn,
_c   )     (-1)

Definition at line 301 of file system.h.

#define GETMNTENT_ONE   1

Definition at line 689 of file system.h.

#define GETMNTENT_TWO   0

Definition at line 690 of file system.h.

#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 NLENGTH ( direct   )     (strlen((direct)->d_name))

Definition at line 191 of file system.h.

#define our_mntdir   mnt_dir

Definition at line 672 of file system.h.

#define our_mntent   struct mntent

Definition at line 671 of file system.h.

Referenced by getFilesystemList().

#define R_OK   4

Definition at line 186 of file system.h.

#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_END   2

Definition at line 180 of file system.h.

#define SEEK_SET   0

Definition at line 178 of file system.h.

Referenced by apprentice_compile(), file_pipe2file(), readRPM(), uncompressbuf(), and writeRPM().

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

Definition at line 305 of file system.h.

#define setprogname ( pn   ) 
Value:
{ 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().

#define X_OK   1

Definition at line 184 of file system.h.


Typedef Documentation

typedef char* security_context_t

Definition at line 297 of file system.h.


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 
)
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 
)
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().


Variable Documentation

char** environ
int errno
const char* program_name

Definition at line 7 of file poptALL.c.


Generated on 31 Jul 2012 for rpm by  doxygen 1.6.1