HomeSort by relevance Sort by last modified time
    Searched defs:hp (Results 1 - 25 of 336) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /onnv/onnv-gate/usr/src/cmd/ssh/libopenbsd-compat/common/
fake-getnameinfo.c 24 struct hostent *hp; local
43 hp = gethostbyaddr((char *)&sin->sin_addr,
45 if (hp == NULL)
48 if (strlen(hp->h_name) >= hostlen)
51 strcpy(host, hp->h_name);
fake-getaddrinfo.c 71 struct hostent *hp; local
101 hp = gethostbyname(hostname);
102 if (hp && hp->h_name && hp->h_name[0] && hp->h_addr_list[0]) {
103 for (i = 0; hp->h_addr_list[i]; i++) {
104 cur = malloc_ai(port, ((struct in_addr *)hp->h_addr_list[i])->s_addr);
  /onnv/onnv-gate/usr/src/lib/libbc/libc/net/
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);
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);
  /onnv/onnv-gate/usr/src/lib/libslp/clib/
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->locale = pcLang
111 slp_handle_impl_t *hp = (slp_handle_impl_t *)hSLP; local
    [all...]
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);
  /onnv/onnv-gate/usr/src/ucblib/librpcsoc/
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);
  /onnv/onnv-gate/usr/src/cmd/cmd-inet/usr.bin/talk/
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->h_addr, (char *) &rem_machine_addr, hp->h_length)
    [all...]
  /onnv/onnv-gate/usr/src/cmd/ipf/lib/common/
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));
  /onnv/onnv-gate/usr/src/cmd/getent/
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);
dogethost.c 40 puthostent(const struct hostent *hp, FILE *fp)
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 = gethostbyname(*list)
    [all...]
dogetipnodes.c 39 puthostent(const struct hostent *hp, FILE *fp)
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 == NULL
    [all...]
  /onnv/onnv-gate/usr/src/cmd/rpcsvc/nis/rpc.nisd/resolv_server/
nres_rcv.c 59 HEADER *hp = (HEADER *)tnr->question; local
72 if (hp->id != anhp->id) {
143 if (hp->id != anhp->id) {
  /onnv/onnv-gate/usr/src/lib/libdtrace/common/
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 = hp->inh_hash)
111 const dt_inthash_t *hp; local
    [all...]
  /onnv/onnv-gate/usr/src/uts/sun4/io/efcode/
fc_ddi.c 62 ddi_dma_impl_t *hp; local
67 hp = (ddi_dma_impl_t *)handle;
68 dip = hp->dmai_rdip;
117 ddi_dma_impl_t *hp; local
120 hp = (ddi_dma_impl_t *)handle;
121 dip = hp->dmai_rdip;
130 ddi_dma_impl_t *hp; local
133 hp = (ddi_dma_impl_t *)*handlep;
134 dip = hp->dmai_rdip;
142 ddi_dma_impl_t *hp = (ddi_dma_impl_t *)h local
    [all...]
  /onnv/onnv-gate/usr/src/lib/libinetutil/common/
inetutil.c 46 struct in_addr hp, tp; local
51 hp.s_addr = htonl(n_addrp->s_addr);
52 if (getnetmaskbyaddr(hp, &tp) == 0) {
  /onnv/onnv-gate/usr/src/cmd/cmd-inet/usr.sbin/in.talkd/
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);
  /onnv/onnv-gate/usr/src/cmd/csh/
sh.hist.c 32 struct Hist *hp, *np; local
54 for (hp = &Histlist; np = hp->Hnext;)
56 hp->Hnext = np->Hnext, hfree(np);
58 hp = np;
86 hfree(struct Hist *hp)
92 freelex(&hp->Hlex);
93 xfree( (tchar *)hp);
134 dohist1(struct Hist *hp, int *np, int rflg, int hflg)
141 if (hp == 0
    [all...]
  /onnv/onnv-gate/usr/src/cmd/mail/
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->value, &toopts)
    [all...]
  /onnv/onnv-gate/usr/src/cmd/sendmail/libmilter/
sm_gethost.c 92 static struct hostent hp; local
96 h = _switch_gethostbyname_r(name, &hp, buf, sizeof(buf), &h_errno);
  /onnv/onnv-gate/usr/src/lib/libprtdiag/common/
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;
  /onnv/onnv-gate/usr/src/lib/libresolv/
res_mkquery.c 130 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->ancount = htons(1)
    [all...]
  /onnv/onnv-gate/usr/src/lib/libuuid/common/
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,
  /onnv/onnv-gate/usr/src/cmd/svr4pkg/libinst/
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)
85 if ((s = socket(hp->h_addrtype, SOCK_DGRAM, 0)) == -1) {
90 lifn.lifn_family = hp->h_addrtype;
105 lifc.lifc_family = hp->h_addrtype
    [all...]
  /onnv/onnv-gate/usr/src/lib/libresolv2/common/resolv/
res_sendsigned.c 38 HEADER *hp; local
146 hp = (HEADER *) answer;
147 if (hp->tc && !usingTCP && (statp->options & RES_IGNTC) == 0U) {

Completed in 540 milliseconds

1 2 3 4 5 6 7 8 91011>>