Home
last modified time | relevance | path

Searched refs:fmt (Results 1 – 25 of 33) sorted by relevance

12

/openssh-portable/openbsd-compat/
H A Dbsd-err.c38 err(int r, const char *fmt, ...) in err() argument
42 va_start(args, fmt); in err()
44 vfprintf(stderr, fmt, args); in err()
53 errx(int r, const char *fmt, ...) in errx() argument
57 va_start(args, fmt); in errx()
58 vfprintf(stderr, fmt, args); in errx()
67 warn(const char *fmt, ...) in warn() argument
71 va_start(args, fmt); in warn()
73 vfprintf(stderr, fmt, args); in warn()
H A Dbsd-asprintf.c40 vasprintf(char **str, const char *fmt, va_list ap) in vasprintf() argument
51 ret = vsnprintf(string, INIT_SZ, fmt, ap2); in vasprintf()
65 ret = vsnprintf(newstr, len, fmt, ap2); in vasprintf()
86 int asprintf(char **str, const char *fmt, ...) in asprintf() argument
92 va_start(ap, fmt); in asprintf()
93 ret = vasprintf(str, fmt, ap); in asprintf()
H A Dstrptime.c61 strptime(const char *buf, const char *fmt, struct tm *tm) in strptime() argument
63 return(_strptime(buf, fmt, tm, 1)); in strptime()
67 _strptime(const char *buf, const char *fmt, struct tm *tm, int initialize) in _strptime() argument
81 while ((c = *fmt) != '\0') { in _strptime()
90 fmt++; in _strptime()
94 if ((c = *fmt++) != '%') in _strptime()
98 again: switch (c = *fmt++) { in _strptime()
H A Dsetproctitle.c124 setproctitle(const char *fmt, ...) in setproctitle() argument
144 va_start(ap, fmt); in setproctitle()
145 if (fmt != NULL) { in setproctitle()
148 r = vsnprintf(buf + len, sizeof(buf) - len , fmt, ap); in setproctitle()
H A Dinet_ntop.c88 static const char fmt[] = "%u.%u.%u.%u"; in inet_ntop4() local
92 l = snprintf(tmp, size, fmt, src[0], src[1], src[2], src[3]); in inet_ntop4()
H A Dopenbsd-compat.h126 char *strptime(const char *buf, const char *fmt, struct tm *tm);
169 void setproctitle(const char *fmt, ...);
H A Dbsd-snprintf.c862 vsnprintf (char *str, size_t count, const char *fmt, va_list args) in vsnprintf() argument
864 return dopr(str, count, fmt, args); in vsnprintf()
870 snprintf(char *str, size_t count, SNPRINTF_CONST char *fmt, ...) in snprintf() argument
875 va_start(ap, fmt); in snprintf()
876 ret = vsnprintf(str, count, fmt, ap); in snprintf()
/openssh-portable/
H A Dutf8.c119 if ((ret = vasprintf(&src, fmt, ap)) <= 0) in vasnmprintf()
246 va_start(ap, fmt); in snmprintf()
247 ret = vasnmprintf(&cp, sz, wp, fmt, ap); in snmprintf()
264 va_start(ap, fmt); in asmprintf()
265 ret = vasnmprintf(outp, sz, wp, fmt, ap); in asmprintf()
293 fmprintf(FILE *stream, const char *fmt, ...) in fmprintf() argument
298 va_start(ap, fmt); in fmprintf()
299 ret = vfmprintf(stream, fmt, ap); in fmprintf()
305 mprintf(const char *fmt, ...) in mprintf() argument
310 va_start(ap, fmt); in mprintf()
[all …]
H A Dlog.c391 vsnprintf(msgbuf, sizeof(msgbuf), fmt, args); in do_log()
429 va_start(args, fmt); in sshlog()
440 va_start(args, fmt); in sshlogdie()
442 suffix, fmt, args); in sshlogdie()
453 va_start(args, fmt); in sshsigdie()
455 suffix, fmt, args); in sshsigdie()
480 snprintf(fmt2, sizeof(fmt2), "%s: %s", tag, fmt); in sshlogv()
482 snprintf(fmt2, sizeof(fmt2), "%s: %s", func, fmt); in sshlogv()
484 strlcpy(fmt2, fmt, sizeof(fmt2)); in sshlogv()
494 va_start(args, fmt); in sshlogdirect()
[all …]
H A Dxmalloc.c99 xvasprintf(char **ret, const char *fmt, va_list ap) in xvasprintf() argument
103 i = vasprintf(ret, fmt, ap); in xvasprintf()
110 xasprintf(char **ret, const char *fmt, ...) in xasprintf() argument
115 va_start(ap, fmt); in xasprintf()
116 i = xvasprintf(ret, fmt, ap); in xasprintf()
H A Dreadpass.c199 ask_permission(const char *fmt, ...) in ask_permission() argument
205 va_start(args, fmt); in ask_permission()
206 vsnprintf(prompt, sizeof(prompt), fmt, args); in ask_permission()
239 notify_start(int force_askpass, const char *fmt, ...) in notify_start() argument
248 va_start(args, fmt); in notify_start()
249 xvasprintf(&prompt, fmt, args); in notify_start()
300 notify_complete(struct notifier_ctx *ctx, const char *fmt, ...) in notify_complete() argument
306 if (ctx != NULL && fmt != NULL && ctx->pid == -1) { in notify_complete()
311 va_start(args, fmt); in notify_complete()
312 xvasprintf(&msg, fmt, args); in notify_complete()
H A Dfatal.c38 LogLevel level, const char *suffix, const char *fmt, ...) in sshfatal() argument
42 va_start(args, fmt); in sshfatal()
43 sshlogv(file, func, line, showfunc, level, suffix, fmt, args); in sshfatal()
H A Dpacket.h134 void ssh_packet_disconnect(struct ssh *, const char *fmt, ...)
137 void ssh_packet_send_debug(struct ssh *, const char *fmt, ...) __attribute__((format(printf, 2,…
176 int sshpkt_disconnect(struct ssh *, const char *fmt, ...)
179 void sshpkt_fatal(struct ssh *ssh, int r, const char *fmt, ...)
H A Dsshbuf-getput-basic.c347 sshbuf_putf(struct sshbuf *buf, const char *fmt, ...) in sshbuf_putf() argument
352 va_start(ap, fmt); in sshbuf_putf()
353 r = sshbuf_putfv(buf, fmt, ap); in sshbuf_putf()
359 sshbuf_putfv(struct sshbuf *buf, const char *fmt, va_list ap) in sshbuf_putfv() argument
366 if ((len = vsnprintf(NULL, 0, fmt, ap2)) < 0) { in sshbuf_putfv()
378 if ((r = vsnprintf((char *)p, len + 1, fmt, ap2)) != len) { in sshbuf_putfv()
H A Dssh-sk-helper.c53 static struct sshbuf *reply_error(int r, char *fmt, ...)
57 reply_error(int r, char *fmt, ...) in reply_error() argument
63 va_start(ap, fmt); in reply_error()
64 xvasprintf(&msg, fmt, ap); in reply_error()
H A Dpacket.c366 if (fmt == NULL) in ssh_packet_set_log_preamble()
369 va_start(args, fmt); in ssh_packet_set_log_preamble()
1814 va_start(args, fmt); in ssh_packet_send_debug()
1815 vsnprintf(buf, sizeof(buf), fmt, args); in ssh_packet_send_debug()
1880 if (vasprintf(&tag, fmt, ap) == -1) { in sshpkt_vfatal()
1897 va_start(ap, fmt); in sshpkt_fatal()
1898 sshpkt_vfatal(ssh, r, fmt, ap); in sshpkt_fatal()
1927 va_start(args, fmt); in ssh_packet_disconnect()
1928 vsnprintf(buf, sizeof(buf), fmt, args); in ssh_packet_disconnect()
2690 va_start(args, fmt); in sshpkt_disconnect()
[all …]
H A Dmisc.c1040 addargs(arglist *args, char *fmt, ...) in addargs() argument
1047 va_start(ap, fmt); in addargs()
1048 r = vasprintf(&cp, fmt, ap); in addargs()
1073 va_start(ap, fmt); in replacearg()
1074 r = vasprintf(&cp, fmt, ap); in replacearg()
1452 va_start(ap, fmt); in xextendf()
1453 xvasprintf(&tmp1, fmt, ap); in xextendf()
2303 char buf[32], *fmt; in parse_absolute_time() local
2314 fmt = "%Y-%m-%d"; in parse_absolute_time()
2318 fmt = "%Y-%m-%dT%H:%M"; in parse_absolute_time()
[all …]
H A Dscp.c1605 run_err(const char *fmt,...) argument
1614 va_start(ap, fmt);
1615 (void) vfprintf(fp, fmt, ap);
1622 va_start(ap, fmt);
1623 vfmprintf(stderr, fmt, ap);
1635 note_err(const char *fmt, ...) argument
1641 if (fmt == NULL) {
1655 va_start(ap, fmt);
1656 vasnmprintf(&emsg, INT_MAX, NULL, fmt, ap);
H A Dsk-usbhid.c130 static void skdebug(const char *func, const char *fmt, ...)
134 skdebug(const char *func, const char *fmt, ...) in skdebug() argument
140 va_start(ap, fmt); in skdebug()
141 xvasprintf(&msg, fmt, ap); in skdebug()
148 va_start(ap, fmt); in skdebug()
150 vfprintf(stderr, fmt, ap); in skdebug()
155 (void)fmt; /* XXX */ in skdebug()
H A Dsshbuf.h165 int sshbuf_putf(struct sshbuf *buf, const char *fmt, ...)
167 int sshbuf_putfv(struct sshbuf *buf, const char *fmt, va_list ap);
/openssh-portable/regress/
H A Dkeygen-comment.sh21 for fmt in '' RFC4716 PKCS8 PEM; do
23 trace "generating $t key in '$fmt' format"
26 case "$fmt" in
36 test -z "$fmt" || fmtarg="-m $fmt"
39 fatal "keygen of $t in format $fmt failed"
H A Dcheck-perm.c23 fatal(const char *fmt, ...) in fatal() argument
27 va_start(args, fmt); in fatal()
28 vfprintf(stderr, fmt, args); in fatal()
/openssh-portable/regress/misc/sk-dummy/
H A Dfatal.c14 LogLevel level, const char *suffix, const char *fmt, ...) in sshfatal() argument
20 va_start(ap, fmt); in sshfatal()
21 vfprintf(stderr, fmt, ap); in sshfatal()
H A Dsk-dummy.c61 static void skdebug(const char *func, const char *fmt, ...)
65 skdebug(const char *func, const char *fmt, ...) in skdebug() argument
70 va_start(ap, fmt); in skdebug()
72 vfprintf(stderr, fmt, ap); in skdebug()
77 (void)fmt; /* XXX */ in skdebug()
/openssh-portable/openbsd-compat/regress/
H A Dsnprintftest.c35 int x_snprintf(char *str, size_t count, const char *fmt, ...) in x_snprintf() argument
40 va_start(ap, fmt); in x_snprintf()
41 ret = vsnprintf(str, count, fmt, ap); in x_snprintf()

12