Searched defs:grp (Results 1 - 25 of 29) sorted by relevance

12

/osnet-11/usr/src/lib/libresolv2/common/irs/
H A Dutil.c69 struct group *grp; local
91 while ((grp = (*this->next)(this)) != NULL) {
92 if ((gid_t)grp->gr_gid == basegid)
94 for (i = 0; grp->gr_mem[i]; i++) {
95 if (!strcmp(grp->gr_mem[i], name)) {
98 groups[ng++] = grp->gr_gid;
H A Dlcl_ng.c278 struct ng_old_struct *grp; local
300 if (!(grp = malloc(sizeof (struct ng_old_struct)))) {
305 memset(grp, 0, sizeof (struct ng_old_struct));
306 grp->ng_next = pvt->grouphead.gr;
307 pvt->grouphead.gr = grp;
320 if(!(grp->ng_str[strpos]
326 memcpy(grp->ng_str[strpos],
/osnet-11/usr/src/lib/libpkg/common/
H A Dpkgexecv.c42 #include <grp.h>
140 struct group *grp; local
428 if (gname && *gname && (grp = cgrnam(gname)) != NULL) {
429 if (setgid(grp->gr_gid) == -1) {
430 progerr(pkg_gt(ERR_SETGID), grp->gr_gid);
H A Dncgrpw.c36 #include <grp.h>
61 static int dup_gr_ent(struct group *grp);
116 struct group *grp; local
138 if ((grp = clgrnam(nam)) != NULL ||
139 (grp = getgrnam(nam)) != NULL) {
141 if (dup_gr_ent(grp))
146 grp = (struct group *)NULL;
165 (void) memmove(itemp->data, grp,
176 return (grp);
276 struct group *grp; local
413 dup_gr_ent(struct group *grp) argument
[all...]
H A Dverify.c41 #include <grp.h>
388 struct group *grp; /* group entry buffer */ local
772 grp = cgrgid(status.st_gid);
773 if (grp)
774 (void) strcpy(ainfo->group, grp->gr_name);
781 } else if ((grp = cgrnam(ainfo->group)) == NULL) {
785 } else if ((gid = grp->gr_gid) != status.st_gid) {
788 gid = grp->gr_gid;
791 if ((grp = cgrgid((int)status.st_gid)) ==
797 grp
[all...]
/osnet-11/usr/src/lib/pyzfs/common/
H A Duserspace.py30 import grp namespace
71 (1, 0): ("POSIX Group", lambda id: grp.getgrgid(int(id)).gr_name),
H A Dallow.py32 import grp namespace
78 name = grp.getgrgid(int(ws)).gr_name
180 id = decodeid(w, grp.getgrnam,
192 id = grp.getgrnam(w)[2]
/osnet-11/usr/src/lib/pybootmgmt/common/bootmgmt/backend/loader/
H A Dmenulst.py30 import grp namespace
420 grp.getgrnam('sys').gr_gid)
H A Dsbb.py30 import grp namespace
382 grp.getgrnam(ZFSBootLoader.BOOTLST_GROUP).gr_gid)
/osnet-11/usr/src/lib/libproject/common/
H A Dgetprojent.c29 #include <grp.h>
141 struct group grp; local
146 if (getgrgid_r(gid, &grp, grbuf, NSS_BUFLEN_GROUP) != NULL) {
148 (void) snprintf(groupname, MAXGLEN, grp.gr_name);
184 if (getgrnam_r(member, &grp, grbuf, NSS_BUFLEN_GROUP) != NULL) {
185 for (u = grp.gr_mem; *u; u++)
265 struct group grp; local
318 if (getgrgid_r(gid, &grp, grbuf, NSS_LINELEN_GROUP) != NULL) {
320 "group.%s", grp.gr_name);
/osnet-11/usr/src/lib/libsmb/common/
H A Dsmb_sam.c210 smb_group_t grp; local
265 rc = smb_lgrp_getbyrid(rid, SMB_DOMAIN_LOCAL, &grp);
269 account->a_name = strdup(grp.sg_name);
270 smb_lgrp_free(&grp);
393 smb_group_t grp; local
396 if (smb_lgrp_getbyname((char *)gname, &grp) == SMB_LGRP_SUCCESS) {
397 ismember = smb_lgrp_is_member(&grp, sid);
398 smb_lgrp_free(&grp);
464 smb_group_t grp; local
466 if (smb_lgrp_getbyname(name, &grp) !
[all...]
/osnet-11/usr/src/lib/libsmbns/common/
H A Dsmbns_netbios.c40 #include <grp.h>
486 struct group *grp; local
499 grp = getgrnam("sys");
501 gid = (grp == NULL) ? 3 : grp->gr_gid;
/osnet-11/usr/src/lib/libcmd/common/
H A Did.c66 #include <grp.h>
197 register struct group* grp; local
289 gname = (grp = getgrgid(group)) ? grp->gr_name : (char*)0;
308 while (grp = getgrent())
309 if (p = grp->gr_mem)
318 sfprintf(sp, "%s", grp->gr_name);
319 else sfprintf(sp, "%u(%s)", grp->gr_gid, grp->gr_name);
334 putid(sp, flags, " egid", (grp
[all...]
/osnet-11/usr/src/lib/libexacct/demo/
H A Dexdump.c36 #include <grp.h>
317 struct group *grp; local
318 if ((grp = getgrgid(gid)) != NULL)
320 grp->gr_name);
/osnet-11/usr/src/lib/libc/port/gen/
H A Dgetgrnam_r.c29 #include <grp.h>
121 __posix_getgrgid_r(gid_t gid, struct group *grp, char *buffer, argument
128 if ((*result = getgrgid_r(gid, grp, buffer, (uintptr_t)bufsize))
154 __posix_getgrnam_r(const char *name, struct group *grp, char *buffer, argument
160 if ((*result = getgrnam_r(name, grp, buffer, (uintptr_t)bufsize))
425 struct group *grp; local
434 grp = (struct group *)buf->result;
437 grp, buf->buffer, buf->buflen);
444 if (grp->gr_mem) {
445 for (memp = grp
[all...]
/osnet-11/usr/src/lib/nsswitch/pynss/common/
H A Dnis.py29 import os, pwd, grp namespace
114 gid = grp.getgrnam('root').gr_gid
/osnet-11/usr/src/lib/libwrap/
H A Doptions.c55 #include <grp.h>
261 struct group *grp; local
264 if ((grp = getgrnam(value)) == 0)
268 if (dry_run == 0 && setgid(grp->gr_gid))
/osnet-11/usr/src/lib/libexacct/common/
H A Dexacct_ops.c678 * within the passed ea_file, and attaches them to grp.
681 unpack_group(ea_file_impl_t *f, ea_object_t *grp, int flag) argument
684 uint_t nobjs = grp->eo_group.eg_nobjs;
691 grp->eo_group.eg_nobjs = 0;
692 grp->eo_group.eg_objs = NULL;
707 (void) ea_attach_to_group(grp, obj);
716 if (nobjs != grp->eo_group.eg_nobjs) {
/osnet-11/usr/src/lib/fm/libasr/common/
H A Dasr_audit.c300 add_topo_ai_grp(asr_topo_enum_data_t *edata, nvlist_t *grp, argument
311 nvp = nvlist_next_nvpair(grp, NULL);
347 for (nvp = nvlist_next_nvpair(grp, NULL); nvp != NULL && err == 0;
348 nvp = nvlist_next_nvpair(grp, nvp)) {
384 nvlist_t *grp; local
392 (void) nvpair_value_nvlist(nvp, &grp);
393 err |= add_topo_ai_grp(edata, grp, std, out);
/osnet-11/usr/src/lib/fm/libfmd_log/common/
H A Dfmd_log.c107 ea_object_t *grp, *obj; local
116 if ((grp = ea_get_object_tree(&lp->log_ea, 1)) == NULL)
119 if (grp->eo_catalog != CAT_FMA_RGROUP &&
120 grp->eo_catalog != CAT_FMA_GROUP) {
121 fmd_log_dprintf(lp, "bad catalog tag 0x%x\n", grp->eo_catalog);
122 ea_free_object(grp, EUP_ALLOC);
127 rp->rec_grp = grp;
132 for (obj = grp->eo_group.eg_objs; obj != NULL; obj = obj->eo_next) {
192 * exacct group 'grp' into the next empty slot in rp->rec_xrefs. This function
197 fmd_log_record_t *rp, ea_object_t *grp)
196 fmd_log_load_xref(fmd_log_t *lp, uint_t iflags, fmd_log_record_t *rp, ea_object_t *grp) argument
325 ea_object_t *grp, *obj; local
380 ea_object_t *grp, *obj; local
559 ea_object_t obj, *grp; local
[all...]
/osnet-11/usr/src/lib/libprtdiag/inc/
H A Dpdevinfo_sun4u.h130 struct grp { struct
150 struct grp grp[MAX_GROUPS]; member in struct:grp_info
/osnet-11/usr/src/lib/libntsvcs/common/
H A Dsamr_svc.c40 #include <grp.h>
815 smb_group_t grp; local
870 (smb_lgrp_iterate(gi, &grp) == SMB_LGRP_SUCCESS)) {
871 if (smb_lgrp_is_member(&grp, user_sid)) {
872 group->rid = grp.sg_rid;
873 group->attr = grp.sg_attr;
877 smb_lgrp_free(&grp);
947 smb_group_t grp; local
971 rc = smb_lgrp_getbyrid(data->kd_rid, data->kd_type, &grp);
979 rc = smb_lgrp_add_member(grp
1006 smb_group_t grp; local
1064 smb_group_t grp; local
1516 smb_group_t grp; local
1602 smb_group_t grp; local
1709 smb_group_t grp; local
1777 smb_group_t grp; local
[all...]
/osnet-11/usr/src/lib/libdevinfo/
H A Ddevinfo_devperm.c37 #include <grp.h>
635 struct group grp, *grpp; local
647 if (getgrnam_r("tty", &grp, grbuf, NSS_BUFLEN_GROUP, &grpp) != 0) {
/osnet-11/usr/src/lib/libdladm/common/
H A Dlibdlaggr.c163 laioc_info_group_t *grp; local
168 grp = (laioc_info_group_t *)where;
170 attrp->lg_linkid = grp->lg_linkid;
171 attrp->lg_key = grp->lg_key;
172 attrp->lg_nports = grp->lg_nports;
173 attrp->lg_aggr_mode = grp->lg_aggr_mode;
174 attrp->lg_policy = grp->lg_policy;
175 attrp->lg_lacp_mode = grp->lg_lacp_mode;
176 attrp->lg_lacp_timer = grp->lg_lacp_timer;
177 attrp->lg_force = grp
[all...]
/osnet-11/usr/src/lib/libast/common/regex/
H A Dregcomp.c2043 grp(Cenv_t* env, int parno) function
2418 if (!(f = grp(env, parno + 1)) && env->error)
2762 if (!(e = grp(env, env->parno + 1)))

Completed in 356 milliseconds

12