Lines Matching refs:gr
20 int __getgr_a(const char *name, gid_t gid, struct group *gr, char **buf, size_t *size, char ***mem,… in __getgr_a() argument
35 while (!(rv = __getgrent_a(f, gr, buf, size, mem, nmem, res)) && *res) { in __getgr_a()
141 gr->gr_name = *buf; in __getgr_a()
142 gr->gr_passwd = gr->gr_name + groupbuf[GRNAMELEN]; in __getgr_a()
143 gr->gr_gid = groupbuf[GRGID]; in __getgr_a()
144 gr->gr_mem = *mem; in __getgr_a()
146 if (gr->gr_passwd[-1] in __getgr_a()
147 || gr->gr_passwd[groupbuf[GRPASSWDLEN]-1]) { in __getgr_a()
152 if (name && strcmp(name, gr->gr_name) in __getgr_a()
153 || !name && gid != gr->gr_gid) { in __getgr_a()
158 *res = gr; in __getgr_a()