23 #if defined (HAVE_CONFIG_H) 27 #include <sys/types.h> 29 #if defined (HAVE_PWD_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 (), valid (
false)
218 #if defined (HAVE_PWD_H) 236 octave_unused_parameter (
p);
static password getpwnam(const std::string &nm)
std::string dir(void) const
create a structure array and initialize its values The dimensions of each cell array of values must match Singleton cells and non cell values are repeated so that they fill the entire array If the cells are create an empty structure array with the specified field names If the argument is an return the underlying struct Observe that the syntax is optimized for struct trong struct("foo", 1) esult
std::string gecos(void) const
static password getpwuid(uid_t uid)
#define NOT_SUPPORTED(nm)
static password getpwent(void)
OCTAVE_EXPORT octave_value_list isdir nd deftypefn *std::string nm
static int setpwent(void)
static int endpwent(void)
static OCTAVE_NORETURN void err_invalid(void)
std::string name(void) const
std::string passwd(void) const
std::string shell(void) const
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