Home
last modified time | relevance | path

Searched refs:hbuf (Results 1 – 25 of 37) sorted by relevance

12

/titanic_44/usr/src/cmd/sendmail/src/
H A Dsasl.c243 char hbuf[NI_MAXHOST], pbuf[NI_MAXSERV]; local
261 hbuf, sizeof(hbuf), pbuf, sizeof(pbuf), niflags) != 0)
269 if (sm_strlcpy(hbuf, inet_ntoa(addr->sin.sin_addr), sizeof(hbuf))
270 >= sizeof(hbuf))
278 if (outlen < strlen(hbuf) + strlen(pbuf) + 2)
283 sm_snprintf(out, outlen, "%s;%s", hbuf, pbuf);
H A Ddaemon.c3407 static char hbuf[MAXNAME + MAXAUTHINFO + 11]; local
3426 (void) sm_strlcpyn(hbuf, sizeof(hbuf), 2, RealUserName,
3429 sm_dprintf("getauthinfo: %s\n", hbuf);
3430 return hbuf;
3697 (void) sm_strlcpy(hbuf, "IDENT:", sizeof(hbuf));
3698 cleanstrcpy(&hbuf[6], p, MAXAUTHINFO);
3701 cleanstrcpy(hbuf, p, MAXAUTHINFO);
3702 len = strlen(hbuf);
3703 (void) sm_strlcpyn(&hbuf[len], sizeof(hbuf) - len, 2, "@",
3736 (void) sm_strlcpy(hbuf, RealHostName, sizeof(hbuf));
[all …]
H A Dheaders.c201 char hbuf[50]; local
203 (void) expand(fvalue, hbuf, sizeof(hbuf), e);
204 for (p = hbuf; isascii(*p) && isspace(*p); )
1107 char hbuf[MAXNAME + 1]; local
1138 name = hbuf;
1139 (void) sm_snprintf(hbuf, sizeof(hbuf), "%.80s", RealHostName);
1142 p = &hbuf[strlen(hbuf)];
1143 (void) sm_snprintf(p, SPACELEFT(hbuf, p),
H A Dparseaddr.c1968 char hbuf[MAXNAME + 1]; local
1981 hbuf[0] = '\0';
2036 cataddr(hostp, tv - 1, hbuf, sizeof(hbuf), '\0', false);
2052 a->q_host = sm_rpool_strdup_x(e->e_rpool, hbuf);
2053 if (strchr(hbuf, '.') != NULL)
2056 hbuf);
2057 setstat(dsntoexitstat(hbuf));
2059 else if (isascii(hbuf[0]) && isdigit(hbuf[0]))
2061 setstat(atoi(hbuf));
2066 if (sm_strcasecmp(ep->ec_name, hbuf) == 0)
[all …]
/titanic_44/usr/src/uts/common/os/
H A Dbio.c71 struct hbuf *hbuf; /* Hash buckets */ variable
410 struct hbuf *hp; in brelse()
456 hmp = &hbuf[index].b_lock; in brelse()
459 hp = &hbuf[index]; in brelse()
531 dp = (struct buf *)&hbuf[i]; in bio_busy()
532 hmp = &hbuf[i].b_lock; in bio_busy()
578 struct hbuf *hp; in getblk_common()
586 hp = &hbuf[index]; in getblk_common()
786 struct hbuf *hp; in trygetblk()
791 hp = &hbuf[index]; in trygetblk()
[all …]
/titanic_44/usr/src/cmd/mdb/common/modules/genunix/
H A Dbio.c38 struct hbuf *bw_hbufs; /* Snapshot of hbuf buckets */
47 struct hbuf *hbufs; in buf_walk_init()
70 nbytes = sizeof (struct hbuf) * v.v_hbuf; in buf_walk_init()
105 bwp->bw_hbufi * sizeof (struct hbuf))) { in buf_walk_step()
130 mdb_free(bwp->bw_hbufs, sizeof (struct hbuf) * bwp->bw_nhbufs); in buf_walk_fini()
H A Dmmd.c915 mblk_t hbuf, pbuf[MULTIDATA_MAX_PBUFS]; in pdesc_verify() local
949 mdb_vread(&hbuf, sizeof (hbuf), (uintptr_t)mmd.mmd_hbuf) == -1) { in pdesc_verify()
992 pdi->hdr_lim >= pdi->hdr_wptr && pdi->hdr_base >= hbuf.b_rptr && in pdesc_verify()
993 MBLKIN(&hbuf, (pdi->hdr_base - hbuf.b_rptr), in pdesc_verify()
/titanic_44/usr/src/cmd/fm/modules/common/event-transport/
H A Detm.c376 char hbuf[ETM_HDRLEN]; in etm_handle_startup() local
383 hdrlen = etm_create_hdr(hbuf, mp->epm_ver, ETM_HDR_C_HELLO, 0); in etm_handle_startup()
385 if ((etm_xport_write(hdl, mp->epm_oconn, Rw_timeout, hbuf, in etm_handle_startup()
394 if ((etm_xport_read(hdl, mp->epm_oconn, Rw_timeout, hbuf, in etm_handle_startup()
401 hdrstat = etm_check_hdr(hdl, mp, hbuf); in etm_handle_startup()
413 hp = (etm_proto_hdr_t *)(void *)hbuf; in etm_handle_startup()
421 hdrlen = etm_create_hdr(hbuf, mp->epm_ver, ETM_HDR_ACK, 0); in etm_handle_startup()
423 if ((etm_xport_write(hdl, mp->epm_oconn, Rw_timeout, hbuf, in etm_handle_startup()
457 char hbuf[ETM_HDRLEN]; in etm_send_shutdown() local
462 hdrlen = etm_create_hdr(hbuf, mp->epm_ver, ETM_HDR_SHUTDOWN, 0); in etm_send_shutdown()
[all …]
/titanic_44/usr/src/cmd/troff/
H A Dn8.c53 char hbuf[NHEX]; variable
54 char *nexth = hbuf;
147 if ((j = nexth) >= (hbuf + NHEX - 2)) in casehw()
168 if (j >= (hbuf + NHEX - 2)) in casehw()
188 e = hbuf; in exword()
/titanic_44/usr/src/cmd/sendmail/libmilter/
H A Dexample.c52 char hbuf[1024]; local
74 snprintf(hbuf, sizeof hbuf, "%s@%s", p, host);
75 smfi_addheader(ctx, "X-Archived", hbuf);
/titanic_44/usr/src/lib/libshell/common/edit/
H A Demacs.c1117 char hbuf[MAXLINE]; in xcommands() local
1119 strcpy(hbuf, "Current command "); in xcommands()
1120 strcat(hbuf, itos(hline)); in xcommands()
1123 strcat(hbuf, " (line "); in xcommands()
1124 strcat(hbuf, itos(hloff+1)); in xcommands()
1125 strcat(hbuf, ")"); in xcommands()
1130 strcat(hbuf, "; Previous command "); in xcommands()
1131 strcat(hbuf, itos(location.hist_command)); in xcommands()
1134 strcat(hbuf, " (line "); in xcommands()
1135 strcat(hbuf, itos(location.hist_line+1)); in xcommands()
[all …]
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_ntp.c68 char hbuf[2 * MAC_OCTETS_MAX + 1]; in interpret_ntp() local
222 hbuf[j++] = hexstr[ntp->mac[i] >> 4 & 0x0f]; in interpret_ntp()
223 hbuf[j++] = hexstr[ntp->mac[i] & 0x0f]; in interpret_ntp()
225 hbuf[j] = '\0'; in interpret_ntp()
228 "Authentication code = %s", hbuf); in interpret_ntp()
/titanic_44/usr/src/lib/libsasl/plugin/
H A Dplugin_common.c134 char hbuf[NI_MAXHOST]; local
154 hbuf[i++] = *p;
165 hbuf[i] = addr[i];
178 hbuf[i] = '\0';
191 hbuf[i] = addr[i];
193 hbuf[i] = '\0';
211 if (getaddrinfo(hbuf, p, &hints, &ai) != 0) {
213 if (getaddrinfo(hbuf, &addr[i], &hints, &ai) != 0) {
/titanic_44/usr/src/lib/libresolv/
H A Dres_gethost.c317 char **a, hbuf[MAXHOSTNAMELEN]; local
324 (void) strcpy(hbuf, hp->h_name);
327 if ((hp2 = res_gethostbyname(hbuf)) != (struct hostent *)NULL)
340 syslog(LOG_NOTICE, "gethostbyaddr: %s != %s", hbuf,
/titanic_44/usr/src/cmd/cmd-inet/usr.lib/pppoe/
H A Dcommon.c353 static char hbuf[MAXHOSTNAMELEN+1]; in ehost2() local
357 if (ether_ntohost(hbuf, ea) == 0) in ehost2()
358 return (hbuf); in ehost2()
/titanic_44/usr/src/uts/common/sys/
H A Dbuf.h250 struct hbuf { struct
342 extern struct hbuf *hbuf; /* Hash table */
/titanic_44/usr/src/lib/libresolv2/common/resolv/
H A Dres_send.c1041 char hbuf[NI_MAXHOST]; in Aerror() local
1047 if (getnameinfo(address, alen, hbuf, sizeof(hbuf), in Aerror()
1049 strncpy(hbuf, "?", sizeof(hbuf) - 1); in Aerror()
1050 hbuf[sizeof(hbuf) - 1] = '\0'; in Aerror()
1055 string, hbuf, sbuf, strerror(error)); in Aerror()
/titanic_44/usr/src/uts/common/fs/
H A Dfsflush.c356 struct hbuf *hp; in fsflush()
404 hp = &hbuf[ix]; in fsflush()
413 hmp = &hbuf[ix].b_lock; in fsflush()
/titanic_44/usr/src/uts/common/zmod/
H A Dinflate.c394 hbuf[0] = (unsigned char)(word); \
395 hbuf[1] = (unsigned char)((word) >> 8); \
396 check = crc32(check, hbuf, 2); \
401 hbuf[0] = (unsigned char)(word); \
402 hbuf[1] = (unsigned char)((word) >> 8); \
403 hbuf[2] = (unsigned char)((word) >> 16); \
404 hbuf[3] = (unsigned char)((word) >> 24); \
405 check = crc32(check, hbuf, 4); \
579 unsigned char hbuf[4]; /* buffer for gzip header crc calculation */ local
/titanic_44/usr/src/cmd/file/
H A Delf_read.c135 char *hbuf[HDRSZ]; in file_xlatetom() local
151 dst.d_buf = (Elf_Void *)&hbuf; in file_xlatetom()
159 (void) memcpy(hdr, &hbuf, dst.d_size); in file_xlatetom()
/titanic_44/usr/src/lib/libsasl/lib/
H A Dcommon.c2264 char hbuf[NI_MAXHOST], pbuf[NI_MAXSERV];
2268 getnameinfo(addr, addrlen, hbuf, sizeof(hbuf), pbuf, sizeof(pbuf),
2271 if(outlen < strlen(hbuf) + strlen(pbuf) + 2)
2274 snprintf(out, outlen, "%s;%s", hbuf, pbuf);
2300 char hbuf[NI_MAXHOST]; in _sasl_ipfromstring() local
2318 hbuf[i++] = *p; in _sasl_ipfromstring()
2330 hbuf[i] = addr[i]; in _sasl_ipfromstring()
2340 hbuf[i] = addr[i]; in _sasl_ipfromstring()
2351 hbuf[i] = '\0'; in _sasl_ipfromstring()
2362 hbuf[i] = addr[i]; in _sasl_ipfromstring()
[all …]
/titanic_44/usr/src/cmd/rpcsvc/rpc.bootparamd/
H A Dbootparam_ip_route.c431 char hbuf[NSS_BUFLEN_HOSTS]; in find_best_server_int() local
445 hp = gethostbyname_r(client_name, &h, hbuf, sizeof (hbuf), &err); in find_best_server_int()
/titanic_44/usr/src/cmd/ttymon/
H A Dtmchild.c492 static char hbuf[BUFSIZ]; /* static buf for HOME */ variable
558 (void) sprintf(hbuf, "HOME=%s", pmtab->p_dir);
559 if (putenv(hbuf)) {
/titanic_44/usr/src/cmd/mailx/
H A Dnames.c597 char hbuf[10]; in unpack() local
640 snprintf(hbuf, sizeof (hbuf), "%d", hflag); in unpack()
641 *ap++ = savestr(hbuf); in unpack()
/titanic_44/usr/src/uts/common/inet/ip/
H A Dip_arp.c1443 char hbuf[MAC_STR_LEN]; in arp_notify() local
1471 arh->arh_hlen, hbuf, sizeof (hbuf)); in arp_notify()
1475 hbuf, sbuf, ill->ill_name); in arp_notify()
1516 arh->arh_hlen, hbuf, sizeof (hbuf)); in arp_notify()
1521 hbuf, sbuf, ill->ill_name); in arp_notify()
2066 char hbuf[MAC_STR_LEN]; in arp_excl() local
2070 (void) mac_colon_addr(haddr, haddrlen, hbuf, sizeof (hbuf)); in arp_excl()
2075 " disabled", ibuf, sbuf, hbuf); in arp_excl()

12