GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "oct-passwd.h"
Public Member Functions | |
octave_passwd (void) | |
octave_passwd (const octave_passwd &pw) | |
~octave_passwd (void) | |
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 | |
octave_passwd & | operator= (const octave_passwd &pw) |
std::string | passwd (void) const |
std::string | shell (void) const |
uid_t | uid (void) const |
Static Public Member Functions | |
static int | endpwent (void) |
static int | endpwent (std::string &msg) |
static octave_passwd | getpwent (void) |
static octave_passwd | getpwent (std::string &msg) |
static octave_passwd | getpwnam (const std::string &nm) |
static octave_passwd | getpwnam (const std::string &nm, std::string &msg) |
static octave_passwd | getpwuid (uid_t uid) |
static octave_passwd | getpwuid (uid_t uid, std::string &msg) |
static int | setpwent (void) |
static int | setpwent (std::string &msg) |
Private Member Functions | |
octave_passwd (void *p, std::string &msg) | |
void | gripe_invalid (void) const |
Private Attributes | |
std::string | pw_dir |
std::string | pw_gecos |
gid_t | pw_gid |
std::string | pw_name |
std::string | pw_passwd |
std::string | pw_shell |
uid_t | pw_uid |
bool | valid |
Definition at line 30 of file oct-passwd.h.
|
inline |
Definition at line 36 of file oct-passwd.h.
Referenced by getpwent(), getpwnam(), and getpwuid().
|
inline |
Definition at line 41 of file oct-passwd.h.
|
inline |
Definition at line 64 of file oct-passwd.h.
|
private |
std::string octave_passwd::dir | ( | void | ) | const |
Definition at line 85 of file oct-passwd.cc.
References gripe_invalid(), ok(), and pw_dir.
Referenced by octave_env::do_get_home_directory(), kpse_tilde_expand(), mk_pw_map(), and tilde_expand_word().
Definition at line 180 of file oct-passwd.cc.
Referenced by endpwent(), and Fendpwent().
|
static |
Definition at line 187 of file oct-passwd.cc.
References endpwent(), and NOT_SUPPORTED.
std::string octave_passwd::gecos | ( | void | ) | const |
Definition at line 76 of file oct-passwd.cc.
References gripe_invalid(), ok(), and pw_gecos.
Referenced by mk_pw_map().
|
static |
Definition at line 103 of file oct-passwd.cc.
Referenced by Fgetpwent(), and getpwent().
|
static |
Definition at line 110 of file oct-passwd.cc.
References getpwent(), NOT_SUPPORTED, and octave_passwd().
|
static |
Definition at line 141 of file oct-passwd.cc.
Referenced by Fgetpwnam(), getpwnam(), kpse_tilde_expand(), and tilde_expand_word().
|
static |
Definition at line 148 of file oct-passwd.cc.
References getpwnam(), NOT_SUPPORTED, and octave_passwd().
|
static |
Definition at line 122 of file oct-passwd.cc.
Referenced by octave_env::do_get_home_directory(), octave_env::do_get_user_name(), Fgetpwuid(), and getpwuid().
|
static |
Definition at line 129 of file oct-passwd.cc.
References getpwuid(), NOT_SUPPORTED, and octave_passwd().
gid_t octave_passwd::gid | ( | void | ) | const |
Definition at line 67 of file oct-passwd.cc.
References gripe_invalid(), ok(), and pw_gid.
Referenced by mk_pw_map().
std::string octave_passwd::name | ( | void | ) | const |
Definition at line 40 of file oct-passwd.cc.
References gripe_invalid(), ok(), and pw_name.
Referenced by octave_env::do_get_user_name(), and mk_pw_map().
|
inline |
Definition at line 82 of file oct-passwd.h.
|
inline |
std::string octave_passwd::passwd | ( | void | ) | const |
Definition at line 49 of file oct-passwd.cc.
References gripe_invalid(), ok(), and pw_passwd.
Referenced by mk_pw_map(), and octave_passwd().
Definition at line 160 of file oct-passwd.cc.
Referenced by Fsetpwent(), and setpwent().
|
static |
Definition at line 167 of file oct-passwd.cc.
References NOT_SUPPORTED, and setpwent().
std::string octave_passwd::shell | ( | void | ) | const |
Definition at line 94 of file oct-passwd.cc.
References gripe_invalid(), ok(), and pw_shell.
Referenced by mk_pw_map().
uid_t octave_passwd::uid | ( | void | ) | const |
Definition at line 58 of file oct-passwd.cc.
References gripe_invalid(), ok(), and pw_uid.
Referenced by mk_pw_map().
|
private |
Definition at line 117 of file oct-passwd.h.
Referenced by dir(), octave_passwd(), and operator=().
|
private |
Definition at line 114 of file oct-passwd.h.
Referenced by gecos(), octave_passwd(), and operator=().
|
private |
Definition at line 111 of file oct-passwd.h.
Referenced by gid(), octave_passwd(), and operator=().
|
private |
Definition at line 102 of file oct-passwd.h.
Referenced by name(), octave_passwd(), and operator=().
|
private |
Definition at line 105 of file oct-passwd.h.
Referenced by octave_passwd(), operator=(), and passwd().
|
private |
Definition at line 120 of file oct-passwd.h.
Referenced by octave_passwd(), operator=(), and shell().
|
private |
Definition at line 108 of file oct-passwd.h.
Referenced by octave_passwd(), operator=(), and uid().
|
private |
Definition at line 123 of file oct-passwd.h.
Referenced by octave_passwd(), and operator=().