26 #if ! defined (octave_oct_group_h)
27 #define octave_oct_group_h 1
29 #include "octave-config.h"
33 #include <sys/types.h>
48 : m_name (), m_passwd (), m_gid (0), m_mem (), m_valid (false)
51 OCTAVE_DEFAULT_COPY_MOVE_DELETE (
group)
53 std::string name ()
const;
55 std::string passwd ()
const;
61 bool ok ()
const {
return m_valid; }
63 operator bool ()
const {
return ok (); }
65 static group getgrent ();
66 static group getgrent (std::string& msg);
68 static group getgrgid (gid_t gid);
69 static group getgrgid (gid_t gid, std::string& msg);
71 static group getgrnam (
const std::string& nm);
72 static group getgrnam (
const std::string& nm, std::string& msg);
74 static int setgrent ();
75 static int setgrent (std::string& msg);
77 static int endgrent ();
78 static int endgrent (std::string& msg);
99 group (
void *p, std::string& msg);
102 OCTAVE_END_NAMESPACE(sys)
103 OCTAVE_END_NAMESPACE(
octave)
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn