Home
last modified time | relevance | path

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

12

/freebsd-12-stable/contrib/ntp/libntp/
Dsocktoa.c45 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()
Dstatestr.c309 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()
Drefnumtoa.c28 snprintf(buf, LIB_BUFLENGTH, "%s(%lu)", in refnumtoa()
31 snprintf(buf, LIB_BUFLENGTH, "REFCLK(%lu,%lu)", in refnumtoa()
Dhumandate.c30 snprintf(bp, LIB_BUFLENGTH, "%2d %s %02d:%02d:%02d", in humanlogtime()
56 snprintf(bp, LIB_BUFLENGTH, "%02d:%02d:%02d", in humantime()
Dprettydate.c174 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()
Dtimetoa.c34 #if LIB_BUFLENGTH < 40
102 snprintf(cp, LIB_BUFLENGTH, "%s%" UTIME_FORMAT ".%0*ld", in format_time_fraction()
Dsocktohost.c46 if (getnameinfo(&sock->sa, SOCKLEN(sock), pbuf, LIB_BUFLENGTH, in socktohost()
114 snprintf(pliar, LIB_BUFLENGTH, "%s (%s)", stoa(sock), pbuf); in socktohost()
Dmodetoa.c30 snprintf(bp, LIB_BUFLENGTH, "mode#%zu", mode); in modetoa()
Dnumtohost.c40 strlcpy(bp, hp->h_name, LIB_BUFLENGTH); in numtohost()
Duglydate.c45 snprintf(bp, LIB_BUFLENGTH, in uglydate()
Dnumtoa.c28 snprintf(buf, LIB_BUFLENGTH, "%lu.%lu.%lu.%lu", in numtoa()
Dssl_init.c121 strlcpy(upcased, text, LIB_BUFLENGTH); in keytype_from_text()
Dsystime.c610 snprintf(retv, LIB_BUFLENGTH, in tv_fmt_libbuf()
Dntp_calendar.c2223 len = LIB_BUFLENGTH; in ntpcal_iso8601std()
/freebsd-12-stable/contrib/ntp/sntp/
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-12-stable/contrib/ntp/include/
Dlib_strbuf.h14 #define LIB_BUFLENGTH 128 macro
16 typedef char libbufstr[LIB_BUFLENGTH];
/freebsd-12-stable/contrib/ntp/libparse/
Dieee754io.c95 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/
Dntp_util.c1066 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()
Dntp_leapsec.c1180 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()
Dkeyword-gen.c772 snprintf(name, LIB_BUFLENGTH, "%d", token); in symbname()
Dntp_config.c5298 snprintf(buf, LIB_BUFLENGTH, "%g", d); in normal_dtoa()
5316 strlcpy(pch_e, pch_nz, LIB_BUFLENGTH - (pch_e - buf)); in normal_dtoa()
Dntp_proto.c606 snprintf(bp, LIB_BUFLENGTH, "AM_#%d", am); in amtoa()
Dntp_control.c4483 snprintf(buf, LIB_BUFLENGTH, "%s %s", in send_restrict_entry()
/freebsd-12-stable/contrib/ntp/ntpq/
Dntpq.c2035 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()
Dntpq-subs.c1903 (size_t)min(LIB_BUFLENGTH - 1, maxhostlen), in doprintpeers()

12