26 #if defined (HAVE_CONFIG_H)
30 #include <sys/types.h>
32 #if defined (HAVE_PWD_H)
39 #define NOT_SUPPORTED(nm) \
40 nm ": not supported on this system"
42 OCTAVE_NORETURN
static
46 (*current_liboctave_error_handler) (
"invalid password object");
126 #if defined HAVE_GETPWENT
145 #if defined (HAVE_GETPWUID)
149 octave_unused_parameter (
uid);
166 #if defined (HAVE_GETPWNAM)
170 octave_unused_parameter (nm);
187 #if defined (HAVE_SETPWENT)
207 #if defined (HAVE_ENDPWENT)
218 : m_name (), m_passwd (), m_uid (0), m_gid (0), m_gecos (),
219 m_dir (), m_shell (), valid (false)
221 #if defined (HAVE_PWD_H)
226 struct ::passwd *pw =
static_cast<struct ::
passwd *
> (p);
239 octave_unused_parameter (p);
std::string passwd(void) const
static int endpwent(void)
std::string gecos(void) const
static password getpwuid(uid_t uid)
std::string dir(void) const
static password getpwent(void)
std::string name(void) const
static int setpwent(void)
static password getpwnam(const std::string &nm)
std::string shell(void) const
static OCTAVE_NORETURN void err_invalid(void)
#define NOT_SUPPORTED(nm)