Home
last modified time | relevance | path

Searched refs:pvt (Results 1 – 25 of 31) sorted by relevance

12

/titanic_41/usr/src/lib/libresolv2/common/irs/
H A Dgen_ho.c48 struct pvt { struct
82 struct pvt *pvt; in irs_gen_ho() local
84 if (!(pvt = memget(sizeof *pvt))) { in irs_gen_ho()
88 memset(pvt, 0, sizeof *pvt); in irs_gen_ho()
90 memput(pvt, sizeof *pvt); in irs_gen_ho()
95 pvt->rules = accpvt->map_rules[irs_ho]; in irs_gen_ho()
96 pvt->rule = pvt->rules; in irs_gen_ho()
97 ho->private = pvt; in irs_gen_ho()
115 struct pvt *pvt = (struct pvt *)this->private; in ho_close() local
118 if (pvt->res && pvt->free_res) in ho_close()
[all …]
H A Dgen_nw.c46 struct pvt { struct
74 struct pvt *pvt; in irs_gen_nw() local
76 if (!(pvt = memget(sizeof *pvt))) { in irs_gen_nw()
80 memset(pvt, 0, sizeof *pvt); in irs_gen_nw()
82 memput(pvt, sizeof *pvt); in irs_gen_nw()
87 pvt->rules = accpvt->map_rules[irs_nw]; in irs_gen_nw()
88 pvt->rule = pvt->rules; in irs_gen_nw()
89 nw->private = pvt; in irs_gen_nw()
105 struct pvt *pvt = (struct pvt *)this->private; in nw_close() local
109 if (pvt->res && pvt->free_res) in nw_close()
[all …]
H A Dlcl_nw.c87 struct pvt { struct
123 struct pvt *pvt; in irs_lcl_nw() local
127 if (!(pvt = memget(sizeof *pvt))) { in irs_lcl_nw()
131 memset(pvt, 0, sizeof *pvt); in irs_lcl_nw()
133 memput(pvt, sizeof *pvt); in irs_lcl_nw()
138 nw->private = pvt; in irs_lcl_nw()
154 struct pvt *pvt = (struct pvt *)this->private; in nw_close() local
157 if (pvt->res && pvt->free_res) in nw_close()
158 (*pvt->free_res)(pvt->res); in nw_close()
159 if (pvt->fp) in nw_close()
[all …]
H A Dgen_pr.c45 struct pvt { struct
71 struct pvt *pvt; in irs_gen_pr() local
78 if (!(pvt = memget(sizeof *pvt))) { in irs_gen_pr()
83 memset(pvt, 0, sizeof *pvt); in irs_gen_pr()
84 pvt->rules = accpvt->map_rules[irs_pr]; in irs_gen_pr()
85 pvt->rule = pvt->rules; in irs_gen_pr()
86 pr->private = pvt; in irs_gen_pr()
102 struct pvt *pvt = (struct pvt *)this->private; in pr_close() local
104 memput(pvt, sizeof *pvt); in pr_close()
110 struct pvt *pvt = (struct pvt *)this->private; in pr_next() local
[all …]
H A Dlcl_ho.c106 struct pvt { struct
157 struct pvt *pvt; in irs_lcl_ho() local
161 if (!(pvt = memget(sizeof *pvt))) { in irs_lcl_ho()
165 memset(pvt, 0, sizeof *pvt); in irs_lcl_ho()
167 memput(pvt, sizeof *pvt); in irs_lcl_ho()
172 ho->private = pvt; in irs_lcl_ho()
190 struct pvt *pvt = (struct pvt *)this->private; in ho_close() local
193 if (pvt->fp) in ho_close()
194 (void) fclose(pvt->fp); in ho_close()
195 if (pvt->res && pvt->free_res) in ho_close()
[all …]
H A Dgen_sv.c45 struct pvt { struct
72 struct pvt *pvt; in irs_gen_sv() argument
79 if (!(pvt = memget(sizeof *pvt))) { in irs_gen_sv()
84 memset(pvt, 0, sizeof *pvt); in irs_gen_sv()
85 pvt->rules = accpvt->map_rules[irs_sv]; in irs_gen_sv()
86 pvt->rule = pvt->rules; in irs_gen_sv()
87 sv->private = pvt; in irs_gen_sv()
103 struct pvt *pvt = (struct pvt *)this->private; in sv_close() local
105 memput(pvt, sizeof *pvt); in sv_close()
111 struct pvt *pvt = (struct pvt *)this->private; in sv_next() local
[all …]
H A Dgen_ng.c46 struct pvt { struct
69 struct pvt *pvt; in irs_gen_ng() argument
76 if (!(pvt = memget(sizeof *pvt))) { in irs_gen_ng()
81 memset(pvt, 0, sizeof *pvt); in irs_gen_ng()
82 pvt->rules = accpvt->map_rules[irs_ng]; in irs_gen_ng()
83 pvt->rule = pvt->rules; in irs_gen_ng()
84 ng->private = pvt; in irs_gen_ng()
97 struct pvt *pvt = (struct pvt *)this->private; in ng_close() local
100 if (pvt->curgroup) in ng_close()
101 free(pvt->curgroup); in ng_close()
[all …]
H A Ddns_pr.c49 struct pvt { struct
75 struct pvt *pvt; in irs_dns_pr() argument
82 if (!(pvt = memget(sizeof *pvt))) { in irs_dns_pr()
86 memset(pvt, 0, sizeof *pvt); in irs_dns_pr()
88 memput(pvt, sizeof *pvt); in irs_dns_pr()
93 pvt->dns = dns; in irs_dns_pr()
94 pr->private = pvt; in irs_dns_pr()
110 struct pvt *pvt = (struct pvt *)this->private; in pr_close() local
112 if (pvt->proto.p_aliases) in pr_close()
113 free(pvt->proto.p_aliases); in pr_close()
[all …]
H A Ddns_sv.c52 struct pvt { struct
85 struct pvt *pvt; in irs_dns_sv() local
91 if (!(pvt = memget(sizeof *pvt))) { in irs_dns_sv()
95 memset(pvt, 0, sizeof *pvt); in irs_dns_sv()
96 pvt->dns = dns; in irs_dns_sv()
98 memput(pvt, sizeof *pvt); in irs_dns_sv()
103 sv->private = pvt; in irs_dns_sv()
124 struct pvt *pvt = (struct pvt *)this->private; in sv_close() local
126 if (pvt->serv.s_aliases) in sv_close()
127 free(pvt->serv.s_aliases); in sv_close()
[all …]
H A Dlcl_pr.c85 struct pvt { struct
113 struct pvt *pvt; in irs_lcl_pr() local
119 if (!(pvt = memget(sizeof *pvt))) { in irs_lcl_pr()
124 memset(pvt, 0, sizeof *pvt); in irs_lcl_pr()
125 pr->private = pvt; in irs_lcl_pr()
141 struct pvt *pvt = (struct pvt *)this->private; in pr_close() local
143 if (pvt->fp) in pr_close()
144 (void) fclose(pvt->fp); in pr_close()
145 if (pvt->dbuf) in pr_close()
146 free(pvt->dbuf); in pr_close()
[all …]
H A Dirp_nw.c62 struct pvt { struct
90 struct pvt *pvt; in irs_irp_nw() local
92 if (!(pvt = memget(sizeof *pvt))) { in irs_irp_nw()
96 memset(pvt, 0, sizeof *pvt); in irs_irp_nw()
99 memput(pvt, sizeof *pvt); in irs_irp_nw()
104 pvt->girpdata = this->private; in irs_irp_nw()
106 nw->private = pvt; in irs_irp_nw()
125 struct pvt *pvt = (struct pvt *)this->private; in nw_close() local
129 free_nw(&pvt->net); in nw_close()
131 memput(pvt, sizeof *pvt); in nw_close()
[all …]
H A Dlcl_sv.c91 struct pvt { struct
124 struct pvt *pvt; in irs_lcl_sv() local
133 if ((pvt = memget(sizeof *pvt)) == NULL) { in irs_lcl_sv()
138 memset(pvt, 0, sizeof *pvt); in irs_lcl_sv()
139 sv->private = pvt; in irs_lcl_sv()
149 pvt->dbf = R_FIRST; in irs_lcl_sv()
158 struct pvt *pvt = (struct pvt *)this->private; in sv_close() local
161 if (pvt->dbh != NULL) in sv_close()
162 (*pvt->dbh->close)(pvt->dbh); in sv_close()
164 if (pvt->sv.fp) in sv_close()
[all …]
H A Dirp_ng.c45 struct pvt { struct
73 struct pvt *pvt; in irs_irp_ng() local
81 if (!(pvt = memget(sizeof *pvt))) { in irs_irp_ng()
86 memset(pvt, 0, sizeof *pvt); in irs_irp_ng()
87 pvt->girpdata = this->private; in irs_irp_ng()
89 ng->private = pvt; in irs_irp_ng()
109 struct pvt *pvt = (struct pvt *)this->private; in ng_close() local
113 memput(pvt, sizeof *pvt); in ng_close()
128 struct pvt *pvt = (struct pvt *)this->private; in ng_rewind() local
132 if (irs_irp_connection_setup(pvt->girpdata, &pvt->warned) != 0) { in ng_rewind()
[all …]
H A Dirp_pr.c53 struct pvt { struct
80 struct pvt *pvt; in irs_irp_pr() local
88 if (!(pvt = memget(sizeof *pvt))) { in irs_irp_pr()
93 memset(pvt, 0, sizeof *pvt); in irs_irp_pr()
94 pvt->girpdata = this->private; in irs_irp_pr()
96 pr->private = pvt; in irs_irp_pr()
115 struct pvt *pvt = (struct pvt *)this->private; in pr_close() local
119 free_proto(&pvt->proto); in pr_close()
121 memput(pvt, sizeof *pvt); in pr_close()
132 struct pvt *pvt = (struct pvt *)this->private; in pr_byname() local
[all …]
H A Dirp_sv.c54 struct pvt { struct
84 struct pvt *pvt; in irs_irp_sv() local
92 if ((pvt = memget(sizeof *pvt)) == NULL) { in irs_irp_sv()
97 memset(pvt, 0, sizeof *pvt); in irs_irp_sv()
98 pvt->girpdata = this->private; in irs_irp_sv()
100 sv->private = pvt; in irs_irp_sv()
120 struct pvt *pvt = (struct pvt *)this->private; in sv_close() local
124 free_service(&pvt->service); in sv_close()
126 memput(pvt, sizeof *pvt); in sv_close()
137 struct pvt *pvt = (struct pvt *)this->private; in sv_next() local
[all …]
H A Dlcl_ng.c78 struct pvt { struct
108 struct pvt *pvt; in irs_lcl_ng() argument
117 if (!(pvt = memget(sizeof *pvt))) { in irs_lcl_ng()
122 memset(pvt, 0, sizeof *pvt); in irs_lcl_ng()
123 ng->private = pvt; in irs_lcl_ng()
136 struct pvt *pvt = (struct pvt *)this->private; in ng_close() local
138 if (pvt->fp != NULL) in ng_close()
139 fclose(pvt->fp); in ng_close()
141 memput(pvt, sizeof *pvt); in ng_close()
152 struct pvt *pvt = (struct pvt *)this->private; in ng_rewind() local
[all …]
H A Ddns_nw.c61 struct pvt { struct
106 struct pvt *pvt; in irs_dns_nw() local
110 if (!(pvt = memget(sizeof *pvt))) { in irs_dns_nw()
114 memset(pvt, 0, sizeof *pvt); in irs_dns_nw()
116 memput(pvt, sizeof *pvt); in irs_dns_nw()
121 nw->private = pvt; in irs_dns_nw()
137 struct pvt *pvt = (struct pvt *)this->private; in nw_close() local
141 if (pvt->res && pvt->free_res) in nw_close()
142 (*pvt->free_res)(pvt->res); in nw_close()
144 memput(pvt, sizeof *pvt); in nw_close()
[all …]
H A Dirp_ho.c63 struct pvt { struct
99 struct pvt *pvt; in irs_irp_ho() local
107 if (!(pvt = memget(sizeof *pvt))) { in irs_irp_ho()
112 memset(pvt, 0, sizeof *pvt); in irs_irp_ho()
113 pvt->girpdata = this->private; in irs_irp_ho()
115 ho->private = pvt; in irs_irp_ho()
137 struct pvt *pvt = (struct pvt *)this->private; in ho_close() local
141 free_host(&pvt->host); in ho_close()
143 memput(pvt, sizeof *pvt); in ho_close()
170 struct pvt *pvt = (struct pvt *)this->private; in ho_byname2() local
[all …]
H A Ddns_ho.c125 struct pvt { struct
171 static int add_hostent(struct pvt *pvt, char *bp, char **hap,
180 struct pvt *pvt; in irs_dns_ho() local
184 if (!(pvt = memget(sizeof *pvt))) { in irs_dns_ho()
188 memset(pvt, 0, sizeof *pvt); in irs_dns_ho()
191 memput(pvt, sizeof *pvt); in irs_dns_ho()
196 ho->private = pvt; in irs_dns_ho()
214 struct pvt *pvt = (struct pvt *)this->private; in ho_close() local
217 if (pvt->res && pvt->free_res) in ho_close()
218 (*pvt->free_res)(pvt->res); in ho_close()
[all …]
H A Dirp.c151 irs_irp_connect(struct irp_p *pvt) { in irs_irp_connect() argument
164 if (pvt->fdCxn != -1) { in irs_irp_connect()
208 pvt->fdCxn = socket(addr->sa_family, SOCK_STREAM, PF_UNSPEC); in irs_irp_connect()
209 if (pvt->fdCxn < 0) { in irs_irp_connect()
214 if (connect(pvt->fdCxn, addr, socklen) != 0) { in irs_irp_connect()
219 flags = fcntl(pvt->fdCxn, F_GETFL, 0); in irs_irp_connect()
221 close(pvt->fdCxn); in irs_irp_connect()
228 if (fcntl(pvt->fdCxn, F_SETFL, flags) < 0) { in irs_irp_connect()
229 close(pvt->fdCxn); in irs_irp_connect()
235 code = irs_irp_read_response(pvt, text, sizeof text); in irs_irp_connect()
[all …]
H A Dgetnetent.c51 struct pvt { struct
252 struct pvt *pvt; in fakeaddr() local
284 net_data->nw_data = malloc(sizeof (struct pvt)); in fakeaddr()
290 pvt = net_data->nw_data; in fakeaddr()
292 strncpy(pvt->name, name, MAXDNAME); in fakeaddr()
293 pvt->name[MAXDNAME] = '\0'; in fakeaddr()
294 pvt->netent.n_name = pvt->name; in fakeaddr()
295 pvt->netent.n_addrtype = AF_INET; in fakeaddr()
296 pvt->netent.n_aliases = pvt->aliases; in fakeaddr()
297 pvt->aliases[0] = NULL; in fakeaddr()
[all …]
H A Dirp_p.h47 int irs_irp_connect(struct irp_p *pvt);
48 int irs_irp_is_connected(struct irp_p *pvt);
49 void irs_irp_disconnect(struct irp_p *pvt);
50 int irs_irp_read_response(struct irp_p *pvt, char *text, size_t textlen);
51 char *irs_irp_read_body(struct irp_p *pvt, size_t *size);
52 int irs_irp_get_full_response(struct irp_p *pvt, int *code,
H A Dgethostent.c62 struct pvt { struct
1002 struct pvt *pvt; local
1005 net_data->ho_data = malloc(sizeof (struct pvt));
1011 pvt = net_data->ho_data;
1021 if (inet_pton(af, name, pvt->addr) != 1) {
1028 inet_aton(name, (struct in_addr *)pvt->addr) != 1) &&
1029 inet_pton(af, name, pvt->addr) != 1) {
1034 strncpy(pvt->name, name, NS_MAXDNAME);
1035 pvt->name[NS_MAXDNAME] = '\0';
1037 map_v4v6_address(pvt->addr, pvt->addr);
[all …]
/titanic_41/usr/src/cmd/svc/svccfg/
H A Dsvccfg_internal.c131 internal_value_dump(void *v, void *pvt) in internal_value_dump() argument
169 internal_property_dump(void *v, void *pvt) in internal_property_dump() argument
184 internal_pgroup_dump(void *v, void *pvt) in internal_pgroup_dump() argument
199 internal_instance_dump(void *v, void *pvt) in internal_instance_dump() argument
213 internal_service_dump(void *v, void *pvt) in internal_service_dump() argument
/titanic_41/usr/src/uts/common/io/
H A Dgld.c1383 gld_mac_pvt_t *pvt = (gld_mac_pvt_t *)mac->gldm_mac_pvt; in gld_finddevinfo() local
1398 for (vlan = pvt->vlan_hash[i]; in gld_finddevinfo()
3990 gld_mac_pvt_t *pvt; in gld_notify_req() local
4018 pvt = (gld_mac_pvt_t *)macinfo->gldm_mac_pvt; in gld_notify_req()
4020 gld->gld_notifications = dlnrp->dl_notifications & pvt->notifications; in gld_notify_req()
4032 dlnap->dl_notifications = pvt->notifications; in gld_notify_req()
5659 gld_mac_pvt_t *pvt = in gld_findminor() local
5666 for (nextvlan = pvt->vlan_hash[i]; in gld_findminor()
5895 gld_mac_pvt_t *pvt = (gld_mac_pvt_t *)mac->gldm_mac_pvt; in gld_check_assertions() local
5903 ASSERT(pvt->interfacep != NULL); in gld_check_assertions()
[all …]

12