46 : m_name (), m_passwd (), m_gid (0), m_mem (), m_valid (false)
49 OCTAVE_DEFAULT_COPY_MOVE_DELETE (
group)
51 std::string name ()
const;
53 std::string passwd ()
const;
59 bool ok ()
const {
return m_valid; }
61 operator bool ()
const {
return ok (); }
63 static group getgrent ();
64 static group getgrent (std::string& msg);
66 static group getgrgid (gid_t gid);
67 static group getgrgid (gid_t gid, std::string& msg);
69 static group getgrnam (
const std::string& nm);
70 static group getgrnam (
const std::string& nm, std::string& msg);
72 static int setgrent ();
73 static int setgrent (std::string& msg);
75 static int endgrent ();
76 static int endgrent (std::string& msg);
97 group (
void *p, std::string& msg);