rpm
5.2.1
|
Popt tables for all rpmio-only executables. More...
#include "system.h"
#include <poptIO.h>
#include <rpmficl.h>
#include <rpmjs.h>
#include <rpmperl.h>
#include <rpmpython.h>
#include <rpmruby.h>
#include <rpmtcl.h>
#include "debug.h"
Go to the source code of this file.
Defines | |
#define | _RPMPGP_INTERNAL |
#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. | |
void | rpmioConfigured (void) |
static void | rpmioAllArgCallback (poptContext con, enum poptCallbackReason reason, const struct poptOption *opt, const char *arg, const void *data) |
poptContext | rpmioFini (poptContext optCon) |
static int | checkfd (const char *devnull, int fdno, int flags) |
poptContext | rpmioInit (int argc, char *const argv[], struct poptOption *optionsTable) |
Variables | |
const char * | program_name |
int | __debug = 0 |
int | _ar_debug |
int | _av_debug |
int | _cpio_debug |
int | _dav_debug |
int | _ftp_debug |
int | _fts_debug |
int | _ht_debug |
int | _iosm_debug |
int | noLibio |
int | _pgp_debug |
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 |
pgpHashAlgo | rpmioDigestHashAlgo = -1 |
struct poptOption | rpmioDigestPoptTable [] |
Digest options using popt. | |
int | rpmioFtsOpts = 0 |
struct poptOption | rpmioFtsPoptTable [] |
struct poptOption | rpmioAllPoptTable [] |
Popt tables for all rpmio-only executables.
Definition in file poptIO.c.
#define POPT_CRYPTO -993 |
Definition at line 44 of file poptIO.c.
Referenced by rpmioAllArgCallback().
#define POPT_SHOWVERSION -999 |
Definition at line 42 of file poptIO.c.
Referenced by rpmioAllArgCallback().
#define POPT_UNDEFINE -994 |
Definition at line 43 of file poptIO.c.
Referenced by rpmioAllArgCallback().
static int checkfd | ( | const char * | devnull, |
int | fdno, | ||
int | flags | ||
) | [inline, static] |
static void printVersion | ( | FILE * | fp | ) | [static] |
Display rpm version.
Definition at line 164 of file poptIO.c.
References _, __progname, RPM_NAME, and rpmioEVR.
Referenced by rpmioAllArgCallback().
static void rpmioAllArgCallback | ( | poptContext | con, |
enum poptCallbackReason | reason, | ||
const struct poptOption * | opt, | ||
const char * | arg, | ||
const void * | data | ||
) | [static] |
Definition at line 186 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, rpmnssImplVecs, rpmSetVerbosity, rpmsslImplVecs, rpmUndefineMacro(), xisspace(), xstrcasecmp(), and xstrdup().
void rpmioConfigured | ( | void | ) |
Definition at line 171 of file poptIO.c.
References EXIT_FAILURE, and rpmioInitialized.
Referenced by rpmioAllArgCallback(), and rpmioInit().
poptContext rpmioFini | ( | poptContext | optCon | ) |
Definition at line 455 of file poptIO.c.
References rpmCLIMacroContext, rpmFreeMacros(), and rpmioClean().
Referenced by main(), and rpmioAllArgCallback().
poptContext rpmioInit | ( | int | argc, |
char *const | argv[], | ||
struct poptOption * | optionsTable | ||
) |
Definition at line 488 of file poptIO.c.
References _, __debug, __progname, _free(), bindtextdomain, checkfd(), EXIT_FAILURE, LOCALEDIR, PACKAGE, rpmGlob(), rpmIncreaseVerbosity, rpmioConfigured(), rpmlog(), RPMLOG_NOTICE, RPMLOG_WARNING, rpmpoptfiles, rpmSecuritySaneFile(), rpmSetVerbosity, setlocale, setprogname, textdomain, USRLIBRPM, and xstrdup().
Referenced by main().
int __debug = 0 |
Definition at line 47 of file poptIO.c.
Referenced by rpmioInit().
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 168 of file rpmio.c.
Referenced by avClosedir(), avContextAdd(), avOpendir(), and avReaddir().
int _cpio_debug |
Definition at line 20 of file cpio.c.
Referenced by cpioHeaderRead(), cpioHeaderWrite(), cpioRead(), cpioTrailerWrite(), and cpioWrite().
int _dav_debug |
int _ftp_debug |
Definition at line 173 of file rpmio.c.
Referenced by checkResponse(), ftpCommand(), ftpLstat(), ftpOpendir(), ftpReadlink(), ftpReq(), ftpStat(), httpReq(), httpResp(), and tcpConnect().
int _fts_debug |
Definition at line 161 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 67 of file iosm.c.
Referenced by iosmSetup().
int _pgp_debug |
Definition at line 26 of file rpmpgp.c.
Referenced by digGetPool(), pgpMpiSet(), pgpPrtSig(), and rpmbcMpiItem().
int _rpmio_debug |
Definition at line 163 of file rpmio.c.
Referenced by Access(), Chdir(), Chmod(), Chown(), Chroot(), Closedir(), Fchmod(), Fchown(), fdFgets(), fdGetPool(), Fdopen(), fdWritable(), Fopen(), Fstat(), Glob(), Globfree(), Lchown(), Link(), Lseek(), Lstat(), Mkdir(), Mkfifo(), Mknod(), Open(), Opendir(), Readdir(), Readlink(), Realpath(), Rename(), Rmdir(), rpmioAccess(), Stat(), Symlink(), ufdOpen(), ufdRead(), ufdWrite(), Unlink(), Utime(), and Utimes().
int _rpmiob_debug |
Definition at line 14 of file rpmiob.c.
Referenced by rpmiobGetPool().
int _rpmlua_debug |
int _rpmsq_debug |
int _rpmzq_debug |
int _tar_debug |
Definition at line 21 of file tar.c.
Referenced by tarHeaderRead(), tarHeaderReadName(), tarHeaderWrite(), tarHeaderWriteBlock(), tarHeaderWriteName(), tarRead(), tarTrailerWrite(), and tarWrite().
int _xar_debug |
Definition at line 68 of file rpmxar.c.
Referenced by rpmxarGetPool(), rpmxarNext(), rpmxarPull(), rpmxarPush(), rpmxarSwapBuf(), and xarRead().
int noLibio |
Definition at line 150 of file rpmio.c.
Referenced by Fclose(), Fdopen(), and ufdClose().
const char* program_name |
struct poptOption rpmioAllPoptTable[] |
Definition at line 110 of file poptIO.c.
Referenced by main(), and rpmdcFiniFile().
struct poptOption rpmioDigestPoptTable[] |
Digest options using popt.
Definition at line 115 of file poptIO.c.
Referenced by rpmdcAlgo2Name(), rpmdcFiniFile(), rpmdcInitFile(), and rpmdcName2Algo().
const char* rpmioEVR = VERSION |
Definition at line 95 of file poptIO.c.
Referenced by printVersion().
int rpmioFtsOpts = 0 |
Definition at line 312 of file poptIO.c.
Referenced by main(), mtreeArgCallback(), rpmcliArgIter(), rpmcliInstall(), rpmcliSign(), and rpmReSign().
struct poptOption rpmioFtsPoptTable[] |
{ { "comfollow", '\0', POPT_BIT_SET, &rpmioFtsOpts, FTS_COMFOLLOW, "FTS_COMFOLLOW: follow command line symlinks" , NULL }, { "logical", '\0', POPT_BIT_SET, &rpmioFtsOpts, FTS_LOGICAL, "FTS_LOGICAL: logical walk" , NULL }, { "nochdir", '\0', POPT_BIT_SET, &rpmioFtsOpts, FTS_NOCHDIR, "FTS_NOCHDIR: don't change directories" , NULL }, { "nostat", '\0', POPT_BIT_SET, &rpmioFtsOpts, FTS_NOSTAT, "FTS_NOSTAT: don't get stat info" , NULL }, { "physical", '\0', POPT_BIT_SET, &rpmioFtsOpts, FTS_PHYSICAL, "FTS_PHYSICAL: physical walk" , NULL }, { "seedot", '\0', POPT_BIT_SET, &rpmioFtsOpts, FTS_SEEDOT, "FTS_SEEDOT: return dot and dot-dot" , NULL }, { "xdev", '\0', POPT_BIT_SET, &rpmioFtsOpts, FTS_XDEV, "FTS_XDEV: don't cross devices" , NULL }, { "whiteout", '\0', POPT_BIT_SET, &rpmioFtsOpts, FTS_WHITEOUT, "FTS_WHITEOUT: return whiteout information" , NULL }, POPT_TABLEEND }
int rpmioInitialized = -1 [static] |
Definition at line 98 of file poptIO.c.
Referenced by rpmioConfigured().
const char* rpmioPipeOutput = NULL |
const char* rpmioRootDir = "/" |