Home
last modified time | relevance | path

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

/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/
H A Dipseckey.c124 record_error(char *ep, char *ebuf, char *fmt, ...) in record_error() argument
140 if (ebuf != NULL) in record_error()
141 length += strlen(ebuf); in record_error()
158 if (ep == NULL && ebuf != NULL) in record_error()
159 (void) strlcpy(err_ptr, ebuf, length); in record_error()
195 handle_errors(char *ep, char *ebuf, boolean_t fatal, boolean_t done) in handle_errors() argument
209 if (ebuf != NULL) { in handle_errors()
210 free(ebuf); in handle_errors()
224 if (ebuf != NULL) { in handle_errors()
225 free(ebuf); in handle_errors()
[all …]
/illumos-gate/usr/src/cmd/bnu/
H A Dunknown.c93 char ebuf[BUFSIZ+1]; local
97 (void) snprintf(ebuf, BUFSIZ,
101 sz = strlen(ebuf);
102 if (ebuf[sz-1] != '\n') {
103 ebuf[sz] = '\n';
104 ebuf[sz+1] = '\0';
113 || write(fds[1], ebuf, strlen(ebuf)) != strlen(ebuf)
/illumos-gate/usr/src/lib/cfgadm_plugins/ac/common/
H A Dmema_util.c56 char *ebuf; in __fmt_errstring() local
68 if ((ebuf = (char *)malloc(elen + 1)) == NULL) in __fmt_errstring()
72 (void) vsprintf(ebuf, fmt, ap); in __fmt_errstring()
75 if (strlen(ebuf) > elen) in __fmt_errstring()
78 *errstring = ebuf; in __fmt_errstring()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dfmtmsg.c833 char *ebuf = buf + size - 2; in writemsg() local
959 while (--l1indent >= 0 && buf < ebuf) in writemsg()
963 buf += strlcpy(buf, lcllbl, ebuf - buf); in writemsg()
970 buf += strlcpy(buf, SEPSTR, ebuf - buf); in writemsg()
976 while (--l1indent >= 0 && buf < ebuf) in writemsg()
980 buf += strlcpy(buf, sevpstr, ebuf - buf); in writemsg()
987 buf += strlcpy(buf, SEPSTR, ebuf - buf); in writemsg()
993 for (c = *p++; c != '\0' && buf < ebuf; c = *p++) { in writemsg()
996 for (i = 0; i < textindent && buf < ebuf; i++) in writemsg()
1007 if (dotext && buf < ebuf) { in writemsg()
[all …]
H A Dttyname.c626 char *buf, *ebuf; in get_pri_dirs() local
673 ebuf = &dir_buf[size]; in get_pri_dirs()
674 *ebuf++ = '\n'; in get_pri_dirs()
675 for (sz = 1, buf = dir_buf; buf < ebuf; ++buf) in get_pri_dirs()
690 for (buf = dir_buf; buf < ebuf; ++buf) { in get_pri_dirs()
/illumos-gate/usr/src/lib/libresolv2/common/bsd/
H A Dstrerror.c55 static char ebuf[40] = UPREFIX; /*%< 64-bit number + slop */ in isc_strerror() local
79 for (p = ebuf + sizeof(UPREFIX) - 1;;) { in isc_strerror()
84 return (ebuf); in isc_strerror()
/illumos-gate/usr/src/common/bootbanner/
H A Dbootbanner.c142 char ebuf[128]; in bootbanner_print_one() local
144 snprintf(ebuf, sizeof (ebuf), "boot banner error: %s", in bootbanner_print_one()
147 printfunc(ebuf, *nump); in bootbanner_print_one()
/illumos-gate/usr/src/cmd/srchtxt/
H A Dsrchtxt.c98 char ebuf[ESIZE]; in main() local
142 if (compile(text, &ebuf[0], &ebuf[ESIZE]) == (char *)NULL) { in main()
172 find_msgs(addr, ebuf); in main()
193 find_msgs(addr, ebuf); in main()
/illumos-gate/usr/src/lib/libofmt/common/
H A Dofmt.c565 char ebuf[OFMT_BUFSIZE]; in ofmt_strerror() local
572 ebuf[0] = '\0'; in ofmt_strerror()
597 (void) strlcat(ebuf, " `", sizeof (ebuf)); in ofmt_strerror()
598 (void) strlcat(ebuf, os->os_badfields[i], in ofmt_strerror()
599 sizeof (ebuf)); in ofmt_strerror()
600 (void) strlcat(ebuf, "'", sizeof (ebuf)); in ofmt_strerror()
631 (void) strlcat(buf, ebuf, bufsize); in ofmt_strerror()
/illumos-gate/usr/src/cmd/awk/
H A Dlex.c590 char ebuf[300]; variable
591 char *ep = ebuf;
611 if (ep >= ebuf + sizeof (ebuf)) in input()
612 ep = ebuf; in input()
626 if (--ep < ebuf) in unput()
627 ep = ebuf + sizeof (ebuf) - 1; in unput()
H A Dlib.c782 extern char ebuf[], *ep; in eprint()
786 if (ebuf == ep) in eprint()
789 if (p > ebuf && *p == '\n') in eprint()
791 for (; p > ebuf && *p != '\n' && *p != '\0'; p--) in eprint()
812 ep = ebuf; in eprint()
/illumos-gate/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()
/illumos-gate/usr/src/cmd/logadm/
H A Dconf.c186 char *ebuf; in conf_scan() local
189 ebuf = &buf[buflen]; in conf_scan()
195 for (line = buf; line < ebuf; line = eline) { in conf_scan()
204 for (; eline < ebuf; eline++) { in conf_scan()
207 eline + 1 < ebuf && *(eline + 1) == '\n') { in conf_scan()
226 if (comment >= ebuf) in conf_scan()
228 if (eline >= ebuf) { in conf_scan()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/pppoe/
H A Dcommon.c66 static char ebuf[64]; in mystrerror() local
70 (void) snprintf(ebuf, sizeof (ebuf), "Error:%d", err); in mystrerror()
71 return (ebuf); in mystrerror()
/illumos-gate/usr/src/cmd/syslogd/
H A Dsyslogd.c3402 char ebuf[SYS_NMLN+1+40]; in cfline() local
3480 if (logforward(f, ebuf, sizeof (ebuf)) != 0) { in cfline()
3481 logerror("line %d: %s", lineno, ebuf); in cfline()
3676 char ebuf[128]; in getnets() local
3683 (void) strcpy(ebuf, "Unable to configure syslog port"); in getnets()
3686 size_t l = strlen(ebuf); in getnets()
3687 (void) snprintf(ebuf + l, sizeof (ebuf) - l, in getnets()
3692 mythreadno, ebuf); in getnets()
3698 logerror(ebuf); in getnets()
3842 char ebuf[128]; in bindnet() local
[all …]
H A Dsyslogd.h250 static int logforward(struct filed *f, char *ebuf, size_t elen);
/illumos-gate/usr/src/cmd/sendmail/src/
H A Ddomain.c1071 char ebuf[MAXLINE]; local
1073 (void) sm_snprintf(ebuf,
1074 sizeof(ebuf),
1079 CurEnv->e_rpool, ebuf);
H A Denvelope.c1022 char ebuf[MAXNAME * 2 + 2]; local
1031 (void) sm_snprintf(ebuf, sizeof(ebuf),
1034 p = ebuf;
/illumos-gate/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.c427 char ebuf[DS_EBUFSIZE]; in ds_sys_ldc_init() local
433 PORTID(port), __func__, ds_errno_to_str(rv, ebuf)); in ds_sys_ldc_init()
/illumos-gate/usr/src/cmd/dladm/
H A Ddladm.c7835 ether_fields_buf_t ebuf; in show_etherprop() local
7839 bzero(&ebuf, sizeof (ether_fields_buf_t)); in show_etherprop()
7841 ebuf.eth_link, sizeof (ebuf.eth_link)) != DLADM_STATUS_OK) { in show_etherprop()
7850 (void) strlcpy(ebuf.eth_ptype, "current", sizeof (ebuf.eth_ptype)); in show_etherprop()
7852 (void) dladm_ether_autoneg2str(ebuf.eth_autoneg, in show_etherprop()
7853 sizeof (ebuf.eth_autoneg), &eattr, CURRENT); in show_etherprop()
7854 (void) dladm_ether_pause2str(ebuf.eth_pause, in show_etherprop()
7855 sizeof (ebuf.eth_pause), &eattr, CURRENT); in show_etherprop()
7856 (void) dladm_ether_spdx2str(ebuf.eth_spdx, in show_etherprop()
7857 sizeof (ebuf.eth_spdx), &eattr, CURRENT); in show_etherprop()
[all …]
/illumos-gate/usr/src/uts/common/io/
H A Dsysmsg.c290 char *ebuf = buf + fsize; in parse_buffer() local
294 while (buf < ebuf) { in parse_buffer()
/illumos-gate/usr/src/lib/libipsecutil/common/
H A Dipsec_util.c779 char *volatile hptr, **thisargv, *ebuf; in do_interactive() local
786 ebuf = NULL; in do_interactive()
869 ebuf = calloc((IBUF_SIZE * 2), sizeof (char)); in do_interactive()
870 if (ebuf == NULL) { in do_interactive()
875 (void) snprintf(ebuf, (IBUF_SIZE * 2), in do_interactive()
894 free(ebuf); in do_interactive()
900 parseit(thisargc, thisargv, ebuf, readfile); in do_interactive()
902 free(ebuf); in do_interactive()
/illumos-gate/usr/src/uts/sun4v/sys/
H A Dds_impl.h479 char *ds_errno_to_str(int ds_errno, char *ebuf);