26 #if defined (HAVE_CONFIG_H)
30 #include <sys/types.h>
32 #if defined (HAVE_GRP_H)
40 #define NOT_SUPPORTED(nm) \
41 nm ": not supported on this system"
43 OCTAVE_NORETURN
static
47 (*current_liboctave_error_handler) (
"invalid group object");
100 #if defined (HAVE_GETGRENT)
119 #if defined (HAVE_GETGRGID)
123 octave_unused_parameter (
gid);
140 #if defined (HAVE_GETGRNAM)
144 octave_unused_parameter (nm);
161 #if defined (HAVE_SETGRENT)
181 #if defined (HAVE_ENDGRENT)
192 : m_name (), m_passwd (), m_gid (0), m_mem (), m_valid (false)
194 #if defined (HAVE_GRP_H)
199 struct ::group *gr =
static_cast<struct ::
group *
> (p);
201 m_name = gr->gr_name;
203 #if defined (HAVE_GR_PASSWD)
204 m_passwd = gr->gr_passwd;
212 const char *
const *tmp = gr->gr_mem;
224 for (
int i = 0; i < k; i++)
231 octave_unused_parameter (p);
237 OCTAVE_END_NAMESPACE(sys)
238 OCTAVE_END_NAMESPACE(
octave)
std::string passwd() const
static group getgrnam(const std::string &nm)
string_vector mem() const
static group getgrgid(gid_t gid)
void resize(octave_idx_type n, const std::string &rfv="")
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
#define NOT_SUPPORTED(nm)