Searched refs:snprintf (Results 1 - 25 of 2125) sorted by relevance

1234567891011>>

/freebsd-head/contrib/ntp/sntp/libevent/test/
H A Dtinytest_local.h9 #ifdef snprintf
10 #undef snprintf macro
12 #define snprintf evutil_snprintf macro
/freebsd-head/contrib/libevent/test/
H A Dtinytest_local.h9 #ifdef snprintf
10 #undef snprintf macro
12 #define snprintf evutil_snprintf macro
/freebsd-head/contrib/tcpdump/lbl/
H A Dos-osf4.h23 int snprintf(char *, size_t, const char *, ...);
H A Dos-solaris2.h27 int snprintf(char *, size_t, const char *, ...);
/freebsd-head/crypto/heimdal/lib/roken/
H A Dstrftime.c183 ret = snprintf (buf, maxsize - n,
187 ret = snprintf (buf, maxsize - n,
192 ret = snprintf (buf, maxsize - n,
196 ret = snprintf (buf, maxsize - n,
200 ret = snprintf (buf, maxsize - n,
210 ret = snprintf (buf, maxsize - n,
214 ret = snprintf (buf, maxsize - n,
218 ret = snprintf (buf, maxsize - n,
225 ret = snprintf (buf, maxsize - n,
229 ret = snprintf (bu
[all...]
H A Dstrerror.c49 snprintf(emsg, sizeof(emsg), "Error %d occurred.", eno);
51 snprintf(emsg, sizeof(emsg), "%s", sys_errlist[eno]);
/freebsd-head/tools/regression/netinet6/inet6_rth/
H A Dtest_subr.c64 snprintf(g_testdesc, LINESIZE, desc);
69 len = snprintf(sbuf, LINESIZE, "ok");
73 len = snprintf(sbuf, LINESIZE, "not ok");
74 snprintf(g_errbuf, LINESIZE, " : Expected %#x, but got %#x",
78 snprintf(sbuf + len, LINESIZE - len, " %d - %s (%s)",
97 snprintf(g_testdesc, LINESIZE, desc);
102 len = snprintf(sbuf, LINESIZE, "ok");
106 len = snprintf(sbuf, LINESIZE, "not ok");
107 snprintf(g_errbuf, LINESIZE,
111 snprintf(sbu
[all...]
/freebsd-head/contrib/netbsd-tests/lib/libc/ssp/
H A Dh_snprintf.c45 (void)snprintf(b, len, "%s", c);
47 (void)snprintf(b, len, "%s", "0123456789");
/freebsd-head/usr.sbin/ngctl/
H A Dconnect.c74 snprintf(con.path, sizeof(con.path), "%s", av[1]);
75 snprintf(con.ourhook, sizeof(con.ourhook), "%s", av[2]);
76 snprintf(con.peerhook, sizeof(con.peerhook), "%s", av[3]);
H A Dmkpeer.c74 snprintf(mkp.type, sizeof(mkp.type), "%s", av[1]);
75 snprintf(mkp.ourhook, sizeof(mkp.ourhook), "%s", av[2]);
76 snprintf(mkp.peerhook, sizeof(mkp.peerhook), "%s", av[3]);
/freebsd-head/contrib/ofed/libibmad/
H A Ddump.c51 snprintf(buf, bufsz, "%d", *(uint32_t *) val & 0xff);
54 snprintf(buf, bufsz, "%d", *(uint32_t *) val & 0xffff);
58 snprintf(buf, bufsz, "%d", *(uint32_t *) val);
64 snprintf(buf, bufsz, "%" PRIu64, *(uint64_t *) val);
76 snprintf(buf, bufsz, "%u", *(uint32_t *) val & 0xff);
79 snprintf(buf, bufsz, "%u", *(uint32_t *) val & 0xffff);
83 snprintf(buf, bufsz, "%u", *(uint32_t *) val);
89 snprintf(buf, bufsz, "%" PRIu64, *(uint64_t *) val);
101 snprintf(buf, bufsz, "0x%02x", *(uint32_t *) val & 0xff);
104 snprintf(bu
[all...]
/freebsd-head/contrib/tcpdump/
H A Dmachdep.c43 int snprintf(char *, size_t, const char *, ...)
69 (void)snprintf(ebuf, ebufsiz, "setsysinfo: errno %d", errno);
/freebsd-head/sys/netpfil/ipfw/
H A Dip_fw_log.c86 #undef snprintf macro
87 #define snprintf sprintf macro
155 snprintf(SNPARGS(action2, 0), "Altq %d",
177 snprintf(SNPARGS(action2, 0), "Unreach %d",
187 snprintf(SNPARGS(action2, 0), "Unreach %d",
198 snprintf(SNPARGS(action2, 0), "Divert %d",
202 snprintf(SNPARGS(action2, 0), "Tee %d",
206 snprintf(SNPARGS(action2, 0), "SetFib %d",
210 snprintf(SNPARGS(action2, 0), "SkipTo %d",
214 snprintf(SNPARG
[all...]
/freebsd-head/lib/libugidfw/
H A Dugidfw.c76 len = snprintf(cur, left, "subject ");
83 len = snprintf(cur, left, "not ");
94 len = snprintf(cur, left, "! ");
103 len = snprintf(cur, left, "uid %s",
110 len = snprintf(cur, left, "uid %u",
121 len = snprintf(cur, left, ":%s ",
128 len = snprintf(cur, left, ":%u ",
136 len = snprintf(cur, left, " ");
144 len = snprintf(cur, left, "! ");
153 len = snprintf(cu
[all...]
/freebsd-head/crypto/openssh/openbsd-compat/regress/
H A Dsnprintftest.c52 snprintf(b,5,"123456789");
54 fail("snprintf does not correctly terminate long strings");
61 snprintf(b, sizeof(b), "%.*s", 1, src);
66 /* check that snprintf and vsnprintf return sane values */
67 if (snprintf(b, 1, "%s %d", "hello", 12345) != 11)
68 fail("snprintf does not return required length");
/freebsd-head/contrib/tnftp/src/
H A Dprogressbar.c183 len = snprintf(buf, sizeof(buf), "\r\n%s: "
220 len += snprintf(buf + len, BUFLEFT, "\r");
222 len += snprintf(buf + len, BUFLEFT, "%s", prefix);
227 len += snprintf(buf + len, BUFLEFT, "%3d%% ", ratio);
238 len += snprintf(buf + len, BUFLEFT,
248 len += snprintf(buf + len, BUFLEFT, " " LLFP("5") " %-3s ",
263 len += snprintf(buf + len, BUFLEFT,
271 len += snprintf(buf + len, BUFLEFT, " --:-- ETA");
273 len += snprintf(buf + len, BUFLEFT, " - stalled -");
279 len += snprintf(bu
[all...]
/freebsd-head/contrib/ntp/libntp/
H A Dhumandate.c30 snprintf(bp, LIB_BUFLENGTH, "%2d %s %02d:%02d:%02d",
56 snprintf(bp, LIB_BUFLENGTH, "%02d:%02d:%02d",
H A Drefnumtoa.c28 snprintf(buf, LIB_BUFLENGTH, "%s(%lu)",
31 snprintf(buf, LIB_BUFLENGTH, "REFCLK(%lu,%lu)",
H A Dbsd_strerror.c43 snprintf(ebuf, sizeof(ebuf), "Unknown error: %d", errnum);
H A Dmodetoa.c30 snprintf(bp, LIB_BUFLENGTH, "mode#%zu", mode);
/freebsd-head/crypto/openssh/regress/unittests/conversion/
H A Dtests.c43 snprintf(buf, sizeof buf, "%llu", (unsigned long long)LONG_MAX + 1);
47 snprintf(buf, sizeof buf, "%lluM", (unsigned long long)LONG_MAX/60 + 1);
/freebsd-head/lib/libc/posix1e/
H A Dacl_to_text_nfs4.c63 snprintf(str, size, "owner@");
76 snprintf(str, size, "user:%d", (unsigned int)*id);
78 snprintf(str, size, "user:%s", pwd->pw_name);
82 snprintf(str, size, "group@");
95 snprintf(str, size, "group:%d", (unsigned int)*id);
97 snprintf(str, size, "group:%s", grp->gr_name);
101 snprintf(str, size, "everyone@");
123 snprintf(str, size, "allow");
126 snprintf(str, size, "deny");
129 snprintf(st
[all...]
/freebsd-head/contrib/opie/libopie/
H A Drandomchallenge.c17 Modified by cmetz for OPIE 2.4. Use snprintf().
48 snprintf(prompt, OPIE_CHALLENGE_MAX+1, "otp-%s %d %s ext", algids[MDX],
/freebsd-head/contrib/ntp/lib/isc/unix/
H A Dstrerror.c62 snprintf(buf, size, "%s", msg);
64 snprintf(buf, size, "Unknown error: %u", unum);
72 snprintf(buf, size, "%s", sys_errlist[num]);
74 snprintf(buf, size, "Unknown error: %u", unum);
/freebsd-head/contrib/openpam/lib/libpam/
H A Dpam_strerror.c65 snprintf(unknown, sizeof unknown, "#%d", error_number);

Completed in 516 milliseconds

1234567891011>>