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

lib/poptALL.c File Reference

Popt tables for all rpm modes. More...

#include "system.h"
#include <rpmcli.h>
#include "debug.h"

Go to the source code of this file.

Defines

#define POPT_SHOWVERSION   -999
#define POPT_SHOWRC   -998
#define POPT_QUERYTAGS   -997
#define POPT_PREDEFINE   -996

Functions

void printVersion (FILE *fp)
 Display rpm version.

void rpmcliConfigured (void)
 Make sure that rpm configuration has been read.

void rpmcliAllArgCallback (poptContext con, enum poptCallbackReason reason, const struct poptOption *opt, const char *arg, const void *data)
poptContext rpmcliFini (poptContext optCon)
 Destroy most everything needed by an rpm CLI executable context.

poptContext rpmcliInit (int argc, char *const argv[], struct poptOption *optionsTable)
 Initialize most everything needed by an rpm CLI executable context.


Variables

int _debug = 0
int _rpmds_nopromote
int _fps_debug
int _fsm_debug
int _fsm_threads
int _hdr_debug
int _print_pkts
int _psm_debug
int _psm_threads
int _rpmal_debug
int _rpmdb_debug
int _rpmds_debug
int _rpmfc_debug
int _rpmfi_debug
int _rpmps_debug
int _rpmsq_debug
int _rpmte_debug
int _rpmts_debug
int _rpmts_stats
int noLibio
const char * rpmcliPipeOutput = NULL
const char * rpmcliRcfile = NULL
const char * rpmcliRootDir = "/"
rpmQueryFlags rpmcliQueryFlags
int _ftp_debug
int _rpmio_debug
int rpmcliInitialized = -1
poptOption rpmcliAllPoptTable []


Detailed Description

Popt tables for all rpm modes.

Definition in file poptALL.c.


Define Documentation

#define POPT_PREDEFINE   -996
 

Definition at line 15 of file poptALL.c.

Referenced by rpmcliAllArgCallback().

#define POPT_QUERYTAGS   -997
 

Definition at line 14 of file poptALL.c.

Referenced by rpmcliAllArgCallback().

#define POPT_SHOWRC   -998
 

Definition at line 13 of file poptALL.c.

Referenced by rpmcliAllArgCallback().

#define POPT_SHOWVERSION   -999
 

Definition at line 12 of file poptALL.c.

Referenced by rpmcliAllArgCallback().


Function Documentation

void printVersion FILE *  fp  )  [static]
 

Display rpm version.

Definition at line 110 of file poptALL.c.

References _, and rpmEVR.

Referenced by printUsage(), and rpmcliAllArgCallback().

void rpmcliAllArgCallback poptContext  con,
enum poptCallbackReason  reason,
const struct poptOption opt,
const char *  arg,
const void *  data
[static]
 

Definition at line 138 of file poptALL.c.

References _free(), poptOption::arg, POPT_PREDEFINE, POPT_QUERYTAGS, POPT_SHOWRC, POPT_SHOWVERSION, poptContext, printVersion(), RMIL_CMDLINE, RPMCLI_POPT_NODIGEST, RPMCLI_POPT_NOHDRCHK, RPMCLI_POPT_NOSIGNATURE, rpmcliConfigured(), rpmcliInitialized, rpmCLIMacroContext, rpmcliQueryFlags, rpmDefineMacro(), rpmDisplayQueryTags(), rpmExpand(), rpmIncreaseVerbosity, RPMMESS_QUIET, rpmSetVerbosity, rpmShowRC(), poptOption::val, VERIFY_DIGEST, VERIFY_HDRCHK, and VERIFY_SIGNATURE.

void rpmcliConfigured void   ) 
 

Make sure that rpm configuration has been read.

Warning:
Options like --rcfile and --verbose must precede callers option.

Definition at line 122 of file poptALL.c.

References EXIT_FAILURE, rpmcliInitialized, rpmcliRcfile, and rpmReadConfigFiles().

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

poptContext rpmcliFini poptContext  optCon  ) 
 

Destroy most everything needed by an rpm CLI executable context.

Parameters:
optCon popt context
Returns:
NULL always

Definition at line 330 of file poptALL.c.

References poptContext, and poptFreeContext().

Referenced by main().

poptContext rpmcliInit int  argc,
char *const  argv[],
struct poptOption optionsTable
 

Initialize most everything needed by an rpm CLI executable context.

Parameters:
argc no. of args
argv arg array
optionsTable popt option table
Returns:
popt context (or NULL)

Definition at line 345 of file poptALL.c.

References _, __progname, _debug, argv, bindtextdomain, EXIT_FAILURE, LIBRPMALIAS_FILENAME, LOCALEDIR, PACKAGE, POPT_BADOPTION_NOALIAS, poptBadOption(), poptContext, poptGetContext(), poptGetNextOpt(), poptGetOptArg(), poptReadConfigFile(), poptReadDefaultConfig(), poptSetExecPath(), poptStrerror(), rpmcliConfigured(), RPMCONFIGDIR, rpmIncreaseVerbosity, RPMMESS_NORMAL, rpmSetVerbosity, setlocale, setprogname, and textdomain.

Referenced by main().


Variable Documentation

