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>

Go to the source code of this file.

Data Structures

struct  our_mntent

Defines

#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)
#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 setlocale(Category, Locale)
#define bindtextdomain(Domain, Directory)
#define textdomain(Domain)
#define _(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)

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_mntentgetmntent (FILE *filep)

Variables

int errno
const char * program_name


Detailed Description

Definition in file system.h.


Define Documentation

#define _ ( Text   )     Text

Definition at line 478 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(), db3New(), 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(), makeHDRSignature(), 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(), 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 bindtextdomain ( Domain,
Directory   ) 

Definition at line 475 of file system.h.

Referenced by main(), and rpmcliInit().

#define dgettext ( DomainName,
Text   )     Text

Definition at line 480 of file system.h.

Referenced by i18nTag().

#define dirent   direct

Definition at line 193 of file system.h.

Referenced by ftpOpendir(), and fts_build().

#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 genCpioListAndHeader(), rpmfiBuildFSContexts(), and rpmfiBuildREContexts().

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

Definition at line 307 of file system.h.

#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 is_selinux_enabled (  )     (-1)

Definition at line 311 of file system.h.

Referenced by rpmtsCreate().

#define lchown   chown

Definition at line 652 of file system.h.

Referenced by fsmStage().

#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   )     ((direct)->d_namlen)

Definition at line 194 of file system.h.

#define our_mntent   struct our_mntent

Definition at line 687 of file system.h.

#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 S_IFSOCK   (0xc000)

Definition at line 608 of file system.h.

Referenced by file_fsmagic(), rpmfcClassify(), rpmsxParse(), and vfs_parse_filetype().

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

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

Definition at line 616 of file system.h.

Referenced by fsmStage(), rpmPermsString(), and whatis().

#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 setlocale ( Category,
Locale   ) 

Definition at line 467 of file system.h.

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

#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 textdomain ( Domain   ) 

Definition at line 477 of file system.h.

Referenced by 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

char* alloca (  ) 

char* getenv ( const char *  name  ) 

struct our_mntent* getmntent ( FILE *  filep  )  [read]

Referenced by getFilesystemList().

char* memchr (  ) 

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

Referenced by doLookup(), and rpmQueryVerify().

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

Referenced by i18nTag().

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

char* stpncpy ( char *  dest,
const char *  src,
size_t  n 
)

void unsetenv ( const char *  name  ) 

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(), dbt2set(), depflagsFormat(), do_inject(), doAddSubtract(), doHeaderUnload(), doLookup(), doputenv(), doReadRC(), dosetenv(), expandMacro(), expandMacroTable(), fflagsFormat(), formatValue(), fpCacheCreate(), fsmFsPath(), fsmStage(), genChangelog(), genCpioListAndHeader(), grabData(), headerCheck(), 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(), db3New(), dbiTagsInit(), depflagsFormat(), doLookup(), doSetupMacro(), dupAttrRec(), fflagsFormat(), forceIncludeFile(), formatValue(), fsmMakeLinks(), fsmStage(), ftsStashLatest(), genSourceRpmName(), getFilesystemList(), getGidS(), getGname(), getGnameS(), getUidS(), getUname(), getUnameS(), headerCheck(), 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

int errno

const char* program_name

Definition at line 2 of file rpmqv.c.


Generated on Fri Dec 12 13:02:12 2008 for rpm by  doxygen 1.5.6