23 #if !defined (octave_oct_group_h)
24 #define octave_oct_group_h 1
28 #include <sys/types.h>
39 : gr_name (), gr_passwd (), gr_gid (0), gr_mem (), valid (false)
43 : gr_name (gr.gr_name), gr_passwd (gr.gr_passwd),
44 gr_gid (gr.gr_gid), gr_mem (gr.gr_mem), valid (gr.valid)
61 std::string name (
void)
const;
63 std::string passwd (
void)
const;
65 gid_t gid (
void)
const;
69 bool ok (
void)
const {
return valid; }
71 operator bool ()
const {
return ok (); }
77 static octave_group getgrgid (gid_t gid, std::string& msg);
80 static octave_group getgrnam (
const std::string& nm, std::string& msg);
82 static int setgrent (
void);
83 static int setgrent (std::string& msg);
85 static int endgrent (
void);
86 static int endgrent (std::string& msg);
109 void gripe_invalid (
void)
const;
octave_group(const octave_group &gr)