26#if defined (HAVE_CONFIG_H)
36#define NOT_SUPPORTED(nm) \
37 nm ": not supported on this system"
43 (*current_liboctave_error_handler) (
"invalid password object");
122#if defined (HAVE_GETPWENT)
141#if defined (HAVE_GETPWUID)
145 octave_unused_parameter (
uid);
162#if defined (HAVE_GETPWNAM)
166 octave_unused_parameter (nm);
183#if defined (HAVE_SETPWENT)
203#if defined (HAVE_ENDPWENT)
214 : m_name (), m_passwd (), m_uid (0), m_gid (0), m_gecos (),
215 m_dir (), m_shell (), m_valid (false)
217#if defined (HAVE_PWD_H)
226 m_passwd = pw.pw_passwd;
229 m_gecos = pw.pw_gecos;
231 m_shell = pw.pw_shell;
236 octave_unused_parameter (p);
242OCTAVE_END_NAMESPACE(sys)
243OCTAVE_END_NAMESPACE(octave)
static password getpwnam(const std::string &nm)
static password getpwuid(uid_t uid)
std::string gecos() const
std::string shell() const
static password getpwent()
std::string passwd() const
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
#define NOT_SUPPORTED(nm)
void octave_setpwent_wrapper(void)
void octave_endpwent_wrapper(void)
struct passwd * octave_getpwent_wrapper(void)
struct passwd * octave_getpwnam_wrapper(const char *nam)
struct passwd * octave_getpwuid_wrapper(uid_t uid)
void octave_from_passwd(const struct passwd *pw, struct octave_passwd_wrapper *oct_pw)