lib/poptALL.c File Reference

Popt tables for all rpm modes. More...

#include "system.h"
#include <rpmcli.h>
#include <fts.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

static void printVersion (FILE *fp)
 Display rpm version.
void rpmcliConfigured (void)
 Make sure that config files have been read.
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.
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
static 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 _rpmgi_debug
int _rpmps_debug
int _rpmsq_debug
int _rpmsx_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
 Bit(s) from common command line options.
int _ftp_debug
int _av_debug
int _dav_debug
int _rpmio_debug
static int rpmcliInitialized = -1
int ftsOpts = 0
struct poptOption rpmcliFtsPoptTable []
struct poptOption rpmcliAllPoptTable []
 Popt option table for options shared by all modes and executables.


Detailed Description

Popt tables for all rpm modes.

Definition in file poptALL.c.


Define Documentation

#define POPT_PREDEFINE   -996

Definition at line 17 of file poptALL.c.

Referenced by rpmcliAllArgCallback().

#define POPT_QUERYTAGS   -997

Definition at line 16 of file poptALL.c.

Referenced by rpmcliAllArgCallback().

#define POPT_SHOWRC   -998

Definition at line 15 of file poptALL.c.

Referenced by rpmcliAllArgCallback().

#define POPT_SHOWVERSION   -999

Definition at line 14 of file poptALL.c.

Referenced by rpmcliAllArgCallback().


Function Documentation

static void printVersion ( FILE *  fp  )  [static]

Display rpm version.

Definition at line 124 of file poptALL.c.

References _, and rpmEVR.

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

void rpmcliConfigured ( void   ) 

Make sure that config files have been read.

Make sure that rpm configuration has been read.

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

Definition at line 136 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 385 of file poptALL.c.

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 400 of file poptALL.c.

References _, __progname, _debug, bindtextdomain, EXIT_FAILURE, LIBRPMALIAS_FILENAME, LOCALEDIR, PACKAGE, rpmcliConfigured(), RPMCONFIGDIR, rpmIncreaseVerbosity, RPMMESS_NORMAL, rpmSetVerbosity, setlocale, setprogname, and textdomain.

Referenced by main().


Variable Documentation

int _av_debug

Definition at line 121 of file rpmio.c.

Definition at line 131 of file rpmio.c.

int _debug = 0 [static]

Definition at line 304 of file transaction.c.

Referenced by findFps(), and fpsCompare().

Definition at line 38 of file fsm.c.

Definition at line 42 of file fsm.c.

Referenced by fsmNext().

Definition at line 20 of file header.c.

Definition at line 25 of file rpmchecksig.c.

Definition at line 38 of file psm.c.

Referenced by XrpmpsmLink(), and XrpmpsmUnlink().

Definition at line 40 of file psm.c.

Referenced by rpmpsmNext().

Definition at line 18 of file rpmal.c.

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

Definition at line 49 of file rpmdb.c.

Referenced by XrpmdbLink(), and XrpmdbUnlink().

Definition at line 61 of file poptALL.c.

Referenced by main(), and rpmfcGenerateDepends().

Definition at line 26 of file rpmgi.c.

Referenced by rpmgiInitFilter(), rpmgiNext(), rpmgiWalkPathFilter(), XrpmgiLink(), and XrpmgiUnlink().

Definition at line 18 of file rpmps.c.

Referenced by XrpmpsLink(), and XrpmpsUnlink().

Definition at line 189 of file rpmsq.c.

Definition at line 17 of file rpmsx.c.

Referenced by rpmsxFree(), rpmsxNext(), XrpmsxLink(), and XrpmsxUnlink().

Definition at line 20 of file rpmte.c.

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

Definition at line 69 of file rpmts.c.

Referenced by rpmtsFree(), and setStats().

int ftsOpts = 0

Definition at line 234 of file poptALL.c.

Referenced by main(), and rpmcliArgIter().

int noLibio

Definition at line 112 of file poptALL.c.

Referenced by Fclose(), Fdopen(), and ufdClose().

const char* program_name

Definition at line 7 of file poptALL.c.

struct poptOption rpmcliFtsPoptTable[]

Initial value:

 {
 { "comfollow", '\0', POPT_BIT_SET,     &ftsOpts, FTS_COMFOLLOW,
         "FTS_COMFOLLOW: follow command line symlinks" , NULL },
 { "logical", '\0', POPT_BIT_SET,       &ftsOpts, FTS_LOGICAL,
         "FTS_LOGICAL: logical walk" , NULL },
 { "nochdir", '\0', POPT_BIT_SET,       &ftsOpts, FTS_NOCHDIR,
         "FTS_NOCHDIR: don't change directories" , NULL },
 { "nostat", '\0', POPT_BIT_SET,        &ftsOpts, FTS_NOSTAT,
         "FTS_NOSTAT: don't get stat info" , NULL },
 { "physical", '\0', POPT_BIT_SET,      &ftsOpts, FTS_PHYSICAL,
         "FTS_PHYSICAL: physical walk" , NULL },
 { "seedot", '\0', POPT_BIT_SET,        &ftsOpts, FTS_SEEDOT,
         "FTS_SEEDOT: return dot and dot-dot" , NULL },
 { "xdev", '\0', POPT_BIT_SET,          &ftsOpts, FTS_XDEV,
         "FTS_XDEV: don't cross devices" , NULL },
 { "whiteout", '\0', POPT_BIT_SET,      &ftsOpts, FTS_WHITEOUT,
         "FTS_WHITEOUT: return whiteout information" , NULL },
   POPT_TABLEEND
}

Definition at line 237 of file poptALL.c.

int rpmcliInitialized = -1 [static]

Definition at line 119 of file poptALL.c.

Referenced by rpmcliAllArgCallback(), and rpmcliConfigured().

const char* rpmcliPipeOutput = NULL

Definition at line 92 of file poptALL.c.

Referenced by main().

const char* rpmcliRcfile = NULL

Definition at line 95 of file poptALL.c.

Referenced by main(), and rpmcliConfigured().

const char* rpmcliRootDir = "/"

Definition at line 98 of file poptALL.c.

Referenced by main().


Generated on Fri Dec 12 13:02:10 2008 for rpm by  doxygen 1.5.6