30 #include <sys/types.h>
83 if (value1->
dev < value2->
dev) {
85 }
else if (value1->
dev > value2->
dev) {
87 }
else if (value1->
ino < value2->
ino) {
115 void add(
const struct stat *,
const unsigned int);
117 int get(
const struct stat *);
118 void remove(
const struct stat *);
124 std::set<ScanResult *, ScanResultComperator> *
s;
unsigned int response
Result of scan.
bool operator()(ScanResult *value1, ScanResult *value2) const
Compares two ScanResults.
std::set< ScanResult *, ScanResultComperator > * s
ScanResult * left
Left neighbour in double linked list.
ScanResult root
Root for double linked list.
time_t age
Time when this record entered the cache.
void clear()
Removes all entries from the cache.
Result of scanning a file for viruses.
Compares two ScanResults.
void add(const struct stat *, const unsigned int)
Adds scan result to cache.
time_t mtime
Time of last modification.
unsigned long long misses
Number of cache misses.
Cache for virus scanning results.
dev_t dev
ID of device containing file.
ScanResult * right
Right neighbour in double linked list.
static const unsigned int CACHE_MISS
No matching element found in cache.
Environment * e
Environment.
The environment holds variables that are shared by instances of multiple classes. ...
pthread_mutex_t mutex
Mutex used when reading from or writing to the cache.
unsigned long long hits
Number of cache hits.