Home
last modified time | relevance | path

Searched refs:hptr (Results 1 – 25 of 32) sorted by relevance

12

/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dgethostent_r.c37 gethostbyname_r(const char *name, struct hostent *hptr, HOST_R_ARGS) { in gethostbyname_r() argument
48 if (he == NULL || (n = copy_hostent(he, hptr, HOST_R_COPY)) != 0) in gethostbyname_r()
51 *answerp = hptr; in gethostbyname_r()
58 return (copy_hostent(he, hptr, HOST_R_COPY)); in gethostbyname_r()
64 struct hostent *hptr, HOST_R_ARGS) { in gethostbyaddr_r() argument
75 if (he == NULL || (n = copy_hostent(he, hptr, HOST_R_COPY)) != 0) in gethostbyaddr_r()
78 *answerp = hptr; in gethostbyaddr_r()
85 return (copy_hostent(he, hptr, HOST_R_COPY)); in gethostbyaddr_r()
96 gethostent_r(struct hostent *hptr, HOST_R_ARGS) { in gethostent_r() argument
107 if (he == NULL || (n = copy_hostent(he, hptr, HOST_R_COPY)) != 0) in gethostent_r()
[all …]
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Discsi_doorclt.c202 struct hostent *hptr in kfreehostent() argument
207 ASSERT(hptr != NULL); in kfreehostent()
208 if (hptr) { in kfreehostent()
209 buffer = (mybuffer_t *)((char *)hptr - sizeof (mybuffer_t)); in kfreehostent()
249 struct hostent *hptr; in kgetipnodebyname() local
284 hptr = (struct hostent *)((char *)buffer + sizeof (mybuffer_t)); in kgetipnodebyname()
285 req = (getipnodebyname_req_t *)((char *)hptr + hostent_size); in kgetipnodebyname()
286 cnf = (getipnodebyname_cnf_t *)((char *)hptr + hostent_size); in kgetipnodebyname()
298 hptr->h_length = sizeof (struct in_addr); in kgetipnodebyname()
301 hptr->h_length = sizeof (struct in6_addr); in kgetipnodebyname()
[all …]
H A Discsi_ioctl.c429 struct hostent *hptr; in iscsi_create_sendtgts_list() local
550 hptr = kgetipnodebyname(addr_str, type, in iscsi_create_sendtgts_list()
552 if (!hptr) { in iscsi_create_sendtgts_list()
569 kfreehostent(hptr); in iscsi_create_sendtgts_list()
578 curr_ste->ste_ipaddr.a_addr.i_insize = hptr->h_length; in iscsi_create_sendtgts_list()
579 bcopy(*hptr->h_addr_list, in iscsi_create_sendtgts_list()
582 kfreehostent(hptr); in iscsi_create_sendtgts_list()
H A Discsi_login.c1983 struct hostent *hptr; in iscsi_update_address() local
1998 hptr = kgetipnodebyname(addr_str, type, AI_ALL, &error_num); in iscsi_update_address()
1999 if (!hptr) { in iscsi_update_address()
2011 iscsid_addr_to_sockaddr(hptr->h_length, *hptr->h_addr_list, in iscsi_update_address()
2014 kfreehostent(hptr); in iscsi_update_address()
/illumos-gate/usr/src/cmd/mail/
H A Dgendeliv.c40 register struct hdrs *hptr; local
112 if ((hptr = hdrlines[H_DATE].head) != (struct hdrs *)NULL) {
113 Dout(pn, 0,"date from H_DATE = '%s'\n", hptr->value);
114 fprintf(outfile,"%s\n", hptr->value);
118 if ((hptr = hdrlines[H_FROM1].tail) == (struct hdrs *)NULL) {
119 hptr = hdrlines[H_FROM].tail;
121 Dout(pn, 0,"date from H_FROM = '%s'\n", hptr->value);
122 (void) strlcpy(buf, hptr->value, sizeof (buf));
155 if ((hptr = hdrlines[H_SUBJ].head) != (struct hdrs *)NULL) {
157 header[H_SUBJ].tag, hptr->value);
[all …]
H A Dsendmail.c52 struct hdrs *hptr; in sendmail() local
257 if ((hptr = hdrlines[H_MIMEVERS].head) != in sendmail()
265 if ((hptr = hdrlines[H_CTYPE].head) != in sendmail()
273 if ((hptr = hdrlines[H_CLEN].head) != in sendmail()
293 if ((hptr = hdrlines[H_MIMEVERS].head) != in sendmail()
301 if ((hptr = hdrlines[H_CTYPE].head) != in sendmail()
309 if ((hptr = hdrlines[H_CLEN].head) != in sendmail()
402 if ((hptr = hdrlines[H_MIMEVERS].head) != (struct hdrs *)NULL) { in sendmail()
403 if (strlen(hptr->value) == 0) { in sendmail()
404 (void) strlcpy(hptr->value, "1.0", in sendmail()
[all …]
H A Ddumprcv.c41 struct hdrs *hptr; local
66 for (hptr = hdrlines[H_RECEIVED].head;
67 hptr != (struct hdrs *)NULL;
68 hptr = hptr->next) {
69 printhdr(type, H_RECEIVED, hptr, f);
H A Ddumpaff.c41 struct hdrs *hptr; local
73 for (hptr = hdrlines[H_AFWDFROM].head;
74 hptr != (struct hdrs *)NULL;
75 hptr = hptr->next) {
76 printhdr(type, H_AFWDFROM, hptr, f);
H A Dcopylet.c92 struct hdrs *hptr; in xxxcopylet() local
124 if ((hptr = hdrlines[H_CLEN].head) != in xxxcopylet()
126 clen = atol (hptr->value); in xxxcopylet()
206 if ((hptr = hdrlines[H_TCOPY].head) != in xxxcopylet()
212 if ((hptr = hdrlines[H_RECEIVED].head) != in xxxcopylet()
219 if ((hptr = hdrlines[H_MIMEVERS].head) != in xxxcopylet()
223 if ((hptr = hdrlines[H_CTYPE].head) != in xxxcopylet()
227 if ((hptr = hdrlines[H_CLEN].head) != in xxxcopylet()
257 if (printhdr (type, htype, hptr, f) < 0) { in xxxcopylet()
313 hptr = hdrlines[htype].head; in xxxcopylet()
[all …]
H A Dprinthdr.c33 printhdr(int type, int hdrtype, struct hdrs *hptr, FILE *fp) in printhdr() argument
40 if (hptr == NULL) in printhdr()
47 header[hdrtype].tag, hptr->value); in printhdr()
55 contptr = hptr; in printhdr()
/illumos-gate/usr/src/cmd/dc/
H A Ddc.c1492 print(struct blk *hptr) in print() argument
1498 rewind(hptr); in print()
1499 while (sfeof(hptr) == 0) { in print()
1500 if (sgetc(hptr) > 99) { in print()
1501 rewind(hptr); in print()
1502 while (sfeof(hptr) == 0) { in print()
1503 printf("%c", sgetc(hptr)); in print()
1509 fsfile(hptr); in print()
1510 sc = sbackc(hptr); /* read scale off end of blk */ in print()
1511 if (sfbeg(hptr) != 0) { in print()
[all …]
H A Ddc.h129 void print(struct blk *hptr);
132 void seekc(struct blk *hptr, int n);
135 void more(struct blk *hptr);
138 void sdump(char *s1, struct blk *hptr);
139 void salterwd(struct wblk *hptr, struct blk *n);
/illumos-gate/usr/src/uts/common/io/
H A Dksyms.c83 ksyms_buflist_hdr_t *hptr = (ksyms_buflist_hdr_t *)ptr; in ksyms_bcopy() local
85 if (hptr->cur == NULL) in ksyms_bcopy()
89 sz = MIN(rsize, (BUF_SIZE - hptr->curbuf_off)); in ksyms_bcopy()
90 bcopy(src, (hptr->cur->buf + hptr->curbuf_off), sz); in ksyms_bcopy()
92 hptr->curbuf_off += sz; in ksyms_bcopy()
93 if (hptr->curbuf_off == BUF_SIZE) { in ksyms_bcopy()
94 hptr->curbuf_off = 0; in ksyms_bcopy()
95 hptr->cur = list_next(&hptr->blist, hptr->cur); in ksyms_bcopy()
96 if (hptr->cur == NULL) in ksyms_bcopy()
220 void *hptr = NULL; in ksyms_open() local
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dtsol.c39 tnrhc_hash_t **hptr; member
114 twp->hptr = twp->tnrhc_table; in tnrh_walk_init()
130 if (*twp->hptr == NULL || twp->idx >= TNRHC_SIZE) { in tnrh_walk_step()
131 twp->hptr++; in tnrh_walk_step()
132 if (twp->hptr == twp->tnrhc_table + in tnrh_walk_step()
134 twp->hptr = twp->tnrhc_table_v6; in tnrh_walk_step()
135 else if (twp->hptr == twp->tnrhc_table_v6 + in tnrh_walk_step()
140 wsp->walk_addr = (uintptr_t)(*twp->hptr)[twp->idx++]. in tnrh_walk_step()
/illumos-gate/usr/src/cmd/iscsid/
H A Discsid.c460 struct hostent *hptr; in _getipnodebyname_req() local
487 hptr = getipnodebyname( in _getipnodebyname_req()
493 if (hptr) { in _getipnodebyname_req()
506 cnf->h_addrlen = (uint32_t)hptr->h_length; in _getipnodebyname_req()
507 cnf->h_addrtype = (uint32_t)hptr->h_addrtype; in _getipnodebyname_req()
510 if (*hptr->h_addr_list != NULL) { in _getipnodebyname_req()
513 *hptr->h_addr_list, in _getipnodebyname_req()
514 hptr->h_length); in _getipnodebyname_req()
517 cnf_len += hptr->h_length; in _getipnodebyname_req()
520 cnf->h_size_needed += hptr->h_length; in _getipnodebyname_req()
[all …]
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dippool.c388 iphtable_t *hptr; local
542 iphtable_t *hptr; local
588 hptr = tables[role];
589 while (hptr != NULL) {
590 hptr = printhash(hptr, kmemcpywrap,
595 hptr = tables[role];
596 while (hptr != NULL) {
597 hptr = printhash(hptr, kmemcpywrap,
/illumos-gate/usr/src/lib/libproc/common/
H A DPsymtab_machelf32.c261 uintptr_t hptr = (uintptr_t)NULL; in fake_elf64() local
360 hptr = d[DI_HASH]->d_un.d_ptr; in fake_elf64()
362 hptr += addr; in fake_elf64()
364 if (Pread(P, hash, sizeof (hash), hptr) != sizeof (hash)) { in fake_elf64()
366 (long)(hptr)); in fake_elf64()
631 if ((hptr == (uintptr_t)NULL) || (hnbuckets == 0) || in fake_elf64()
640 hash = &((uint_t *)hptr)[2 + htmp]; in fake_elf64()
668 hash = &((uint_t *)hptr)[2 + hnbuckets + ndx]; in fake_elf64()
/illumos-gate/usr/src/lib/libresolv2/include/
H A Dport_netdb.h88 struct hostent *hptr, char *buf,
93 struct hostent *gethostbyname_r __P((const char *name, struct hostent *hptr,
98 struct hostent *gethostent_r __P((struct hostent *hptr, char *buf, int buflen,
H A Dport_before.h105 #define HOST_R_OK hptr
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip_sadb.c664 isaf_t *hptr; in ipsec_inbound_ah_sa() local
727 hptr = INBOUND_BUCKET(sp, ah->ah_spi); in ipsec_inbound_ah_sa()
728 mutex_enter(&hptr->isaf_lock); in ipsec_inbound_ah_sa()
729 assoc = ipsec_getassocbyspi(hptr, ah->ah_spi, src_ptr, dst_ptr, af); in ipsec_inbound_ah_sa()
730 mutex_exit(&hptr->isaf_lock); in ipsec_inbound_ah_sa()
/illumos-gate/usr/src/uts/common/sys/scsi/adapters/
H A Discsi_door.h137 struct hostent *hptr
/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_config.c3018 ns_hash_t *hptr; in __s_api_strValue() local
3198 for (hptr = cfg->llHead; hptr; hptr = hptr->h_llnext) { in __s_api_strValue()
3199 if (hptr->h_type != NS_HASH_AMAP) { in __s_api_strValue()
3213 mptr = hptr->h_map; in __s_api_strValue()
3229 for (hptr = cfg->llHead; hptr; hptr = hptr->h_llnext) { in __s_api_strValue()
3230 if (hptr->h_type != NS_HASH_OMAP) { in __s_api_strValue()
3244 mptr = hptr->h_map; in __s_api_strValue()
/illumos-gate/usr/src/lib/libipsecutil/common/
H A Dipsec_util.c779 char *volatile hptr, **thisargv, *ebuf; in do_interactive() local
823 hptr = &(holder[strlen(holder)]); in do_interactive()
826 hptr[-2] = ' '; in do_interactive()
834 (void) strncpy(hptr, ibuf, in do_interactive()
835 (size_t)(&(holder[IBUF_SIZE]) - hptr)); in do_interactive()
842 if (hptr[strlen(hptr) - 2] == CONT_CHAR) { in do_interactive()
844 hptr += strlen(hptr); in do_interactive()
847 hptr[-2] = ' '; in do_interactive()
/illumos-gate/usr/src/cmd/rpcgen/
H A Drpc_cout.c896 char *ptr, *hptr; in upcase() local
904 hptr = ptr; in upcase()
909 return (hptr); in upcase()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dnss_dbdefs.c300 getXbyY_to_dbop_t *hptr; in nss_dbop_search() local
351 hptr = &getXbyY_to_dbop[idx]; in nss_dbop_search()
352 if (hptr->dbop != dbop || strcmp(name, hptr->name) != 0) in nss_dbop_search()

12