26 #ifndef USER_GROUP_BASES_HPP
27 #define USER_GROUP_BASES_HPP
29 #include "../my_config.h"
52 class user_group_bases
55 user_group_bases() : filled(false) {};
56 user_group_bases(
const user_group_bases & ref) =
default;
57 user_group_bases(user_group_bases && ref) noexcept =
default;
58 user_group_bases & operator = (
const user_group_bases & ref) =
default;
59 user_group_bases & operator = (user_group_bases && ref) noexcept =
default;
60 ~user_group_bases() =
default;
65 const std::string & get_username(
const infinint & uid)
const;
71 const std::string & get_groupname(
const infinint & gid)
const;
76 std::map<infinint, std::string> user_database;
77 std::map<infinint, std::string> group_database;
81 static const std::string empty_string;
90 static pthread_mutex_t lock_fill;
switch module to limitint (32 ou 64 bits integers) or infinint
libdar namespace encapsulate all libdar symbols