#include <string>
#include <sys/types.h>
#include "oct-group.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 (getgrent, args,,"-*- texinfo -*-\n\ @deftypefn {Loadable Function} {@var{grp_struct} =} getgrent ()\n\ Return an entry from the group database, opening it if necessary.\n\ Once the end of data has been reached, @code{getgrent} returns 0.\n\ @end deftypefn") | |
DEFUN_DLD (endgrent, args,,"-*- texinfo -*-\n\ @deftypefn {Loadable Function} {} endgrent ()\n\ Close the group database.\n\ @end deftypefn") | |
DEFUN_DLD (setgrent, args,,"-*- texinfo -*-\n\ @deftypefn {Loadable Function} {} setgrent ()\n\ Return the internal pointer to the beginning of the group database.\n\ @end deftypefn") | |
DEFUN_DLD (getgrnam, args,,"-*- texinfo -*-\n\ @deftypefn {Loadable Function} {@var{grp_struct} =} getgrnam (@var{name})\n\ Return the first entry from the group database with the group name\n\ @var{name}. If the group name does not exist in the database,\n\ @code{getgrnam} returns 0.\n\ @end deftypefn") | |
DEFUN_DLD (getgrgid, args,,"-*- texinfo -*-\n\ @deftypefn {Loadable Function} {@var{grp_struct} =} getgrgid (@var{gid}).\n\ Return the first entry from the group database with the group ID\n\ @var{gid}. If the group ID does not exist in the database,\n\ @code{getgrgid} returns 0.\n\ @end deftypefn") | |
static octave_value | mk_gr_map (const octave_group &gr) |
DEFUN_DLD | ( | getgrent | , | |
args | ||||
) |
Definition at line 65 of file getgrent.cc.
References octave_group::getgrent(), octave_value_list::length(), mk_gr_map(), and print_usage().
DEFUN_DLD | ( | endgrent | , | |
args | ||||
) |
Definition at line 191 of file getgrent.cc.
References octave_group::endgrent(), octave_value_list::length(), and print_usage().
DEFUN_DLD | ( | setgrent | , | |
args | ||||
) |
Definition at line 165 of file getgrent.cc.
References octave_value_list::length(), print_usage(), and octave_group::setgrent().
DEFUN_DLD | ( | getgrnam | , | |
args | ||||
) |
Definition at line 132 of file getgrent.cc.
References error_state, octave_group::getgrnam(), octave_value_list::length(), mk_gr_map(), and print_usage().
DEFUN_DLD | ( | getgrgid | , | |
args | ||||
) |
Definition at line 92 of file getgrent.cc.
References D_NINT(), error(), error_state, octave_group::getgrgid(), octave_value_list::length(), mk_gr_map(), and print_usage().
static octave_value mk_gr_map | ( | const octave_group & | gr | ) | [static] |
Definition at line 44 of file getgrent.cc.
References octave_scalar_map::assign(), octave_group::gid(), octave_group::mem(), octave_group::name(), and octave_group::passwd().
Referenced by DEFUN_DLD().