| /freebsd-14.2/contrib/ntp/libntp/ |
| H A D | socktoa.c | 44 strlcpy(res, "(null)", LIB_BUFLENGTH); in socktoa() 51 LIB_BUFLENGTH); in socktoa() 56 LIB_BUFLENGTH); in socktoa() 61 snprintf(res, LIB_BUFLENGTH, "%s%%%lu", in socktoa() 63 res[LIB_BUFLENGTH - 1] = '\0'; in socktoa() 68 snprintf(res, LIB_BUFLENGTH, in socktoa() 91 snprintf(buf, LIB_BUFLENGTH, in sockporttoa()
|
| H A D | statestr.c | 308 snprintf(buf, LIB_BUFLENGTH, "%s_%d", codetab->string1, code); in getcode() 327 snprintf(buf, LIB_BUFLENGTH, "%d event%s", cnt, in getevents() 361 lim = buf + LIB_BUFLENGTH; in decode_bitflags() 387 snprintf(buf, LIB_BUFLENGTH, in decode_bitflags() 398 bits, (int)LIB_BUFLENGTH); in decode_bitflags() 464 snprintf(cb, LIB_BUFLENGTH, "%s, %s, %s, %s", in statustoa() 473 snprintf(cb, LIB_BUFLENGTH, "%s, %s, %s", in statustoa() 479 snprintf(cc, LIB_BUFLENGTH - (cc - cb), ", %s", in statustoa() 486 snprintf(cb, LIB_BUFLENGTH, "%s, %s", in statustoa()
|
| H A D | refnumtoa.c | 27 snprintf(buf, LIB_BUFLENGTH, "%s(%lu)", in refnumtoa() 30 snprintf(buf, LIB_BUFLENGTH, "REFCLK(%lu,%lu)", in refnumtoa()
|
| H A D | humandate.c | 29 snprintf(bp, LIB_BUFLENGTH, "%2d %s %02d:%02d:%02d", in humanlogtime() 55 snprintf(bp, LIB_BUFLENGTH, "%02d:%02d:%02d", in humantime()
|
| H A D | lib_strbuf.c | 21 static char lib_stringbuf_storage[LIB_NUMBUF][LIB_BUFLENGTH]; 69 zero_mem(lib_stringbuf[mybuf], LIB_BUFLENGTH); in lib_getbuf()
|
| H A D | timetoa.c | 34 #if LIB_BUFLENGTH < 40 102 snprintf(cp, LIB_BUFLENGTH, "%s%" UTIME_FORMAT ".%0*ld", in format_time_fraction()
|
| H A D | prettydate.c | 173 strlcpy (bp, "(no time)", LIB_BUFLENGTH); in common_prettydate() 193 snprintf(bp, LIB_BUFLENGTH, local ? pfmt1 : pfmt0, in common_prettydate() 199 snprintf(bp, LIB_BUFLENGTH, pfmt0, in common_prettydate()
|
| H A D | socktohost.c | 45 if (getnameinfo(&sock->sa, SOCKLEN(sock), pbuf, LIB_BUFLENGTH, in socktohost() 113 snprintf(pliar, LIB_BUFLENGTH, "%s (%s)", stoa(sock), pbuf); in socktohost()
|
| H A D | ssl_init.c | 71 snprintf(buf, LIB_BUFLENGTH, in ssl_check_version() 114 strlcpy(upcased, text, LIB_BUFLENGTH); in keytype_from_text()
|
| H A D | modetoa.c | 29 snprintf(bp, LIB_BUFLENGTH, "mode#%zu", mode); in modetoa()
|
| H A D | uglydate.c | 44 snprintf(bp, LIB_BUFLENGTH, in uglydate()
|
| H A D | numtoa.c | 27 snprintf(buf, LIB_BUFLENGTH, "%lu.%lu.%lu.%lu", in numtoa()
|
| H A D | systime.c | 609 snprintf(retv, LIB_BUFLENGTH, in tv_fmt_libbuf()
|
| H A D | ntp_calendar.c | 2222 len = LIB_BUFLENGTH; in ntpcal_iso8601std()
|
| /freebsd-14.2/contrib/ntp/sntp/ |
| H A 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-14.2/contrib/ntp/include/ |
| H A D | lib_strbuf.h | 10 #define LIB_BUFLENGTH 128 macro
|
| /freebsd-14.2/contrib/ntp/libntp/lib/isc/win32/ |
| H A D | strerror.c | 163 if (0 != strerror_s(retmsg, LIB_BUFLENGTH, err)) { in NTstrerror() 164 snprintf(retmsg, LIB_BUFLENGTH, in NTstrerror()
|
| /freebsd-14.2/contrib/ntp/libparse/ |
| H A D | ieee754io.c | 93 snprintf(buf, LIB_BUFLENGTH, "%c %s %s %s", sign ? '-' : '+', in fmt_flt() 115 strlcat(buf, hex, LIB_BUFLENGTH); in fmt_hex()
|
| /freebsd-14.2/contrib/ntp/ntpd/ |
| H A D | ntp_restrict.c | 823 const size_t sz = LIB_BUFLENGTH; in rflags_str() 925 const size_t sz = LIB_BUFLENGTH; in mflags_str()
|
| H A D | ntp_util.c | 1068 snprintf(buf, LIB_BUFLENGTH, "ntpcal_ntp_to_date: %ld: range error", in fstostr() 1071 snprintf(buf, LIB_BUFLENGTH, "%04d%02d%02d%02d%02d", in fstostr()
|
| H A D | ntp_leapsec.c | 1162 snprintf(buf, LIB_BUFLENGTH, "%s", "9999-12-31T23:59:59Z"); in lstostr() 1164 snprintf(buf, LIB_BUFLENGTH, "%04d-%02d-%02dT%02d:%02d:%02dZ", in lstostr()
|
| H A D | keyword-gen.c | 772 snprintf(name, LIB_BUFLENGTH, "%d", token); in symbname()
|
| H A D | ntp_config.c | 1044 snprintf(s1, LIB_BUFLENGTH, in dump_config_tree() 5326 snprintf(buf, LIB_BUFLENGTH, "%g", d); in normal_dtoa()
|
| /freebsd-14.2/contrib/ntp/ntpq/ |
| H A D | ntpq.c | 2031 return nntohost_col(netnum, LIB_BUFLENGTH - 1, FALSE); in nntohost() 2085 snprintf(buf, LIB_BUFLENGTH, "%s:%u", hostn, SRCPORT(netnum)); in nntohostp() 3081 if (sl > width && LIB_BUFLENGTH - 1 > width && width > 0) { in trunc_right() 3109 if (sl > width && LIB_BUFLENGTH - 1 > width && width > 1) { in trunc_left()
|
| H A D | ntpq-subs.c | 1911 (size_t)min(LIB_BUFLENGTH - 1, maxhostlen), in doprintpeers()
|