Home
last modified time | relevance | path

Searched refs:ebuf (Results 1 – 23 of 23) sorted by relevance

/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/
H A Dipseckey.c118 record_error(char *ep, char *ebuf, char *fmt, ...) in record_error() argument
134 if (ebuf != NULL) in record_error()
135 length += strlen(ebuf); in record_error()
152 if (ep == NULL && ebuf != NULL) in record_error()
153 (void) strlcpy(err_ptr, ebuf, length); in record_error()
188 handle_errors(char *ep, char *ebuf, boolean_t fatal, boolean_t done) in handle_errors() argument
202 if (ebuf != NULL) { in handle_errors()
203 free(ebuf); in handle_errors()
217 if (ebuf != NULL) { in handle_errors()
218 free(ebuf); in handle_errors()
[all …]
/titanic_41/usr/src/cmd/bnu/
H A Dunknown.c95 char ebuf[BUFSIZ+1]; local
99 (void) snprintf(ebuf, BUFSIZ,
103 sz = strlen(ebuf);
104 if (ebuf[sz-1] != '\n') {
105 ebuf[sz] = '\n';
106 ebuf[sz+1] = '\0';
115 || write(fds[1], ebuf, strlen(ebuf)) != strlen(ebuf)
/titanic_41/usr/src/lib/cfgadm_plugins/ac/common/
H A Dmema_util.c58 char *ebuf; in __fmt_errstring() local
70 if ((ebuf = (char *)malloc(elen + 1)) == NULL) in __fmt_errstring()
74 (void) vsprintf(ebuf, fmt, ap); in __fmt_errstring()
77 if (strlen(ebuf) > elen) in __fmt_errstring()
80 *errstring = ebuf; in __fmt_errstring()
/titanic_41/usr/src/lib/libc/port/gen/
H A Dfmtmsg.c835 char *ebuf = buf + size - 2; in writemsg() local
961 while (--l1indent >= 0 && buf < ebuf) in writemsg()
965 buf += strlcpy(buf, lcllbl, ebuf - buf); in writemsg()
972 buf += strlcpy(buf, SEPSTR, ebuf - buf); in writemsg()
978 while (--l1indent >= 0 && buf < ebuf) in writemsg()
982 buf += strlcpy(buf, sevpstr, ebuf - buf); in writemsg()
989 buf += strlcpy(buf, SEPSTR, ebuf - buf); in writemsg()
995 for (c = *p++; c != NULL && buf < ebuf; c = *p++) { in writemsg()
998 for (i = 0; i < textindent && buf < ebuf; i++) in writemsg()
1009 if (dotext && buf < ebuf) { in writemsg()
[all …]
H A Dttyname.c623 char *buf, *ebuf; in get_pri_dirs() local
670 ebuf = &dir_buf[size]; in get_pri_dirs()
671 *ebuf++ = '\n'; in get_pri_dirs()
672 for (sz = 1, buf = dir_buf; buf < ebuf; ++buf) in get_pri_dirs()
687 for (buf = dir_buf; buf < ebuf; ++buf) { in get_pri_dirs()
/titanic_41/usr/src/lib/libresolv2/common/bsd/
H A Dstrerror.c60 static char ebuf[40] = UPREFIX; /*%< 64-bit number + slop */ in isc_strerror() local
84 for (p = ebuf + sizeof(UPREFIX) - 1;;) { in isc_strerror()
89 return (ebuf); in isc_strerror()
/titanic_41/usr/src/cmd/srchtxt/
H A Dsrchtxt.c100 char ebuf[ESIZE]; in main() local
144 if (compile(text, &ebuf[0], &ebuf[ESIZE]) == (char *)NULL) { in main()
174 find_msgs(addr, ebuf); in main()
195 find_msgs(addr, ebuf); in main()
/titanic_41/usr/src/cmd/awk/
H A Dawk.lx.l263 uchar ebuf[300];
264 uchar *ep = ebuf;
282 if (ep >= ebuf + sizeof ebuf)
283 ep = ebuf;
294 if (--ep < ebuf)
295 ep = ebuf + sizeof(ebuf) - 1;
H A Dlib.c598 extern uchar ebuf[300], *ep; in eprint()
603 if (p > ebuf && *p == '\n') in eprint()
605 for (; p > ebuf && *p != '\n' && *p != '\0'; p--) in eprint()
626 ep = ebuf; in eprint()
/titanic_41/usr/src/lib/libinetutil/common/
H A Dofmt.c545 char ebuf[OFMT_BUFSIZE]; in ofmt_strerror() local
552 ebuf[0] = '\0'; in ofmt_strerror()
577 (void) strlcat(ebuf, " `", sizeof (ebuf)); in ofmt_strerror()
578 (void) strlcat(ebuf, os->os_badfields[i], in ofmt_strerror()
579 sizeof (ebuf)); in ofmt_strerror()
580 (void) strlcat(ebuf, "'", sizeof (ebuf)); in ofmt_strerror()
611 (void) strlcat(buf, ebuf, bufsize); in ofmt_strerror()
/titanic_41/usr/src/cmd/eqn/
H A Dio.c185 char ebuf[3]; in oalloc() local
190 (void) snprintf(ebuf, sizeof (ebuf), "%d", i); in oalloc()
191 error(FATAL, gettext("no eqn strings left"), ebuf); in oalloc()
/titanic_41/usr/src/cmd/logadm/
H A Dconf.c183 char *ebuf; in conf_scan() local
186 ebuf = &buf[buflen]; in conf_scan()
192 for (line = buf; line < ebuf; line = eline) { in conf_scan()
201 for (; eline < ebuf; eline++) { in conf_scan()
204 eline + 1 < ebuf && *(eline + 1) == '\n') { in conf_scan()
223 if (comment >= ebuf) in conf_scan()
225 if (eline >= ebuf) { in conf_scan()
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/pppoe/
H A Dcommon.c68 static char ebuf[64]; in mystrerror() local
72 (void) snprintf(ebuf, sizeof (ebuf), "Error:%d", err); in mystrerror()
73 return (ebuf); in mystrerror()
/titanic_41/usr/src/cmd/syslogd/
H A Dsyslogd.c3415 char ebuf[SYS_NMLN+1+40]; in cfline() local
3493 if (logforward(f, ebuf, sizeof (ebuf)) != 0) { in cfline()
3494 logerror("line %d: %s", lineno, ebuf); in cfline()
3689 char ebuf[128]; in getnets() local
3696 (void) strcpy(ebuf, "Unable to configure syslog port"); in getnets()
3699 size_t l = strlen(ebuf); in getnets()
3700 (void) snprintf(ebuf + l, sizeof (ebuf) - l, in getnets()
3705 mythreadno, ebuf); in getnets()
3711 logerror(ebuf); in getnets()
3855 char ebuf[128]; in bindnet() local
[all …]
H A Dsyslogd.h259 static int logforward(struct filed *f, char *ebuf, size_t elen);
/titanic_41/usr/src/cmd/sendmail/src/
H A Ddomain.c1073 char ebuf[MAXLINE]; local
1075 (void) sm_snprintf(ebuf,
1076 sizeof(ebuf),
1081 CurEnv->e_rpool, ebuf);
H A Denvelope.c1020 char ebuf[MAXNAME * 2 + 2]; local
1029 (void) sm_snprintf(ebuf, sizeof(ebuf),
1032 p = ebuf;
/titanic_41/usr/src/uts/sun4v/io/
H A Dds_common.c244 char ebuf[DS_EBUFSIZE]; in ds_update_ldc_state() local
253 PORTID(port), __func__, ds_errno_to_str(rv, ebuf)); in ds_update_ldc_state()
373 char ebuf[DS_EBUFSIZE]; in ds_ldc_init() local
388 ds_errno_to_str(rv, ebuf)); in ds_ldc_init()
395 DS_EOL, PORTID(port), __func__, ds_errno_to_str(rv, ebuf)); in ds_ldc_init()
407 char ebuf[DS_EBUFSIZE]; in ds_ldc_fini() local
417 PORTID(port), __func__, ds_errno_to_str(rv, ebuf)); in ds_ldc_fini()
423 DS_EOL, PORTID(port), __func__, ds_errno_to_str(rv, ebuf)); in ds_ldc_fini()
429 PORTID(port), __func__, ds_errno_to_str(rv, ebuf)); in ds_ldc_fini()
454 char ebuf[DS_EBUFSIZE]; in ds_recv_msg() local
[all …]
H A Dds_drv.c448 char ebuf[DS_EBUFSIZE]; in ds_sys_ldc_init() local
454 PORTID(port), __func__, ds_errno_to_str(rv, ebuf)); in ds_sys_ldc_init()
/titanic_41/usr/src/cmd/dladm/
H A Ddladm.c7675 ether_fields_buf_t ebuf; in show_etherprop() local
7679 bzero(&ebuf, sizeof (ether_fields_buf_t)); in show_etherprop()
7681 ebuf.eth_link, sizeof (ebuf.eth_link)) != DLADM_STATUS_OK) { in show_etherprop()
7689 (void) strlcpy(ebuf.eth_ptype, "current", sizeof (ebuf.eth_ptype)); in show_etherprop()
7691 (void) dladm_ether_autoneg2str(ebuf.eth_autoneg, in show_etherprop()
7692 sizeof (ebuf.eth_autoneg), &eattr, CURRENT); in show_etherprop()
7693 (void) dladm_ether_pause2str(ebuf.eth_pause, in show_etherprop()
7694 sizeof (ebuf.eth_pause), &eattr, CURRENT); in show_etherprop()
7695 (void) dladm_ether_spdx2str(ebuf.eth_spdx, in show_etherprop()
7696 sizeof (ebuf.eth_spdx), &eattr, CURRENT); in show_etherprop()
[all …]
/titanic_41/usr/src/lib/libipsecutil/common/
H A Dipsec_util.c699 char *hptr, **thisargv, *ebuf; in do_interactive() local
706 ebuf = NULL; in do_interactive()
789 ebuf = calloc((IBUF_SIZE * 2), sizeof (char)); in do_interactive()
790 if (ebuf == NULL) { in do_interactive()
795 (void) snprintf(ebuf, (IBUF_SIZE * 2), in do_interactive()
814 free(ebuf); in do_interactive()
820 parseit(thisargc, thisargv, ebuf, readfile); in do_interactive()
822 free(ebuf); in do_interactive()
/titanic_41/usr/src/uts/common/io/
H A Dsysmsg.c290 char *ebuf = buf + fsize; in parse_buffer() local
294 while (buf < ebuf) { in parse_buffer()
/titanic_41/usr/src/uts/sun4v/sys/
H A Dds_impl.h475 char *ds_errno_to_str(int ds_errno, char *ebuf);