#include <string>
#include <sys/types.h>
#include "oct-passwd.h"
#include "defun-dld.h"
#include "error.h"
#include "gripes.h"
#include "oct-map.h"
#include "ov.h"
#include "oct-obj.h"
#include "utils.h"
Go to the source code of this file.
Functions | |
DEFUN_DLD (getpwent, args,,"-*- texinfo -*-\n\ @deftypefn {Loadable Function} {@var{pw_struct} =} getpwent ()\n\ Return a structure containing an entry from the password database,\n\ opening it if necessary. Once the end of the data has been reached,\n\ @code{getpwent} returns 0.\n\ @end deftypefn") | |
DEFUN_DLD (endpwent, args,,"-*- texinfo -*-\n\ @deftypefn {Loadable Function} {} endpwent ()\n\ Close the password database.\n\ @end deftypefn") | |
DEFUN_DLD (setpwent, args,,"-*- texinfo -*-\n\ @deftypefn {Loadable Function} {} setpwent ()\n\ Return the internal pointer to the beginning of the password database.\n\ @end deftypefn") | |
DEFUN_DLD (getpwnam, args,,"-*- texinfo -*-\n\ @deftypefn {Loadable Function} {@var{pw_struct} =} getpwnam (@var{name})\n\ Return a structure containing the first entry from the password database\n\ with the user name @var{name}. If the user name does not exist in the\n\ database, @code{getpwname} returns 0.\n\ @end deftypefn") | |
DEFUN_DLD (getpwuid, args,,"-*- texinfo -*-\n\ @deftypefn {Loadable Function} {@var{pw_struct} =} getpwuid (@var{uid}).\n\ Return a structure containing the first entry from the password database\n\ with the user ID @var{uid}. If the user ID does not exist in the\n\ database, @code{getpwuid} returns 0.\n\ @end deftypefn") | |
static octave_value | mk_pw_map (const octave_passwd &pw) |
DEFUN_DLD | ( | getpwent | , | |
args | ||||
) |
Definition at line 68 of file getpwent.cc.
References octave_passwd::getpwent(), octave_value_list::length(), mk_pw_map(), and print_usage().
DEFUN_DLD | ( | endpwent | , | |
args | ||||
) |
Definition at line 195 of file getpwent.cc.
References octave_passwd::endpwent(), octave_value_list::length(), and print_usage().
DEFUN_DLD | ( | setpwent | , | |
args | ||||
) |
Definition at line 169 of file getpwent.cc.
References octave_value_list::length(), print_usage(), and octave_passwd::setpwent().
DEFUN_DLD | ( | getpwnam | , | |
args | ||||
) |
Definition at line 136 of file getpwent.cc.
References error_state, octave_passwd::getpwnam(), octave_value_list::length(), mk_pw_map(), and print_usage().
DEFUN_DLD | ( | getpwuid | , | |
args | ||||
) |
Definition at line 96 of file getpwent.cc.
References D_NINT(), error(), error_state, octave_passwd::getpwuid(), octave_value_list::length(), mk_pw_map(), and print_usage().
static octave_value mk_pw_map | ( | const octave_passwd & | pw | ) | [static] |
Definition at line 44 of file getpwent.cc.
References octave_scalar_map::assign(), octave_passwd::dir(), octave_passwd::gecos(), octave_passwd::gid(), octave_passwd::name(), octave_passwd::passwd(), octave_passwd::shell(), and octave_passwd::uid().
Referenced by DEFUN_DLD().