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

Referenced by addCanon, addChangelog, addDefault, addFile, addFileToTagAux, addSource, alAllFileSatisfiesDepend, alAllSatisfiesDepend, argerror, armorFormat, base64Format, build, buildArgCallback, buildForTarget, buildHost, buildSpec, checkForDuplicates, checkForRequired, checkForValidArchitectures, checkOwners, checkPackageDeps, checkPassPhrase, checkSize, checkSpec, copyFile, copyNextLine, cpio_copy, cpio_doio, cvtdberr, dataLength, db1close, db1open, db3close, db3New, db3open, db_fini, db_init, dbiOpen, dbiSearch, dbiTagsInit, dbiUpdateIndex, depflagsFormat, do_inject, doAddSubtract, doDefine, doGetRecord, doLogical, doMultiplyDivide, doPatch, doPatchMacro, doPrimary, doReadRC, doRelational, doScript, doSetupMacro, doUndefine, doUntar, expandMacro, expandMacros, fadAlloc, fflagsFormat, freeArgs, genCpioListAndHeader, generateDepends, getFilesystemList, getGidS, getGname, getGnameS, getMachineInfo, getOutputFrom, getUidS, getUname, getUnameS, grabArgs, handlePreambleTag, headerDump, headerInject, hexFormat, IDTXglob, ignoreDep, installArgCallback, isCompressed, isSpecFile, machCompatCacheAdd, main, makeGPGSignature, makePGPSignature, makeTempFile, manageFile, newRpmdb, octalFormat, openDatabase, packageBinaries, parseBuildInstallClean, parseDescription, parseExpression, parseExpressionBoolean, parseExpressionString, parseFiles, parseForAttr, parseForConfig, parseForDev, parseForLang, parseFormat, parseForSimple, parseForVerify, parseNoSource, parsePreamble, parsePrep, parseRCPOT, parseScript, parseSpec, permsFormat, printBanner, printDepProblems, printExpansion, printMacro, printNewSpecfile, printUsage, printVersion, processBinaryFile, processBinaryFiles, processPackageFiles, processScriptFiles, processSourceFiles, queryHeader, rdToken, readIcon, readLead, readLine, readPackageHeaders, readRPM, realDateFormat, rpmAddSignature, rpmCheckSig, rpmdbAdd, rpmdbCountPackages, rpmdbMoveDatabase, rpmdbNextIterator, rpmdbRebuild, rpmdbRemove, rpmdepOrder, rpmDumpMacroTable, rpmErase, rpmGetFilesystemUsage, rpmGetPassPhrase, rpmInstall, rpmInstallSource, rpmProblemString, rpmQueryVerify, rpmRangesOverlap, rpmReadRC, rpmReadSignature, rpmReSign, rpmRollback, rpmShowProgress, rpmVerifySignature, rpmWriteSignature, showQueryPackage, timeCheck, triggertypeFormat, unsatisfiedDepend, urlFind, urlFreeCache, urlGetFile, urlSplit, verifyGPGSignature, verifyPGPSignature, vmefail, writeRPM, XurlFree, and zapRelation.

#define __progname   program_name
 

Definition at line 333 of file system.h.

Referenced by argerror, main, and printUsage.

#define bindtextdomain Domain,
Directory   
 

Definition at line 363 of file system.h.

Referenced by main.

#define dgettext DomainName,
Text       Text
 

Definition at line 368 of file system.h.

Referenced by i18nTag.

#define dirent   direct
 

Definition at line 150 of file system.h.

Referenced by myftw_dir, and Readdir.

#define EXIT_FAILURE   1
 

Definition at line 125 of file system.h.

Referenced by argerror, checkSpec, dataLength, fadAlloc, getOutputFrom, main, poptGetNextOpt, rpmReSign, and vmefail.

#define F_OK   0
 

Definition at line 140 of file system.h.

Referenced by db3open, rpmdbRebuild, and rpmQueryVerify.

#define GETMNTENT_ONE   1
 

Definition at line 571 of file system.h.

#define GETMNTENT_TWO   0
 

Definition at line 572 of file system.h.

#define lchown   chown
 

Definition at line 534 of file system.h.

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

Definition at line 65 of file system.h.

Referenced by headerRegenSigHeader, and rpmReadPackageHeader.

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

Definition at line 67 of file system.h.

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

Definition at line 66 of file system.h.

Referenced by headerRegenSigHeader, and rpmReadPackageHeader.

#define MOUNTED   "/etc/mnttab"
 

