Home
last modified time | relevance | path

Searched refs:ng (Results 1 – 25 of 32) sorted by relevance

12

/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dgen_ng.c67 if (!(ng = memget(sizeof *ng))) { in irs_gen_ng()
71 memset(ng, 0x5e, sizeof *ng); in irs_gen_ng()
73 memput(ng, sizeof *ng); in irs_gen_ng()
110 ng = pvt->rule->inst->ng; in ng_next()
117 ng = pvt->rule->inst->ng; in ng_next()
118 (*ng->rewind)(ng, pvt->curgroup); in ng_next()
135 ng = rule->inst->ng; in ng_test()
153 ng = pvt->rule->inst->ng; in ng_rewind()
154 (*ng->rewind)(ng, pvt->curgroup); in ng_rewind()
164 struct irs_ng *ng = rule->inst->ng; in ng_minimize() local
[all …]
H A Dgetnetgrent.c96 struct irs_ng *ng; in setnetgrent_p() local
98 if ((net_data != NULL) && ((ng = net_data->ng) != NULL)) in setnetgrent_p()
99 (*ng->rewind)(ng, netgroup); in setnetgrent_p()
104 struct irs_ng *ng; in endnetgrent_p() local
108 if ((ng = net_data->ng) != NULL) in endnetgrent_p()
109 (*ng->close)(ng); in endnetgrent_p()
117 struct irs_ng *ng; in innetgr_p() local
119 if (!net_data || !(ng = net_data->ng)) in innetgr_p()
121 return ((*ng->test)(ng, netgroup, host, user, domain)); in innetgr_p()
129 if (!net_data || !(ng = net_data->ng)) in getnetgrent_p()
[all …]
H A Dnul_ng.c61 struct irs_ng *ng; in irs_nul_ng() local
65 if (!(ng = memget(sizeof *ng))) { in irs_nul_ng()
69 memset(ng, 0x5e, sizeof *ng); in irs_nul_ng()
70 ng->private = NULL; in irs_nul_ng()
71 ng->close = ng_close; in irs_nul_ng()
72 ng->next = ng_next; in irs_nul_ng()
73 ng->test = ng_test; in irs_nul_ng()
74 ng->rewind = ng_rewind; in irs_nul_ng()
75 ng->minimize = ng_minimize; in irs_nul_ng()
76 return (ng); in irs_nul_ng()
H A Dirp_ng.c68 struct irs_ng *ng; in irs_irp_ng() local
71 if (!(ng = memget(sizeof *ng))) { in irs_irp_ng()
75 memset(ng, 0x5e, sizeof *ng); in irs_irp_ng()
78 memput(ng, sizeof *ng); in irs_irp_ng()
85 ng->private = pvt; in irs_irp_ng()
86 ng->close = ng_close; in irs_irp_ng()
87 ng->next = ng_next; in irs_irp_ng()
88 ng->test = ng_test; in irs_irp_ng()
89 ng->rewind = ng_rewind; in irs_irp_ng()
90 ng->minimize = ng_minimize; in irs_irp_ng()
[all …]
H A Dutil.c66 int i, ng; in make_group_list() local
70 ng = 0; in make_group_list()
77 if (ng >= maxgroups) in make_group_list()
79 groups[ng++] = basegid; in make_group_list()
80 if (ng >= maxgroups) in make_group_list()
82 groups[ng++] = basegid; in make_group_list()
92 if (ng >= maxgroups) in make_group_list()
94 groups[ng++] = grp->gr_gid; in make_group_list()
101 *ngroups = ng; in make_group_list()
H A Dlcl_ng.c103 struct irs_ng *ng; in irs_lcl_ng() local
108 if (!(ng = memget(sizeof *ng))) { in irs_lcl_ng()
112 memset(ng, 0x5e, sizeof *ng); in irs_lcl_ng()
114 memput(ng, sizeof *ng); in irs_lcl_ng()
119 ng->private = pvt; in irs_lcl_ng()
120 ng->close = ng_close; in irs_lcl_ng()
121 ng->next = ng_next; in irs_lcl_ng()
122 ng->test = ng_test; in irs_lcl_ng()
123 ng->rewind = ng_rewind; in irs_lcl_ng()
124 ng->minimize = ng_minimize; in irs_lcl_ng()
[all …]
H A Dirs_data.c99 if (net_data->ng != NULL) { in net_data_destroy()
100 (*net_data->ng->close)(net_data->ng); in net_data_destroy()
101 net_data->ng = NULL; in net_data_destroy()
H A Dgetnetgrent_r.c43 char *ng, *ho, *us, *dom; in innetgr_r() local
45 DE_CONST(netgroup, ng); in innetgr_r()
50 return (innetgr(ng, ho, us, dom)); in innetgr_r()
H A Dgen.c248 if (irs->accessors[n].ng != NULL) in gen_close()
249 (*irs->accessors[n].ng->close)(irs->accessors[n].ng); in gen_close()
367 if (inst->ng == NULL && inst->acc->ng_map != NULL) in add_rule()
368 inst->ng = (*inst->acc->ng_map)(inst->acc); in add_rule()
H A Dirs_data.h35 struct irs_ng * ng; member
H A Dgen_p.h76 struct irs_ng * ng; member
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs_server.c277 nfs_globals_t *ng; in nfs_srv_getzg() local
280 if (ng == NULL) { in nfs_srv_getzg()
285 return (ng); in nfs_srv_getzg()
297 nfs_globals_t *ng; in nfs_srv_offline() local
436 nfs_globals_t *ng; in nfs_svc() local
493 if ((ng->nfs_versmin > ng->nfs_versmax) || in nfs_svc()
567 nfs_globals_t *ng; in rdma_start() local
1514 ng->rfsproccnt[vers] : ng->aclproccnt[vers]; in common_dispatch()
2627 ng = kmem_zalloc(sizeof (*ng), KM_SLEEP); in nfs_server_zone_init()
2656 return (ng); in nfs_server_zone_init()
[all …]
H A Dnfs_stats.c503 rfs_stat_zone_init(nfs_globals_t *ng) in rfs_stat_zone_init() argument
505 zoneid_t zoneid = ng->nfs_zoneid; in rfs_stat_zone_init()
508 nfsstat_zone_init_server(zoneid, ng->svstat); in rfs_stat_zone_init()
530 rfs_stat_zone_fini(nfs_globals_t *ng) in rfs_stat_zone_fini() argument
532 zoneid_t zoneid = ng->nfs_zoneid; in rfs_stat_zone_fini()
535 nfsstat_zone_fini_server(zoneid, ng->svstat); in rfs_stat_zone_fini()
539 kmem_free(ng->rfsproccnt[NFS_V2], sizeof (rfsproccnt_v2_tmpl)); in rfs_stat_zone_fini()
542 kmem_free(ng->rfsproccnt[NFS_V3], sizeof (rfsproccnt_v3_tmpl)); in rfs_stat_zone_fini()
545 kmem_free(ng->rfsproccnt[NFS_V4], sizeof (rfsproccnt_v4_tmpl)); in rfs_stat_zone_fini()
549 kmem_free(ng->aclproccnt[NFS_V2], sizeof (aclproccnt_v2_tmpl)); in rfs_stat_zone_fini()
[all …]
H A Dnfs_auth.c181 nfs_globals_t *ng = nfs_srv_getzg(); in nfsauth_get_zg() local
182 nfsauth_globals_t *nag = ng->nfs_auth; in nfsauth_get_zg()
215 nfsauth_zone_init(nfs_globals_t *ng) in nfsauth_zone_init() argument
232 ng->nfs_auth = nag; in nfsauth_zone_init()
275 nfsauth_zone_fini(nfs_globals_t *ng) in nfsauth_zone_fini() argument
279 ng->nfs_auth = NULL; in nfsauth_zone_fini()
1486 nfs_globals_t *ng; in exi_cache_reclaim() local
1491 while (ng != NULL) { in exi_cache_reclaim()
1492 exi_cache_reclaim_zone(ng); in exi_cache_reclaim()
1493 ng = list_next(&nfssrv_globals_list, ng); in exi_cache_reclaim()
[all …]
H A Dnfs_export.c123 nfs_globals_t *ng = nfs_srv_getzg(); in nfs_get_export() local
124 nfs_export_t *ne = ng->nfs_export; in nfs_get_export()
892 nfs_export_zone_init(nfs_globals_t *ng) in nfs_export_zone_init() argument
966 ng->nfs_export = ne; in nfs_export_zone_init()
975 nfs_export_t *ne = ng->nfs_export; in nfs_export_zone_shutdown()
978 zoneid_t zoneid = ng->nfs_zoneid; in nfs_export_zone_shutdown()
1023 (int)ng->nfs_zoneid); in nfs_export_zone_shutdown()
1031 nfs_export_zone_fini(nfs_globals_t *ng) in nfs_export_zone_fini() argument
1034 nfs_export_t *ne = ng->nfs_export; in nfs_export_zone_fini()
1037 ng->nfs_export = NULL; in nfs_export_zone_fini()
[all …]
H A Dnfs_srv.c118 nfs_globals_t *ng = nfs_srv_getzg(); in nfs_get_srv() local
119 nfs_srv_t *srv = ng->nfs_srv; in nfs_get_srv()
3125 rfs_srv_zone_init(nfs_globals_t *ng) in rfs_srv_zone_init() argument
3134 ng->nfs_srv = ns; in rfs_srv_zone_init()
3139 rfs_srv_zone_fini(nfs_globals_t *ng) in rfs_srv_zone_fini() argument
3141 nfs_srv_t *ns = ng->nfs_srv; in rfs_srv_zone_fini()
3143 ng->nfs_srv = NULL; in rfs_srv_zone_fini()
H A Dnfs3_srv.c98 nfs_globals_t *ng = nfs_srv_getzg(); in nfs3_get_srv() local
99 nfs3_srv_t *srv = ng->nfs3_srv; in nfs3_get_srv()
4397 rfs3_srv_zone_init(nfs_globals_t *ng) in rfs3_srv_zone_init() argument
4442 ng->nfs3_srv = ns; in rfs3_srv_zone_init()
4446 rfs3_srv_zone_fini(nfs_globals_t *ng) in rfs3_srv_zone_fini() argument
4448 nfs3_srv_t *ns = ng->nfs3_srv; in rfs3_srv_zone_fini()
4450 ng->nfs3_srv = NULL; in rfs3_srv_zone_fini()
H A Dnfs4_state.c4125 nfs_globals_t *ng; in rfs4_clean_state_exi() local
4128 ng = ne->ne_globals; in rfs4_clean_state_exi()
4129 ASSERT(ng->nfs_zoneid == exi->exi_zoneid); in rfs4_clean_state_exi()
4130 nsrv4 = ng->nfs4_srv; in rfs4_clean_state_exi()
/illumos-gate/usr/src/lib/nsswitch/ldap/common/
H A Dgetnetgrent.c129 ng = ng->next_hash; in add_netgroup_name()
132 if (ng == NULL) { in add_netgroup_name()
158 ng = tab->to_do; in get_next_netgroup()
159 if (ng != NULL) { in get_next_netgroup()
162 tab->done = ng; in get_next_netgroup()
164 return (ng); in get_next_netgroup()
175 for (ng = tab->to_do; ng != NULL; ng = next) { in free_netgroup_table()
179 free(ng); in free_netgroup_table()
182 for (ng = tab->done; ng != NULL; ng = next) { in free_netgroup_table()
186 free(ng); in free_netgroup_table()
[all …]
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dipfs.c706 natget_t ng; local
724 ng.ng_ptr = next;
725 ng.ng_sz = 0;
726 if (ioctl(fd, SIOCSTGSZ, &ng)) {
735 printf("NAT size %d from %p\n", ng.ng_sz, ng.ng_ptr);
737 if (ng.ng_sz == 0)
741 ipnp = malloc(ng.ng_sz);
743 ipnp = realloc((char *)ipnp, ng.ng_sz);
750 bzero((char *)ipnp, ng.ng_sz);
751 obj.ipfo_size = ng.ng_sz;
[all …]
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dslk_start.c65 slk_start(int ng, int *gp) in slk_start() argument
70 switch (ng) { in slk_start()
111 for (; i < ng; i++) { in slk_start()
117 _ngroups = ng; in slk_start()
/illumos-gate/usr/src/lib/libbsm/common/
H A Daudit_allocate.c93 int ng; /* number of groups in process */ local
135 if ((ng = getgroups(maxgrp, grplst)) < 0) {
141 (void) au_write(ad, au_to_newgroups(ng, grplst));
H A Dgeneric.c422 int ng; in aug_audit() local
426 if ((ng = getgroups(maxgrp, grplst)) > 0) { in aug_audit()
427 (void) au_write(ad, au_to_newgroups(ng, grplst)); in aug_audit()
/illumos-gate/usr/src/cmd/smserverd/
H A Dmyaudit.c217 int ng; in audit_audit() local
221 if ((ng = getgroups(maxgrp, grplst))) { in audit_audit()
222 (void) au_write(ad, au_to_newgroups(ng, grplst)); in audit_audit()
/illumos-gate/usr/src/uts/common/inet/ipf/
H A Dip_nat.c1195 natget_t ng; local
1198 err = BCOPYIN(data, &ng, sizeof(ng));
1202 nat = ng.ng_ptr;
1205 ng.ng_sz = 0;
1210 err = BCOPYOUT(&ng, data, sizeof(ng));
1233 ng.ng_sz = sizeof(nat_save_t);
1236 ng.ng_sz += sizeof(ap_session_t) - 4;
1238 ng.ng_sz += aps->aps_psiz;
1241 err = BCOPYOUT(&ng, data, sizeof(ng));

12