octave: Group Database Functions
36.10 Group Database Functions
==============================
Octave’s group database functions return information in a structure with
the following fields.
‘name’
The user name.
‘passwd’
The encrypted password, if available.
‘gid’
The numeric group id.
‘mem’
The members of the group.
In the descriptions of the following functions, this data structure
is referred to as a GRP_STRUCT.
-- : GRP_STRUCT = getgrent ()
Return an entry from the group database, opening it if necessary.
Once the end of data has been reached, ‘getgrent’ returns 0.
DONTPRINTYET See also: setgrent XREFsetgrent, *noteendgrent:
DONTPRINTYET See also: setgrent XREFsetgrent, endgrent
XREFendgrent.
-- : GRP_STRUCT = getgrgid (GID).
Return the first entry from the group database with the group ID
GID.
If the group ID does not exist in the database, ‘getgrgid’ returns
0.
See also: getgrnam XREFgetgrnam.
-- : GRP_STRUCT = getgrnam (NAME)
Return the first entry from the group database with the group name
NAME.
If the group name does not exist in the database, ‘getgrnam’
returns 0.
See also: getgrgid XREFgetgrgid.
-- : setgrent ()
Return the internal pointer to the beginning of the group database.
DONTPRINTYET See also: getgrent XREFgetgrent, *noteendgrent:
DONTPRINTYET See also: getgrent XREFgetgrent, endgrent
XREFendgrent.
-- : endgrent ()
Close the group database.
DONTPRINTYET See also: getgrent XREFgetgrent, *notesetgrent:
DONTPRINTYET See also: getgrent XREFgetgrent, setgrent
XREFsetgrent.