/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/talk/ |
H A D | get_addrs.c | 58 struct hostent *hp; local 65 hp = gethostbyname(my_machine_name); 67 if (hp == (struct hostent *) 0) { 73 if (hp->h_addrtype != AF_INET) { 79 bcopy(hp->h_addr, (char *)&my_machine_addr, hp->h_length); 94 hp = gethostbyname(rem_machine_name); 96 if (hp == (struct hostent *) 0) { 102 if (hp->h_addrtype != AF_INET) { 108 bcopy(hp [all...] |
/illumos-gate/usr/src/cmd/ipf/lib/common/ |
H A D | hostname.c | 19 struct hostent *hp; local 31 hp = gethostbyaddr(ip, 4, AF_INET); 32 if (hp != NULL && hp->h_name != NULL && 33 *hp->h_name != '\0') { 34 strncpy(hostbuf, hp->h_name, sizeof(hostbuf));
|
/illumos-gate/usr/src/lib/libbc/libc/net/ |
H A D | getrpcport.c | 38 struct hostent *hp; local 40 if ((hp = gethostbyname(host)) == NULL) 42 bcopy(hp->h_addr, (char *) &addr.sin_addr, hp->h_length);
|
H A D | rexec.c | 56 struct hostent *hp; local 58 hp = gethostbyname(*ahost); 59 if (hp == 0) { 63 *ahost = hp->h_name; 64 _ruserpass(hp->h_name, &name, &pass); 71 sin.sin_family = hp->h_addrtype; 73 bcopy(hp->h_addr, (caddr_t)&sin.sin_addr, hp->h_length); 81 perror(hp->h_name);
|
/illumos-gate/usr/src/ucblib/librpcsoc/ |
H A D | getrpcport.c | 40 struct hostent *hp; local 42 if ((hp = gethostbyname(host)) == NULL) 44 memcpy((char *) &addr.sin_addr, hp->h_addr, hp->h_length);
|
/illumos-gate/usr/src/lib/libslp/clib/ |
H A D | SLPOpen.c | 39 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 D | SLPGetRefreshInterval.c | 46 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);
|
/illumos-gate/usr/src/lib/libm/common/C/ |
H A D | remainder.c | 50 int ix, hx, hp; local 54 hp = ((int *)&p)[HIWORD] & ~0x80000000; 56 if (hp > 0x7ff00000 || (hp == 0x7ff00000 && ((int *)&p)[LOWORD] != 0)) 61 if ((hp | ((int *)&p)[LOWORD]) == 0 || hx == 0x7ff00000) 65 if (hp < 0x7fe00000) 68 if (hp < 0x00200000) {
|
/illumos-gate/usr/src/cmd/getent/ |
H A D | dogetethers.c | 65 char *hp; local 69 hp = hostname; 70 retval = ether_ntohost(hp, e); 72 hp = (char *)*list; 74 retval = ether_hostton(hp, e); 79 rc = putethers(hp, e, stdout);
|
H A D | dogethost.c | 40 puthostent(const struct hostent *hp, FILE *fp) argument 45 if (hp == NULL) { 49 for (p = hp->h_addr_list; *p != 0; p++) { 55 inet_ntoa(in), hp->h_name) == EOF) 57 for (q = hp->h_aliases; *q != 0; q++) { 73 struct hostent *hp; local 77 while ((hp = gethostent()) != NULL) 78 (void) puthostent(hp, stdout); 84 hp = gethostbyaddr((char *)&addr, 87 hp [all...] |
H A D | dogetipnodes.c | 39 puthostent(const struct hostent *hp, FILE *fp) argument 45 if (hp == NULL) { 49 for (p = hp->h_addr_list; *p != 0; p++) { 56 if (hp->h_addrtype == AF_INET6) { 75 if (fprintf(fp, "%s\t%s", res, hp->h_name) == EOF) 77 for (q = hp->h_aliases; q && *q; q++) { 93 struct hostent *hp; local 116 hp = getipnodebyaddr(addr, len, af, &err_ret); 118 hp = getipnodebyname( 123 if (hp [all...] |
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_inttab.c | 57 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...] |
/illumos-gate/usr/src/lib/libuuid/common/ |
H A D | etheraddr.c | 54 struct hostent *hp; local 68 hp = gethostbyname(name.nodename); 69 if (hp == NULL) { 72 (void) memcpy(&sin->sin_addr, hp->h_addr,
|
/illumos-gate/usr/src/lib/libprtdiag/common/ |
H A D | kstat.c | 71 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;
|
/illumos-gate/usr/src/lib/libm/common/Q/ |
H A D | remainderl.c | 55 long double hp; local 77 hp = half * p; 78 if (x > hp) { 83 if (x >= hp)
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.talkd/ |
H A D | process.c | 139 struct hostent *hp; local 152 hp = gethostbyaddr((const char *)&request->ctl_addr.sin_addr, 154 if (hp == NULL) { 162 response->answer = announce(request, hp->h_name); 169 response->answer = announce(request, hp->h_name);
|
/illumos-gate/usr/src/cmd/mail/ |
H A D | ckdlivopts.c | 71 struct hdrs *hp; local 81 if ((hp = hdrlines[H_DEFOPTS].head) != (struct hdrs *)NULL) { 82 Dout(pn, 3, "H_DEFOPTS line = '%s'\n", hp->value); 83 getopts(hp->value, &defopts); 86 if ((hp = hdrlines[H_TROPTS].head) != (struct hdrs *)NULL) { 87 Dout(pn, 3, "H_TROPTS line = '%s'\n", hp->value); 88 getopts(hp->value, &tropts); 91 if ((hp = hdrlines[tcopy_hdr].head) != (struct hdrs *)NULL) { 92 Dout(pn, 3,"H_TCOPY line = '%s'\n", hp->value); 93 getopts(hp [all...] |
/illumos-gate/usr/src/cmd/sendmail/libmilter/ |
H A D | sm_gethost.c | 92 static struct hostent hp; local 96 h = _switch_gethostbyname_r(name, &hp, buf, sizeof(buf), &h_errno);
|
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | is_local_host.c | 45 static int is_local_if(struct hostent *hp); 58 struct hostent *hp; local 62 if (hp = getipnodebyname((const char *) host, AF_INET, flags, &err)) 63 if (is_local_if(hp)) 65 if (hp = getipnodebyname((const char *) host, AF_INET6, flags, &err)) 66 if (is_local_if(hp)) 73 is_local_if(struct hostent *hp) argument 85 if ((s = socket(hp->h_addrtype, SOCK_DGRAM, 0)) == -1) { 90 lifn.lifn_family = hp->h_addrtype; 105 lifc.lifc_family = hp [all...] |
/illumos-gate/usr/src/lib/libresolv/ |
H A D | res_mkquery.c | 133 register HEADER *hp; local 169 hp = (HEADER *) buf; 170 hp->id = htons(++_res.id); 171 hp->opcode = op; 172 hp->pr = (_res.options & RES_PRIMARY) != 0; 173 hp->rd = (_res.options & RES_RECURSE) != 0; 174 hp->rcode = NOERROR; 197 hp->qdcount = htons(1); 217 hp->arcount = htons(1); 243 hp [all...] |
H A D | res_query.c | 80 HEADER *hp; local 110 hp = (HEADER *) answer; 111 if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { 114 printf("rcode = %d, ancount=%d\n", hp->rcode, 115 ntohs(hp->ancount)); 117 switch (hp->rcode) { 136 if (hp->rcode == NOERROR && ntohs(hp->ancount) > 0)
|
/illumos-gate/usr/src/lib/libresolv2/common/resolv/ |
H A D | res_sendsigned.c | 38 HEADER *hp; local 146 hp = (HEADER *) answer; 147 if (hp->tc && !usingTCP && (statp->options & RES_IGNTC) == 0U) {
|
/illumos-gate/usr/src/lib/libwrap/ |
H A D | socket.c | 156 struct hostent *hp; local 169 && (hp = gethostbyaddr(SGADDRP(sin), SGADDRSZ(sin), SGFAM(sin))) != 0) { 171 STRN_CPY(host->name, hp->h_name, sizeof(host->name)); 186 if ((hp = tcpd_gethostbyname(host->name, SGFAM(sin))) == 0) { 196 } else if (STR_NE(host->name, hp->h_name) 206 host->name, STRING_LENGTH, hp->h_name); 220 for (i = 0; hp->h_addr_list[i]; i++) { 221 if (memcmp(hp->h_addr_list[i], 239 STRING_LENGTH, hp->h_name);
|
/illumos-gate/usr/src/lib/libilb/common/ |
H A D | ilb_comm.c | 52 ilb_open(ilb_handle_t *hp) argument 60 if (hp == NULL) 110 *hp = (ilb_handle_t)hi; 113 *hp = ILB_INVALID_HANDLE;
|
/illumos-gate/usr/src/cmd/sendmail/db/db/ |
H A D | db_dispatch.c | 208 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...] |