Home
last modified time | relevance | path

Searched refs:hp (Results 151 – 175 of 388) sorted by relevance

12345678910>>...16

/illumos-gate/usr/src/cmd/fm/modules/common/event-transport/
H A Detm.c232 return (ntohl(hp->hdr_msglen)); in etm_get_msglen()
253 return (hp->hdr_type); in etm_check_hdr()
256 if (hp->hdr_ver != mp->epm_ver) { in etm_check_hdr()
258 mp->epm_ep_str, hp->hdr_ver); in etm_check_hdr()
269 return (hp->hdr_type); in etm_check_hdr()
282 hp->hdr_ver = ver; in etm_create_hdr()
283 hp->hdr_type = type; in etm_create_hdr()
284 hp->hdr_msglen = htonl(msglen); in etm_create_hdr()
371 etm_proto_hdr_t *hp; in etm_handle_startup() local
412 if (hp->hdr_ver != ETM_PROTO_V1) { in etm_handle_startup()
[all …]
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevinfo.c2539 di_hp_t hp; in di_walk_hp_callback() local
2542 for (hp = DI_HP_NIL; (hp = di_hp_next(node, hp)) != DI_HP_NIL; ) { in di_walk_hp_callback()
2620 if (hp != DI_HP_NIL) { in di_hp_next()
2622 return (DI_HP((caddr_t)hp - hp->self + hp->next)); in di_hp_next()
2651 di_hp_name(di_hp_t hp) in di_hp_name() argument
2658 if (hp == DI_HP_NIL) { in di_hp_name()
2663 pa = (caddr_t)hp - DI_HP(hp)->self; in di_hp_name()
2679 if (hp == DI_HP_NIL) { in di_hp_connection()
2722 di_hp_type(di_hp_t hp) in di_hp_type() argument
2748 pa = (caddr_t)hp - DI_HP(hp)->self; in di_hp_description()
[all …]
H A Dlibdevinfo.h335 int (*hp_callback)(di_node_t node, di_hp_t hp,
337 extern di_hp_t di_hp_next(di_node_t node, di_hp_t hp);
339 extern char *di_hp_name(di_hp_t hp);
340 extern int di_hp_connection(di_hp_t hp);
341 extern int di_hp_depends_on(di_hp_t hp);
342 extern int di_hp_state(di_hp_t hp);
343 extern int di_hp_type(di_hp_t hp);
344 extern char *di_hp_description(di_hp_t hp);
345 extern time_t di_hp_last_change(di_hp_t hp);
346 extern di_node_t di_hp_child(di_hp_t hp);
/illumos-gate/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);
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_filter.c1502 if (hp == NULL) { in ipaddr_match()
1506 if (hp == NULL) { in ipaddr_match()
1517 if (hp == NULL) { in ipaddr_match()
1521 if (hp == NULL) { in ipaddr_match()
1536 if (hp == NULL) { in ipaddr_match()
1541 if (hp != NULL) { in ipaddr_match()
1549 if (hp == NULL) { in ipaddr_match()
1554 if (hp != NULL) { in ipaddr_match()
1585 if (hp == NULL) in ipaddr_match()
1722 freehostent(hp); in ipaddr_match()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Drtquery.c170 struct hostent *hp = gethostbyname(optarg); in main() local
171 if (hp == NULL) { in main()
178 hp->h_addr, in main()
564 struct hostent *hp; in rip_input() local
573 hp->h_name, inet_ntoa(from->sin_addr)); in rip_input()
674 hp = gethostbyaddr((char *)&in, in rip_input()
676 if (hp != NULL) in rip_input()
677 name = hp->h_name; in rip_input()
746 hp = NULL; in rip_input()
748 hp = gethostbyaddr((char *)&in, sizeof (in), in rip_input()
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dlzjb.c58 uint16_t *hp; in lzjb_compress() local
76 hp = &lempel[hash & (LEMPEL_SIZE - 1)]; in lzjb_compress()
77 offset = (intptr_t)(src - *hp) & OFFSET_MASK; in lzjb_compress()
78 *hp = (uint16_t)(uintptr_t)src; in lzjb_compress()
/illumos-gate/usr/src/lib/libcfgadm/common/
H A Dconfig_admin.c1158 di_hp_t hp, in mklog_hp() argument
1490 di_hp_t hp, in load_lib_hp() argument
1505 di_hp_t hp, in load_lib_impl() argument
1689 di_hp_t hp, in find_lib_hp() argument
2067 di_hp_t hp, in check_ap_hp() argument
2085 di_hp_t hp, in check_ap_impl() argument
2215 di_hp_t hp, in check_ap_phys_hp() argument
2232 di_hp_t hp, in check_ap_phys_impl() argument
2566 di_hp_t hp; in do_list_common() local
2585 for (hp = DI_HP_NIL; (hp = di_hp_next(rnode, hp)) != DI_HP_NIL; ) { in do_list_common()
[all …]
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/
H A Ddbm.c344 HTAB *hp; local
346 hp = (HTAB *)db->internal;
347 return (hp->local_errno);
354 HTAB *hp; local
356 hp = (HTAB *)db->internal;
357 hp->local_errno = 0;
/illumos-gate/usr/src/cmd/sendmail/db/db/
H A Ddb_dup.c210 PAGE **hp;
223 h = *hp;
255 *hp = np;
282 *hp = np;
378 if (*hp == h)
686 PAGE **hp;
701 PGNO(*hp), &LSN(*hp), PGNO(newpage), &LSN(newpage))) != 0) {
704 LSN(newpage) = LSN(*hp);
707 PREV_PGNO(newpage) = PGNO(*hp);
708 NEXT_PGNO(*hp) = PGNO(newpage);
[all …]
/illumos-gate/usr/src/lib/libstmfproxy/common/
H A Dstmftransport.c130 struct hostent *hp; in pt_socket_connect() local
137 if ((hp = gethostbyname(server)) != NULL) { in pt_socket_connect()
138 memcpy(&sin.sin_addr.s_addr, hp->h_addr, in pt_socket_connect()
139 hp->h_length); in pt_socket_connect()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/support/
H A Dfake-addrinfo.c788 struct hostent *hp; in fai_add_hosts_by_name()
794 if (hp == 0) in fai_add_hosts_by_name()
929 struct hostent *hp; in fake_getnameinfo() local
975 sa->sa_family, hp, herr, htmp); in fake_getnameinfo()
976 if (hp == 0) { in fake_getnameinfo()
984 strncpy (host, hp->h_name, hlen); in fake_getnameinfo()
1205 struct hostent *hp; in getaddrinfo() local
1216 if (hp == 0) { in getaddrinfo()
1231 name2 = hp->h_aliases[i]; in getaddrinfo()
1237 if (hp->h_aliases[i] == 0) in getaddrinfo()
[all …]
/illumos-gate/usr/src/uts/common/io/scsi/adapters/pmcs/
H A Dpmcs_nvram.c269 pmcs_fw_hdr_t *hp; in pmcs_fw_flash() local
275 hp = hdr; in pmcs_fw_flash()
281 hp->destination_partition, ntohl(hp->firmware_length)); in pmcs_fw_flash()
282 if (ntohl(hp->firmware_length) == 0) { in pmcs_fw_flash()
285 __func__, ntohl(hp->firmware_length)); in pmcs_fw_flash()
297 hp = (void *)wrk; in pmcs_fw_flash()
309 hp = hdr; in pmcs_fw_flash()
321 hp = (void *) wrk; in pmcs_fw_flash()
330 pmcs_fw_hdr_t *hp; in pmcs_flash_chunk() local
334 hp = (void *)chunk; in pmcs_flash_chunk()
[all …]
/illumos-gate/usr/src/uts/sun4u/serengeti/io/
H A Dsbdp_error.c136 sbdp_passthru_inject_error(sbdp_handle_t *hp, void *arg) in sbdp_passthru_inject_error() argument
138 _NOTE(ARGUNUSED(hp)) in sbdp_passthru_inject_error()
238 sbdp_passthru_reset_error(sbdp_handle_t *hp, void *arg) in sbdp_passthru_reset_error() argument
240 _NOTE(ARGUNUSED(hp)) in sbdp_passthru_reset_error()
/illumos-gate/usr/src/lib/libwrap/
H A Dmisc.c136 struct hostent *hp; local
145 hp = gethostbyname(host);
146 if (hp != NULL || af == AF_INET) { /* found or must be AF_INET */
147 return hp;
/illumos-gate/usr/src/stand/lib/inet/
H A Dmac.c300 mac_set_arp(struct in_addr *ip, void *hp, int hl) in mac_set_arp() argument
303 bcopy(hp, (char *)atable[arp_index].ha, hl); in mac_set_arp()
319 mac_get_arp(struct in_addr *ip, void *hp, int hl, uint32_t timeout) in mac_get_arp() argument
325 bcopy((char *)atable[i].ha, hp, hl); in mac_get_arp()
331 bzero(hp, hl); in mac_get_arp()
332 result = mac_state.mac_arp(ip, hp, timeout); in mac_get_arp()
336 mac_set_arp(ip, hp, hl); in mac_get_arp()
/illumos-gate/usr/src/lib/libresolv2/common/nameser/
H A Dns_sign.c86 HEADER *hp = (HEADER *)msg; in ns_sign2() local
223 PUTSHORT(ntohs(hp->id), cp); /*%< already in network order */ in ns_sign2()
240 hp->arcount = htons(ntohs(hp->arcount) + 1); in ns_sign2()
278 HEADER *hp = (HEADER *)msg; in ns_sign_tcp2() local
366 PUTSHORT(ntohs(hp->id), cp); /*%< already in network order */ in ns_sign_tcp2()
376 hp->arcount = htons(ntohs(hp->arcount) + 1); in ns_sign_tcp2()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/
H A Dsyslog.c141 struct hostent* hp;
147 hp = gethostbyname(s);
149 if (!hp || hp->h_addrtype != AF_INET || hp->h_length > sizeof(struct in_addr))
151 a = (unsigned long)((struct in_addr*)hp->h_addr)->s_addr;
/illumos-gate/usr/src/uts/common/os/
H A Dcompress.c135 uint16_t *hp; in compress() local
154 hp = &lempel[((src[0] + 13) ^ (src[1] - 13) ^ src[2]) & in compress()
156 offset = (intptr_t)(src - *hp) & OFFSET_MASK; in compress()
157 *hp = (uint16_t)(uintptr_t)src; in compress()
/illumos-gate/usr/src/uts/sun4u/ngdr/io/
H A Ddr_mem.c290 _NOTE(ARGUNUSED(hp)) in dr_attach_mem()
299 dr_lock_status(hp->h_bd); in dr_attach_mem()
301 dr_unlock_status(hp->h_bd); in dr_attach_mem()
353 dr_lock_status(hp->h_bd); in dr_attach_mem()
498 hp->h_err = NULL; in dr_move_memory()
721 bp = hp->h_bd; in dr_mem_status()
878 _NOTE(ARGUNUSED(hp)) in dr_pre_attach_mem()
942 _NOTE(ARGUNUSED(hp)) in dr_post_attach_mem()
1022 _NOTE(ARGUNUSED(hp)) in dr_pre_detach_mem()
1039 _NOTE(ARGUNUSED(hp)) in dr_post_detach_mem()
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/INIT/
H A DMakefile54 cc.hp.ia64 cc.hp.pa cc.hp.pa64 ld.hp.pa ldd.hp.pa \
/illumos-gate/usr/src/uts/sun4u/opl/io/
H A Ddr_mem.c308 _NOTE(ARGUNUSED(hp)) in dr_attach_mem()
317 dr_lock_status(hp->h_bd); in dr_attach_mem()
371 dr_lock_status(hp->h_bd); in dr_attach_mem()
519 hp->h_err = NULL; in dr_move_memory()
630 dr_lock_status(hp->h_bd); in dr_detach_mem()
704 bp = hp->h_bd; in dr_mem_status()
863 _NOTE(ARGUNUSED(hp)) in dr_pre_attach_mem()
947 _NOTE(ARGUNUSED(hp)) in dr_post_attach_mem()
1022 _NOTE(ARGUNUSED(hp)) in dr_pre_detach_mem()
1038 _NOTE(ARGUNUSED(hp)) in dr_post_detach_mem()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/tftp/
H A Dmain.c458 struct hostent *hp; in put() local
471 if ((hp = getipnodebyname(cp, in put()
477 (void) memcpy(&sin6.sin6_addr, hp->h_addr_list[0], in put()
478 hp->h_length); in put()
486 if ((inet_pton(AF_INET6, hp->h_name, &ipv6addr) > 0) && in put()
492 (void) strlcpy(hostname, hp->h_name, in put()
589 struct hostent *hp; in get() local
595 if ((hp = getipnodebyname(hostnameinput, AF_INET6, in get()
602 hp->h_addr_list[0], hp->h_length); in get()
610 if ((inet_pton(AF_INET6, hp->h_name, &ipv6addr) > 0) && in get()
[all …]
/illumos-gate/usr/src/uts/sun4/io/px/
H A Dpx_fm.c144 ddi_acc_hdl_t *hp; in px_fm_acc_setup() local
147 hp = mp->map_handlep; in px_fm_acc_setup()
148 ap = (ddi_acc_impl_t *)hp->ah_platform_private; in px_fm_acc_setup()
171 impl_acc_err_init(hp); in px_fm_acc_setup()
172 errp = ((ddi_acc_impl_t *)hp)->ahi_err; in px_fm_acc_setup()
196 impl_acc_err_init(hp); in px_fm_acc_setup()
197 errp = ((ddi_acc_impl_t *)hp)->ahi_err; in px_fm_acc_setup()
210 ndi_fmc_remove(rdip, ACC_HANDLE, (void *)hp); in px_fm_acc_setup()
846 ddi_acc_hdl_t *hp = impl_acc_hdl_get(ap); in px_err_pio_hdl_check() local
870 base_addr = (hp->ah_pfn << MMU_PAGESHIFT) + hp->ah_offset; in px_err_pio_hdl_check()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/
H A Dfinger.c1188 struct hostent *hp; in netfinger() local
1230 sin6.sin6_family = hp->h_addrtype; in netfinger()
1231 bcopy(hp->h_addr_list[0], (char *)&sin6.sin6_addr, hp->h_length); in netfinger()
1237 freehostent(hp); in netfinger()
1242 if (hp && hp->h_addr_list[1]) { in netfinger()
1244 hp->h_addr_list++; in netfinger()
1245 bcopy(hp->h_addr_list[0], in netfinger()
1252 freehostent(hp); in netfinger()
1261 freehostent(hp); in netfinger()
1264 freehostent(hp); in netfinger()
[all …]

12345678910>>...16