Home
last modified time | relevance | path

Searched refs:tbuf_left (Results 1 – 5 of 5) sorted by relevance

/netbsd-src/lib/libc/gen/
H A Dxsyslog.c152 size_t tbuf_left, fmt_left, msgsdlen; in _vxsyslogp_r() local
179 tbuf_left = TBUF_LEN; in _vxsyslogp_r()
181 prlen = snprintf_ss(p, tbuf_left, "<%d>1 ", pri); in _vxsyslogp_r()
184 prlen = (*fun->timefun)(p, tbuf_left); in _vxsyslogp_r()
196 prlen = snprintf_ss(p, tbuf_left, " %s ", data->log_hostname); in _vxsyslogp_r()
202 prlen = snprintf_ss(p, tbuf_left, "%s ", in _vxsyslogp_r()
215 prlen = snprintf_ss(p, tbuf_left, "%d ", getpid()); in _vxsyslogp_r()
228 prlen = snprintf_ss(p, tbuf_left, "- "); in _vxsyslogp_r()
293 prlen = (*fun->prfun)(p, tbuf_left, fmt_cpy, ap); in _vxsyslogp_r()
H A Dsyslog_private.h34 if (prlen >= tbuf_left) \
35 prlen = tbuf_left - 1; \
37 tbuf_left -= prlen; \
H A Dsyslog.c82 timefun(char *p, size_t tbuf_left) in timefun() argument
91 return snprintf_ss(p, tbuf_left, "-"); in timefun()
98 prlen = strftime(p, tbuf_left, "%FT%T", &tmnow); in timefun()
100 prlen = snprintf(p, tbuf_left, ".%06ld", (long)tv.tv_usec); in timefun()
102 prlen = strftime(p, tbuf_left-1, "%z", &tmnow); in timefun()
H A Dsyslog_ss.c44 timefun_ss(char *p, size_t tbuf_left) in timefun_ss() argument
46 return snprintf_ss(p, tbuf_left, "-"); in timefun_ss()
53 prlen = strftime(p, tbuf_left, "%FT%TZ", &tmnow); in timefun_ss()
/netbsd-src/external/bsd/openldap/dist/servers/slapd/
H A Dsyslog.c83 int tbuf_left, prlen; in syslog() local
109 p += strftime(p, tbuf_left, "%h %e %T ", &tm); in syslog()
125 tbuf_left = pend - p; in syslog()
126 prlen = vsnprintf(p, tbuf_left, fmt, ap); in syslog()
130 else if (prlen >= tbuf_left) in syslog()
131 prlen = tbuf_left - 1; in syslog()