rpmio/rpmerr.h File Reference

#include "rpmlog.h"

Go to the source code of this file.

Defines

#define _em(_e)   (((_e) << 16) | RPMLOG_MAKEPRI(RPMLOG_ERRMSG, RPMLOG_ERR))
#define _wm(_e)   (((_e) << 16) | RPMLOG_MAKEPRI(RPMLOG_ERRMSG, RPMLOG_WARNING))
#define _nm(_e)   (((_e) << 16) | RPMLOG_MAKEPRI(RPMLOG_ERRMSG, RPMLOG_NOTICE))
#define _im(_e)   (((_e) << 16) | RPMLOG_MAKEPRI(RPMLOG_ERRMSG, RPMLOG_INFO))
#define _dm(_e)   (((_e) << 16) | RPMLOG_MAKEPRI(RPMLOG_ERRMSG, RPMLOG_DEBUG))
#define rpmError   rpmlog
 Retrofit rpmError() onto rpmlog sub-system.
#define rpmErrorCode()   rpmlogCode()
#define rpmErrorString()   rpmlogMessage()
#define rpmErrorSetCallback(_cb)   rpmlogSetCallback(_cb)

Typedefs

typedef enum rpmerrCode_e rpmerrCode
 Tokens used by rpmError().
typedef rpmlogCallback rpmErrorCallBackType

Enumerations

