#include "system.h"
#include <fnmatch.h>
#include <fts.h>
#include <rpmcli.h>
#include "rpmps.h"
#include "rpmdb.h"
#include "rpmds.h"
#include "rpmts.h"
#include "debug.h"
Go to the source code of this file.
Data Structures | |
| struct | ftsglob_s |
| struct | Item_s |
Typedefs | |
| typedef Item_s * | Item |
Functions | |
| Item | freeItem (Item item) |
| Item | newItem (void) |
| int | cmpItem (const void *a, const void *b) |
| void | freeItems (void) |
| int | ftsCachePrint (rpmts ts, FILE *fp) |
| int | ftsCacheUpdate (rpmts ts) |
| int | archOkay (const char *pkgArch) |
| int | osOkay (const char *pkgOs) |
| int | ftsStashLatest (FTSENT *fts, rpmts ts) |
| const char * | ftsInfoStr (int fts_info) |
| int | ftsPrint (FTS *ftsp, FTSENT *fts, rpmts ts) |
| void | initGlobs (rpmts ts, const char **argv) |
| Initialize fts and glob structures. | |
| int | main (int argc, char *const argv[]) |
Variables | |
| int | _debug = 0 |
| int | noCache = 0 |
| char ** | ftsSet |
| int | ftsOpts = 0 |
| const char * | bhpath |
| int | bhpathlen = 0 |
| int | bhlvl = -1 |
| ftsglob_s * | bhglobs |
| int | nbhglobs = 5 |
| int | indent = 2 |
| Item * | items = NULL |
| int | nitems = 0 |
| const char * | ftsInfoStrings [] |
| rpmVSFlags | vsflags = 0 |
| poptOption | optionsTable [] |
Definition in file rpmcache.c.
|
|
Referenced by cmpItem(), freeItem(), ftsCachePrint(), ftsCacheUpdate(), ftsStashLatest(), and newItem(). |
|
|
Definition at line 164 of file rpmcache.c. References RPM_MACHTABLE_INSTARCH, and rpmMachineScore(). Referenced by ftsStashLatest(), and rpmtsRun(). |
|
||||||||||||
|
Definition at line 66 of file rpmcache.c. References Item, rpmdsN(), and Item_s::this. Referenced by ftsStashLatest(). |
|
|
Definition at line 51 of file rpmcache.c. References _free(), Item_s::h, headerFree(), Item, Item_s::path, rpmdsFree(), and Item_s::this. Referenced by freeItems(), and ftsStashLatest(). |
|
|
Definition at line 73 of file rpmcache.c. References _free(), freeItem(), items, and nitems. Referenced by main(). |
|
||||||||||||
|
Definition at line 81 of file rpmcache.c. References Item, items, nitems, Item_s::path, and rpmts. Referenced by main(). |
|
|
Definition at line 101 of file rpmcache.c. References Item_s::h, headerAddOrAppendEntry(), HGE_t, int_32, Item, items, Item_s::mtime, nitems, Item_s::path, RMIL_CMDLINE, RPM_INT32_TYPE, RPM_STRING_ARRAY_TYPE, rpmdbAdd(), rpmdbFreeIterator(), rpmdbGetIteratorCount(), rpmdbMatchIterator, rpmDefineMacro(), RPMTAG_CACHECTIME, RPMTAG_CACHEPKGMTIME, RPMTAG_CACHEPKGPATH, RPMTAG_CACHEPKGSIZE, RPMTAG_SIGMD5, rpmts, rpmtsCloseDB(), rpmtsGetRdb(), rpmtsGetTid(), rpmtsInitIterator(), rpmtsOpenDB(), and Item_s::size. Referenced by main(). |
|
|
Definition at line 307 of file rpmcache.c. References ftsInfoStrings. Referenced by ftsPrint(), and rpmfts_print(). |
|
||||||||||||||||
|
Definition at line 313 of file rpmcache.c. References _debug, bhglobs, bhlvl, bhpath, bhpathlen, FTS_D, FTS_DC, FTS_DEFAULT, FTS_DNR, FTS_DOT, FTS_DP, FTS_ERR, FTS_F, _ftsent::fts_info, FTS_INIT, _ftsent::fts_level, _ftsent::fts_name, _ftsent::fts_namelen, FTS_NS, FTS_NSOK, _ftsent::fts_parent, _ftsent::fts_path, _ftsent::fts_pathlen, Fts_set(), FTS_SKIP, FTS_SL, FTS_SLNONE, FTS_W, FTSENT, ftsInfoStr(), ftsStashLatest(), indent, nbhglobs, and rpmts. Referenced by main(). |
|
||||||||||||
|
Definition at line 180 of file rpmcache.c. References alloca(), archOkay(), cmpItem(), Fclose(), FD_t, Ferror(), Fopen(), freeItem(), _ftsent::fts_accpath, _ftsent::fts_level, _ftsent::fts_name, _ftsent::fts_path, _ftsent::fts_statp, FTSENT, Item_s::h, Header, headerFree(), headerGetEntry(), headerLink(), indent, Item, items, Item_s::mtime, newItem(), nitems, osOkay(), Item_s::path, rpmds, rpmdsCompare(), rpmdsFree(), rpmdsThis(), RPMMESS_DEBUG, rpmMessage, rpmRC, RPMRC_OK, rpmReadPackageFile(), RPMSENSE_EQUAL, RPMSENSE_LESS, RPMTAG_ARCH, RPMTAG_OS, RPMTAG_PROVIDENAME, RPMTAG_REQUIRENAME, rpmts, Item_s::size, Stat(), Item_s::this, xrealloc(), and xstrdup(). Referenced by ftsPrint(). |
|
||||||||||||
|
Initialize fts and glob structures.
Definition at line 440 of file rpmcache.c. References _free(), argv, bhglobs, bhpath, bhpathlen, ftsglob_s::fnflags, ftsSet, Glob_pattern_p(), nbhglobs, ftsglob_s::patterns, rpmExpand(), RPMMESS_DEBUG, rpmMessage, rpmts, stpcpy(), and xcalloc(). Referenced by main(). |
|
||||||||||||
|
Definition at line 554 of file rpmcache.c. References _, __progname, _free(), _RPMVSF_NODIGESTS, _RPMVSF_NOSIGNATURES, argv, EXIT_FAILURE, freeItems(), Fts_close(), FTS_COMFOLLOW, FTS_LOGICAL, FTS_NOSTAT, Fts_open(), Fts_read(), ftsCachePrint(), ftsCacheUpdate(), FTSENT, ftsOpts, ftsPrint(), ftsSet, initGlobs(), int_32, noCache, optionsTable, poptContext, poptGetArgs(), rpmcliFini(), rpmcliInit(), rpmcliQueryFlags, rpmExpand(), rpmMkdirPath(), rpmRC, RPMRC_FAIL, RPMRC_OK, rpmts, rpmtsCreate(), rpmtsFree(), rpmtsSetTid(), rpmtsSetVSFlags(), RPMVSF_NOHDRCHK, VERIFY_DIGEST, VERIFY_HDRCHK, VERIFY_SIGNATURE, and vsflags. |
|
|
Definition at line 61 of file rpmcache.c. References Item, and xcalloc(). Referenced by ftsStashLatest(). |
|
|
Definition at line 173 of file rpmcache.c. References RPM_MACHTABLE_INSTOS, and rpmMachineScore(). Referenced by ftsStashLatest(), and rpmtsRun(). |
|
|
Definition at line 18 of file rpmcache.c. Referenced by ftsPrint(). |
|
|
Definition at line 35 of file rpmcache.c. Referenced by ftsPrint(), and initGlobs(). |
|
|
Definition at line 28 of file rpmcache.c. Referenced by ftsPrint(). |
|
|
Definition at line 26 of file rpmcache.c. Referenced by ftsPrint(), and initGlobs(). |
|
|
Definition at line 27 of file rpmcache.c. Referenced by ftsPrint(), and initGlobs(). |
|
|
Initial value: {
"UNKNOWN",
"D",
"DC",
"DEFAULT",
"DNR",
"DOT",
"DP",
"ERR",
"F",
"INIT",
"NS",
"NSOK",
"SL",
"SLNONE",
"W",
}
Definition at line 289 of file rpmcache.c. Referenced by ftsInfoStr(). |
|
|
Definition at line 24 of file rpmcache.c. Referenced by main(). |
|
|
Definition at line 23 of file rpmcache.c. Referenced by initGlobs(), and main(). |
|
|
Definition at line 38 of file rpmcache.c. Referenced by ftsPrint(), and ftsStashLatest(). |
|
|
Definition at line 48 of file rpmcache.c. Referenced by freeItems(), ftsCachePrint(), ftsCacheUpdate(), and ftsStashLatest(). |
|
|
Definition at line 36 of file rpmcache.c. Referenced by ftsPrint(), and initGlobs(). |
|
|
Definition at line 49 of file rpmcache.c. Referenced by freeItems(), ftsCachePrint(), ftsCacheUpdate(), and ftsStashLatest(). |
|
|
Definition at line 21 of file rpmcache.c. Referenced by main(). |
|
|
Definition at line 512 of file rpmcache.c. Referenced by main(). |
|
|
Definition at line 510 of file rpmcache.c. Referenced by main(). |
1.3.5