-
Notifications
You must be signed in to change notification settings - Fork 30
/
cachehash.h
37 lines (31 loc) · 915 Bytes
/
cachehash.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*-
* xnumon - monitor macOS for malicious activity
* https://www.roe.ch/xnumon
*
* Copyright (c) 2017-2019, Daniel Roethlisberger <[email protected]>.
* All rights reserved.
*
* Licensed under the Open Software License version 3.0.
*/
#ifndef CACHEHASH_H
#define CACHEHASH_H
#include "lrucache.h"
#include "hashes.h"
#include "attrib.h"
#include <sys/types.h>
#include <time.h>
#include <stdbool.h>
void cachehash_init(void);
void cachehash_fini(void);
bool cachehash_get(hashes_t *,
dev_t, ino_t,
struct timespec *,
struct timespec *,
struct timespec *) NONNULL(1,4,5,6);
void cachehash_put(dev_t, ino_t,
struct timespec *,
struct timespec *,
struct timespec *,
hashes_t *) NONNULL(3,4,5,6);
void cachehash_stats(lrucache_stat_t *) NONNULL(1);
#endif