Searched refs:hp (Results 26 - 50 of 155) sorted by relevance

1234567

/osnet-11/usr/src/lib/libslp/clib/
H A DSLPFindAttrs.c105 SLPBoolean slp_UnpackAttrReply(slp_handle_impl_t *hp, char *reply, argument
120 if (!hp->async) {
124 if (!hp->async && pcAttrList) {
125 cb(hp, pcAttrList, SLP_OK, cookie);
128 cb(hp, NULL, SLP_LAST_CALL, cookie);
140 return (cb(hp, NULL, errCode, cookie));
156 if ((!hp->internal_call && slp_get_security_on()) || auth_cnt > 0) {
173 if (!hp->async) {
177 cont = cb((SLPHandle) hp, pcAttrList, errCode, cookie);
185 if (!hp
196 unpackDAAdvert_attr(slp_handle_impl_t *hp, char *reply, SLPAttrCallback cb, void *cookie, void **collator, int *numResults) argument
253 unpackSAAdvert_attr(slp_handle_impl_t *hp, char *reply, SLPAttrCallback cb, void *cookie, void **collator, int *numResults) argument
300 slp_packAttrRqst(slp_handle_impl_t *hp, const char *url, const char *ids) argument
[all...]
H A Dslp_utils.c100 SLPError slp_start_call(slp_handle_impl_t *hp) { argument
101 (void) mutex_lock(&(hp->outcall_lock));
102 if (hp->pending_outcall) {
103 (void) mutex_unlock(&(hp->outcall_lock));
106 hp->pending_outcall = SLP_TRUE;
107 (void) mutex_unlock(&(hp->outcall_lock));
109 hp->cancel = 0;
113 void slp_end_call(slp_handle_impl_t *hp) { argument
114 (void) mutex_lock(&(hp->outcall_lock));
115 if (hp
353 slp_header_length(slp_handle_impl_t *hp) argument
[all...]
H A DSLPFindSrvTypes.c72 static SLPBoolean UnpackSrvTypesReply(slp_handle_impl_t *hp, char *reply, argument
84 if (!hp->async) {
88 if (!hp->async && pcSrvTypes) {
90 cb(hp, pcSrvTypes, SLP_OK, cookie);
93 cb(hp, NULL, SLP_LAST_CALL, cookie);
105 return (cb(hp, NULL, errCode, cookie));
113 if (!hp->async) {
120 cont = cb((SLPHandle) hp, pcSrvTypes, errCode, cookie);
127 if (!hp->internal_call && *numResults == maxResults) {
134 static SLPError slp_packSrvTypeRqst(slp_handle_impl_t *hp, cons argument
[all...]
H A Dslp_net_utils.c62 * hp IN / OUT holds cached-per-handle if info
72 SLPError slp_broadcast_addrs(slp_handle_impl_t *hp, struct in_addr *given_ifs, argument
83 if (!hp->ifinfo) {
93 hp->ifinfo = ifinfo;
95 all_ifs = ((slp_handle_ifinfo_t *)hp->ifinfo)->all_ifs;
96 numifs = ((slp_handle_ifinfo_t *)hp->ifinfo)->numifs;
142 SLPBoolean slp_on_subnet(slp_handle_impl_t *hp, struct in_addr addr) { argument
149 if (!hp->ifinfo) {
159 hp->ifinfo = ifinfo;
161 all_ifs = ((slp_handle_ifinfo_t *)hp
185 slp_on_localhost(slp_handle_impl_t *hp, struct in_addr addr) argument
[all...]
/osnet-11/usr/src/lib/libresolv/
H A Dres_debug.c106 register HEADER *hp; local
112 hp = (HEADER *)msg;
115 fprintf(file, "\topcode = %s", _res_opcodes[hp->opcode]);
116 fprintf(file, ", id = %d", ntohs(hp->id));
117 fprintf(file, ", rcode = %s\n", _res_resultcodes[hp->rcode]);
119 if (hp->qr)
121 if (hp->aa)
123 if (hp->tc)
125 if (hp->rd)
127 if (hp
[all...]
H A Dres_mkquery.c130 register HEADER *hp; local
166 hp = (HEADER *) buf;
167 hp->id = htons(++_res.id);
168 hp->opcode = op;
169 hp->pr = (_res.options & RES_PRIMARY) != 0;
170 hp->rd = (_res.options & RES_RECURSE) != 0;
171 hp->rcode = NOERROR;
193 hp->qdcount = htons(1);
212 hp->arcount = htons(1);
238 hp
[all...]
H A Dres_query.c79 HEADER *hp; local
109 hp = (HEADER *) answer;
110 if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) {
113 printf("rcode = %d, ancount=%d\n", hp->rcode,
114 ntohs(hp->ancount));
116 switch (hp->rcode) {
135 if (hp->rcode == NOERROR && ntohs(hp->ancount) > 0)
H A Dres_gethost.c85 register HEADER *hp; local
98 hp = &answer->hdr;
99 ancount = ntohs(hp->ancount);
100 qdcount = ntohs(hp->qdcount);
121 if (hp->aa)
234 struct hostent *hp, *gethostdomain(); local
274 register struct hostent *hp; local
294 hp = getanswer(&buf, n, 1);
295 if (hp == NULL)
297 hp
318 struct hostent *hp, *hp2; local
[all...]
/osnet-11/usr/src/lib/libwrap/
H A Dsocket.c153 struct hostent *hp; local
166 && (hp = gethostbyaddr(SGADDRP(sin), SGADDRSZ(sin), SGFAM(sin))) != 0) {
168 STRN_CPY(host->name, hp->h_name, sizeof(host->name));
183 if ((hp = tcpd_gethostbyname(host->name, SGFAM(sin))) == 0) {
193 } else if (STR_NE(host->name, hp->h_name)
203 host->name, STRING_LENGTH, hp->h_name);
217 for (i = 0; hp->h_addr_list[i]; i++) {
218 if (memcmp(hp->h_addr_list[i],
236 STRING_LENGTH, hp->h_name);
/osnet-11/usr/src/lib/libshell/common/bltins/
H A Dhist.c44 register History_t *hp; local
61 hp = shp->gd->hist_ptr;
87 if((flag = hist_max(hp) - opt_info.num-1) < 0)
105 hist_cancel(hp);
141 range[flag] += (hist_max(hp)-1);
147 location = hist_find(hp,argv[1],hist_max(hp)-1,0,-1);
157 flag = hist_max(hp)-16;
162 flag = hist_max(hp)-2;
166 index2 = hist_min(hp);
[all...]
/osnet-11/usr/src/lib/libdiskmgt/common/
H A Dinuse_fs.c81 struct heuristic *hp; local
106 for (hp = hlist; hp; hp = hp->next) {
107 if (has_fs(hp->prog, slice)) {
109 libdiskmgt_add_str(attrs, DM_USED_NAME, hp->type, errp);
240 struct heuristic *hp; local
242 hp = (struct heuristic *)
245 if (hp
[all...]
/osnet-11/usr/src/lib/libresolv2/common/resolv/
H A Dres_mkquery.c124 register HEADER *hp; local
154 hp = (HEADER *) buf;
156 hp->id = htons(statp->id);
157 hp->opcode = op;
158 hp->rd = (statp->options & RES_RECURSE) != 0U;
159 hp->rcode = NOERROR;
182 hp->qdcount = htons(1);
203 hp->arcount = htons(1);
225 hp->ancount = htons(1);
244 register HEADER *hp; local
[all...]
/osnet-11/usr/src/cmd/sendmail/aux/
H A Dmconnect.c85 register struct hostent *hp; local
123 hp = getipnodebyname(host, AF_INET6, AI_DEFAULT|AI_ALL, &err);
124 if (hp == NULL)
137 bcopy(hp->h_addr_list[addr_num],
142 bcopy(&hp->h_addr_list[addr_num][IN6ADDRSZ - INADDRSZ],
172 if (hp->h_addr_list[++addr_num] != NULL) {
175 bcopy(hp->h_addr_list[addr_num],
180 bcopy(&hp->h_addr_list[addr_num]
/osnet-11/usr/src/lib/libuuid/common/
H A Detheraddr.c54 struct hostent *hp; local
68 hp = gethostbyname(name.nodename);
69 if (hp == NULL) {
72 (void) memcpy(&sin->sin_addr, hp->h_addr,
/osnet-11/usr/src/lib/libdhcpsvc/private/
H A Dprivate.c382 dsvc_handle_t hp; local
392 if ((hp = calloc(1, sizeof (struct dsvc_handle))) == NULL)
396 hp->d_conid.c_net.s_addr = ntohl(inet_addr(name));
397 if (hp->d_conid.c_net.s_addr == INADDR_BROADCAST) {
398 free(hp);
401 get_netmask4(&hp->d_conid.c_net, &hp->d_conid.c_mask);
404 error = load_public_module(ddp, &hp->d_instance, &hp->d_api);
406 free(hp);
[all...]
/osnet-11/usr/src/lib/fm/libdisklog/common/
H A Dlibdisklog.c287 spc3_inquiry_vpd_header_t *hp; local
289 hp = (spc3_inquiry_vpd_header_t *)inq_data;
294 return (MIN(len, (SCSI_READ16(&(hp->ivh_page_len)) +
322 parse_inq_all(libscsi_hdl_t *hp, libscsi_target_t *tp, argument
327 disklog_send_inquiry(hp, tp, B_FALSE, 0, stream, flags);
332 hp, tp, B_TRUE, (uint8_t)vpd_pages[i], stream,
337 parse_inq_basic_pages(libscsi_hdl_t *hp, libscsi_target_t *tp, argument
346 disklog_send_inquiry(hp, tp, B_FALSE, 0, stream, flags);
352 hp, tp, B_TRUE, basic_inquiry_vpd_pages[i], stream,
579 spc3_log_page_header_t *hp; local
611 parse_log_all(libscsi_hdl_t *hp, libscsi_target_t *tp, char *log_pages, int len, FILE *stream, dl_flags_t flags) argument
623 parse_log_basic_pages(libscsi_hdl_t *hp, libscsi_target_t *tp, char *log_pages, int len, FILE *stream, dl_flags_t flags) argument
766 spc3_log_params_header_t *hp; local
810 spc3_log_params_header_t *hp; local
938 spc3_log_params_header_t *hp; local
1399 spc3_log_params_header_t *hp; local
1457 spc3_log_params_header_t *hp; local
1497 spc3_mode_param_header10_t *hp; local
1510 spc3_mode_param_header10_t *hp; local
1574 parse_mode_all(libscsi_hdl_t *hp, libscsi_target_t *tp, char *mode_pages, int len, FILE *stream, dl_flags_t flags) argument
1591 parse_subpage_failure(libscsi_hdl_t *hp, libscsi_target_t *tp, int pc, FILE *stream, dl_flags_t flags) argument
1598 parse_mode_basic_pages(libscsi_hdl_t *hp, libscsi_target_t *tp, char *mode_pages, int len, FILE *stream, dl_flags_t flags) argument
1625 parse_mode_all_subpages(libscsi_hdl_t *hp, libscsi_target_t *tp, int pc, int spc, char *mode_pages, int len, FILE *stream, dl_flags_t flags) argument
1646 spc3_mode_param_header10_t *hp; local
1682 spc3_mode_param_header10_t *hp; local
1713 spc3_mode_param_header10_t *hp; local
1754 spc3_mode_param_header10_t *hp; local
1788 spc3_mode_param_header10_t *hp; local
1861 disklog_close_device(libscsi_hdl_t *hp, libscsi_target_t *tp) argument
1875 disklog_send_inquiry(libscsi_hdl_t *hp, libscsi_target_t *tp, boolean_t evpd, int pc, FILE *stream, dl_flags_t flags) argument
1985 disklog_send_log_sense(libscsi_hdl_t *hp, libscsi_target_t *tp, int pc, FILE *stream, dl_flags_t flags) argument
2096 disklog_send_mode_sense(libscsi_hdl_t *hp, libscsi_target_t *tp, int pc, int spc, FILE *stream, dl_flags_t flags) argument
2300 libscsi_hdl_t *hp; local
[all...]
/osnet-11/usr/src/cmd/sendmail/src/
H A Ddaemon.c1656 register struct hostent *hp; local
1658 hp = sm_gethostbyname(addr, AF_INET);
1659 if (hp == NULL)
1664 while (*(hp->h_addr_list) != NULL &&
1665 hp->h_addrtype != AF_INET)
1666 hp->h_addr_list++;
1667 if (*(hp->h_addr_list) == NULL)
1672 *(hp->h_addr_list),
1675 freehostent(hp);
1676 hp
1688 register struct hostent *hp; local
2112 register struct hostent *volatile hp = (struct hostent *) NULL; local
3221 register struct hostent *hp; local
3409 struct hostent *hp; local
3919 register struct hostent *hp; local
4395 register struct hostent *hp; local
[all...]
/osnet-11/usr/src/lib/libresolv2/common/irs/
H A Dlcl_ho.c204 struct hostent *hp; local
210 hp = ho_byname2(this, name, AF_INET6);
211 if (hp)
212 return (hp);
220 struct hostent *hp; local
229 while ((hp = ho_next(this)) != NULL) {
232 if (hp->h_addrtype != af)
234 nn = ns_namelen(hp->h_name);
235 if (strncasecmp(hp->h_name, name, Max(n, nn)) == 0)
237 for (hap = hp
256 struct hostent *hp; local
501 struct hostent *hp; local
[all...]
/osnet-11/usr/src/cmd/sendmail/db/db/
H A Ddb_salloc.c53 struct __head *hp; local
55 hp = area;
56 SH_LIST_INIT(hp);
58 elp = (struct __data *)(hp + 1);
60 SH_LIST_INSERT_HEAD(hp, elp, links, __data);
156 struct __head *hp; local
185 hp = (struct __head *)regionp;
186 for (elp = SH_LIST_FIRST(hp, __data), lastp = NULL;
206 SH_LIST_INSERT_HEAD(hp, newp, links, __data);
227 SH_LIST_INSERT_HEAD(hp, new
[all...]
/osnet-11/usr/src/cmd/hal/addons/network-devices/
H A Dcommon.c87 struct hostent *hp; local
89 hp = getipnodebyname(hostname, AF_INET6,
91 if (hp != NULL) {
92 (void) memcpy(&ipv6addr, hp->h_addr_list[0], hp->h_length);
118 struct hostent *hp; local
126 hp = getipnodebyname(name, AF_INET6, AI_ADDRCONFIG, &errnum);
127 if (hp != NULL) {
131 (void) memcpy(&sin6->sin6_addr, hp->h_addr_list[0],
132 hp
[all...]
/osnet-11/usr/src/lib/libresolv2/common/nameser/
H A Dns_verify.c60 HEADER *hp = (HEADER *)msg; local
70 if (hp->arcount == 0)
75 n = ns_skiprr(cp, eom, ns_s_qd, ntohs(hp->qdcount));
80 n = ns_skiprr(cp, eom, ns_s_an, ntohs(hp->ancount));
85 n = ns_skiprr(cp, eom, ns_s_ns, ntohs(hp->nscount));
90 n = ns_skiprr(cp, eom, ns_s_ar, ntohs(hp->arcount) - 1);
139 HEADER *hp = (HEADER *)msg; local
227 hp->arcount = htons(ntohs(hp->arcount) - 1);
305 hp
344 HEADER *hp = (HEADER *)msg; local
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/gnulib/
H A Dalloca.c165 register header *hp; /* Traverses linked list. */ local
171 for (hp = last_alloca_header; hp != NULL;)
172 if ((STACK_DIR > 0 && hp->h.deep > depth)
173 || (STACK_DIR < 0 && hp->h.deep < depth))
175 register header *np = hp->h.next;
177 free (hp); /* Collect garbage. */
179 hp = np; /* -> next header. */
184 last_alloca_header = hp; /* -> last valid storage. */
/osnet-11/usr/src/lib/libast/common/port/
H A Dmnt.c68 set(register Header_t* hp, const char* fs, const char* dir, const char* type, const char* options)
72 hp->mnt.flags = 0;
77 hp->mnt.flags |= MNT_REMOTE;
87 hp->mnt.flags |= MNT_REMOTE;
88 sfsprintf(hp->buf, sizeof(hp->buf) - 1, "%s:%*.*s", x + 1, x - fs, x - fs, fs);
89 fs = (const char*)hp->buf;
92 hp->mnt.flags |= MNT_REMOTE;
95 hp->mnt.fs = (char*)fs;
96 hp
[all...]
/osnet-11/usr/src/lib/nsswitch/dns/common/
H A Dgethostent.c76 struct hostent *hp; local
78 hp = gethostbyaddr(addr, len, type);
80 return (hp);
86 struct hostent *hp; local
88 hp = gethostbyname2(name, AF_INET6);
90 return (hp);
96 struct hostent *hp; local
98 hp = gethostbyname(name);
100 return (hp);
/osnet-11/usr/src/lib/nsswitch/files/common/
H A Dgethostent.c659 struct hostent *hp; local
687 hp = (struct hostent *)args->buf.result;
750 if (nhosts == 1 && hp) {
766 abuf = do_aliases(hp, abuf, abuf_end);
774 if (hp != NULL) {
777 hp, buffer, buflen);
804 if (hp)
805 args->returnval = hp;
838 if (hp) {
839 abuf = do_aliases(hp, abu
913 do_aliases(struct hostent *hp, char *abuf, char *end) argument
[all...]

Completed in 8899 milliseconds

1234567