#include "rpmhash.h"
#include "header.h"
Go to the source code of this file.
Data Structures | |
| struct | fingerPrint_s |
| Associates a trailing sub-directory and final base name with an existing directory finger print. More... | |
| struct | fprintCache_s |
| Finger print cache. More... | |
| struct | fprintCacheEntry_s |
| Finger print cache entry. More... | |
Defines | |
| #define | FP_ENTRY_EQUAL(a, b) (((a)->dev == (b)->dev) && ((a)->ino == (b)->ino)) |
| #define | FP_EQUAL(a, b) |
Typedefs | |
| typedef fprintCache_s * | fingerPrintCache |
| typedef fingerPrint_s | fingerPrint |
Functions | |
| int | rpmdbFindFpList (rpmdb db, fingerPrint *fpList, dbiIndexSet *matchList, int numItems) |
| fingerPrintCache | fpCacheCreate (int sizeHint) |
| Create finger print cache. | |
| fingerPrintCache | fpCacheFree (fingerPrintCache cache) |
| Destroy finger print cache. | |
| fingerPrint | fpLookup (fingerPrintCache cache, const char *dirName, const char *baseName, int scareMemory) |
| Return finger print of a file path. | |
| unsigned int | fpHashFunction (const void *key) |
| Return hash value for a finger print. | |
| int | fpEqual (const void *key1, const void *key2) |
| Compare two finger print entries. | |
| void | fpLookupList (fingerPrintCache cache, const char **dirNames, const char **baseNames, const int *dirIndexes, int fileCount, fingerPrint *fpList) |
| Return finger prints of an array of file paths. | |
Definition in file fprint.h.
|
|
|
|
|
Value: ( \
FP_ENTRY_EQUAL((a).entry, (b).entry) && \
!strcmp((a).baseName, (b).baseName) && ( \
((a).subDir == (b).subDir) || \
((a).subDir && (b).subDir && !strcmp((a).subDir, (b).subDir)) \
) \
)
Definition at line 56 of file fprint.h. Referenced by findFps(), fpEqual(), rpmdbFindByFile(), and rpmdbFindFpList(). |
|
|
Definition at line 19 of file fprint.h. Referenced by doLookup(), fpEqual(), fpHashFunction(), fpLookup(), fpLookupList(), rpmdbFindByFile(), and rpmdbFindFpList(). |
|
|
Definition at line 14 of file fprint.h. Referenced by cacheContainsDirectory(), doLookup(), fpCacheCreate(), fpCacheFree(), fpLookup(), fpLookupList(), rpmdbFindByFile(), rpmdbFindFpList(), and rpmtsRun(). |
|
|
Create finger print cache.
Definition at line 13 of file fprint.c. References fingerPrintCache, hashEqualityString(), hashFunctionString(), fprintCache_s::ht, htCreate(), and xmalloc(). Referenced by rpmdbFindByFile(), rpmdbFindFpList(), and rpmtsRun(). |
|
|
Destroy finger print cache.
Definition at line 23 of file fprint.c. References fingerPrintCache, fprintCache_s::ht, and htFree(). Referenced by rpmdbFindByFile(), rpmdbFindFpList(), and rpmtsRun(). |
|
||||||||||||
|
Compare two finger print entries. This routine is exactly equivalent to the FP_EQUAL macro.
Definition at line 216 of file fprint.c. References fingerPrint, and FP_EQUAL. Referenced by rpmtsRun(). |
|
|
Return hash value for a finger print. Hash based on dev and inode only!
Definition at line 195 of file fprint.c. References fingerPrint_s::baseName, fprintCacheEntry_s::dev, fingerPrint_s::entry, fingerPrint, and fprintCacheEntry_s::ino. Referenced by rpmtsRun(). |
|
||||||||||||||||||||
|
Return finger print of a file path.
Definition at line 189 of file fprint.c. References doLookup(), fingerPrint, and fingerPrintCache. Referenced by rpmdbFindByFile(). |
|
||||||||||||||||||||||||||||
|
Return finger prints of an array of file paths.
Definition at line 236 of file fprint.c. References fingerPrint_s::baseName, doLookup(), fingerPrint_s::entry, fingerPrint, fingerPrintCache, and fingerPrint_s::subDir. Referenced by rpmdbFindFpList(), and rpmtsRun(). |
1.3.5