23 #if ! defined (octave_oct_passwd_h) 24 #define octave_oct_passwd_h 1 26 #include "octave-config.h" 30 #include <sys/types.h> 43 : m_name (), m_passwd (), m_uid (0), m_gid (0), m_gecos (),
44 m_dir (), m_shell (), valid (
false)
48 : m_name (pw.m_name), m_passwd (pw.m_passwd),
49 m_uid (pw.m_uid), m_gid (pw.m_gid), m_gecos (pw.m_gecos),
50 m_dir (pw.m_dir), m_shell (pw.m_shell), valid (pw.valid)
76 uid_t uid (
void)
const;
78 gid_t gid (
void)
const;
86 bool ok (
void)
const {
return valid; }
88 operator bool ()
const {
return ok (); }
93 static password getpwuid (uid_t uid);
99 static int setpwent (
void);
102 static int endpwent (
void);
138 #if defined (OCTAVE_USE_DEPRECATED_FUNCTIONS) 140 OCTAVE_DEPRECATED (4.2,
"use 'octave::sys::password' instead")
141 typedef
octave::sys::password octave_passwd;
password(const password &pw)
nd deftypefn *std::string name
OCTAVE_EXPORT octave_value_list isdir nd deftypefn *std::string nm
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string