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)
52 : m_name (gr.m_name), m_passwd (gr.m_passwd),
53 m_gid (gr.m_gid), m_mem (gr.m_mem), m_valid (gr.m_valid)
70 std::string name (
void)
const;
72 std::string passwd (
void)
const;
74 gid_t gid (
void)
const;
78 bool ok (
void)
const {
return m_valid; }
80 operator bool ()
const {
return ok (); }
82 static group getgrent (
void);
83 static group getgrent (std::string& msg);
85 static group getgrgid (gid_t gid);
86 static group getgrgid (gid_t gid, std::string& msg);
88 static group getgrnam (
const std::string& nm);
89 static group getgrnam (
const std::string& nm, std::string& msg);
91 static int setgrent (
void);
92 static int setgrent (std::string& msg);
94 static int endgrent (
void);
95 static int endgrent (std::string& msg);
116 group (
void *p, std::string& msg);
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn