Home
last modified time | relevance | path

Searched refs:LIB_BUFLENGTH (Results 1 – 25 of 30) sorted by relevance

12

/freebsd-14.2/contrib/ntp/libntp/
H A Dsocktoa.c44 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 Dstatestr.c308 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 Drefnumtoa.c27 snprintf(buf, LIB_BUFLENGTH, "%s(%lu)", in refnumtoa()
30 snprintf(buf, LIB_BUFLENGTH, "REFCLK(%lu,%lu)", in refnumtoa()
H A Dhumandate.c29 snprintf(bp, LIB_BUFLENGTH, "%2d %s %02d:%02d:%02d", in humanlogtime()
55 snprintf(bp, LIB_BUFLENGTH, "%02d:%02d:%02d", in humantime()
H A Dlib_strbuf.c21 static char lib_stringbuf_storage[LIB_NUMBUF][LIB_BUFLENGTH];
69 zero_mem(lib_stringbuf[mybuf], LIB_BUFLENGTH); in lib_getbuf()
H A Dtimetoa.c34 #if LIB_BUFLENGTH < 40
102 snprintf(cp, LIB_BUFLENGTH, "%s%" UTIME_FORMAT ".%0*ld", in format_time_fraction()
H A Dprettydate.c173 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 Dsocktohost.c45 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 Dssl_init.c71 snprintf(buf, LIB_BUFLENGTH, in ssl_check_version()
114 strlcpy(upcased, text, LIB_BUFLENGTH); in keytype_from_text()
H A Dmodetoa.c29 snprintf(bp, LIB_BUFLENGTH, "mode#%zu", mode); in modetoa()
H A Duglydate.c44 snprintf(bp, LIB_BUFLENGTH, in uglydate()
H A Dnumtoa.c27 snprintf(buf, LIB_BUFLENGTH, "%lu.%lu.%lu.%lu", in numtoa()
H A Dsystime.c609 snprintf(retv, LIB_BUFLENGTH, in tv_fmt_libbuf()
H A Dntp_calendar.c2222 len = LIB_BUFLENGTH; in ntpcal_iso8601std()
/freebsd-14.2/contrib/ntp/sntp/
H A Dutilities.c204 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 Dlib_strbuf.h10 #define LIB_BUFLENGTH 128 macro
/freebsd-14.2/contrib/ntp/libntp/lib/isc/win32/
H A Dstrerror.c163 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 Dieee754io.c93 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 Dntp_restrict.c823 const size_t sz = LIB_BUFLENGTH; in rflags_str()
925 const size_t sz = LIB_BUFLENGTH; in mflags_str()
H A Dntp_util.c1068 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 Dntp_leapsec.c1162 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 Dkeyword-gen.c772 snprintf(name, LIB_BUFLENGTH, "%d", token); in symbname()
H A Dntp_config.c1044 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 Dntpq.c2031 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 Dntpq-subs.c1911 (size_t)min(LIB_BUFLENGTH - 1, maxhostlen), in doprintpeers()

12