Home
last modified time | relevance | path

Searched refs:gr_name (Results 1 – 25 of 61) sorted by relevance

123

/freebsd/lib/libc/tests/nss/
H A Dgetgr_test.c88 if (src->gr_name != NULL) { in IMPLEMENT_TEST_FILE_SNAPSHOT()
89 dest->gr_name = strdup(src->gr_name); in IMPLEMENT_TEST_FILE_SNAPSHOT()
90 ATF_REQUIRE(dest->gr_name != NULL); in IMPLEMENT_TEST_FILE_SNAPSHOT()
121 free(grp->gr_name); in free_group()
140 if (strcmp(grp1->gr_name, grp2->gr_name) != 0 || in compare_group()
177 grp->gr_name, grp->gr_passwd, grp->gr_gid); in sdump_group()
220 grp->gr_name = strdup(s); in group_read_snapshot_func()
221 ATF_REQUIRE(grp->gr_name != NULL); in group_read_snapshot_func()
232 free(grp->gr_name); in group_read_snapshot_func()
234 grp->gr_name = NULL; in group_read_snapshot_func()
[all …]
/freebsd/lib/libutil/
H A Dgr_util.c384 if (gr1->gr_name == NULL || gr2->gr_name == NULL) { in gr_equal()
385 if (gr1->gr_name != gr2->gr_name) in gr_equal()
387 } else if (strcmp(gr1->gr_name, gr2->gr_name) != 0) in gr_equal()
436 line_size = snprintf(NULL, 0, group_line_format, gr->gr_name, in gr_make()
448 p += sprintf(p, group_line_format, gr->gr_name, gr->gr_passwd, in gr_make()
526 if (gr->gr_name != NULL) { in grcopy()
527 newgr->gr_name = dst; in grcopy()
528 dst = stpcpy(dst, gr->gr_name) + 1; in grcopy()
530 newgr->gr_name = NULL; in grcopy()
570 if (gr->gr_name != NULL) in grmemlen()
[all …]
/freebsd/usr.sbin/nscd/agents/
H A Dgroup.c55 if (grp->gr_name != NULL) in group_marshal_func()
56 desired_size += strlen(grp->gr_name) + 1; in group_marshal_func()
84 if (new_grp.gr_name != NULL) { in group_marshal_func()
85 size = strlen(new_grp.gr_name); in group_marshal_func()
86 memcpy(p, new_grp.gr_name, size); in group_marshal_func()
87 new_grp.gr_name = p; in group_marshal_func()
/freebsd/usr.bin/logins/
H A Dlogins.c56 char *gr_name; member
138 grps[ngrps].gr_name = xstrdup(grp->gr_name); in get_groups()
172 if (strcmp(grps[i].gr_name, name) == 0)
249 if (member(grp->gr_name, g_args) && in select_users()
300 pwd->pw_name, (long)pwd->pw_uid, grp ? grp->gr_name : "", in display_user()
308 "", grp->gr_name, (long)grp->gr_gid); in display_user()
/freebsd/usr.sbin/pw/
H A Dpw_group.c74 grp->gr_name); in grp_set_passwd()
244 grp->gr_name, (long) grp->gr_gid); in print_group()
471 grp->gr_name = pw_checkname(name, 0); in groupadd()
490 grp->gr_name); in pw_group_add()
495 pw_log(cnf, M_ADD, W_GROUP, "%s(%ju)", grp->gr_name, in pw_group_add()
677 name = grp->gr_name; in pw_group_mod()
682 grp->gr_name = pw_checkname(newname, 0); in pw_group_mod()
709 grp->gr_name);
721 pw_log(cnf, M_MODIFY, W_GROUP, "%s(%ju)", grp->gr_name,
H A Dpw_user.c579 grp ? grp->gr_name : "(invalid)", (uintmax_t)pwd->pw_gid, in print_user()
590 printf(j++ == 0 ? " Groups: %s" : ",%s", grp->gr_name); in print_user()
943 strlcpy(grname, gr->gr_name, LOGNAMESIZE); in pw_user_del()
980 strlcpy(group, grp->gr_name, MAXLOGNAME); in pw_user_del()
1087 sl_add(*groups, newstr(grp->gr_name)); in split_groups()
1101 cnf->default_group = newstr(grp->gr_name); in validate_grname()
1446 chggrent(grp->gr_name, grp); in pw_user_add()
1458 grp ? grp->gr_name : "unknown", in pw_user_add()
1785 chggrent(grp->gr_name, grp); in pw_user_mod()
1796 chggrent(grp->gr_name, grp); in pw_user_mod()
[all …]
H A Dgrupd.c105 return (gr_update(NULL, grp->gr_name)); in delgrent()
/freebsd/usr.bin/id/
H A Did.c170 (void)printf("%s\n", gr->gr_name); in main()
247 (void)printf("rgid\t%s\n", gr->gr_name); in pretty()
294 (void)printf("(%s)", gr->gr_name); in id_print()
303 (void)printf("(%s)", gr->gr_name); in id_print()
312 printf("(%s)", gr->gr_name); in id_print()
392 (void)printf(fmt, gr->gr_name); in group()
/freebsd/libexec/mknetid/
H A Dparse_group.c114 if ((_gr_group.gr_name = strsep(&bp, ":\n")) == NULL) in grscan()
116 if (_gr_group.gr_name[0] == '+') in grscan()
/freebsd/contrib/netbsd-tests/usr.bin/id/
H A Dpwgr.c93 g->gr_name = __UNCONST("wheel"); in getgrgid()
96 g->gr_name = __UNCONST("users"); in getgrgid()
/freebsd/usr.sbin/nfsuserd/
H A Dnfsuserd.c379 nid.nid_name = grp->gr_name; in main()
380 nid.nid_namelen = strlen(grp->gr_name); in main()
389 errx(1, "Can't add group %s", grp->gr_name); in main()
664 nid.nid_name = grp->gr_name; in nfsuserdsrv()
678 grp->gr_name); in nfsuserdsrv()
731 nid.nid_name = grp->gr_name; in nfsuserdsrv()
745 grp->gr_name); in nfsuserdsrv()
/freebsd/usr.bin/showmount/
H A Dshowmount.c72 char gr_name[MNTNAMLEN+1]; member
207 printf("%s ", grp->gr_name); in main()
367 strp = gp->gr_name; in xdr_exportslist()
/freebsd/contrib/llvm-project/lldb/source/Host/posix/
H A DHostInfoPosix.cpp108 return std::string(group_info_ptr->gr_name); in DoGetGroupName()
114 return std::string(group_info_ptr->gr_name); in DoGetGroupName()
/freebsd/lib/libc/gen/
H A Dgetgrent.c239 if (grp->gr_name != NULL) in grp_marshal_func()
240 desired_size += strlen(grp->gr_name) + 1; in grp_marshal_func()
268 if (new_grp.gr_name != NULL) { in grp_marshal_func()
269 size = strlen(new_grp.gr_name); in grp_marshal_func()
270 memcpy(p, new_grp.gr_name, size); in grp_marshal_func()
271 new_grp.gr_name = p; in grp_marshal_func()
362 NS_APPLY_OFFSET(grp->gr_name, orig_buf, p, char *); in grp_unmarshal_func()
1402 if (strcmp(name, grp->gr_name) != 0) in compat_group()
1547 (grp->gr_name = strsep(&line, ":")) == NULL || in __gr_parse_entry()
1548 grp->gr_name[0] == '\0' || in __gr_parse_entry()
/freebsd/include/
H A Dgrp.h56 char *gr_name; /* group name */ member
/freebsd/contrib/mtree/
H A Dgetid.c258 _gr_group.gr_name = strsep(&bp, ":\n"); in grmatchline()
259 if (search && name && strcmp(_gr_group.gr_name, name)) in grmatchline()
/freebsd/bin/pax/
H A Dcache.c282 return(gr->gr_name); in name_gid()
284 (void)strncpy(ptr->name, gr->gr_name, GNMLEN - 1); in name_gid()
/freebsd/lib/libc/posix1e/
H A Dacl_id_to_name.c88 i = snprintf(buf, buf_len, "%s", g->gr_name); in _posix1e_acl_id_to_name()
/freebsd/contrib/libarchive/libarchive/
H A Darchive_read_disk_set_standard_lookup.c294 return strdup(result->gr_name); in lookup_gname_helper()
308 return strdup(result->gr_name); in lookup_gname_helper()
/freebsd/lib/libutil/tests/
H A Dgrp_test.c54 grp->gr_name = grpName; in build_grp()
/freebsd/include/rpcsvc/
H A Dmount.x121 name gr_name; member
/freebsd/contrib/netbsd-tests/lib/libc/gen/
H A Dt_getgrent.c149 gr2 = getgrnam(gr->gr_name); in ATF_TC_BODY()
/freebsd/crypto/openssh/
H A Dgroupaccess.c75 groups_byname[j++] = xstrdup(gr->gr_name); in ga_init()
/freebsd/crypto/openssh/openbsd-compat/
H A Dpwcache.c110 cp->name = strdup(gr ? gr->gr_name : nbuf); in group_from_gid()
/freebsd/contrib/libc-pwcache/
H A Dpwcache.c383 return (gr->gr_name); in group_from_gid()
385 (void)strlcpy(ptr->name, gr->gr_name, GNMLEN); in group_from_gid()

123