/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.dir.c | 45 dinit(tchar *hp) in dinit() argument 61 if (loginsh && hp && *hp) in dinit() 62 cp = hp; in dinit() 87 tchar *hp = value(S_home); in dodirs() local 92 if (*hp == '\0') in dodirs() 93 hp = NOSTR; in dodirs() 105 if (!lflag && hp != NOSTR) { in dodirs() 106 dtildepr(hp, dp->di_name); in dodirs()
|
H A D | sh.exp.c | 592 struct wordent *hp = ¶ml; in evalav() local 594 struct wordent *wdp = hp; in evalav() 600 hp->prev = hp->next = hp; in evalav() 601 hp->word = S_ /* "" */; in evalav() 606 new->next = hp; in evalav() 611 hp->prev = wdp; in evalav()
|
/illumos-gate/usr/src/lib/print/libpapi-common/common/ |
H A D | misc.c | 173 struct hostent *hp; in match_interfaces() local 182 hp = getipnodebyname(host, AF_INET6, AI_ALL|AI_V4MAPPED, &errnum); in match_interfaces() 183 if (hp != NULL) { in match_interfaces() 184 struct in6_addr **tmp = (struct in6_addr **)hp->h_addr_list; in match_interfaces()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | evchannels.c | 109 evch_dl_init(evch_dlist_t *hp) in evch_dl_init() argument 111 hp->dh_head.dl_prev = hp->dh_head.dl_next = &hp->dh_head; in evch_dl_init() 112 hp->dh_count = 0; in evch_dl_init() 119 evch_dl_fini(evch_dlist_t *hp) in evch_dl_fini() argument 121 hp->dh_head.dl_prev = hp->dh_head.dl_next = NULL; in evch_dl_fini() 143 hp->dh_count++; in evch_dl_add() 152 ASSERT(hp->dh_count > 0 && p != &hp->dh_head); in evch_dl_del() 157 hp->dh_count--; in evch_dl_del() 168 for (p = hp->dh_head.dl_next; p != &hp->dh_head; p = p->dl_next) { in evch_dl_search() 182 return (hp->dh_count); in evch_dl_getnum() [all …]
|
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | getdxbyname.c | 118 HEADER *hp; in decode_answer() local 131 hp = (HEADER *)answer; in decode_answer() 134 if ( ntohs( hp->qdcount ) != 1 ) { in decode_answer() 139 ancount = ntohs( hp->ancount ); in decode_answer()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | nvtree.c | 38 Namval_t *hp; member 189 char *cp = nv_name(dp->hp); in nv_diropen() 192 dp->hp = (Namval_t*)dtnext(dp->root,dp->hp); in nv_diropen() 195 np = dp->hp; in nv_diropen() 200 dp->hp = (Namval_t*)dtfirst(dp->root); in nv_diropen() 203 dp->hp = (Namval_t*)dtfirst(dp->root); in nv_diropen() 230 if(np==dp->hp && !next) in nv_diropen() 231 dp->hp = (Namval_t*)dtnext(dp->root,dp->hp); in nv_diropen() 271 return((Namval_t*)dtnext(dp->root,dp->hp)); in nextnode() 283 while(np=dp->hp) in nv_dirnext() [all …]
|
/illumos-gate/usr/src/cmd/krb5/kadmin/server/ |
H A D | ovsec_kadmd.c | 265 struct hostent *hp = NULL; in getdomnames() local 292 if (hp != NULL) { in getdomnames() 296 res_freehostent(hp); in getdomnames() 297 hp = NULL; in getdomnames() 312 res_freehostent(hp); in getdomnames() 313 hp = NULL; in getdomnames() 330 res_freehostent(hp); in getdomnames() 331 hp = NULL; in getdomnames() 353 if (hp) { in getdomnames() 354 res_freehostent(hp); in getdomnames() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/ |
H A D | omitted.c | 886 HANDLE hp; in unlink() local 900 …hp = CreateFile(path, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL|FILE_FLAG_DELETE… in unlink() 901 if (hp != INVALID_HANDLE_VALUE) in unlink() 903 CloseHandle(hp); in unlink() 993 if (hp != INVALID_HANDLE_VALUE) in unlink() 995 CloseHandle(hp); in unlink() 1019 HANDLE hp; in ctime_now() local 1030 …hp = CreateFile(tmp, GENERIC_WRITE, FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, … in ctime_now() 1031 if (hp && hp != INVALID_HANDLE_VALUE) in ctime_now() 1035 SetFileTime(hp, &ct, 0, 0); in ctime_now() [all …]
|
/illumos-gate/usr/src/cmd/lp/model/netpr/ |
H A D | netpr.c | 71 struct hostent *hp; in net_open() local 93 if ((hp = getipnodebyname(host, AF_INET6, AI_DEFAULT, in net_open() 99 (void) memcpy((caddr_t)&sin.sin6_addr, hp->h_addr, hp->h_length); in net_open() 100 sin.sin6_family = hp->h_addrtype; in net_open() 101 freehostent(hp); in net_open()
|
/illumos-gate/usr/src/lib/libilb/common/ |
H A D | ilb_comm.c | 54 ilb_open(ilb_handle_t *hp) in ilb_open() argument 62 if (hp == NULL) in ilb_open() 112 *hp = (ilb_handle_t)hi; in ilb_open() 115 *hp = ILB_INVALID_HANDLE; in ilb_open()
|
/illumos-gate/usr/src/lib/print/libpapi-lpd/common/ |
H A D | lpd-port.c | 110 struct hostent *hp; in sock_connect() local 132 if ((hp = getipnodebyname(host, AF_INET6, AI_DEFAULT, in sock_connect() 137 (void) memcpy((caddr_t)&sin.sin6_addr, hp->h_addr, hp->h_length); in sock_connect() 138 sin.sin6_family = hp->h_addrtype; in sock_connect() 140 if ((hp = gethostbyname(host)) == NULL) { in sock_connect() 145 (void) memcpy((caddr_t)&sin.sin_addr, hp->h_addr, hp->h_length); in sock_connect() 146 sin.sin_family = hp->h_addrtype; in sock_connect()
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | dns_nw.c | 301 HEADER *hp; in get1101answer() local 309 hp = (HEADER *)ansbuf; in get1101answer() 311 qdcount = ntohs(hp->qdcount); in get1101answer() 320 ancount = ntohs(hp->ancount); in get1101answer() 322 if (hp->aa) in get1101answer() 446 HEADER *hp; in get1101mask() local 470 hp = (HEADER *)ansbuf; in get1101mask() 473 qdcount = ntohs(hp->qdcount); in get1101mask() 482 ancount = ntohs(hp->ancount); in get1101mask()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | route.c | 864 if (hp != NULL) { in routename() 909 if (hp != NULL) in routename() 910 freehostent(hp); in routename() 1829 hp->h_addr_list[attempts], hp->h_length); in newroute() 1833 hp->h_addr_list[attempts], hp->h_length); in newroute() 1900 #undef hp in newroute() 2052 hpp = &hp; in getaddr() 2250 *hpp = hp; in in_getaddr() 2311 if (hp != NULL) { in in6_getaddr() 2312 *hpp = hp; in in6_getaddr() [all …]
|
/illumos-gate/usr/src/uts/sun4u/io/pci/ |
H A D | pci_fm.c | 78 ddi_acc_hdl_t *hp; in pci_fm_acc_setup() local 81 hp = mp->map_handlep; in pci_fm_acc_setup() 82 ap = (ddi_acc_impl_t *)hp->ah_platform_private; in pci_fm_acc_setup() 86 ndi_fmc_insert(rdip, ACC_HANDLE, (void *)hp, NULL); in pci_fm_acc_setup() 128 ndi_fmc_remove(rdip, ACC_HANDLE, (void *)hp); in pci_fm_acc_setup()
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_dof.c | 603 bzero(hp, sizeof (dof_hdr_t)); in dof_hdr() 605 hp->dofh_ident[DOF_ID_MAG0] = DOF_MAG_MAG0; in dof_hdr() 606 hp->dofh_ident[DOF_ID_MAG1] = DOF_MAG_MAG1; in dof_hdr() 607 hp->dofh_ident[DOF_ID_MAG2] = DOF_MAG_MAG2; in dof_hdr() 608 hp->dofh_ident[DOF_ID_MAG3] = DOF_MAG_MAG3; in dof_hdr() 611 hp->dofh_ident[DOF_ID_MODEL] = DOF_MODEL_LP64; in dof_hdr() 613 hp->dofh_ident[DOF_ID_MODEL] = DOF_MODEL_ILP32; in dof_hdr() 616 hp->dofh_ident[DOF_ID_VERSION] = dofversion; in dof_hdr() 621 hp->dofh_hdrsize = sizeof (dof_hdr_t); in dof_hdr() 622 hp->dofh_secsize = sizeof (dof_sec_t); in dof_hdr() [all …]
|
/illumos-gate/usr/src/lib/libslp/clib/ |
H A D | SLPUtils.c | 177 static SLPBoolean saadvert_callback(SLPHandle hp, char *scopes, in saadvert_callback() argument 217 slp_handle_impl_t *hp = (slp_handle_impl_t *)hSLP; in SAAdvert_for_scopes() local 246 sync_state = hp->async; in SAAdvert_for_scopes() 247 hp->async = SLP_FALSE; in SAAdvert_for_scopes() 249 if ((err = slp_start_call(hp)) != SLP_OK) in SAAdvert_for_scopes() 252 err = slp_packSrvRqst("service:service-agent", predicate, hp); in SAAdvert_for_scopes() 266 slp_end_call(hp); in SAAdvert_for_scopes() 269 hp->async = sync_state; in SAAdvert_for_scopes()
|
/illumos-gate/usr/src/cmd/ypcmd/ |
H A D | rpc_bootstrap.c | 381 register struct hostent *hp; in __files_gethostbyname() local 394 while (hp = __files_gethostent(hostf)) { in __files_gethostbyname() 395 if (hp->h_addrtype != af) in __files_gethostbyname() 397 if (strcasecmp(hp->h_name, nam) == 0) { in __files_gethostbyname() 399 return (hp); in __files_gethostbyname() 401 for (cp = hp->h_aliases; cp != 0 && *cp != 0; cp++) in __files_gethostbyname() 404 return (hp); in __files_gethostbyname()
|
/illumos-gate/usr/src/uts/i86pc/io/pciex/ |
H A D | npe.c | 81 #define NPE_IS_HANDLE_FOR_STDCFG_ACC(hp) \ argument 82 ((hp) != NULL && \ 84 (((ddi_acc_impl_t *)((ddi_acc_hdl_t *)(hp))-> \ 486 ddi_acc_hdl_t *hp, off_t offset, off_t len) in npe_setup_std_pcicfg_acc() argument 490 if ((ret = pci_fm_acc_setup(hp, offset, len)) == in npe_setup_std_pcicfg_acc() 509 ddi_acc_hdl_t *hp; in npe_bus_map() local 662 hp = (ddi_acc_hdl_t *)mp->map_handlep; in npe_bus_map() 663 if (hp == NULL) in npe_bus_map() 667 cfp = (pci_acc_cfblk_t *)&hp->ah_bus_private; in npe_bus_map() 676 return (npe_setup_std_pcicfg_acc(rdip, mp, hp, in npe_bus_map() [all …]
|
/illumos-gate/usr/src/cmd/ipf/lib/ |
H A D | printhash.c | 16 iphtable_t *printhash(hp, copyfunc, name, opts) in printhash() argument 17 iphtable_t *hp; in printhash() 27 if ((*copyfunc)((char *)hp, (char *)&iph, sizeof(iph)))
|
/illumos-gate/usr/src/cmd/sendmail/libmilter/ |
H A D | listener.c | 385 struct hostent *hp = NULL; local 387 hp = mi_gethostbyname(at, addr.sa.sa_family); 388 if (hp == NULL) 395 addr.sa.sa_family = hp->h_addrtype; 396 switch (hp->h_addrtype) 401 hp->h_addr, 410 hp->h_addr, 419 name, at, hp->h_addrtype); 423 freehostent(hp);
|
/illumos-gate/usr/src/cmd/cmd-inet/common/ |
H A D | kcmd.c | 101 struct hostent *hp; in kcmd() local 137 hp = gethostbyname(*ahost); in kcmd() 138 if (hp == 0) { in kcmd() 144 if ((host_save = (char *)strdup(hp->h_name)) == NULL) { in kcmd() 189 if (hp->h_addrtype == AF_INET) { in kcmd() 190 sin.sin_family = hp->h_addrtype; in kcmd() 192 hp->h_addr, hp->h_length); in kcmd() 196 "Kerberos", hp->h_addrtype); in kcmd()
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | domain.c | 218 HEADER *hp; local 328 hp = (HEADER *)&answer; 331 for (qdcount = ntohs((unsigned short) hp->qdcount); 343 ancount = ntohs((unsigned short) hp->ancount); 795 HEADER *hp; local 984 hp = (HEADER *) &answer; 989 for (qdcount = ntohs((unsigned short) hp->qdcount); 997 ntohs((unsigned short) hp->qdcount)); 1004 for (ancount = ntohs((unsigned short) hp->ancount);
|
/illumos-gate/usr/src/uts/sun4u/io/px/ |
H A D | px_lib4u.c | 1497 ddi_acc_hdl_t *hp = mp->map_handlep; in px_lib_map_attr_check() local 1640 i_ndi_busop_access_enter(hp->ahi_common.ah_dip, (ddi_acc_handle_t)hp); in px_lib_do_caut_put() 1651 i_ddi_put8(hp, (uint8_t *)dev_addr, in px_lib_do_caut_put() 1656 i_ddi_put16(hp, (uint16_t *)dev_addr, in px_lib_do_caut_put() 1661 i_ddi_put32(hp, (uint32_t *)dev_addr, in px_lib_do_caut_put() 1666 i_ddi_put64(hp, (uint64_t *)dev_addr, in px_lib_do_caut_put() 1688 i_ddi_notrap((ddi_acc_handle_t)hp); in px_lib_do_caut_put() 1691 i_ndi_busop_access_exit(hp->ahi_common.ah_dip, (ddi_acc_handle_t)hp); in px_lib_do_caut_put() 1764 i_ndi_busop_access_enter(hp->ahi_common.ah_dip, (ddi_acc_handle_t)hp); in px_lib_do_caut_get() 1804 i_ddi_notrap((ddi_acc_handle_t)hp); in px_lib_do_caut_get() [all …]
|
/illumos-gate/usr/src/lib/libinetutil/common/ |
H A D | inetutil.c | 48 struct in_addr hp, tp; in get_netmask4() local 53 hp.s_addr = htonl(n_addrp->s_addr); in get_netmask4() 54 if (getnetmaskbyaddr(hp, &tp) == 0) { in get_netmask4()
|
/illumos-gate/usr/src/cmd/vscan/vscand/ |
H A D | vs_eng.c | 701 struct hostent *hp; in vs_eng_connect() local 706 hp = getipnodebyname(host, AF_INET, 0, &err_num); in vs_eng_connect() 707 if (hp == NULL) { in vs_eng_connect() 713 (void) memcpy(&addr.sin_addr, hp->h_addr, hp->h_length); in vs_eng_connect() 715 addr.sin_family = hp->h_addrtype; in vs_eng_connect() 716 freehostent(hp); in vs_eng_connect()
|