Penguin
Blame: fgetgrent(3)
EditPageHistoryDiffInfoLikePages
Annotated edit history of fgetgrent(3) version 1, including all changes. View license author blame.
Rev Author # Line
1 perry 1 FGETGRENT
2 !!!FGETGRENT
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 RETURN VALUE
7 ERRORS
8 CONFORMING TO
9 SEE ALSO
10 ----
11 !!NAME
12
13
14 fgetgrent - get group file entry
15 !!SYNOPSIS
16
17
18 __#include
19 __''stream''__);
20 __
21 !!DESCRIPTION
22
23
24 The __fgetgrent()__ function returns a pointer to a
25 structure containing the group information from the file
26 ''stream''. The first time it is called it returns the
27 first entry; thereafter, it returns successive entries. The
28 file ''stream'' must have the same format as
29 ''/etc/group''.
30
31
32 The ''group'' structure is defined in
33 '''' as follows:
34
35
36 struct group {
37 char *gr_name; /* group name */
38 char *gr_passwd; /* group password */
39 gid_t gr_gid; /* group id */
40 char **gr_mem; /* group members */
41 };
42 !!RETURN VALUE
43
44
45 The __fgetgrent()__ function returns the group
46 information structure, or NULL if there are no more entries
47 or an error occurs.
48 !!ERRORS
49
50
51 __ENOMEM__
52
53
54 Insufficient memory to allocate group information
55 structure.
56 !!CONFORMING TO
57
58
59 SVID 3
60 !!SEE ALSO
61
62
63 getgrnam(3), getgrgid(3), getgrent(3),
64 setgrent(3), endgrent(3)
65 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.