26 #if defined (HAVE_CONFIG_H)
30 #include <sys/types.h>
36 #define NOT_SUPPORTED(nm) \
37 nm ": not supported on this system"
39 OCTAVE_NORETURN
static
43 (*current_liboctave_error_handler) (
"invalid password object");
123 #if defined HAVE_GETPWENT
142 #if defined (HAVE_GETPWUID)
146 octave_unused_parameter (
uid);
163 #if defined (HAVE_GETPWNAM)
167 octave_unused_parameter (nm);
184 #if defined (HAVE_SETPWENT)
204 #if defined (HAVE_ENDPWENT)
215 : m_name (), m_passwd (), m_uid (0), m_gid (0), m_gecos (),
216 m_dir (), m_shell (), m_valid (false)
218 #if defined (HAVE_PWD_H)
227 m_passwd = pw.pw_passwd;
230 m_gecos = pw.pw_gecos;
232 m_shell = pw.pw_shell;
237 octave_unused_parameter (p);
243 OCTAVE_END_NAMESPACE(sys)
244 OCTAVE_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)
struct passwd * octave_getpwnam_wrapper(const char *nam)
void octave_endpwent_wrapper(void)
struct passwd * octave_getpwent_wrapper(void)
struct passwd * octave_getpwuid_wrapper(uid_t uid)
void octave_from_passwd(const struct passwd *pw, struct octave_passwd_wrapper *oct_pw)