Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

system.h File Reference

More...

#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 <fcntl.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include "popt.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 __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"

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)
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 382 of file system.h.

Referenced by addCanon, addChangelog, addDefault, addFile, addFileToTagAux, addSource, argerror, armorFormat, base64Format, build, buildArgCallback, buildForTarget, buildHost, buildSpec, checkFiles, checkForDuplicates, checkForRequired, checkForValidArchitectures, checkOwners, checkPassPhrase, checkSpec, copyFile, copyNextLine, cpio_copy, cpio_doio, cvtdberr, db3close, db3open, db_fini, db_init, dbiFindMatches, dbiOpen, dbiTagsInit, depflagsFormat, do_inject, doAddSubtract, doDefine, doLogical, doMultiplyDivide, doPatch, doPatchMacro, doPrimary, doReadRC, doRelational, doScript, doSetupMacro, doUndefine, doUntar, expandMacro, expandMacros, fflagsFormat, freeArgs, genCpioListAndHeader, generateDepends, getFilesystemList, getGidS, getGname, getGnameS, getMachineInfo, getOutputFrom, getUidS, getUname, getUnameS, grabArgs, handlePreambleTag, headerCheck, headerDump, headerInject, hexFormat, IDTXglob, ignoreDep, installArgCallback, isCompressed, isSpecFile, machCompatCacheAdd, main, makeGPGSignature, makePGPSignature, makeTempFile, manageFile, miFreeHeader, newRpmdb, octalFormat, packageBinaries, parseBuildInstallClean, parseDescription, parseExpression, parseExpressionBoolean, parseExpressionString, parseFiles, parseForAttr, parseForConfig, parseForDev, parseForLang, parseFormat, parseForSimple, parseForVerify, parseNoSource, parsePreamble, parsePrep, parseRCPOT, parseScript, parseSpec, permsFormat, pgpsigFormat, printBanner, printExpansion, printMacro, printNewSpecfile, printSize, printVersion, processBinaryFile, processBinaryFiles, processPackageFiles, processScriptFiles, processSourceFiles, queryHeader, rdToken, readFile, readIcon, readLead, readLine, readRPM, realDateFormat, rpmalAllFileSatisfiesDepend, rpmalAllSatisfiesDepend, rpmcliImportPubkeys, rpmcliInit, rpmdbAdd, rpmdbCountPackages, rpmdbFindByFile, rpmdbGrowIterator, rpmdbInitIterator, rpmdbMoveDatabase, rpmdbNextIterator, rpmdbRebuild, rpmdbRemove, rpmdsCompare, rpmdsNotify, rpmdsProblem, rpmDumpMacroTable, rpmErase, rpmGetFilesystemUsage, rpmGetPassPhrase, rpmGraph, rpmInstall, rpmInstallSource, rpmMkdirPath, rpmProblemString, rpmQueryVerify, rpmReadPackageFile, rpmReadRC, rpmReSign, rpmRollback, rpmShowProgress, rpmtsAddInstallElement, rpmtsInitDSI, rpmtsOpenDB, rpmtsOpenSDB, rpmtsOrder, rpmtsSolve, rpmVerifySignature, rpmVerifySignatures, rpmWriteSignature, showQueryPackage, timeCheck, triggertypeFormat, unsatisfiedDepend, urlFind, urlFreeCache, urlGetFile, urlSplit, verifyDependencies, verifyGPGSignature, verifyHeader, verifyMD5Signature, verifyPGPSignature, verifySHA1Signature, verifySizeSignature, vmefail, writeRPM, XurlFree, and zapRelation.

#define __progname   program_name
 

Definition at line 348 of file system.h.

Referenced by argerror, main, and rpmcliInit.

#define bindtextdomain Domain,
Directory   
 

Definition at line 379 of file system.h.

Referenced by main, and rpmcliInit.

#define dgettext DomainName,
Text       Text
 

Definition at line 384 of file system.h.

Referenced by i18nTag.

#define dirent   direct
 

Definition at line 162 of file system.h.

Referenced by ftpOpendir, ftpReaddir, myftw_dir, and Readdir.

#define EXIT_FAILURE   1
 

Definition at line 137 of file system.h.

Referenced by argerror, getOutputFrom, main, poptGetNextOpt, rpmcliConfigured, rpmcliInit, rpmdbCheckSignals, rpmReSign, and vmefail.

#define F_OK   0
 

Definition at line 152 of file system.h.

Referenced by db3open, rpmdbRebuild, and rpmQueryVerify.

#define GETMNTENT_ONE   1
 

Definition at line 587 of file system.h.

#define GETMNTENT_TWO   0
 

Definition at line 588 of file system.h.

#define lchown   chown
 

Definition at line 550 of file system.h.

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

Definition at line 77 of file system.h.

Referenced by bsddb_version.

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

Definition at line 79 of file system.h.

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

Definition at line 78 of file system.h.

Referenced by bsddb_version.

#define MOUNTED   "/etc/mnttab"
 

Definition at line 601 of file system.h.

Referenced by getFilesystemList.

#define N_ Text       Text
 

Definition at line 387 of file system.h.

Referenced by rpmProblemString.

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

Definition at line 163 of file system.h.

#define our_mntent   struct our_mntent
 

Definition at line 585 of file system.h.

#define R_OK   4
 

Definition at line 155 of file system.h.

#define S_IFSOCK   (0xc000)
 

Definition at line 510 of file system.h.

Referenced by vfs_parse_filetype.

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

Definition at line 514 of file system.h.

Referenced by genCpioListAndHeader, makeTempFile, printFileInfo, rpmPermsString, rpmVerifyFile, and vfs_parse_ls_lga.

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

