/freebsd/lib/libutil/ |
H A D | gr_util.c | 403 if (gr1->gr_mem != NULL && gr2->gr_mem != NULL) { in gr_equal() 407 gr1->gr_mem[i] != NULL && gr2->gr_mem[i] != NULL; i++) { in gr_equal() 408 if (strcmp(gr1->gr_mem[i], gr2->gr_mem[i]) != 0) in gr_equal() 411 if (gr1->gr_mem[i] != NULL || gr2->gr_mem[i] != NULL) in gr_equal() 413 } else if (gr1->gr_mem != NULL && gr1->gr_mem[0] != NULL) { in gr_equal() 415 } else if (gr2->gr_mem != NULL && gr2->gr_mem[0] != NULL) { in gr_equal() 438 if (gr->gr_mem != NULL) { in gr_make() 439 for (ndx = 0; gr->gr_mem[ndx] != NULL; ndx++) in gr_make() 440 line_size += strlen(gr->gr_mem[ndx]) + 1; in gr_make() 450 if (gr->gr_mem != NULL) { in gr_make() [all …]
|
/freebsd/lib/libc/tests/nss/ |
H A D | getgr_test.c | 99 if (src->gr_mem != NULL) { in IMPLEMENT_TEST_FILE_SNAPSHOT() 101 for (cp = src->gr_mem; *cp; ++cp) in IMPLEMENT_TEST_FILE_SNAPSHOT() 104 dest->gr_mem = calloc(members_num + 1, sizeof(char *)); in IMPLEMENT_TEST_FILE_SNAPSHOT() 105 ATF_REQUIRE(dest->gr_mem != NULL); in IMPLEMENT_TEST_FILE_SNAPSHOT() 107 for (cp = src->gr_mem; *cp; ++cp) { in IMPLEMENT_TEST_FILE_SNAPSHOT() 108 dest->gr_mem[cp - src->gr_mem] = strdup(*cp); in IMPLEMENT_TEST_FILE_SNAPSHOT() 109 ATF_REQUIRE(dest->gr_mem[cp - src->gr_mem] != NULL); in IMPLEMENT_TEST_FILE_SNAPSHOT() 124 for (cp = grp->gr_mem; *cp; ++cp) in free_group() 126 free(grp->gr_mem); in free_group() 145 c1 = grp1->gr_mem; in compare_group() [all …]
|
/freebsd/usr.bin/logins/ |
H A D | logins.c | 59 char *gr_mem; member 141 grps[ngrps].gr_mem = xstrdup(""); in get_groups() 142 for (i = 0, len = 1; grp->gr_mem[i] != NULL; ++i) in get_groups() 143 len += strlen(grp->gr_mem[i]) + 1; in get_groups() 144 grps[ngrps].gr_mem = xmalloc(len); in get_groups() 145 for (i = 0, len = 0; grp->gr_mem[i] != NULL; ++i) in get_groups() 146 len += sprintf(grps[ngrps].gr_mem + len, in get_groups() 147 i ? ",%s" : "%s", grp->gr_mem[i]); in get_groups() 148 grps[ngrps].gr_mem[len] = '\0'; in get_groups() 250 member(pwd->pw_name, grp->gr_mem)) { in select_users() [all …]
|
/freebsd/usr.sbin/pw/ |
H A D | pw_group.c | 156 if (grp->gr_mem == NULL) in delete_members() 160 for (k = 0; grp->gr_mem[k] != NULL; k++) { in delete_members() 161 if (strcmp(grp->gr_mem[k], p) == 0) in delete_members() 164 if (grp->gr_mem[k] == NULL) /* No match */ in delete_members() 167 for (; grp->gr_mem[k] != NULL; k++) in delete_members() 168 grp->gr_mem[k] = grp->gr_mem[k+1]; in delete_members() 245 if (grp->gr_mem != NULL) { in print_group() 246 for (i = 0; grp->gr_mem[i]; i++) in print_group() 247 printf("%s%s", i ? "," : "", grp->gr_mem[ in print_group() [all...] |
H A D | pw_user.c | 587 if (grp->gr_mem != NULL) { in print_user() 588 while (grp->gr_mem[i] != NULL) { in print_user() 589 if (strcmp(grp->gr_mem[i], pwd->pw_name)==0) { in print_user() 964 (grp->gr_mem == NULL || *grp->gr_mem == NULL) && in pw_user_del() 971 if (grp->gr_mem == NULL) in pw_user_del() 974 for (i = 0; grp->gr_mem[i] != NULL; i++) { in pw_user_del() 975 if (strcmp(grp->gr_mem[i], name) != 0) in pw_user_del() 978 for (j = i; grp->gr_mem[j] != NULL; j++) in pw_user_del() 979 grp->gr_mem[j] = grp->gr_mem[j+1]; in pw_user_del() 1778 if (grp->gr_mem == NULL) in pw_user_mod() [all …]
|
/freebsd/usr.sbin/nscd/agents/ |
H A D | group.c | 60 if (grp->gr_mem != NULL) { in group_marshal_func() 62 for (mem = grp->gr_mem; *mem; ++mem) { in group_marshal_func() 98 if (new_grp.gr_mem != NULL) { in group_marshal_func() 100 memcpy(p, new_grp.gr_mem, sizeof(char *) * mem_size); in group_marshal_func() 101 new_grp.gr_mem = (char **)p; in group_marshal_func() 104 for (mem = new_grp.gr_mem; *mem; ++mem) { in group_marshal_func()
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | getgrouplist.c | 78 for (i = 0; grp->gr_mem[i]; i++) { in getgrouplist() 79 if (!strcmp(grp->gr_mem[i], uname)) { in getgrouplist()
|
/freebsd/libexec/mknetid/ |
H A D | mknetid.c | 167 while(*gr->gr_mem) { in main() 168 mstore(mtable, *gr->gr_mem, gr->gr_gid, 0); in main() 169 gr->gr_mem++; in main()
|
H A D | parse_group.c | 128 for (m = _gr_group.gr_mem = members;; bp++) { in grscan()
|
/freebsd/lib/libpam/modules/pam_group/ |
H A D | pam_group.c | 94 if ((grp = getgrnam(group)) == NULL || grp->gr_mem == NULL) in pam_group() 102 for (list = grp->gr_mem; list != NULL && *list != NULL; ++list) in pam_group()
|
/freebsd/lib/libc/gen/ |
H A D | getgrent.c | 244 if (grp->gr_mem != NULL) { in grp_marshal_func() 246 for (mem = grp->gr_mem; *mem; ++mem) { in grp_marshal_func() 282 if (new_grp.gr_mem != NULL) { in grp_marshal_func() 284 memcpy(p, new_grp.gr_mem, sizeof(char *) * mem_size); in grp_marshal_func() 285 new_grp.gr_mem = (char **)p; in grp_marshal_func() 288 for (mem = new_grp.gr_mem; *mem; ++mem) { in grp_marshal_func() 364 if (grp->gr_mem != NULL) { in grp_unmarshal_func() 365 NS_APPLY_OFFSET(grp->gr_mem, orig_buf, p, char **); in grp_unmarshal_func() 367 for (mem = grp->gr_mem; *mem; ++mem) in grp_unmarshal_func() 535 for (i = 0; grp.gr_mem[i]; i++) { in getgroupmembership_fallback() [all …]
|
/freebsd/crypto/heimdal/appl/login/ |
H A D | login_access.c | 219 for (i = 0; group->gr_mem[i]; i++) in user_match() 220 if (strcasecmp(string, group->gr_mem[i]) == 0) in user_match()
|
/freebsd/crypto/heimdal/appl/rsh/ |
H A D | login_access.c | 219 for (i = 0; group->gr_mem[i]; i++) in user_match() 220 if (strcasecmp(string, group->gr_mem[i]) == 0) in user_match()
|
/freebsd/lib/libc/rpc/ |
H A D | netnamer.c | 154 for (i = 0; grp->gr_mem[i]; i++) in _getgroups() 155 if (!strcmp(grp->gr_mem[i], uname)) { in _getgroups()
|
/freebsd/crypto/heimdal/appl/su/ |
H A D | su.c | 281 if(g->gr_mem[0] == NULL) in group_member_p() 283 for(i = 0; g->gr_mem[i] != NULL; i++) in group_member_p() 284 if(strcmp(user, g->gr_mem[i]) == 0) in group_member_p()
|
/freebsd/usr.sbin/lpr/lpr/ |
H A D | lpr.c | 296 while (*gptr->gr_mem != NULL) { in main() 297 if ((strcmp(lpr_username, *gptr->gr_mem)) == 0) in main() 299 gptr->gr_mem++; in main() 301 if (*gptr->gr_mem == NULL) in main()
|
/freebsd/include/ |
H A D | grp.h | 59 char **gr_mem; /* group members */ member
|
/freebsd/lib/libutil/tests/ |
H A D | grp_test.c | 57 grp->gr_mem = grpMems; in build_grp()
|
/freebsd/lib/libpam/modules/pam_ftpusers/ |
H A D | pam_ftpusers.c | 100 for (mem = grp->gr_mem; mem && *mem && !found; ++mem) in pam_sm_acct_mgmt()
|
/freebsd/contrib/sendmail/libsmutil/ |
H A D | safefile.c | 229 for (gp = gr->gr_mem; *gp != NULL; gp++) 342 for (gp = gr->gr_mem; *gp != NULL; gp++) 647 for (gp = gr->gr_mem; gp != NULL && *gp != NULL; gp++)
|
/freebsd/usr.bin/newgrp/ |
H A D | newgrp.c | 173 for (p = grp->gr_mem; *p != NULL; p++) in addgroup()
|
/freebsd/usr.bin/wall/ |
H A D | wall.c | 150 for (np = grp->gr_mem; *np; np++) { in main()
|
/freebsd/contrib/mtree/ |
H A D | getid.c | 273 for (_gr_group.gr_mem = m = members;; bp++) { in grmatchline()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_platform_limits_solaris.h | 158 char **gr_mem; member
|
H A D | sanitizer_platform_limits_solaris.cpp | 353 CHECK_SIZE_AND_OFFSET(group, gr_mem);
|