4 static char *line
, **mem
;
5 static struct group gr
;
13 weak_alias(setgrent
, endgrent
);
15 struct group
*getgrent()
18 size_t size
=0, nmem
=0;
19 if (!f
) f
= fopen("/etc/group", "rbe");
21 __getgrent_a(f
, &gr
, &line
, &size
, &mem
, &nmem
, &res
);
25 struct group
*getgrgid(gid_t gid
)
28 size_t size
=0, nmem
=0;
29 __getgr_a(0, gid
, &gr
, &line
, &size
, &mem
, &nmem
, &res
);
33 struct group
*getgrnam(const char *name
)
36 size_t size
=0, nmem
=0;
37 __getgr_a(name
, 0, &gr
, &line
, &size
, &mem
, &nmem
, &res
);