Definition at line 518 of file system.h.

Referenced by rpmPermsString.

#define SEEK_CUR   1
 

Definition at line 148 of file system.h.

#define SEEK_END   2
 

Definition at line 149 of file system.h.

Referenced by poptReadConfigFile.

#define SEEK_SET   0
 

Definition at line 147 of file system.h.

Referenced by readRPM, and writeRPM.

#define setlocale Category,
Locale   
 

Definition at line 371 of file system.h.

Referenced by main, and rpmcliInit.

#define setprogname pn   
 

Value:

{ if ((__progname = strrchr(pn, '/')) != NULL) __progname++; \
    else __progname = pn;               \
  }

Definition at line 349 of file system.h.

Referenced by main, and rpmcliInit.

#define textdomain Domain   
 

Definition at line 381 of file system.h.

Referenced by main, and rpmcliInit.

#define W_OK   2
 

Definition at line 154 of file system.h.

Referenced by db3open, and rpmMkdirPath.

#define X_OK   1
 

Definition at line 153 of file system.h.

Referenced by findProgramPath.


Function Documentation

char* alloca  
 

Referenced by build, buildForTarget, compressFilelist, configLine, dateToTimet, db3open, dbiFindByLabel, doLookup, doReadRC, execCommand, expandMacros, expandT, expandU, findProgramPath, findTag, findUpgradeSet, ftsStashLatest, getTagVal, grabArgs, headerAddI18NString, headerCheck, headerLoad, headerMatchLocale, i18nTag, lookupPackage, main, makeGPGSignature, makePGPSignature, myftw, parseForAttr, parseForConfig, parseForDev, parseForLang, parseForVerify, poptAddAlias, poptGetNextOpt, poptParseArgvString, poptPrintUsage, poptReadConfigFile, poptReadDefaultConfig, printFileInfo, providePackageNVR, rpmalAdd, rpmalAllFileSatisfiesDepend, rpmalAllSatisfiesDepend, rpmalDel, rpmdbAdd, rpmdbCountPackages, rpmdbFindByFile, rpmdbMoveDatabase, rpmdbRemove, rpmdbRemoveDatabase, rpmDefineMacro, rpmDetectPGPVersion, rpmdsNVRMatchesDep, rpmGenPath, rpmGetFilesystemUsage, rpmGraph, rpmInstall, rpmlibNeedsFeature, rpmReadPackageFile, rpmReadSignature, rpmts_Rollback, rpmtsOrder, rpmtsSetRootDir, rpmvercmp, rpmVerifyFile, setPathDefault, shescapeFormat, showShortOptions, unsatisfiedDepend, urlFind, and verifyDependencies.

char* getenv const char *    name
 

Referenced by blockCipherDefault, dosetenv, entropyGatherNext, entropySourceDefault, findProgramPath, hashFunctionDefault, headerFindI18NString, i18nTag, keyedHashFunctionDefault, poptGetContext, poptReadDefaultConfig, randomGeneratorDefault, rpmInitMacros, and rpmReadRC.

struct our_mntent* getmntent FILE *    filep
 

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
 

Referenced by armorFormat, base64Format, db3open, dbiFindByLabel, doAddSubtract, doBuildFileList, dosetenv, doUntar, findTag, formatValue, ftpOpendir, genCpioListAndHeader, grabArgs, hGetNEVR, initGlobs, main, makeGPGSignature, makePGPSignature, pgpsigFormat, printNewSpecfile, providePackageNVR, rpmcliImportPubkey, rpmdbRebuild, rpmDetectPGPVersion, rpmdsNewDNEVR, rpmdsNVRMatchesDep, rpmdsThis, rpmExpand, rpmGetPath, rpmHeaderGetEntry, rpmlibNeedsFeature, rpmpsAppend, rpmtsOrder, rpmtsSetRootDir, rpmVerifyFile, rpmVerifySignatures, showQueryPackage, singleSprintf, urlFind, verifyDependencies, verifyGPGSignature, verifyMD5Signature, verifyPGPSignature, verifySHA1Signature, and verifySizeSignature.

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

Referenced by doLookup, ftpOpendir, and rpmVerifySignatures.

void unsetenv const char *    name
 

Referenced by checkPassPhrase, getOutputFrom, i18nTag, makeGPGSignature, makePGPSignature, and open_dso.

void* vmefail size_t    size
 

Definition at line 13 of file rpmmalloc.c.

void* xcalloc size_t    nmemb,
size_t    size
 

Definition at line 34 of file rpmmalloc.c.

References environ.

void* xmalloc size_t    size
 

Definition at line 24 of file rpmmalloc.c.

void* xrealloc void *    ptr,
size_t    size
 

Todo:
Annotate ptr with returned/out.

Definition at line 45 of file rpmmalloc.c.

char* xstrdup const char *    str
 

Definition at line 55 of file rpmmalloc.c.


Variable Documentation

int errno
 

Definition at line 108 of file system.h.

Referenced by checkOwners, checkPassPhrase, currentDirectory, dbiOpen, doScript, doUntar, fdstat_exit, getFilesystemList, getOutputFrom, makeGPGSignature, makePGPSignature, makeTempFile, mergesort, myftw, myftw_dir, opendevice, packageBinaries, poptGetNextOpt, poptReadConfigFile, poptStrerror, processSourceFiles, readLead, rpmdbRebuild, rpmGetFilesystemUsage, rpmMkdirPath, rpmQueryVerify, and strerror.

const char* program_name
 

Definition at line 355 of file system.h.


Generated on Wed Sep 4 12:50:03 2002 for rpm by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002