blob: 81a62523e47ae82c7c0959c1ee278385e7f72e47 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// SPDX-License-Identifier: GPL-3.0-or-later
#ifndef NETDATA_CACHED_UID_GROUPNAME_H
#define NETDATA_CACHED_UID_GROUPNAME_H
#include "libnetdata/libnetdata.h"
struct netdata_string;
typedef struct {
uint32_t version;
gid_t gid;
struct netdata_string *groupname;
} CACHED_GROUPNAME;
void cached_groupname_populate_by_gid(gid_t gid, const char *groupname, uint32_t version);
CACHED_GROUPNAME cached_groupname_get_by_gid(gid_t gid);
void cached_groupname_release(CACHED_GROUPNAME cg);
void cached_groupnames_delete_old_versions(uint32_t version);
void cached_groupnames_init(void);
void cached_groupnames_destroy(void);
#endif //NETDATA_CACHED_UID_GROUPNAME_H
|