Definition at line 585 of file system.h.

Referenced by getFilesystemList.

#define N_ Text       Text
 

Definition at line 371 of file system.h.

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

Definition at line 151 of file system.h.

#define our_mntent   struct our_mntent
 

Definition at line 569 of file system.h.

#define R_OK   4
 

Definition at line 143 of file system.h.

#define S_IFSOCK   (0xc000)
 

Definition at line 494 of file system.h.

Referenced by vfs_parse_filetype.

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

Definition at line 498 of file system.h.

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

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

Definition at line 502 of file system.h.

Referenced by rpmPermsString.

#define SEEK_CUR   1
 

Definition at line 136 of file system.h.

#define SEEK_END   2
 

Definition at line 137 of file system.h.

Referenced by fadOpen, and poptReadConfigFile.

#define SEEK_SET   0
 

Definition at line 135 of file system.h.

Referenced by db1cput, doGetRecord, Pread, Pwrite, readRPM, and writeRPM.

#define setlocale Category,
Locale   
 

Definition at line 355 of file system.h.

Referenced by main.

#define setprogname pn   
 

Value:

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

Definition at line 334 of file system.h.

Referenced by main.

#define textdomain Domain   
 

Definition at line 365 of file system.h.

Referenced by main.

#define W_OK   2
 

Definition at line 142 of file system.h.

Referenced by db3open.

#define X_OK   1
 

Definition at line 141 of file system.h.

Referenced by findProgramPath.


Function Documentation

char* alloca  
 

Referenced by alAddPackage, build, buildForTarget, compressFilelist, configLine, dateToTimet, db1basename, db3open, dbiFindByLabel, dbiUpdateIndex, doGetRecord, doLookup, doReadRC, execCommand, expandMacros, expandT, expandU, fadAlloc, findProgramPath, findTag, findUpgradeSet, getTagVal, grabArgs, headerAddI18NString, headerLoad, headerMatchesDepFlags, headerMatchLocale, i18nTag, lookupPackage, main, makeGPGSignature, makePGPSignature, myftw, openDatabase, parseForAttr, parseForConfig, parseForDev, parseForLang, parseForVerify, poptAddAlias, poptGetNextOpt, poptParseArgvString, poptReadConfigFile, poptReadDefaultConfig, printFileInfo, providePackageNVR, rpmdbFindByFile, rpmdbMoveDatabase, rpmdbRemoveDatabase, rpmDefineMacro, rpmdepOrder, rpmDetectPGPVersion, rpmGenPath, rpmGetFilesystemUsage, rpmInitDB, rpmInstall, rpmlibNeedsFeature, rpmMkpath, rpmtransCreateSet, rpmvercmp, setPathDefault, shescapeFormat, showShortOptions, and urlFind.

char* getenv const char *    name
 

Referenced by dosetenv, findProgramPath, headerFindI18NString, i18nTag, poptGetContext, poptReadDefaultConfig, 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, db1basename, db3open, dbiFindByLabel, doAddSubtract, doBuildFileList, dosetenv, doUntar, findTag, formatValue, genCpioListAndHeader, grabArgs, headerMatchesDepFlags, main, makeGPGSignature, makePGPSignature, prDbiOpenFlags, printNewSpecfile, providePackageNVR, rpmdbRebuild, rpmdepCheck, rpmDetectPGPVersion, rpmExpand, rpmGetPath, rpmHeaderGetEntry, rpmlibNeedsFeature, rpmMkpath, rpmtransCreateSet, showQueryPackage, singleSprintf, and urlFind.

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

Referenced by doLookup, verifyGPGSignature, and verifyPGPSignature.

void unsetenv const char *    name
 

Referenced by i18nTag.

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.

void* xmalloc size_t    size
 

Definition at line 24 of file rpmmalloc.c.

References environ.

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

Referenced by checkOwners, checkPassPhrase, currentDirectory, db1open, db1sync, dbiOpen, doScript, doUntar, fdstat_exit, getFilesystemList, getOutputFrom, makeGPGSignature, makePGPSignature, makeTempFile, myftw, myftw_dir, packageBinaries, poptGetNextOpt, poptReadConfigFile, poptStrerror, processSourceFiles, readLead, rpmdbRebuild, rpmGetFilesystemUsage, rpmMkpath, rpmQueryVerify, strerror, verifyGPGSignature, and verifyPGPSignature.

const char* program_name
 

Definition at line 339 of file system.h.


Generated on Thu Apr 18 17:34:55 2002 for rpm by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002