enum  rpmerrCode_e {
  RPMERR_GDBMOPEN = ((( 2 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_GDBMREAD = ((( 3 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_GDBMWRITE = ((( 4 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_INTERNAL = ((( 5 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))),
  RPMERR_DBCORRUPT = ((( 6 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_OLDDBCORRUPT = ((( 7 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_OLDDBMISSING = ((( 8 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_NOCREATEDB = ((( 9 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))),
  RPMERR_DBOPEN = ((( 10 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_DBGETINDEX = ((( 11 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_DBPUTINDEX = ((( 12 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_NEWPACKAGE = ((( 13 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))),
  RPMERR_BADMAGIC = ((( 14 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_RENAME = ((( 15 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_UNLINK = ((( 16 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_RMDIR = ((( 17 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))),
  RPMERR_PKGINSTALLED = ((( 18 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_CHOWN = ((( 19 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_NOUSER = ((( 20 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_NOGROUP = ((( 21 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))),
  RPMERR_MKDIR = ((( 22 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_FILECONFLICT = ((( 23 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_RPMRC = ((( 24 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_NOSPEC = ((( 25 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))),
  RPMERR_NOTSRPM = ((( 26 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_FLOCK = ((( 27 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_OLDPACKAGE = ((( 28 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_CREATE = ((( 30 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))),
  RPMERR_NOSPACE = ((( 31 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_NORELOCATE = ((( 32 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMMESS_BACKUP = ((( 34 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_MTAB = ((( 35 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))),
  RPMERR_STAT = ((( 36 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_BADDEV = ((( 37 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMMESS_ALTNAME = ((( 38 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMMESS_PREREQLOOP = ((( 39 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))),
  RPMERR_BADRELOCATE = ((( 40 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_OLDDB = ((( 41 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_UNMATCHEDIF = ((( 107 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_RELOAD = ((( 108 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))),
  RPMERR_BADARG = ((( 109 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_SCRIPT = ((( 110 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_READ = ((( 111 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_UNKNOWNOS = ((( 112 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))),
  RPMERR_UNKNOWNARCH = ((( 113 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_EXEC = ((( 114 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_FORK = ((( 115 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_CPIO = ((( 116 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))),
  RPMERR_GZIP = ((( 117 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_BADSPEC = ((( 118 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_LDD = ((( 119 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_BADFILENAME = ((( 120 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))),
  RPMERR_OPEN = ((( 121 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_POPEN = ((( 122 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_NOTREG = ((( 123 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_QUERY = ((( 124 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))),
  RPMERR_QFMT = ((( 125 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_DBCONFIG = ((( 126 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_DBERR = ((( 127 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_BADPACKAGE = ((( 128 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))),
  RPMERR_FREELIST = ((( 129 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_DATATYPE = ((( 130 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_BUILDROOT = ((( 131 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_MAKETEMP = ((( 132 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))),
  RPMERR_FWRITE = ((( 133 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_FREAD = ((( 134 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_READLEAD = ((( 135 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_WRITELEAD = ((( 136 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))),
  RPMERR_QUERYINFO = ((( 137 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_NOTICE ))), RPMERR_MANIFEST = ((( 138 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_NOTICE ))), RPMERR_BADHEADER = ((( 139 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_FSEEK = ((( 140 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))),
  RPMERR_REGCOMP = ((( 141 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_REGEXEC = ((( 142 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_BADSIGTYPE = ((( 200 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMERR_SIGGEN = ((( 201 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))),
  RPMERR_SIGVFY = ((( 202 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_NOTICE ))), RPMERR_IMPORT = ((( 203 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_ERR ))), RPMDEBUG_UNLINK = ((( 512u+16 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_DEBUG ))), RPMDEBUG_RMDIR = ((( 512u+17 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_DEBUG ))),
  RPMWARN_FLOCK = ((( 512u+27 ) << 16) | ((((unsigned)( RPMLOG_ERRMSG )) << 3) | ( RPMLOG_WARNING )))
}
 Tokens used by rpmError(). More...


Detailed Description

Todo:
Eliminate from API.

Definition in file rpmerr.h.


Define Documentation

#define _dm ( _e   )     (((_e) << 16) | RPMLOG_MAKEPRI(RPMLOG_ERRMSG, RPMLOG_DEBUG))

Definition at line 19 of file rpmerr.h.

#define _em ( _e   )     (((_e) << 16) | RPMLOG_MAKEPRI(RPMLOG_ERRMSG, RPMLOG_ERR))

Definition at line 11 of file rpmerr.h.

#define _im ( _e   )     (((_e) << 16) | RPMLOG_MAKEPRI(RPMLOG_ERRMSG, RPMLOG_INFO))

Definition at line 17 of file rpmerr.h.

#define _nm ( _e   )     (((_e) << 16) | RPMLOG_MAKEPRI(RPMLOG_ERRMSG, RPMLOG_NOTICE))

Definition at line 15 of file rpmerr.h.

#define _wm ( _e   )     (((_e) << 16) | RPMLOG_MAKEPRI(RPMLOG_ERRMSG, RPMLOG_WARNING))

Definition at line 13 of file rpmerr.h.

#define rpmError   rpmlog

Retrofit rpmError() onto rpmlog sub-system.

Definition at line 143 of file rpmerr.h.

Referenced by addCanon(), addChangelog(), addDefault(), addFile(), addFileToTagAux(), addSource(), buildArgCallback(), buildForTarget(), checkForDuplicates(), checkForRequired(), checkForValidArchitectures(), checkOwners(), checkPassPhrase(), copyFile(), copyNextLine(), cpio_copy(), cpio_doio(), cvtdberr(), db3New(), db3open(), dbiFindMatches(), dbiOpen(), doAddSubtract(), doDefine(), doFoo(), doLogical(), doMultiplyDivide(), doOutput(), doPatch(), doPatchMacro(), doPrimary(), doReadRC(), doRelational(), doScript(), doSetupMacro(), doShellEscape(), doUndefine(), doUntar(), expandMacro(), expandMacros(), findPreambleTag(), freeArgs(), fsmStage(), genCpioListAndHeader(), getFilesystemList(), getOutputFrom(), grabArgs(), handlePreambleTag(), IDTXglob(), isCompressed(), isSpecFile(), machCompatCacheAdd(), makeGPGSignature(), makePGPSignature(), makeTempFile(), manageFile(), miFreeHeader(), miregexec(), newRpmdb(), packageBinaries(), parseBuildInstallClean(), parseDescription(), parseExpressionBoolean(), parseExpressionString(), parseFiles(), parseForAttr(), parseForConfig(), parseForDev(), parseForLang(), parseForSimple(), parseForVerify(), parseNoSource(), parsePreamble(), parsePrep(), parseRCPOT(), parseScript(), parseSpec(), printNewSpecfile(), processBinaryFile(), processMetadataFile(), processPackageFiles(), processScriptFiles(), processSourceFiles(), queryHeader(), rdToken(), readFile(), readIcon(), readLead(), readLine(), readRPM(), rpmcliImportPubkeys(), rpmcliSign(), rpmdbAdd(), rpmdbCountPackages(), rpmdbFindByFile(), rpmdbGrowIterator(), rpmdbInitIterator(), rpmdbNextIterator(), rpmdbRebuild(), rpmdbRemove(), rpmdbSetIteratorRE(), rpmfcClassify(), rpmfcGenerateDependsHelper(), rpmGetFilesystemUsage(), rpmGetPassPhrase(), rpmgiInitFilter(), rpmgiOpen(), rpmGraph(), rpmInstall(), rpmInstallSourcePackage(), rpmMkdirPath(), rpmpsmStage(), rpmQueryVerify(), rpmReadPackageFile(), rpmReadRC(), rpmReSign(), rpmShowProgress(), rpmspecQuery(), rpmtsInitIterator(), rpmtsSolve(), rpmVerifySignatures(), runScript(), showQueryPackage(), and writeRPM().

#define rpmErrorCode ( void   )     rpmlogCode()

Definition at line 144 of file rpmerr.h.

#define rpmErrorSetCallback ( _cb   )     rpmlogSetCallback(_cb)

Definition at line 146 of file rpmerr.h.

#define rpmErrorString ( void   )     rpmlogMessage()

Definition at line 145 of file rpmerr.h.


Typedef Documentation

typedef enum rpmerrCode_e rpmerrCode

Tokens used by rpmError().

typedef rpmlogCallback rpmErrorCallBackType

Definition at line 148 of file rpmerr.h.


Enumeration Type Documentation

enum rpmerrCode_e

Tokens used by rpmError().

Enumerator:
RPMERR_GDBMOPEN  gdbm open failed
RPMERR_GDBMREAD  gdbm read failed
RPMERR_GDBMWRITE  gdbm write failed
RPMERR_INTERNAL  internal RPM error
RPMERR_DBCORRUPT  rpm database is corrupt
RPMERR_OLDDBCORRUPT  old style rpm database is corrupt
RPMERR_OLDDBMISSING  old style rpm database is missing
RPMERR_NOCREATEDB  cannot create new database
RPMERR_DBOPEN  database open failed
RPMERR_DBGETINDEX  database get from index failed
RPMERR_DBPUTINDEX  database get from index failed
RPMERR_NEWPACKAGE  package is too new to handle
RPMERR_BADMAGIC  bad magic for an RPM
RPMERR_RENAME  rename(2) failed
RPMERR_UNLINK  unlink(2) failed
RPMERR_RMDIR  rmdir(2) failed
RPMERR_PKGINSTALLED  package already installed
RPMERR_CHOWN  chown() call failed
RPMERR_NOUSER  user does not exist
RPMERR_NOGROUP  group does not exist
RPMERR_MKDIR  mkdir() call failed
RPMERR_FILECONFLICT  file being installed exists
RPMERR_RPMRC  bad line in rpmrc
RPMERR_NOSPEC  .spec file is missing
RPMERR_NOTSRPM  a source rpm was expected
RPMERR_FLOCK  locking the database failed
RPMERR_OLDPACKAGE  trying upgrading to old version
RPMERR_CREATE  failed to create a file
RPMERR_NOSPACE  out of disk space
RPMERR_NORELOCATE  tried to do improper relocatation
RPMMESS_BACKUP  backup made during [un]install
RPMERR_MTAB  failed to read mount table
RPMERR_STAT  failed to stat something
RPMERR_BADDEV  file on device not listed in mtab
RPMMESS_ALTNAME  file written as .rpmnew
RPMMESS_PREREQLOOP  loop in prerequisites
RPMERR_BADRELOCATE  bad relocation was specified
RPMERR_OLDDB  old format database
RPMERR_UNMATCHEDIF  unclosed ifarch or ifos
RPMERR_RELOAD 
RPMERR_BADARG 
RPMERR_SCRIPT  errors related to script exec
RPMERR_READ 
RPMERR_UNKNOWNOS 
RPMERR_UNKNOWNARCH 
RPMERR_EXEC 
RPMERR_FORK 
RPMERR_CPIO 
RPMERR_GZIP 
RPMERR_BADSPEC 
RPMERR_LDD  couldn't understand ldd output
RPMERR_BADFILENAME 
RPMERR_OPEN 
RPMERR_POPEN 
RPMERR_NOTREG  File s is not a regular file
RPMERR_QUERY 
RPMERR_QFMT 
RPMERR_DBCONFIG 
RPMERR_DBERR 
RPMERR_BADPACKAGE  getNextHeader: s
RPMERR_FREELIST  free list corrupt (u)- please ...
RPMERR_DATATYPE  Data type d not supported
RPMERR_BUILDROOT 
RPMERR_MAKETEMP  makeTempFile failed
RPMERR_FWRITE  s: Fwrite failed: s
RPMERR_FREAD  s: Fread failed: s
RPMERR_READLEAD  s: readLead failed
RPMERR_WRITELEAD  s: writeLead failed: s
RPMERR_QUERYINFO 
RPMERR_MANIFEST  s: read manifest failed: s
RPMERR_BADHEADER 
RPMERR_FSEEK  s: Fseek failed: s
RPMERR_REGCOMP  s: regcomp failed: s
RPMERR_REGEXEC  s: regexec failed: s
RPMERR_BADSIGTYPE  Unknown signature type
RPMERR_SIGGEN  Error generating signature
RPMERR_SIGVFY 
RPMERR_IMPORT 
RPMDEBUG_UNLINK  unlink(2) failed
RPMDEBUG_RMDIR  rmdir(2) failed
RPMWARN_FLOCK  locking the database failed

Definition at line 26 of file rpmerr.h.


Generated on Fri Oct 12 08:44:56 2007 for rpm by  doxygen 1.5.2