/illumos-gate/usr/src/lib/libsldap/common/ |
H A D | ns_standalone.c | 561 struct hostent *hp = NULL, hostEnt; in __s_api_ip2hostname() local 607 hp = _filter_gethostbyaddr_r((char *)&in, in __s_api_ip2hostname() 614 if (hp && hp->h_name) { in __s_api_ip2hostname() 616 len = strlen(hp->h_name) + 1; in __s_api_ip2hostname() 627 hp->h_name, port); in __s_api_ip2hostname() 629 (void) strlcpy(*hostname, hp->h_name, len); in __s_api_ip2hostname() 639 hp = _filter_gethostbyaddr_r((char *)&in6, in __s_api_ip2hostname() 646 if (hp && hp->h_name) { in __s_api_ip2hostname() 648 len = strlen(hp->h_name) + 1; in __s_api_ip2hostname() 659 hp->h_name, port); in __s_api_ip2hostname() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/ufs/quot/ |
H A D | quot.c | 559 struct du **hp; in sortprep() local 571 for (hp = duhashtbl, i = 0; i != UHASH; i++) { in sortprep() 572 if (hp[i] == NULL) in sortprep() 575 for (ep = hp[i]; ep; ep = ep->next) { in sortprep()
|
/illumos-gate/usr/src/cmd/mailx/hdr/ |
H A D | def.h | 446 extern FILE *collect(struct header *hp); 488 extern int grabh(register struct header *hp, int gflags, int subjtop); 520 extern void mail1(struct header *hp, int use_to, char *orig_to); 551 extern int puthead(struct header *hp, FILE *fo, int w, long clen);
|
/illumos-gate/usr/src/common/ctf/ |
H A D | ctf_lookup.c | 86 const ctf_helem_t *hp; in ctf_lookup_by_name() local 147 if ((hp = ctf_hash_lookup(lp->ctl_hash, fp, p, in ctf_lookup_by_name() 153 type = hp->h_type; in ctf_lookup_by_name()
|
H A D | ctf_create.c | 1226 ctf_hash_t *hp = &fp->ctf_unions; in ctf_add_union() local 1266 ctf_hash_t *hp = &fp->ctf_enums; in ctf_add_enum() local 1308 ctf_hash_t *hp; in ctf_add_forward() local 1315 hp = &fp->ctf_structs; in ctf_add_forward() 1318 hp = &fp->ctf_unions; in ctf_add_forward() 1321 hp = &fp->ctf_enums; in ctf_add_forward() 1712 ctf_hash_t *hp; in ctf_add_type() local 1731 hp = &dst_fp->ctf_structs; in ctf_add_type() 1734 hp = &dst_fp->ctf_unions; in ctf_add_type() 1737 hp = &dst_fp->ctf_enums; in ctf_add_type() [all …]
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/ulp/ |
H A D | fcp.c | 2627 hp->rsvd = 0; in fcp_send_scsi_ioctl() 2632 hp->ro = 0; in fcp_send_scsi_ioctl() 3338 hp->rsvd = 0; in fcp_tgt_send_plogi() 3343 hp->ro = 0; in fcp_tgt_send_plogi() 5213 hp->rsvd = 0; in fcp_send_els() 5218 hp->ro = 0; in fcp_send_els() 6574 hp->rsvd = 0; in fcp_send_scsi() 6579 hp->ro = 0; in fcp_send_scsi() 11442 hp->rsvd = 0; in fcp_pkt_setup() 11450 hp->ro = 0; in fcp_pkt_setup() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | headers.c | 80 HDR **hp; local 394 for (hp = hdrp; (h = *hp) != NULL; hp = &h->h_link) 429 *hp = h; 609 HDR **hp; local 613 for (hp = hdrlist; (h = *hp) != NULL; hp = &h->h_link) 621 h->h_link = *hp; 622 *hp = h;
|
H A D | util.c | 1789 char *hp; local 1852 hp = hostnamebyanyaddr(&sa); 1853 if (hp == NULL) 1861 "%s/%d", hp, ntohs(sa.sin.sin_port)); 1866 "%s/%d", hp, ntohs(sa.sin6.sin6_port)); 1870 "%s", hp); 1881 hp = hostnamebyanyaddr(&sa); 1882 if (hp == NULL) 1890 "%s/%d", hp, ntohs(sa.sin.sin_port)); 1895 "%s/%d", hp, ntohs(sa.sin6.sin6_port)); [all …]
|
H A D | map.c | 5451 char **hp; local 5489 if (hp == NULL || *hp == NULL) 5505 if (hp != NULL) 5510 if (hp == NULL || hp[0] == NULL) 5537 return map_rewrite(map, hp[0], strlen(hp[0]), av); 7646 if (hp == NULL) 7705 if (hp != NULL) 7725 if (hp != NULL && hp->h_addr_list[addrno] != NULL) 7764 if (hp != NULL) 7770 if (hp != NULL) [all …]
|
H A D | main.c | 179 struct hostent *hp; local 745 if (hp != NULL) 767 switch (hp->h_addrtype) 771 if (hp->h_length != INADDRSZ) 782 if (hp->h_length != IN6ADDRSZ) 802 freehostent(hp); 803 hp = NULL; 3490 struct hostent *hp; local 3494 if (hp != NULL) 3496 freehostent(hp); [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_util.c | 88 char *hp = hexbuf; in hexdump_offset() local 96 *hp = '\0'; in hexdump_offset() 103 hp = hexbuf; in hexdump_offset() 110 hp += sprintf(hp, " %c%c", in hexdump_offset()
|
/illumos-gate/usr/src/uts/i86pc/io/pci/ |
H A D | pci.c | 338 ddi_acc_hdl_t *hp; in pci_bus_map() local 473 hp = (ddi_acc_hdl_t *)mp->map_handlep; in pci_bus_map() 474 if (hp == NULL) in pci_bus_map() 478 cfp = (pci_acc_cfblk_t *)&hp->ah_bus_private; in pci_bus_map() 484 return (pci_fm_acc_setup(hp, offset, len)); in pci_bus_map()
|
/illumos-gate/usr/src/uts/common/io/scsi/impl/ |
H A D | scsi_resource.c | 219 ddi_dma_impl_t *hp = (ddi_dma_impl_t *)pktp->pkt_handle; in scsi_dmaget_attr() local 239 cp = hp->dmai_cookie - 1; in scsi_dmaget_attr() 259 pktp->pkt_cookies = hp->dmai_cookie - 1; in scsi_dmaget_attr() 260 hp->dmai_cookie = cp; in scsi_dmaget_attr() 261 hp->dmai_curcookie = num_segs; in scsi_dmaget_attr()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/uwin/ |
H A D | support.c | 248 double hp,dp,tmp; 295 dp=p+p; hp=p/2; 312 if ( x > hp ) 313 { x -= p ; if ( x >= hp ) x -= p ; }
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | rpc_soc.c | 423 struct hostent *hp; in getrpcport() local 425 if ((hp = gethostbyname(host)) == NULL) in getrpcport() 427 (void) memcpy(&addr.sin_addr, hp->h_addr, hp->h_length); in getrpcport()
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | stream.c | 4198 ftblk_t *bp = hp->tail; in str_ftevent() 4203 ASSERT(hp != NULL); in str_ftevent() 4244 bp = hp->tail; in str_ftevent() 4252 hp->thread = curthread; in str_ftevent() 4293 hp->hash = (hp->hash << 9) + hp->hash; in str_ftevent() 4305 ftblk_t *bp = &hp->first; in str_ftfree() 4313 bp = hp->first.nxt; in str_ftfree() 4314 hp->tail = &hp->first; in str_ftfree() 4315 hp->hash = 0; in str_ftfree() 4316 hp->first.nxt = NULL; in str_ftfree() [all …]
|
/illumos-gate/usr/src/common/bzip2/ |
H A D | blocksort.c | 494 Int32 i, j, h, bigN, hp; in mainSimpleSort() local 500 hp = 0; in mainSimpleSort() 501 while (incs[hp] < bigN) hp++; in mainSimpleSort() 502 hp--; in mainSimpleSort() 504 for (; hp >= 0; hp--) { in mainSimpleSort() 505 h = incs[hp]; in mainSimpleSort()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/edit/ |
H A D | edit.c | 628 register History_t *hp = shp->gd->hist_ptr; in ed_setup() local 629 ep->e_hismax = hist_max(hp); in ed_setup() 630 ep->e_hismin = hist_min(hp); in ed_setup() 1661 History_t *hp; 1667 if(!(hp=ep->sh->gd->hist_ptr) && (!nv_getval(HISTFILE) || !sh_histinit(ep->sh))) 1677 hp = ep->sh->gd->hist_ptr; 1706 index1 = (int)hp->histind; 1707 for(index2=index1-hp->histsize; index1>index2; index1--) 1709 offset = hist_tell(hp,index1); 1710 sfseek(hp->histfp,offset,SEEK_SET); [all …]
|
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_mdb.c | 1253 fcf_hdr_t h, *hp; in fcf_sec_walk_init() local 1262 hp = mdb_alloc(size, UM_SLEEP); in fcf_sec_walk_init() 1264 if (mdb_vread(hp, size, wsp->walk_addr) != size) { in fcf_sec_walk_init() 1266 mdb_free(hp, size); in fcf_sec_walk_init() 1270 wsp->walk_data = hp; in fcf_sec_walk_init() 1281 fcf_hdr_t *hp = wsp->walk_data; in fcf_sec_walk_step() local 1282 fcf_sec_t *sp = (fcf_sec_t *)((uintptr_t)hp + off); in fcf_sec_walk_step() 1284 if (i >= hp->fcfh_secnum) in fcf_sec_walk_step() 1294 fcf_hdr_t *hp = wsp->walk_data; in fcf_sec_walk_fini() local 1295 mdb_free(hp, sizeof (fcf_hdr_t) + sizeof (fcf_sec_t) * hp->fcfh_secnum); in fcf_sec_walk_fini()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/ |
H A D | vmalloc | 65 static HT* hp = &heap[1]; 67 #define MALLOC(n) if(user)return&heap[0];op=hp;hp+=(n+sizeof(HT)-1)/sizeof(HT);return(void*)op;
|
/illumos-gate/usr/src/uts/sparc/ml/ |
H A D | sparc_ddi.S | 182 ld [%o0 + DMA_HANDLE_RFLAGS], %o4 ! hp->dmai_rflags; 191 ldn [%o0 + DMA_HANDLE_RDIP], %o1 ! dip = hp->dmai_rdip; 206 ldn [%o0 + DMA_HANDLE_RDIP], %o1 ! dip = hp->dmai_rdip;
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | ipcp.c | 280 struct hostent *hp = NULL; local 284 if ((hp = gethostbyname(servname)) == NULL) 286 BCOPY(hp->h_addr, &addr, sizeof (u_int32_t)); 298 if (hp != NULL && hp->h_addr_list[1] != NULL) 299 BCOPY(hp->h_addr_list[1], &serverarray[1], sizeof (u_int32_t)); 1352 struct hostent *hp; in ip_check_options() local 1367 if ((hp = gethostbyname(hostname)) != NULL) { in ip_check_options() 1368 BCOPY(hp->h_addr, &local, sizeof (hp->h_addr)); in ip_check_options()
|
/illumos-gate/usr/src/cmd/sendmail/util/ |
H A D | mail.local.c | 991 struct hostent *hp; local 999 if ((hp = gethostbyname("localhost")) == NULL) { 1003 addr.sin_family = hp->h_addrtype; 1004 (void) memmove(&addr.sin_addr, hp->h_addr, hp->h_length);
|
/illumos-gate/usr/src/cmd/print/bsd-sysv-commands/ |
H A D | in.lpd.c | 65 struct hostent *hp; in remote_host_name() local 82 if ((hp = getipnodebyaddr((const char *)&peer.sin6_addr, in remote_host_name() 89 hostname = strdup(hp->h_name); in remote_host_name() 90 if (is_localhost(hp->h_name) != 0) in remote_host_name()
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/ |
H A D | psvcobj.c | 2798 tbl_arr = &(hp->tbl_arry[array]); in i_psvc_get_obj() 2816 fgets(buf, BUFSZ, hp->fp); in i_psvc_get_obj() 2850 fgets(buf, BUFSZ, hp->fp); in i_psvc_get_obj() 2873 for (i = 0; i < hp->dev_count; ++i) { in i_psvc_get_devpath() 2874 dp = &hp->dev_tbl[i]; in i_psvc_get_devpath() 2910 if ((hp->assoc_tbl = malloc(sizeof (EAssocList_t) * hp->assoc_count)) in i_psvc_load_associations() 2914 memset(hp->assoc_tbl, 0, sizeof (EAssocList_t) * hp->assoc_count); in i_psvc_load_associations() 2938 hp->assoc_tbl[id].count = count; in i_psvc_load_associations() 2939 hp->assoc_tbl[id].table = in i_psvc_load_associations() 2945 ap = &hp->assoc_tbl[id].table[j]; in i_psvc_load_associations() [all …]
|