#include "oct-passwd.h"
Public Member Functions | |
password (const password &pw) | |
password (void) | |
~password (void)=default | |
std::string | dir (void) const |
std::string | gecos (void) const |
gid_t | gid (void) const |
std::string | name (void) const |
bool | ok (void) const |
operator bool () const | |
password & | operator= (const password &pw) |
std::string | passwd (void) const |
std::string | shell (void) const |
uid_t | uid (void) const |
Static Public Member Functions | |
static int | endpwent (std::string &msg) |
static int | endpwent (void) |
static password | getpwent (std::string &msg) |
static password | getpwent (void) |
static password | getpwnam (const std::string &nm) |
static password | getpwnam (const std::string &nm, std::string &msg) |
static password | getpwuid (uid_t uid) |
static password | getpwuid (uid_t uid, std::string &msg) |
static int | setpwent (std::string &msg) |
static int | setpwent (void) |
Private Member Functions | |
password (void *p, std::string &msg) | |
Private Attributes | |
std::string | m_dir |
std::string | m_gecos |
gid_t | m_gid |
std::string | m_name |
std::string | m_passwd |
std::string | m_shell |
uid_t | m_uid |
bool | valid |
Definition at line 39 of file oct-passwd.h.
|
inline |
Definition at line 45 of file oct-passwd.h.
Referenced by getpwent(), getpwnam(), and getpwuid().
|
inline |
Definition at line 50 of file oct-passwd.h.
|
default |
|
private |
std::string octave::sys::password::dir | ( | void | ) | const |
Definition at line 99 of file oct-passwd.cc.
References err_invalid(), m_dir, and ok().
Referenced by octave::sys::env::do_get_home_directory(), kpse_tilde_expand(), mk_pw_map(), and octave::tilde_expand_word().
|
static |
Definition at line 205 of file oct-passwd.cc.
References endpwent(), and NOT_SUPPORTED.
|
static |
Definition at line 198 of file oct-passwd.cc.
Referenced by endpwent(), and Fendpwent().
std::string octave::sys::password::gecos | ( | void | ) | const |
Definition at line 90 of file oct-passwd.cc.
References err_invalid(), m_gecos, and ok().
Referenced by mk_pw_map().
|
static |
Definition at line 124 of file oct-passwd.cc.
References password(), getpwent(), and NOT_SUPPORTED.
|
static |
Definition at line 117 of file oct-passwd.cc.
Referenced by Fgetpwent(), and getpwent().
|
static |
Definition at line 157 of file oct-passwd.cc.
Referenced by Fgetpwnam(), getpwnam(), kpse_tilde_expand(), and octave::tilde_expand_word().
|
static |
Definition at line 164 of file oct-passwd.cc.
References password(), getpwnam(), and NOT_SUPPORTED.
|
static |
Definition at line 136 of file oct-passwd.cc.
References uid().
Referenced by octave::sys::env::do_get_home_directory(), octave::sys::env::do_get_user_name(), Fgetpwuid(), and getpwuid().
|
static |
Definition at line 143 of file oct-passwd.cc.
References password(), getpwuid(), NOT_SUPPORTED, and uid().
gid_t octave::sys::password::gid | ( | void | ) | const |
Definition at line 81 of file oct-passwd.cc.
References err_invalid(), m_gid, and ok().
Referenced by mk_pw_map().
std::string octave::sys::password::name | ( | void | ) | const |
Definition at line 54 of file oct-passwd.cc.
References err_invalid(), m_name, and ok().
Referenced by octave::sys::env::do_get_user_name(), and mk_pw_map().
|
inline |
|
inline |
Definition at line 91 of file oct-passwd.h.
std::string octave::sys::password::passwd | ( | void | ) | const |
Definition at line 63 of file oct-passwd.cc.
References err_invalid(), m_passwd, and ok().
Referenced by password(), and mk_pw_map().
|
static |
Definition at line 185 of file oct-passwd.cc.
References NOT_SUPPORTED, and setpwent().
|
static |
Definition at line 178 of file oct-passwd.cc.
Referenced by Fsetpwent(), and setpwent().
std::string octave::sys::password::shell | ( | void | ) | const |
Definition at line 108 of file oct-passwd.cc.
References err_invalid(), m_shell, and ok().
Referenced by mk_pw_map().
uid_t octave::sys::password::uid | ( | void | ) | const |
Definition at line 72 of file oct-passwd.cc.
References err_invalid(), m_uid, and ok().
Referenced by getpwuid(), and mk_pw_map().
|
private |
Definition at line 126 of file oct-passwd.h.
Referenced by password(), dir(), and operator=().
|
private |
Definition at line 123 of file oct-passwd.h.
Referenced by password(), gecos(), and operator=().
|
private |
Definition at line 120 of file oct-passwd.h.
Referenced by password(), gid(), and operator=().
|
private |
Definition at line 111 of file oct-passwd.h.
Referenced by password(), name(), and operator=().
|
private |
Definition at line 114 of file oct-passwd.h.
Referenced by password(), operator=(), and passwd().
|
private |
Definition at line 129 of file oct-passwd.h.
Referenced by password(), operator=(), and shell().
|
private |
Definition at line 117 of file oct-passwd.h.
Referenced by password(), operator=(), and uid().
|
private |
Definition at line 132 of file oct-passwd.h.
Referenced by password(), and operator=().