23 #if defined (HAVE_CONFIG_H) 27 #include <sys/types.h> 29 #if defined (HAVE_GRP_H) 37 #define NOT_SUPPORTED(nm) \ 38 nm ": not supported on this system" 40 OCTAVE_NORETURN
static 44 (*current_liboctave_error_handler) (
"invalid group object");
97 #if defined (HAVE_GETGRENT) 116 #if defined (HAVE_GETGRGID) 120 octave_unused_parameter (
gid);
137 #if defined (HAVE_GETGRNAM) 141 octave_unused_parameter (
nm);
158 #if defined (HAVE_SETGRENT) 178 #if defined (HAVE_ENDGRENT) 189 : m_name (), m_passwd (), m_gid (0), m_mem (), valid (
false)
191 #if defined (HAVE_GRP_H) 200 #if defined (HAVE_GR_PASSWD) 209 const char *
const *
tmp = gr->gr_mem;
221 for (
int i = 0;
i <
k;
i++)
228 octave_unused_parameter (
p);
create a structure array and initialize its values The dimensions of each cell array of values must match Singleton cells and non cell values are repeated so that they fill the entire array If the cells are create an empty structure array with the specified field names If the argument is an return the underlying struct Observe that the syntax is optimized for struct trong struct("foo", 1) esult
std::string passwd(void) const
void resize(octave_idx_type n, const std::string &rfv="")
OCTAVE_EXPORT octave_value_list isdir nd deftypefn *std::string nm
static group getgrnam(const std::string &nm)
std::string name(void) const
#define NOT_SUPPORTED(nm)
static OCTAVE_NORETURN void err_invalid(void)
static group getgrent(void)
static int endgrent(void)
string_vector mem(void) const
static group getgrgid(gid_t gid)
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
static int setgrent(void)