int _debug = 0 [static]
 

Definition at line 21 of file poptALL.c.

Referenced by rpmcliInit().

int _fps_debug
 

Definition at line 28 of file poptALL.c.

Referenced by findFps(), and fpsCompare().

int _fsm_debug
 

Definition at line 31 of file poptALL.c.

int _fsm_threads
 

Definition at line 34 of file poptALL.c.

int _ftp_debug
 

Definition at line 97 of file poptALL.c.

Referenced by checkResponse(), ftpClosedir(), ftpCommand(), ftpLstat(), ftpOpendir(), ftpReaddir(), ftpReadlink(), ftpStat(), httpResp(), tcpConnect(), and ufdClose().

int _hdr_debug
 

Definition at line 37 of file poptALL.c.

int _print_pkts
 

Definition at line 40 of file poptALL.c.

Referenced by rpmVerifySignatures().

int _psm_debug
 

Definition at line 43 of file poptALL.c.

Referenced by XrpmpsmLink(), and XrpmpsmUnlink().

int _psm_threads
 

Definition at line 46 of file poptALL.c.

int _rpmal_debug
 

Definition at line 49 of file poptALL.c.

Referenced by rpmal_Debug(), rpmalAdd(), rpmalAllFileSatisfiesDepend(), and rpmalDel().

int _rpmdb_debug
 

Definition at line 52 of file poptALL.c.

Referenced by XrpmdbLink(), and XrpmdbUnlink().

int _rpmds_debug
 

Definition at line 55 of file poptALL.c.

Referenced by rpmds_Debug(), rpmdsFree(), rpmdsNew(), rpmdsNext(), XrpmdsLink(), and XrpmdsUnlink().

int _rpmds_nopromote
 

Definition at line 25 of file poptALL.c.

Referenced by checkPackageSet(), ensureOlder(), rpmdsNew(), rpmtsAddInstallElement(), setEpochPromote(), and unsatisfiedDepend().

int _rpmfc_debug
 

Definition at line 59 of file poptALL.c.

Referenced by main(), and rpmfcGenerateDepends().

int _rpmfi_debug
 

Definition at line 62 of file poptALL.c.

Referenced by rpmfi_Debug(), rpmfiFree(), rpmfiNew(), rpmfiNext(), rpmfiNextD(), XrpmfiLink(), and XrpmfiUnlink().

int _rpmio_debug
 

Definition at line 101 of file poptALL.c.

Referenced by Access(), Closedir(), fdFgets(), Fdopen(), fdWritable(), Fopen(), Glob(), Globfree(), Link(), Lstat(), Opendir(), Readdir(), Rename(), Stat(), and ufdOpen().

int _rpmps_debug
 

Definition at line 65 of file poptALL.c.

Referenced by XrpmpsLink(), and XrpmpsUnlink().

int _rpmsq_debug
 

Definition at line 68 of file poptALL.c.

Referenced by rpmsqFork(), rpmsqInsert(), rpmsqRemove(), rpmsqWait(), and rpmsqWaitUnregister().

int _rpmte_debug
 

Definition at line 71 of file poptALL.c.

Referenced by rpmte_Debug(), XrpmtsiFree(), and XrpmtsiInit().

int _rpmts_debug
 

Definition at line 74 of file poptALL.c.

Referenced by rpmts_AddErase(), rpmts_alloc(), rpmts_Check(), rpmts_Clean(), rpmts_CloseDB(), rpmts_Create(), rpmts_dealloc(), rpmts_Debug(), rpmts_free(), rpmts_GetKeys(), rpmts_HdrCheck(), rpmts_HdrFromFdno(), rpmts_IDTXglob(), rpmts_IDTXload(), rpmts_init(), rpmts_InitDB(), rpmts_iternext(), rpmts_Match(), rpmts_new(), rpmts_Next(), rpmts_OpenDB(), rpmts_Order(), rpmts_PgpImportPubkey(), rpmts_PgpPrtPkts(), rpmts_RebuildDB(), rpmts_Rollback(), rpmts_Run(), rpmts_SetColor(), rpmts_SetFlags(), rpmts_SetProbFilter(), rpmts_SetVSFlags(), rpmts_SolveCallback(), rpmts_VerifyDB(), rpmtsAddAvailableElement(), rpmtsCallback(), XrpmtsLink(), and XrpmtsUnlink().

int _rpmts_stats
 

Definition at line 77 of file poptALL.c.

Referenced by rpmtsFree(), and setStats().

int noLibio
 

Definition at line 80 of file poptALL.c.

Referenced by Fclose(), and ufdClose().

int rpmcliInitialized = -1 [static]
 

Definition at line 105 of file poptALL.c.

Referenced by rpmcliAllArgCallback(), and rpmcliConfigured().

const char* rpmcliPipeOutput = NULL
 

Definition at line 84 of file poptALL.c.

Referenced by main().

const char* rpmcliRcfile = NULL
 

Definition at line 87 of file poptALL.c.

Referenced by main(), and rpmcliConfigured().

const char* rpmcliRootDir = "/"
 

Definition at line 90 of file poptALL.c.

Referenced by main().


Generated on Tue Dec 21 14:22:43 2004 for rpm by doxygen 1.3.5