rpm
5.4.15
|
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 <rpmjni.h>
#include <rpmjs.h>
#include <rpmruby.h>
#include <rpmtag.h>
#include <rpmtypes.h>
#include <rpmversion.h>
#include <rpmmdb.h>
#include <rpmns.h>
#include <rpmrc.h>
#include <fs.h>
#include <rpmcli.h>
#include "debug.h"
Go to the source code of this file.
Macros | |
#define | _RPMIOB_INTERNAL |
#define | QVA_ISSET(_qvaflags, _FLAG) ((_qvaflags) & (VERIFY_##_FLAG)) |
#define | VSF_ISSET(_vsflags, _FLAG) ((_vsflags) & (RPMVSF_##_FLAG)) |
#define | VSF_SET(_vsflags, _FLAG) (_vsflags) |= (RPMVSF_##_FLAG) |
#define | VSF_CLR(_vsflags, _FLAG) (_vsflags) &= ~(RPMVSF_##_FLAG) |
#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. More... | |
void | rpmcliConfigured (void) |
Make sure that rpm configuration has been read. More... | |
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. More... | |
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. More... | |
Popt tables for all rpm modes.
Definition in file poptALL.c.
#define POPT_PREDEFINE -996 |
Definition at line 68 of file poptALL.c.
Referenced by rpmcliAllArgCallback().
#define POPT_QUERYTAGS -997 |
Definition at line 67 of file poptALL.c.
Referenced by rpmcliAllArgCallback().
#define POPT_SHOWRC -998 |
Definition at line 66 of file poptALL.c.
Referenced by rpmcliAllArgCallback().
#define POPT_SHOWVERSION -999 |
Definition at line 65 of file poptALL.c.
Referenced by rpmcliAllArgCallback().
#define POPT_UNDEFINE -994 |
Definition at line 69 of file poptALL.c.
Referenced by rpmcliAllArgCallback().
#define QVA_ISSET | ( | _qvaflags, | |
_FLAG | |||
) | ((_qvaflags) & (VERIFY_##_FLAG)) |
#define VSF_CLR | ( | _vsflags, | |
_FLAG | |||
) | (_vsflags) &= ~(RPMVSF_##_FLAG) |
Definition at line 58 of file poptALL.c.
Referenced by rpmcliAllArgCallback().
#define VSF_ISSET | ( | _vsflags, | |
_FLAG | |||
) | ((_vsflags) & (RPMVSF_##_FLAG)) |
#define VSF_SET | ( | _vsflags, | |
_FLAG | |||
) | (_vsflags) |= (RPMVSF_##_FLAG) |
Definition at line 57 of file poptALL.c.
Referenced by rpmcliAllArgCallback().
|
inlinestatic |
|
static |
Display rpm version.
Definition at line 194 of file poptALL.c.
References _, __progname, RPM_NAME, rpmEVR, rpmIsVerbose, rpmlibTimestamp(), rpmlibVendor(), and rpmlibVersion().
Referenced by rpmcliAllArgCallback().
|
static |
Definition at line 257 of file poptALL.c.
References _free(), arg, 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, rpmDefineMacro(), rpmDisplayQueryTags(), rpmShowRC(), rpmUndefineMacro(), stpcpy(), VERIFY_DIGEST, VERIFY_HDRCHK, VERIFY_SIGNATURE, VSF_CLR, VSF_SET, xisspace(), xrealloc, and xstrdup().
void rpmcliConfigured | ( | void | ) |
Make sure that rpm configuration has been read.
Definition at line 204 of file poptALL.c.
References _free(), EXIT_FAILURE, rpmReadConfigFiles(), and xstrdup().
Referenced by main(), rpmcliAllArgCallback(), and rpmcliInit().
|
static |
Definition at line 228 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 523 of file poptALL.c.
References _free(), _headerPool, _rpmdbPool, _rpmjsI, _rpmjsPool, _rpmmdbI, _rpmmdbPool, _rpmmiPool, _rpmrepoPool, _rpmrubyI, _rpmrubyPool, _rpmwfPool, _scpPool, evr_tuple_match, evr_tuple_mire, evr_tuple_order, mireFree(), rpmCLIMacroContext, rpmFreeFilesystems(), rpmFreeMacros(), rpmFreeRpmrc(), rpmioClean(), rpmioFreePool(), rpmjsFree(), rpmmdbFree(), 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 669 of file poptALL.c.
References _, __progname, _free(), _rpmts_stats, bindtextdomain, checkfd(), EXIT_FAILURE, i, PACKAGE, rpmcliConfigured(), rpmGetPath(), rpmGlob(), rpmIncreaseVerbosity, rpmlog(), RPMLOG_NOTICE, RPMLOG_WARNING, rpmSecuritySaneFile(), rpmSetVerbosity, setlocale, setprogname, textdomain, USRLIBRPM, and xstrdup().
Referenced by main().
const char* __progname |
Definition at line 66 of file poptIO.c.
Referenced by printVersion(), and rpmcliInit().
int _fps_debug |
Definition at line 232 of file transaction.c.
int _fsm_debug |
Definition at line 61 of file fsm.c.
Referenced by fsmSetup().
int _fsm_threads |
Definition at line 65 of file fsm.c.
Referenced by fsmSetup().
int _print_pkts |
Definition at line 47 of file rpmchecksig.c.
int _psm_threads |
Definition at line 80 of file psm.c.
Referenced by rpmpsmNext().
rpmioPool _psmPool |
Definition at line 1832 of file psm.c.
Referenced by rpmpsmGetPool().
rpmioPool _rpmalPool |
Definition at line 167 of file rpmal.c.
Referenced by rpmalGetPool().
int _rpmds_debug |
Definition at line 123 of file rpmds.c.
Referenced by rpmds_alloc(), rpmds_Debug(), rpmds_free(), rpmds_init(), and rpmds_new().
int _rpmds_nopromote |
Definition at line 126 of file rpmds.c.
Referenced by checkPackageSet(), ensureOlder(), rpmtsAddObsoletes(), setEpochPromote(), and unsatisfiedDepend().
rpmioPool _rpmdsPool |
Definition at line 191 of file rpmds.c.
Referenced by rpmdsGetPool().
int _rpmfc_debug |
Definition at line 123 of file poptALL.c.
Referenced by main(), rpmdepPrint(), rpmfcClassify(), rpmfcGenerateDepends(), rpmfcGetPool(), and rpmfcMergePR().
rpmioPool _rpmfcPool |
Definition at line 2180 of file rpmfc.c.
Referenced by rpmfcGetPool().
int _rpmfi_debug |
Definition at line 67 of file rpmfi.c.
Referenced by rpmfi_alloc(), rpmfi_Debug(), rpmfi_free(), rpmfi_init(), and rpmfi_new().
rpmioPool _rpmfiPool |
Definition at line 1357 of file rpmfi.c.
Referenced by rpmfiGetPool().
rpmioPool _rpmgiPool |
Definition at line 525 of file rpmgi.c.
Referenced by rpmgiGetPool().
int _rpmps_debug |
Definition at line 26 of file rpmps.c.
Referenced by rpmps_alloc(), rpmps_ass_sub(), rpmps_dealloc(), rpmps_Debug(), rpmps_free(), rpmps_init(), rpmps_iter(), rpmps_iternext(), rpmps_length(), rpmps_new(), rpmps_print(), and rpmps_subscript().
rpmioPool _rpmpsPool |
Definition at line 45 of file rpmps.c.
Referenced by rpmpsGetPool().
int _rpmte_debug |
Definition at line 26 of file rpmte.c.
Referenced by rpmte_Debug().
rpmioPool _rpmtePool |
Definition at line 227 of file rpmte.c.
Referenced by rpmteGetPool().
int _rpmts_debug |
Definition at line 93 of file rpmts.c.
Referenced by _rpmtsCheck(), _rpmtsOrder(), _rpmtsRun(), and main().
int _rpmts_stats |
Definition at line 96 of file rpmts.c.
Referenced by main(), rpmcliInit(), and setStats().
rpmioPool _rpmtsiPool |
Definition at line 773 of file rpmte.c.
Referenced by rpmtsiGetPool().
rpmioPool _rpmtsPool |
Definition at line 774 of file rpmts.c.
Referenced by rpmtsGetPool().
int global_depFlags = RPMDEPS_FLAG_ADDINDEPS |
unsigned int* keyids |
Definition at line 32 of file package.c.
Referenced by pgpStashKeyid().
struct poptOption rpmcliAllPoptTable[] |
rpmQueryFlags rpmcliQueryFlags |
const char* rpmcliTargets = NULL |
Definition at line 176 of file poptALL.c.
Referenced by rpmspecQuery().
|
static |