Searched defs:hp (Results 1 - 25 of 132) sorted by relevance

123456

/osnet-11/usr/src/lib/libslp/clib/
H A DSLPOpen.c39 slp_handle_impl_t *hp; local
46 if (!(hp = malloc(sizeof (*hp)))) {
52 hp->pending_outcall = SLP_FALSE;
53 (void) mutex_init(&(hp->outcall_lock), NULL, NULL);
54 (void) cond_init(&(hp->outcall_cv), NULL, NULL);
55 hp->close_on_end = SLP_FALSE;
56 hp->consumer_tid = 0;
59 if (!(hp->locale = SLPGetProperty(SLP_CONFIG_LOCALE))) {
60 hp
98 slp_cleanup_handle(slp_handle_impl_t *hp) argument
111 slp_handle_impl_t *hp = (slp_handle_impl_t *)hSLP; local
[all...]
H A DSLPGetRefreshInterval.c46 slp_handle_impl_t *hp; /* SLP handle for this request */ local
55 if ((err = SLPOpen("en", SLP_FALSE, (void **)&hp)) != SLP_OK) {
62 hp->internal_call = SLP_TRUE;
78 (void) slp_UnpackAttrReply(hp, reply, refresh_interval_cb,
82 (void) slp_UnpackAttrReply(hp, NULL, refresh_interval_cb,
89 SLPClose(hp);
/osnet-11/usr/src/lib/libprtdiag/common/
H A Dkstat.c71 struct hp_info *hp; local
332 for (i = 0, hp = &sys_kstat->hp_info[0]; i < MAX_BOARDS; i++, hp++) {
340 hp->kstat_ok = 0;
342 hp->kstat_ok = 1;
343 (void) memcpy(&hp->bd_info, ksp->ks_data,
344 sizeof (hp->bd_info));
390 struct hp_info *hp;
/osnet-11/usr/src/lib/libresolv/
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_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_send.c138 HEADER *hp = (HEADER *) buf; local
160 id = hp->id;
/osnet-11/usr/src/lib/libdtrace/common/
H A Ddt_inttab.c57 dt_inthash_t *hp, *np; local
59 for (hp = ip->int_head; hp != NULL; hp = np) {
60 np = hp->inh_next;
61 dt_free(ip->int_hdl, hp);
72 dt_inthash_t *hp; local
75 for (hp = ip->int_hash[h]; hp != NULL; hp
111 const dt_inthash_t *hp; local
[all...]
/osnet-11/usr/src/cmd/sendmail/libmilter/
H A Dsm_gethost.c92 static struct hostent hp; local
96 h = _switch_gethostbyname_r(name, &hp, buf, sizeof(buf), &h_errno);
/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/libresolv2/common/resolv/
H A Dres_sendsigned.c38 HEADER *hp; local
146 hp = (HEADER *) answer;
147 if (hp->tc && !usingTCP && (statp->options & RES_IGNTC) == 0U) {
/osnet-11/usr/src/lib/libilb/common/
H A Dilb_comm.c52 ilb_open(ilb_handle_t *hp) argument
60 if (hp == NULL)
110 *hp = (ilb_handle_t)hi;
113 *hp = ILB_INVALID_HANDLE;
/osnet-11/usr/src/cmd/sendmail/db/db/
H A Ddb_dispatch.c208 DB_TXNHEAD *hp; local
216 hp = (DB_TXNHEAD *)listp;
217 LIST_INSERT_HEAD(&hp->head, elp, links);
218 if (txnid > hp->maxid)
219 hp->maxid = txnid;
220 elp->generation = hp->generation;
237 DB_TXNHEAD *hp; local
240 if ((hp = (DB_TXNHEAD *)listp) == NULL)
243 for (p = hp->head.lh_first; p != NULL; p = p->links.le_next)
244 if (p->txnid == txnid && hp
260 DB_TXNHEAD *hp; local
282 DB_TXNHEAD *hp; local
307 DB_TXNHEAD *hp; local
[all...]
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/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);
H A Dmisc.c137 struct hostent *hp; local
146 hp = gethostbyname(host);
147 if (hp != NULL || af == AF_INET) { /* found or must be AF_INET */
148 return hp;
/osnet-11/usr/src/lib/libldap4/common/
H A Dgetdxbyname.c95 HEADER *hp; local
109 hp = (HEADER *)answer;
112 if ( ntohs( hp->qdcount ) != 1 ) {
117 ancount = ntohs( hp->ancount );
/osnet-11/usr/src/lib/libldap5/sources/ldap/common/
H A Dgetdxbyname.c120 HEADER *hp; local
133 hp = (HEADER *)answer;
136 if ( ntohs( hp->qdcount ) != 1 ) {
141 ancount = ntohs( hp->ancount );
/osnet-11/usr/src/lib/libcmd/common/
H A Dtee.c75 register int* hp = ((Tee_t*)handle)->fd; local
89 } while ((fd = *hp++) >= 0);
96 register int* hp; local
104 for (hp = tp->fd; (n = *hp) >= 0; hp++)
114 register int* hp; local
177 hp = tp->fd;
180 while ((*hp = open(cp, oflag, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)) < 0 && errno == EINTR)
182 if (*hp <
[all...]
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dsn2princ.c136 struct hostent *hp = NULL; local
159 hp = res_getipnodebyname(hostname, addr_family, 0, &err);
160 if (!hp) {
176 remote_host = strdup(hp ? hp->h_name : hostname);
178 if (hp != NULL)
179 res_freehostent(hp);
195 hp2 = res_getipnodebyaddr(hp->h_addr, hp->h_length,
196 hp
[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/libstmfproxy/common/
H A Dstmftransport.c126 struct hostent *hp; local
133 if ((hp = gethostbyname(server)) != NULL) {
134 memcpy(&sin.sin_addr.s_addr, hp->h_addr,
135 hp->h_length);
/osnet-11/usr/src/lib/scsi/plugins/scsi/engines/uscsi/
H A Duscsi.c48 uscsi_open(libscsi_hdl_t *hp, const void *target) argument
53 if ((dp = libscsi_zalloc(hp, sizeof (struct uscsi_dev))) == NULL)
56 if ((dp->dev = libscsi_strdup(hp, target_name)) == NULL) {
57 libscsi_free(hp, dp);
62 (void) libscsi_error(hp, ESCSI_BADTARGET, "failed to open %s "
64 libscsi_free(hp, dp->dev);
65 libscsi_free(hp, dp);
73 uscsi_close(libscsi_hdl_t *hp, void *private) argument
83 libscsi_free(hp, dp->dev);
84 libscsi_free(hp, d
88 xlate_flags(libscsi_hdl_t *hp, uint_t flags, int *uf) argument
152 uscsi_exec(libscsi_hdl_t *hp, void *private, libscsi_action_t *ap) argument
233 uscsi_target_name(libscsi_hdl_t *hp, void *private) argument
255 libscsi_uscsi_init(libscsi_hdl_t *hp) argument
[all...]
/osnet-11/usr/src/lib/libresolv2/common/irs/
H A Dgetnameinfo.c111 struct hostent *hp; local
198 hp = gethostbyaddr(addr, afd->a_addrlen, afd->a_af);
200 if (hp) {
202 p = strchr(hp->h_name, '.');
205 if (strlen(hp->h_name) + 1 > hostlen)
207 strcpy(host, hp->h_name);
/osnet-11/usr/src/lib/libresolv2/common/nameser/
H A Dns_sign.c92 HEADER *hp = (HEADER *)msg; local
229 PUTSHORT(ntohs(hp->id), cp); /*%< already in network order */
246 hp->arcount = htons(ntohs(hp->arcount) + 1);
284 HEADER *hp = (HEADER *)msg; local
372 PUTSHORT(ntohs(hp->id), cp); /*%< already in network order */
382 hp->arcount = htons(ntohs(hp->arcount) + 1);

Completed in 75 milliseconds

123456