rpm 5.3.12
|
Popt tables for all rpm modes. More...
#include "system.h"
#include <rpmio.h>
#include <rpmiotypes.h>
#include <fts.h>
#include <mire.h>
#include <poptIO.h>
#include <rpmjs.h>
#include <rpmruby.h>
#include <rpmtag.h>
#include <rpmtypes.h>
#include <rpmrc.h>
#include <rpmversion.h>
#include <rpmcli.h>
#include <rpmns.h>
#include <fs.h>
#include "debug.h"
Go to the source code of this file.
Defines | |
#define | _RPMIOB_INTERNAL |
#define | POPT_SHOWVERSION -999 |
#define | POPT_SHOWRC -998 |
#define | POPT_QUERYTAGS -997 |
#define | POPT_PREDEFINE -996 |
#define | POPT_UNDEFINE -994 |
Functions | |
static void | printVersion (FILE *fp) |
Display rpm version. | |
void | rpmcliConfigured (void) |
Make sure that rpm configuration has been read. | |
static const char * | rpmcliEvalSlurp (const char *arg) |
static 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. | |
static int | checkfd (const char *devnull, int fdno, int flags) |
poptContext | rpmcliInit (int argc, char *const argv[], struct poptOption *optionsTable) |
Initialize most everything needed by an rpm CLI executable context. | |
Variables | |
const char * | program_name |
unsigned int * | keyids |
static int | _debug = 0 |
int | _rpmds_nopromote |
int | _fps_debug |
int | _fsm_debug |
int | _fsm_threads |
int | _hdr_debug |
int | _hdrqf_debug |
int | _pkgio_debug |
int | _rpmrepo_debug |
int | _print_pkts |
int | _psm_debug |
rpmioPool | _psmPool |
int | _psm_threads |
int | _rpmal_debug |
int | _rpmdb_debug |
int | _rpmds_debug |
rpmioPool | _rpmdsPool |
int | _rpmfc_debug |
rpmioPool | _rpmfcPool |
int | _rpmfi_debug |
rpmioPool | _rpmfiPool |
int | _rpmgi_debug |
rpmioPool | _rpmgiPool |
int | _rpmmi_debug |
int | _rpmps_debug |
rpmioPool | _rpmpsPool |
int | _rpmsq_debug |
int | _rpmte_debug |
rpmioPool | _rpmtePool |
rpmioPool | _rpmtsiPool |
int | _rpmts_debug |
rpmioPool | _rpmtsPool |
int | _rpmwf_debug |
int | _rpmts_macros |
int | _rpmts_stats |
int | _hdr_stats |
Global header stats enabler. | |
rpmQueryFlags | rpmcliQueryFlags |
Bit(s) from common command line options. | |
const char * | rpmcliTargets = NULL |
static int | rpmcliInitialized = -1 |
static char * | rpmpoptfiles = RPMPOPTFILES |
int | global_depFlags = RPMDEPS_FLAG_ADDINDEPS |
struct poptOption | rpmcliDepFlagsPoptTable [] |
struct poptOption | rpmcliAllPoptTable [] |
Popt option table for options shared by all modes and executables. |
Popt tables for all rpm modes.
Definition in file poptALL.c.
#define POPT_PREDEFINE -996 |
Definition at line 45 of file poptALL.c.
Referenced by rpmcliAllArgCallback().
#define POPT_QUERYTAGS -997 |
Definition at line 44 of file poptALL.c.
Referenced by rpmcliAllArgCallback().
#define POPT_SHOWRC -998 |
Definition at line 43 of file poptALL.c.
Referenced by rpmcliAllArgCallback().
#define POPT_SHOWVERSION -999 |
Definition at line 42 of file poptALL.c.
Referenced by rpmcliAllArgCallback().
#define POPT_UNDEFINE -994 |
Definition at line 46 of file poptALL.c.
Referenced by rpmcliAllArgCallback().
static int checkfd | ( | const char * | devnull, |
int | fdno, | ||
int | flags | ||
) | [inline, static] |
static void printVersion | ( | FILE * | fp | ) | [static] |
Display rpm version.
Definition at line 172 of file poptALL.c.
References _, __progname, RPM_NAME, rpmEVR, rpmIsVerbose, rpmlibTimestamp(), rpmlibVendor(), and rpmlibVersion().
Referenced by rpmcliAllArgCallback().
static void rpmcliAllArgCallback | ( | poptContext | con, |
enum poptCallbackReason | reason, | ||
const struct poptOption * | opt, | ||
const char * | arg, | ||
const void * | data | ||
) | [static] |
Definition at line 235 of file poptALL.c.
References _free(), _RPMVSF_NODIGESTS, _RPMVSF_NOSIGNATURES, pgpDigVSFlags, POPT_PREDEFINE, POPT_QUERYTAGS, POPT_SHOWRC, POPT_SHOWVERSION, POPT_UNDEFINE, printVersion(), RMIL_CMDLINE, RPMCLI_POPT_NODIGEST, RPMCLI_POPT_NOHDRCHK, RPMCLI_POPT_NOSIGNATURE, RPMCLI_POPT_TARGETPLATFORM, rpmcliConfigured(), rpmcliEvalSlurp(), rpmcliFini(), rpmCLIMacroContext, rpmcliQueryFlags, rpmcliTargets, rpmDefineMacro(), rpmDisplayQueryTags(), rpmShowRC(), rpmUndefineMacro(), RPMVSF_NOHDRCHK, stpcpy(), VERIFY_DIGEST, VERIFY_HDRCHK, VERIFY_SIGNATURE, xisspace(), xrealloc(), and xstrdup().
void rpmcliConfigured | ( | void | ) |
Make sure that rpm configuration has been read.
Definition at line 182 of file poptALL.c.
References _free(), EXIT_FAILURE, rpmcliInitialized, rpmcliTargets, rpmReadConfigFiles(), and xstrdup().
Referenced by main(), rpmcliAllArgCallback(), and rpmcliInit().
static const char* rpmcliEvalSlurp | ( | const char * | arg | ) | [static] |
Definition at line 206 of file poptALL.c.
References rpmExpand(), rpmiobAppend(), rpmiobFree(), rpmiobNew(), rpmiobSlurp(), and Stat().
Referenced by rpmcliAllArgCallback().
poptContext rpmcliFini | ( | poptContext | optCon | ) |
Destroy most everything needed by an rpm CLI executable context.
optCon | popt context |
Definition at line 486 of file poptALL.c.
References _free(), _headerPool, _rpmdbPool, _rpmjsI, _rpmjsPool, _rpmmiPool, _rpmrepoPool, _rpmrubyI, _rpmrubyPool, evr_tuple_match, evr_tuple_mire, evr_tuple_order, keyids, mireFree(), rpmCLIMacroContext, rpmcliTargets, rpmFreeFilesystems(), rpmFreeMacros(), rpmFreeRpmrc(), rpmioClean(), rpmioFreePool(), rpmjsFree(), rpmnsClean(), rpmrubyFree(), and tagClean().
Referenced by main(), and rpmcliAllArgCallback().
poptContext rpmcliInit | ( | int | argc, |
char *const | argv[], | ||
struct poptOption * | optionsTable | ||
) |
Initialize most everything needed by an rpm CLI executable context.
argc | no. of args |
argv | arg array |
optionsTable | popt option table |
Definition at line 618 of file poptALL.c.
References _, __progname, _debug, _free(), _hdr_stats, _rpmts_stats, bindtextdomain, checkfd(), EXIT_FAILURE, PACKAGE, rpmcliConfigured(), rpmGetPath(), rpmGlob(), rpmIncreaseVerbosity, rpmlog(), RPMLOG_NOTICE, RPMLOG_WARNING, rpmpoptfiles, rpmSecuritySaneFile(), rpmSetVerbosity, setlocale, setprogname, textdomain, USRLIBRPM, and xstrdup().
Referenced by main().
int _debug = 0 [static] |
Definition at line 52 of file poptALL.c.
Referenced by rpmcliInit().
int _fps_debug |
Definition at line 213 of file transaction.c.
int _fsm_debug |
Definition at line 54 of file fsm.c.
Referenced by fsmSetup().
int _fsm_threads |
Definition at line 58 of file fsm.c.
Referenced by fsmSetup().
int _hdr_debug |
Definition at line 21 of file header.c.
Referenced by headerGet(), headerGetPool(), and headerReload().
int _hdr_stats |
Global header stats enabler.
Definition at line 73 of file header.c.
Referenced by headerGetStats(), headerScrub(), and rpmcliInit().
int _hdrqf_debug |
Definition at line 64 of file hdrfmt.c.
Referenced by escapedChar(), formatValue(), headerSprintf(), parseExpression(), and parseFormat().
int _pkgio_debug |
Definition at line 49 of file pkgio.c.
Referenced by headerCheck(), rdLead(), rdSignature(), rpmReadHeader(), rpmWriteHeader(), wrLead(), and wrSignature().
int _print_pkts |
Definition at line 42 of file rpmchecksig.c.
int _psm_debug |
Definition at line 75 of file psm.c.
Referenced by rpmpsmGetPool().
int _psm_threads |
Definition at line 77 of file psm.c.
Referenced by rpmpsmNext().
Definition at line 1791 of file psm.c.
Referenced by rpmpsmGetPool().
int _rpmal_debug |
int _rpmdb_debug |
Definition at line 54 of file rpmdb.c.
Referenced by dbiOpen(), dbiTagsInit(), rpmdbAdd(), rpmdbClose(), rpmdbGetPool(), and rpmdbNew().
int _rpmds_debug |
Definition at line 115 of file rpmds.c.
Referenced by rpmds_alloc(), rpmds_Debug(), rpmds_free(), rpmds_init(), and rpmds_new().
int _rpmds_nopromote |
Definition at line 118 of file rpmds.c.
Referenced by checkPackageSet(), ensureOlder(), rpmdsNew(), rpmtsAddObsoletes(), setEpochPromote(), and unsatisfiedDepend().
Definition at line 183 of file rpmds.c.
Referenced by rpmdsGetPool().
int _rpmfc_debug |
Definition at line 101 of file poptALL.c.
Referenced by main(), rpmdepPrint(), rpmfcClassify(), rpmfcGenerateDepends(), rpmfcGetPool(), and rpmfcMergePR().
Definition at line 2011 of file rpmfc.c.
Referenced by rpmfcGetPool().
int _rpmfi_debug |
Definition at line 60 of file rpmfi.c.
Referenced by rpmfi_alloc(), rpmfi_Debug(), rpmfi_free(), rpmfi_init(), rpmfi_new(), rpmfiGetPool(), rpmfiNew(), rpmfiNext(), rpmfiNextD(), rpmfiOpendir(), and rpmfiStat().
Definition at line 1352 of file rpmfi.c.
Referenced by rpmfiGetPool().
int _rpmgi_debug |
Definition at line 37 of file rpmgi.c.
Referenced by rpmgiGetPool(), rpmgiInitFilter(), rpmgiNext(), and rpmgiWalkPathFilter().
Definition at line 513 of file rpmgi.c.
Referenced by rpmgiGetPool().
int _rpmmi_debug |
Definition at line 57 of file rpmdb.c.
Referenced by dbiMireKeys(), rpmdbMireApply(), rpmmiAddPattern(), rpmmiBNTag(), rpmmiCount(), rpmmiGet(), rpmmiGetPool(), rpmmiGrow(), rpmmiGrowBasename(), rpmmiInit(), rpmmiInstance(), rpmmiNext(), and rpmmiPrune().
int _rpmps_debug |
Definition at line 20 of file rpmps.c.
Referenced by rpmps_alloc(), rpmps_ass_sub(), rpmps_dealloc(), rpmps_Debug(), rpmps_free(), rpmps_getattro(), rpmps_init(), rpmps_iter(), rpmps_iternext(), rpmps_length(), rpmps_new(), rpmps_print(), rpmps_setattro(), rpmps_subscript(), and rpmpsGetPool().
Definition at line 39 of file rpmps.c.
Referenced by rpmpsGetPool().
int _rpmrepo_debug |
int _rpmsq_debug |
int _rpmte_debug |
Definition at line 26 of file rpmte.c.
Referenced by rpmte_Debug(), rpmteGetPool(), and rpmtsiGetPool().
Definition at line 221 of file rpmte.c.
Referenced by rpmteGetPool().
int _rpmts_debug |
Definition at line 86 of file rpmts.c.
Referenced by _rpmtsCheck(), _rpmtsRun(), rpmts_AddErase(), rpmts_AddInstall(), rpmts_alloc(), rpmts_Check(), rpmts_Clean(), rpmts_CloseDB(), rpmts_dealloc(), rpmts_Debug(), rpmts_free(), rpmts_HdrCheck(), rpmts_HdrFromFdno(), rpmts_IDTXglob(), rpmts_IDTXload(), rpmts_InitDB(), rpmts_iter(), rpmts_iternext(), rpmts_Match(), rpmts_new(), rpmts_Next(), rpmts_OpenDB(), rpmts_Order(), rpmts_PgpImportPubkey(), rpmts_PgpPrtPkts(), rpmts_Problems(), rpmts_RebuildDB(), rpmts_Rollback(), rpmts_Run(), rpmts_SetColor(), rpmts_SetDFlags(), rpmts_SetFlags(), rpmts_SetProbFilter(), rpmts_SetVSFlags(), rpmts_SolveCallback(), rpmts_VerifyDB(), rpmtsCallback(), rpmtsGetPool(), rpmtsOpenSDB(), and rpmtsSolve().
int _rpmts_macros |
Definition at line 92 of file rpmts.c.
Referenced by rpmtsFini().
int _rpmts_stats |
Definition at line 89 of file rpmts.c.
Referenced by main(), rpmcliInit(), rpmtsFini(), and setStats().
Definition at line 767 of file rpmte.c.
Referenced by rpmtsiGetPool().
Definition at line 765 of file rpmts.c.
Referenced by rpmtsGetPool().
int _rpmwf_debug |
int global_depFlags = RPMDEPS_FLAG_ADDINDEPS |
unsigned int* keyids |
Definition at line 38 of file package.c.
Referenced by pgpStashKeyid(), and rpmcliFini().
const char* program_name |
struct poptOption rpmcliDepFlagsPoptTable[] |
int rpmcliInitialized = -1 [static] |
Definition at line 157 of file poptALL.c.
Referenced by rpmcliConfigured().
const char* rpmcliTargets = NULL |
Definition at line 154 of file poptALL.c.
Referenced by rpmcliAllArgCallback(), rpmcliConfigured(), rpmcliFini(), and rpmspecQuery().
char* rpmpoptfiles = RPMPOPTFILES [static] |
Definition at line 166 of file poptALL.c.
Referenced by rpmcliInit(), and rpmioInit().