Searched defs:gr (Results 1 - 25 of 37) sorted by relevance

12

/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dgrpauth.c54 struct group gr; local
60 gr = *grp;
61 if (gr.gr_passwd[0] == '#' && gr.gr_passwd[1] == '$') {
64 gr.gr_name);
67 if (strcmp(crypt(password, gr.gr_passwd), gr.gr_passwd) == 0)
/illumos-gate/usr/src/cmd/groups/
H A Dgroups.c106 struct group *gr; local
124 if (gr = getgrgid(groups[0]))
125 (void) printf("%s", gr->gr_name);
130 if ((gr = getgrgid(groups[i])))
131 (void) printf(" %s", gr->gr_name);
/illumos-gate/usr/src/ucbcmd/groups/
H A Dgroups.c37 struct group *gr; local
56 gr = getgrgid(groups[i]);
57 if (gr == NULL) {
62 (void) printf("%s%s", sep, gr->gr_name);
73 struct group *gr; local
85 while (gr = getgrent()) {
86 if (pw->pw_gid == gr->gr_gid) {
91 (void) printf("%s%s", sep, gr->gr_name);
97 for (cp = gr->gr_mem; cp && *cp; cp++)
99 (void) printf("%s%s", sep, gr
[all...]
/illumos-gate/usr/src/lib/libast/common/string/
H A Dfmtgid.c64 register struct group* gr; local
78 if (gr = getgrgid(gid))
80 name = gr->gr_name;
H A Dstrgid.c73 register struct group* gr; local
88 if (gr = getgrnam(name))
89 id = gr->gr_gid;
103 else if (gr = getgrnam("Administrators"))
104 id = gr->gr_gid;
/illumos-gate/usr/src/cmd/fs.d/nfs/dfshares/
H A Ddfshares.c164 struct groupnode *gr, *tmpgr; local
169 gr = ex->ex_groups;
170 while (gr) {
171 tmpgr = gr->gr_next;
172 free((char *)gr);
173 gr = tmpgr;
/illumos-gate/usr/src/cmd/hal/hald/
H A Dutil_helper.c99 struct group *gr = NULL; local
109 gr = getgrnam (HAL_GROUP);
110 if (!gr) {
116 if (initgroups (HAL_USER, gr->gr_gid)) {
122 if (setgid (gr->gr_gid)) {
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dirs_data.h29 struct irs_gr * gr; member in struct:net_data
H A Dgen_p.h70 struct irs_gr * gr; member in struct:irs_inst
H A Dlcl_ng.c83 struct ng_old_struct *gr; member in struct:pvt::__anon3863
159 if (pvt->fp == NULL || pvt->grouphead.gr == NULL ||
174 pvt->nextgrp = pvt->grouphead.gr;
254 gp = pvt->grouphead.gr;
266 pvt->grouphead.gr = NULL;
306 grp->ng_next = pvt->grouphead.gr;
307 pvt->grouphead.gr = grp;
H A Dirpmarshall.c398 * int irp_marshall_gr(const struct group *gr, char **buffer, size_t *len)
410 irp_marshall_gr(const struct group *gr, char **buffer, size_t *len) { argument
415 if (gr == NULL || len == NULL) {
420 sprintf(grGid, "%ld", (long)gr->gr_gid);
422 need += strlen(gr->gr_name) + 1;
424 need += strlen(gr->gr_passwd) + 1;
429 need += joinlength(gr->gr_mem) + 1;
452 strcpy(*buffer, gr->gr_name); strcat(*buffer, fieldsep);
454 strcat(*buffer, gr->gr_passwd);
458 joinarray(gr
477 irp_unmarshall_gr(struct group *gr, char *buffer) argument
2210 struct group *gr; local
[all...]
/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/
H A Dexportlist.c78 char *gr, *p, *opts, *val, *lasts; local
145 while ((gr = strtok_r(val, ":", &lasts))
148 grtail = newgroup(gr, grtail);
H A Dnetgroup.c105 char *gr; local
134 for (i = 0, gr = glist; i < grc && !belong; ) {
140 response = (*gr != '-') ? 1 : 0;
146 for (n = 0; i < grc; i++, n++, gr += strlen(gr) + 1) {
147 if ((response && *gr == '-') ||
148 (!response && *gr != '-'))
151 grl[n] = response ? gr : gr + 1;
/illumos-gate/usr/src/cmd/sendmail/libsmutil/
H A Dsafefile.c56 register struct group *gr = NULL; local
224 ((gr != NULL &&
225 gr->gr_gid == stbuf.st_gid) ||
226 (gr = getgrgid(stbuf.st_gid)) != NULL))
230 for (gp = gr->gr_mem; *gp != NULL; gp++)
338 ((gr != NULL && gr->gr_gid == st->st_gid) ||
339 (gr = getgrgid(st->st_gid)) != NULL))
343 for (gp = gr->gr_mem; *gp != NULL; gp++)
408 register struct group *gr local
[all...]
/illumos-gate/usr/src/cmd/chgrp/
H A Dchgrp.c65 static struct group *gr; variable in typeref:struct:group
208 } else if ((gr = getgrnam(argv[0])) != NULL) {
209 gid = gr->gr_gid;
/illumos-gate/usr/src/cmd/fs.d/nfs/showmount/
H A Dshowmount.c265 struct groupnode *gr; local
292 gr = ex->ex_groups;
293 if (gr == NULL) {
296 while (gr) {
297 printf("%s", gr->gr_name);
298 gr = gr->gr_next;
299 if (gr) {
/illumos-gate/usr/src/lib/libpkg/common/
H A Dncgrpw.c595 struct group *gr; local
612 while ((gr = fgetgrent(gr_ptr)) != NULL) {
613 if (strcmp(gr->gr_name, nam) == 0) {
620 return (gr);
673 struct group *gr; local
689 while ((gr = fgetgrent(gr_ptr)) != NULL) {
690 if (gr->gr_gid == gid) {
697 return (gr);
/illumos-gate/usr/src/cmd/id/
H A Did.c79 struct group *gr; local
208 if (gr = getgrgid(*idp))
210 gr->gr_name);
246 if (gr = getgrgid(*idp))
248 gr->gr_name);
320 struct group *gr; local
322 if (nflag && (gr = getgrgid(gid)) != GRNULL)
323 (void) printf("%s", gr->gr_name);
/illumos-gate/usr/src/cmd/ptools/pflags/
H A Dpflags.c617 int gr, xr, cols = 2; local
626 for (gr = R_G0, xr = XR_G0; gr <= R_G7; gr++, xr++) {
628 (uint64_t)(uint32_t)reg[gr];
629 (void) printf(" %s = 0x%.16" PRIX64, regname[gr], xval);
630 if ((gr + 1) % cols == 0)
634 for (gr = R_O0, xr = XR_O0; gr <= R_O7; gr
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/
H A Dmain.c52 struct group *gr; /* pointer to static area used by getgrent */ variable in typeref:struct:group
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dplace.c241 Group_desc *gr; local
249 ((gr = ld_get_group(ofl, isp)) != NULL) &&
250 (gr->gd_data[0] & GRP_COMDAT))
/illumos-gate/usr/src/lib/auditd_plugins/syslog/
H A Dsysplugin.c424 struct group gr; local
471 if (getgrgid_r(gid, &gr, pw_buf, GETPWUID_BUFF_LEN) ==
479 gr.gr_name, GIDNAMELEN);
/illumos-gate/usr/src/uts/sparc/fs/proc/
H A Dprmachdep.c95 gregset_t gr; local
99 getgregs(lwp, gr);
106 prp[R_G1] = gr[REG_G1];
107 prp[R_G2] = gr[REG_G2];
108 prp[R_G3] = gr[REG_G3];
109 prp[R_G4] = gr[REG_G4];
110 prp[R_G5] = gr[REG_G5];
111 prp[R_G6] = gr[REG_G6];
112 prp[R_G7] = gr[REG_G7];
114 prp[R_O0] = gr[REG_O
157 gregset_t gr; local
314 gregset32_t gr; local
[all...]
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dctx.c874 struct group gr; local
883 if (getgrnam_r(cp, &gr, buf, sizeof (buf)) != NULL) {
884 *gid = gr.gr_gid;
/illumos-gate/usr/src/ucbcmd/ls/
H A Dls.c831 struct group *gr; local
835 if ((gr = getgrgid(gid)) != NULL) {
836 (void) SCPYN(&c->name[0], gr->gr_name);

Completed in 89 milliseconds

12