Lines Matching refs:grp
321 const struct group *grp, in nss_group_to_group_record() argument
328 assert(grp); in nss_group_to_group_record()
331 if (isempty(grp->gr_name)) in nss_group_to_group_record()
334 if (sgrp && !streq_ptr(sgrp->sg_namp, grp->gr_name)) in nss_group_to_group_record()
341 g->group_name = strdup(grp->gr_name); in nss_group_to_group_record()
345 r = strv_extend_strv_utf8_only(&g->members, grp->gr_mem, false); in nss_group_to_group_record()
349 g->gid = grp->gr_gid; in nss_group_to_group_record()
383 int nss_sgrp_for_group(const struct group *grp, struct sgrp *ret_sgrp, char **ret_buffer) { in nss_sgrp_for_group() argument
387 assert(grp); in nss_sgrp_for_group()
399 r = getsgnam_r(grp->gr_name, &sgrp, buf, buflen, &result); in nss_sgrp_for_group()
427 struct group grp, *result; in nss_group_record_by_name() local
441 r = getgrnam_r(name, &grp, buf, buflen, &result); in nss_group_record_by_name()
484 struct group grp, *result; in nss_group_record_by_gid() local
497 r = getgrgid_r(gid, &grp, buf, buflen, &result); in nss_group_record_by_gid()