/usr/include/bobcat/user is in libbobcat-dev 4.08.02-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | #ifndef INCLUDED_BOBCAT_USER
#define INCLUDED_BOBCAT_USER
#include <string>
namespace FBB
{
class User
{
std::string d_name;
std::string d_password;
std::string d_realname;
std::string d_homedir;
std::string d_shell;
size_t d_uid;
size_t d_gid;
public:
User();
User(User &&tmp);
User &operator=(User &&tmp);
void verify() const; // kept for bacward compatibility
size_t eGroupid() const;
size_t eUserid() const;
size_t groupid() const; // .f
bool inGroup(size_t gid, bool useEffective = true) const;
size_t userid() const; // .f
bool inGroup(size_t gid) const;
std::string const &homedir() const; // .f
std::string const &name() const; // .f
std::string const &password() const; // .f
std::string const &realname() const; // .f
std::string const &shell() const; // .f
};
inline size_t User::groupid() const
{
return d_gid;
}
inline std::string const &User::homedir() const
{
return d_homedir;
}
inline std::string const &User::name() const
{
return d_name;
}
inline std::string const &User::password() const
{
return d_password;
}
inline std::string const &User::realname() const
{
return d_realname;
}
inline std::string const &User::shell() const
{
return d_shell;
}
inline size_t User::userid() const
{
return d_uid;
}
} // FBB
#endif
|