Lines Matching refs:group_name
480 static void check_group(const group* grp, const char* group_name, gid_t gid, in check_group() argument
484 EXPECT_STREQ(group_name, grp->gr_name); in check_group()
489 EXPECT_STREQ(group_name, grp->gr_mem[0]); in check_group()
496 static void check_getgrgid(const char* group_name, gid_t gid, bool check_groupname) { in check_getgrgid() argument
501 check_group(grp, group_name, gid, check_groupname); in check_getgrgid()
504 static void check_getgrnam(const char* group_name, gid_t gid, bool check_groupname) { in check_getgrnam() argument
506 group* grp = getgrnam(group_name); in check_getgrnam()
509 check_group(grp, group_name, gid, check_groupname); in check_getgrnam()
512 static void check_getgrgid_r(const char* group_name, gid_t gid, bool check_groupname) { in check_getgrgid_r() argument
522 check_group(grp, group_name, gid, check_groupname); in check_getgrgid_r()
525 static void check_getgrnam_r(const char* group_name, gid_t gid, bool check_groupname) { in check_getgrnam_r() argument
531 int result = getgrnam_r(group_name, &grp_storage, buf, sizeof(buf), &grp); in check_getgrnam_r()
535 check_group(grp, group_name, gid, check_groupname); in check_getgrnam_r()
538 static void check_get_group(const char* group_name, gid_t gid, bool check_groupname = true) { in check_get_group() argument
539 SCOPED_TRACE("groupname '"s + group_name + "'"); in check_get_group()
540 check_getgrgid(group_name, gid, check_groupname); in check_get_group()
541 check_getgrnam(group_name, gid, check_groupname); in check_get_group()
542 check_getgrgid_r(group_name, gid, check_groupname); in check_get_group()
543 check_getgrnam_r(group_name, gid, check_groupname); in check_get_group()