xref: /netbsd-src/sys/arch/x68k/stand/common/xprintf.h (revision ed461fc193a34ff07bc68b0c28567cb8cfe199e5)
1bfd67e9cSitohy /*
2bfd67e9cSitohy  *	declarations of tiny printf/err functions
3bfd67e9cSitohy  *
4*ed461fc1Sitohy  *	written by ITOH Yasufumi
5bfd67e9cSitohy  *	public domain
6bfd67e9cSitohy  *
7*ed461fc1Sitohy  *	$NetBSD: xprintf.h,v 1.3 2011/02/21 02:31:58 itohy Exp $
8bfd67e9cSitohy  */
9bfd67e9cSitohy 
10bfd67e9cSitohy #include <sys/cdefs.h>
11bfd67e9cSitohy #ifdef __STDC__
12bfd67e9cSitohy #include <stdarg.h>
13bfd67e9cSitohy #endif
14bfd67e9cSitohy 
1502cdf4d2Sdsl size_t xvsnprintf(char *buf, size_t len, const char *fmt, va_list ap);
1602cdf4d2Sdsl size_t xsnprintf(char *buf, size_t len, const char *fmt, ...);
1702cdf4d2Sdsl size_t xvfdprintf(int fd, const char *fmt, va_list ap);
1802cdf4d2Sdsl size_t xprintf(const char *fmt, ...);
1902cdf4d2Sdsl size_t xerrprintf(const char *fmt, ...);
2002cdf4d2Sdsl __dead void xerr(int eval, const char *fmt, ...)
21bfd67e9cSitohy 				__attribute__((noreturn));
2202cdf4d2Sdsl __dead void xerrx(int eval, const char *fmt, ...)
23bfd67e9cSitohy 				__attribute__((noreturn));
2402cdf4d2Sdsl void xwarn(const char *fmt, ...);
2502cdf4d2Sdsl void xwarnx(const char *fmt, ...);
26