Functions

getgrent.cc File Reference

#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"
Include dependency graph for getgrent.cc:

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)

Function Documentation

DEFUN_DLD ( getgrent  ,
args   
)
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   
)
DEFUN_DLD ( getgrgid  ,
args   
)
static octave_value mk_gr_map ( const octave_group gr  )  [static]
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines