Searched refs:gr_name (Results 1 - 25 of 59) sorted by relevance

123

/freebsd-current/lib/libc/tests/nss/
H A Dgetgr_test.c88 if (src->gr_name != NULL) {
89 dest->gr_name = strdup(src->gr_name);
90 ATF_REQUIRE(dest->gr_name != NULL);
121 free(grp->gr_name);
140 if (strcmp(grp1->gr_name, grp2->gr_name) != 0 ||
177 grp->gr_name, grp->gr_passwd, grp->gr_gid);
220 grp->gr_name = strdup(s);
221 ATF_REQUIRE(grp->gr_name !
[all...]
/freebsd-current/lib/libutil/
H A Dgr_util.c384 if (gr1->gr_name == NULL || gr2->gr_name == NULL) {
385 if (gr1->gr_name != gr2->gr_name)
387 } else if (strcmp(gr1->gr_name, gr2->gr_name) != 0)
436 line_size = snprintf(NULL, 0, group_line_format, gr->gr_name,
448 p += sprintf(p, group_line_format, gr->gr_name, gr->gr_passwd,
526 if (gr->gr_name != NULL) {
527 newgr->gr_name
[all...]
/freebsd-current/libexec/mknetid/
H A Dparse_group.c114 if ((_gr_group.gr_name = strsep(&bp, ":\n")) == NULL)
116 if (_gr_group.gr_name[0] == '+')
/freebsd-current/include/
H A Dgrp.h56 char *gr_name; /* group name */ member in struct:group
/freebsd-current/contrib/netbsd-tests/usr.bin/id/
H A Dpwgr.c93 g->gr_name = __UNCONST("wheel");
96 g->gr_name = __UNCONST("users");
/freebsd-current/usr.sbin/nscd/agents/
H A Dgroup.c55 if (grp->gr_name != NULL)
56 desired_size += strlen(grp->gr_name) + 1;
84 if (new_grp.gr_name != NULL) {
85 size = strlen(new_grp.gr_name);
86 memcpy(p, new_grp.gr_name, size);
87 new_grp.gr_name = p;
/freebsd-current/usr.bin/logins/
H A Dlogins.c56 char *gr_name; member in struct:xgroup
138 grps[ngrps].gr_name = xstrdup(grp->gr_name);
172 if (strcmp(grps[i].gr_name, name) == 0)
249 if (member(grp->gr_name, g_args) &&
300 pwd->pw_name, (long)pwd->pw_uid, grp ? grp->gr_name : "",
308 "", grp->gr_name, (long)grp->gr_gid);
/freebsd-current/usr.bin/id/
H A Did.c170 (void)printf("%s\n", gr->gr_name);
247 (void)printf("rgid\t%s\n", gr->gr_name);
294 (void)printf("(%s)", gr->gr_name);
303 (void)printf("(%s)", gr->gr_name);
312 printf("(%s)", gr->gr_name);
392 (void)printf(fmt, gr->gr_name);
/freebsd-current/include/rpcsvc/
H A Dmount.x121 name gr_name;
/freebsd-current/contrib/netbsd-tests/lib/libc/gen/
H A Dt_getgrent.c149 gr2 = getgrnam(gr->gr_name);
/freebsd-current/crypto/openssh/
H A Dgroupaccess.c75 groups_byname[j++] = xstrdup(gr->gr_name);
/freebsd-current/usr.sbin/pw/
H A Dgrupd.c105 return (gr_update(NULL, grp->gr_name));
H A Dpw_group.c74 grp->gr_name);
244 grp->gr_name, (long) grp->gr_gid);
471 grp->gr_name = pw_checkname(name, 0);
490 grp->gr_name);
495 pw_log(cnf, M_ADD, W_GROUP, "%s(%ju)", grp->gr_name,
677 name = grp->gr_name;
682 grp->gr_name = pw_checkname(newname, 0);
709 grp->gr_name);
721 pw_log(cnf, M_MODIFY, W_GROUP, "%s(%ju)", grp->gr_name,
H A Dpw_vpw.c178 if (strcmp(nam, gr->gr_name) == 0)
H A Dpw_user.c579 grp ? grp->gr_name : "(invalid)", (uintmax_t)pwd->pw_gid,
590 printf(j++ == 0 ? " Groups: %s" : ",%s", grp->gr_name);
938 strlcpy(grname, gr->gr_name, LOGNAMESIZE);
975 strlcpy(group, grp->gr_name, MAXLOGNAME);
1082 sl_add(*groups, newstr(grp->gr_name));
1096 cnf->default_group = newstr(grp->gr_name);
1441 chggrent(grp->gr_name, grp);
1453 grp ? grp->gr_name : "unknown",
1780 chggrent(grp->gr_name, grp);
1791 chggrent(grp->gr_name, gr
[all...]
/freebsd-current/lib/libc/posix1e/
H A Dacl_id_to_name.c88 i = snprintf(buf, buf_len, "%s", g->gr_name);
/freebsd-current/lib/libutil/tests/
H A Dgrp_test.c54 grp->gr_name = grpName;
/freebsd-current/contrib/llvm-project/lldb/source/Host/posix/
H A DHostInfoPosix.cpp108 return std::string(group_info_ptr->gr_name);
114 return std::string(group_info_ptr->gr_name);
/freebsd-current/crypto/openssh/openbsd-compat/
H A Dpwcache.c110 cp->name = strdup(gr ? gr->gr_name : nbuf);
/freebsd-current/usr.bin/showmount/
H A Dshowmount.c72 char gr_name[MNTNAMLEN+1]; member in struct:grouplist
207 printf("%s ", grp->gr_name);
367 strp = gp->gr_name;
/freebsd-current/contrib/mtree/
H A Dgetid.c258 _gr_group.gr_name = strsep(&bp, ":\n");
259 if (search && name && strcmp(_gr_group.gr_name, name))
/freebsd-current/bin/pax/
H A Dcache.c282 return(gr->gr_name);
284 (void)strncpy(ptr->name, gr->gr_name, GNMLEN - 1);
/freebsd-current/contrib/libarchive/libarchive/
H A Darchive_read_disk_set_standard_lookup.c294 return strdup(result->gr_name);
308 return strdup(result->gr_name);
/freebsd-current/lib/libc/gen/
H A Dgetgrent.c239 if (grp->gr_name != NULL)
240 desired_size += strlen(grp->gr_name) + 1;
268 if (new_grp.gr_name != NULL) {
269 size = strlen(new_grp.gr_name);
270 memcpy(p, new_grp.gr_name, size);
271 new_grp.gr_name = p;
362 NS_APPLY_OFFSET(grp->gr_name, orig_buf, p, char *);
1402 if (strcmp(name, grp->gr_name) != 0)
1547 (grp->gr_name = strsep(&line, ":")) == NULL ||
1548 grp->gr_name[
[all...]
/freebsd-current/usr.sbin/nfsuserd/
H A Dnfsuserd.c379 nid.nid_name = grp->gr_name;
380 nid.nid_namelen = strlen(grp->gr_name);
389 errx(1, "Can't add group %s", grp->gr_name);
664 nid.nid_name = grp->gr_name;
678 grp->gr_name);
731 nid.nid_name = grp->gr_name;
745 grp->gr_name);

Completed in 340 milliseconds

123