23 #if defined (HAVE_CONFIG_H) 29 #include <sys/types.h> 52 m.
assign (
"gid", static_cast<double> (gr.
gid ()));
61 DEFUN (getgrent, args, ,
70 if (args.length () != 0)
81 DEFUN (getgrgid, args, ,
91 if (args.length () != 1)
94 double dval = args(0).double_value ();
97 error (
"getgrgid: GID must be an integer");
99 gid_t gid =
static_cast<gid_t
> (dval);
109 DEFUN (getgrnam, args, ,
119 if (args.length () != 1)
132 DEFUN (setgrent, args, ,
139 if (args.length () != 0)
147 return ovl (static_cast<double> (status), msg);
150 DEFUN (endgrent, args, ,
157 if (args.length () != 0)
165 return ovl (static_cast<double> (status), msg);
static octave_value mk_gr_map(const octave::sys::group &gr)
OCTINTERP_API void print_usage(void)
identity matrix If supplied two scalar respectively For allows like xample val
#define DEFUN(name, args_name, nargout_name, doc)
Macro to define a builtin function.
void error(const char *fmt,...)
std::string passwd(void) const
static group getgrnam(const std::string &nm)
std::string name(void) const
return octave_value(v1.char_array_value() . concat(v2.char_array_value(), ra_idx),((a1.is_sq_string()||a2.is_sq_string()) ? '\'' :'"'))
OCTAVE_EXPORT octave_value_list isa nd deftypefn *return ovl(args(0).isinteger())
static group getgrent(void)
void assign(const std::string &k, const octave_value &val)
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)