23 #if defined (HAVE_CONFIG_H)
29 #include <sys/types.h>
54 m.
assign (
"uid", static_cast<double> (pw.
uid ()));
55 m.
assign (
"gid", static_cast<double> (pw.
gid ()));
78 if (
args.length () != 0)
86 return ovl (val, msg);
99 if (
args.length () != 1)
102 double dval =
args(0).double_value ();
105 error (
"getpwuid: UID must be an integer");
107 uid_t uid =
static_cast<uid_t
> (dval);
114 return ovl (val, msg);
127 if (
args.length () != 1)
137 return ovl (val, msg);
147 if (
args.length () != 0)
155 return ovl (static_cast<double> (status), msg);
165 if (
args.length () != 0)
173 return ovl (static_cast<double> (status), msg);
static password getpwnam(const std::string &nm)
std::string gecos(void) const
OCTAVE_EXPORT octave_value_list isa nd deftypefn *return ovl(args(0).is_integer_type())
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)
static password getpwuid(uid_t uid)
void error(const char *fmt,...)
static password getpwent(void)
std::string dir(void) const
nd deftypefn *octave_map m
static int setpwent(void)
std::string name(void) const
static octave_value mk_pw_map(const octave::sys::password &pw)
static int endpwent(void)
void assign(const std::string &k, const octave_value &val)
std::string passwd(void) const
std::string shell(void) const
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