rpm
5.4.15
|
Popt tables for all rpmio-only executables. More...
#include "system.h"
#include <poptIO.h>
#include <rpmasn.h>
#include <rpmtpm.h>
#include <mongo.h>
#include <rpmaug.h>
#include <rpmbag.h>
#include <rpmbf.h>
#include <rpmcudf.h>
#include <rpmcvs.h>
#include <rpmficl.h>
#include <rpmgit.h>
#include <rpmhkp.h>
#include <rpmjs.h>
#include <rpmmrb.h>
#include <rpmnix.h>
#include <rpmodbc.h>
#include <rpmperl.h>
#include <rpmpython.h>
#include <rpmruby.h>
#include <rpmsql.h>
#include <rpmsquirrel.h>
#include <rpmsvn.h>
#include <rpmtcl.h>
#include <rpmsm.h>
#include <rpmsp.h>
#include <rpmsx.h>
#include <set.h>
#include "debug.h"
Go to the source code of this file.
Macros | |
#define | POPT_ARGFLAG_TOGGLE 0 |
#define | POPT_SHOWVERSION -999 |
#define | POPT_UNDEFINE -994 |
#define | POPT_CRYPTO -993 |
Functions | |
static void | printVersion (FILE *fp) |
Display rpm version. More... | |
void | rpmioConfigured (void) |
Make sure that rpm configuration has been read. More... | |
static void | rpmioAllArgCallback (poptContext con, enum poptCallbackReason reason, const struct poptOption *opt, const char *arg, const void *data) |
poptContext | rpmioFini (poptContext optCon) |
Destroy most everything needed by an rpm CLI executable context. More... | |
static int | checkfd (const char *devnull, int fdno, int flags) |
poptContext | rpmioInit (int argc, char *const argv[], struct poptOption *optionsTable) |
Initialize most everything needed by an rpmio executable context. More... | |
static char * | matchchar (char *p, char pl, char pr) |
Return text between pl and matching pr characters. More... | |
rpmioP | rpmioPFree (rpmioP P) |
Destroy a rpmioP object. More... | |
rpmRC | rpmioParse (rpmioP *Pptr, const char *str) |
Parse next command out of a string incrementally. More... | |
Variables | |
int | _rpmsvn_debug |
const char * | __progname |
int | __debug = 0 |
int | _ar_debug |
int | _av_debug |
int | _cpio_debug |
int | _ctx_debug |
int | _dav_debug |
int | _ftp_debug |
int | _fts_debug |
int | _ht_debug |
int | _html_debug |
int | _iosm_debug |
int | noLibio |
int | _pgp_debug |
int | _pgp_print |
int | _rpmio_debug |
int | _rpmiob_debug |
int | _rpmlua_debug |
int | _rpmsq_debug |
int | _rpmzq_debug |
int | _tar_debug |
int | _xar_debug |
const char * | rpmioPipeOutput = NULL |
const char * | rpmioRootDir = "/" |
const char * | rpmioEVR = VERSION |
static int | rpmioInitialized = -1 |
int | _rpmio_popt_context_flags = 0 |
pgpHashAlgo | rpmioDigestHashAlgo = (pgpHashAlgo) -1 |
struct poptOption | rpmioDigestPoptTable [] |
Digest options using popt. More... | |
int | rpmioFtsOpts = 0 |
struct poptOption | rpmioFtsPoptTable [] |
Popt option table for options to set Fts(3) options. More... | |
struct poptOption | rpmioAllPoptTable [] |
Popt option table for options shared by all modes and executables. More... | |
Popt tables for all rpmio-only executables.
Definition in file poptIO.c.
#define POPT_CRYPTO -993 |
Definition at line 73 of file poptIO.c.
Referenced by rpmioAllArgCallback().
#define POPT_SHOWVERSION -999 |
Definition at line 71 of file poptIO.c.
Referenced by rpmioAllArgCallback().
#define POPT_UNDEFINE -994 |
Definition at line 72 of file poptIO.c.
Referenced by rpmioAllArgCallback().
|
inlinestatic |
|
static |
Return text between pl and matching pr characters.
p | start of text |
pl | left char, i.e. '[', '(', '{', etc. |
pr | right char, i.e. ']', ')', '}', etc. |
Definition at line 937 of file poptIO.c.
Referenced by rpmioParse().
|
static |
|
static |
Definition at line 397 of file poptIO.c.
References _free(), EXIT_FAILURE, pgpImplVecs, POPT_CRYPTO, POPT_SHOWVERSION, POPT_UNDEFINE, printVersion(), RMIL_CMDLINE, rpmbcImplVecs, rpmCLIMacroContext, rpmDefineMacro(), rpmExpand(), rpmgcImplVecs, rpmIncreaseVerbosity, rpmioConfigured(), rpmioFini(), rpmlog(), RPMLOG_ERR, RPMLOG_WARNING, rpmltcImplVecs, rpmnssImplVecs, rpmSetVerbosity, rpmsslImplVecs, rpmUndefineMacro(), xisspace(), xstrcasecmp(), and xstrdup().
void rpmioConfigured | ( | void | ) |
Make sure that rpm configuration has been read.
Definition at line 382 of file poptIO.c.
References EXIT_FAILURE.
Referenced by rpmioAllArgCallback(), and rpmioInit().
poptContext rpmioFini | ( | poptContext | optCon | ) |
Destroy most everything needed by an rpm CLI executable context.
optCon | popt context |
Definition at line 734 of file poptIO.c.
References rpmCLIMacroContext, rpmFreeMacros(), and rpmioClean().
Referenced by main(), and rpmioAllArgCallback().
poptContext rpmioInit | ( | int | argc, |
char *const | argv[], | ||
struct poptOption * | optionsTable | ||
) |
Initialize most everything needed by an rpmio executable context.
argc | no. of args |
argv | arg array |
optionsTable | popt option table |
Definition at line 767 of file poptIO.c.
References _, _free(), bindtextdomain, checkfd(), EXIT_FAILURE, i, LOCALEDIR, PACKAGE, rpmGlob(), rpmIncreaseVerbosity, rpmioConfigured(), rpmlog(), RPMLOG_NOTICE, RPMLOG_WARNING, rpmSecuritySaneFile(), rpmSetVerbosity, setlocale, setprogname, textdomain, USRLIBRPM, and xstrdup().
Referenced by main(), and rpmrepoInitPopt().
Parse next command out of a string incrementally.
*Pptr | parser state |
str | string to parse |
Definition at line 966 of file poptIO.c.
References _free(), rpmioP_s::ac, argvAdd(), argvFree(), rpmioP_s::av, b, matchchar(), rpmioP_s::next, RPMRC_FAIL, RPMRC_NOTFOUND, RPMRC_OK, rpmioP_s::str, xcalloc(), and xstrdup().
Referenced by rpmaugRun().
Destroy a rpmioP object.
P | parser state |
Definition at line 956 of file poptIO.c.
References _free(), argvFree(), rpmioP_s::av, and rpmioP_s::str.
int _ar_debug |
Definition at line 23 of file ar.c.
Referenced by arHeaderRead(), arHeaderWrite(), arRead(), arTrailerWrite(), and arWrite().
int _av_debug |
Definition at line 185 of file rpmio.c.
Referenced by avClosedir(), avOpendir(), avReaddir(), avxGetPool(), and rpmavxAdd().
int _cpio_debug |
Definition at line 20 of file cpio.c.
Referenced by cpioHeaderRead(), cpioHeaderWrite(), cpioRead(), cpioTrailerWrite(), and cpioWrite().
int _ctx_debug |
Definition at line 113 of file digest.c.
Referenced by ctxGetPool().
int _ftp_debug |
Definition at line 190 of file rpmio.c.
Referenced by ftpLstat(), ftpOpendir(), ftpReadlink(), and ftpStat().
int _fts_debug |
Definition at line 165 of file fts.c.
Referenced by Fts_children(), Fts_close(), Fts_open(), Fts_read(), and Fts_set().
int _ht_debug |
Definition at line 13 of file rpmhash.c.
Referenced by htGetPool().
int _iosm_debug |
Definition at line 75 of file iosm.c.
Referenced by iosmSetup().
int _rpmio_debug |
Definition at line 180 of file rpmio.c.
Referenced by Access(), Chdir(), Chflags(), Chmod(), Chown(), Chroot(), Closedir(), Fadvise(), Fallocate(), Fchflags(), Fchmod(), Fchown(), Fstat(), Glob(), Globfree(), Lchflags(), Lchmod(), Lchown(), Link(), Lseek(), Lstat(), Lutimes(), Mkdir(), Mkfifo(), Mknod(), Open(), Opendir(), Readdir(), Readlink(), Realpath(), Rename(), Rewinddir(), Rmdir(), Scandir(), Seekdir(), Stat(), Symlink(), Telldir(), Unlink(), Utime(), and Utimes().
int _rpmiob_debug |
Definition at line 14 of file rpmiob.c.
Referenced by rpmiobAppend(), rpmiobBuf(), rpmiobEmpty(), rpmiobFini(), rpmiobGetPool(), rpmiobLen(), rpmiobNew(), rpmiobRTrim(), and rpmiobStr().
int _rpmzq_debug |
int noLibio |
Definition at line 167 of file rpmio.c.
Referenced by Fclose(), Fdopen(), and ufdClose().
struct poptOption rpmioAllPoptTable[] |
pgpHashAlgo rpmioDigestHashAlgo = (pgpHashAlgo) -1 |
Definition at line 147 of file poptIO.c.
Referenced by main(), rpmdcFiniFile(), and rpmrepoInitPopt().
struct poptOption rpmioDigestPoptTable[] |
Digest options using popt.
Popt option table for options to select digest algorithm.
Definition at line 152 of file poptIO.c.
Referenced by rpmdcAlgo2Name(), rpmdcFiniFile(), rpmdcInitFile(), and rpmdcName2Algo().
int rpmioFtsOpts = 0 |
Definition at line 539 of file poptIO.c.
Referenced by main(), mtreeArgCallback(), rpmcliArgIter(), rpmcliInstall(), rpmcliSign(), rpmrepoInitPopt(), and rpmReSign().
struct poptOption rpmioFtsPoptTable[] |
Popt option table for options to set Fts(3) options.