/usr/include/bobcat/user is in libbobcat-dev 2.20.01-1.
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 71 72 73 74 75 76 | #ifndef INCLUDED_BOBCAT_USER
#define INCLUDED_BOBCAT_USER
#include <string>
#include <bobcat/errno>
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 groupid() const;
size_t userid() const;
std::string const &homedir() const;
std::string const &name() const;
std::string const &password() const;
std::string const &realname() const;
std::string const &shell() const;
User(User const &&tmp); // Deprecated
User &operator=(User const &&tmp); // Deprecated
};
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
|