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)
161 #if defined (HAVE_GETPWNAM)
180 #if defined (HAVE_SETPWENT)
200 #if defined (HAVE_ENDPWENT)
211 : m_name (), m_passwd (), m_uid (0), m_gid (0), m_gecos (),
212 m_dir (), m_shell (), valid (
false)
214 #if defined (HAVE_PWD_H)
static password getpwnam(const std::string &nm)
Octave interface to the compression and uncompression libraries.
std::string gecos(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
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
std::string dir(void) const
static int setpwent(void)
std::string name(void) const
static int endpwent(void)
static OCTAVE_NORETURN void err_invalid(void)
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