| /freebsd-12-stable/contrib/ntp/libntp/ |
| D | socktoa.c | 45 strlcpy(res, "(null)", LIB_BUFLENGTH); in socktoa() 52 LIB_BUFLENGTH); in socktoa() 57 LIB_BUFLENGTH); in socktoa() 62 snprintf(res, LIB_BUFLENGTH, "%s%%%lu", in socktoa() 64 res[LIB_BUFLENGTH - 1] = '\0'; in socktoa() 69 snprintf(res, LIB_BUFLENGTH, in socktoa() 92 snprintf(buf, LIB_BUFLENGTH, in sockporttoa()
|
| D | statestr.c | 309 snprintf(buf, LIB_BUFLENGTH, "%s_%d", codetab->string1, code); in getcode() 328 snprintf(buf, LIB_BUFLENGTH, "%d event%s", cnt, in getevents() 362 lim = buf + LIB_BUFLENGTH; in decode_bitflags() 388 snprintf(buf, LIB_BUFLENGTH, in decode_bitflags() 399 bits, (int)LIB_BUFLENGTH); in decode_bitflags() 465 snprintf(cb, LIB_BUFLENGTH, "%s, %s, %s, %s", in statustoa() 474 snprintf(cb, LIB_BUFLENGTH, "%s, %s, %s", in statustoa() 480 snprintf(cc, LIB_BUFLENGTH - (cc - cb), ", %s", in statustoa() 487 snprintf(cb, LIB_BUFLENGTH, "%s, %s", in statustoa()
|
| D | refnumtoa.c | 28 snprintf(buf, LIB_BUFLENGTH, "%s(%lu)", in refnumtoa() 31 snprintf(buf, LIB_BUFLENGTH, "REFCLK(%lu,%lu)", in refnumtoa()
|
| D | humandate.c | 30 snprintf(bp, LIB_BUFLENGTH, "%2d %s %02d:%02d:%02d", in humanlogtime() 56 snprintf(bp, LIB_BUFLENGTH, "%02d:%02d:%02d", in humantime()
|
| D | prettydate.c | 174 strlcpy (bp, "(no time)", LIB_BUFLENGTH); in common_prettydate() 194 snprintf(bp, LIB_BUFLENGTH, local ? pfmt1 : pfmt0, in common_prettydate() 200 snprintf(bp, LIB_BUFLENGTH, pfmt0, in common_prettydate()
|
| D | timetoa.c | 34 #if LIB_BUFLENGTH < 40 102 snprintf(cp, LIB_BUFLENGTH, "%s%" UTIME_FORMAT ".%0*ld", in format_time_fraction()
|
| D | socktohost.c | 46 if (getnameinfo(&sock->sa, SOCKLEN(sock), pbuf, LIB_BUFLENGTH, in socktohost() 114 snprintf(pliar, LIB_BUFLENGTH, "%s (%s)", stoa(sock), pbuf); in socktohost()
|
| D | modetoa.c | 30 snprintf(bp, LIB_BUFLENGTH, "mode#%zu", mode); in modetoa()
|
| D | numtohost.c | 40 strlcpy(bp, hp->h_name, LIB_BUFLENGTH); in numtohost()
|
| D | uglydate.c | 45 snprintf(bp, LIB_BUFLENGTH, in uglydate()
|
| D | numtoa.c | 28 snprintf(buf, LIB_BUFLENGTH, "%lu.%lu.%lu.%lu", in numtoa()
|
| D | ssl_init.c | 121 strlcpy(upcased, text, LIB_BUFLENGTH); in keytype_from_text()
|
| D | systime.c | 610 snprintf(retv, LIB_BUFLENGTH, in tv_fmt_libbuf()
|
| D | ntp_calendar.c | 2223 len = LIB_BUFLENGTH; in ntpcal_iso8601std()
|
| /freebsd-12-stable/contrib/ntp/sntp/ |
| D | utilities.c | 204 cnt = snprintf(result, LIB_BUFLENGTH, "%s %s", in hostnameaddr() 207 cnt = snprintf(result, LIB_BUFLENGTH, "%s", addrtxt); in hostnameaddr() 208 if (cnt >= LIB_BUFLENGTH) in hostnameaddr() 209 snprintf(result, LIB_BUFLENGTH, in hostnameaddr() 211 LIB_BUFLENGTH, cnt + 1); in hostnameaddr()
|
| /freebsd-12-stable/contrib/ntp/include/ |
| D | lib_strbuf.h | 14 #define LIB_BUFLENGTH 128 macro 16 typedef char libbufstr[LIB_BUFLENGTH];
|
| /freebsd-12-stable/contrib/ntp/libparse/ |
| D | ieee754io.c | 95 snprintf(buf, LIB_BUFLENGTH, "%c %s %s %s", sign ? '-' : '+', in fmt_flt() 117 strlcat(buf, hex, LIB_BUFLENGTH); in fmt_hex()
|
| /freebsd-12-stable/contrib/ntp/ntpd/ |
| D | ntp_util.c | 1066 snprintf(buf, LIB_BUFLENGTH, "ntpcal_ntp_to_date: %ld: range error", in fstostr() 1069 snprintf(buf, LIB_BUFLENGTH, "%04d%02d%02d%02d%02d", in fstostr()
|
| D | ntp_leapsec.c | 1180 snprintf(buf, LIB_BUFLENGTH, "%s", "9999-12-31T23:59:59Z"); in lstostr() 1182 snprintf(buf, LIB_BUFLENGTH, "%04d-%02d-%02dT%02d:%02d:%02dZ", in lstostr()
|
| D | keyword-gen.c | 772 snprintf(name, LIB_BUFLENGTH, "%d", token); in symbname()
|
| D | ntp_config.c | 5298 snprintf(buf, LIB_BUFLENGTH, "%g", d); in normal_dtoa() 5316 strlcpy(pch_e, pch_nz, LIB_BUFLENGTH - (pch_e - buf)); in normal_dtoa()
|
| D | ntp_proto.c | 606 snprintf(bp, LIB_BUFLENGTH, "AM_#%d", am); in amtoa()
|
| D | ntp_control.c | 4483 snprintf(buf, LIB_BUFLENGTH, "%s %s", in send_restrict_entry()
|
| /freebsd-12-stable/contrib/ntp/ntpq/ |
| D | ntpq.c | 2035 return nntohost_col(netnum, LIB_BUFLENGTH - 1, FALSE); in nntohost() 2089 snprintf(buf, LIB_BUFLENGTH, "%s:%u", hostn, SRCPORT(netnum)); in nntohostp() 3085 if (sl > width && LIB_BUFLENGTH - 1 > width && width > 0) { in trunc_right() 3113 if (sl > width && LIB_BUFLENGTH - 1 > width && width > 1) { in trunc_left()
|
| D | ntpq-subs.c | 1903 (size_t)min(LIB_BUFLENGTH - 1, maxhostlen), in doprintpeers()
|