xref: /netbsd/sys/arch/x68k/stand/common/xprintf.h (revision bf9ec67e)
1 /*
2  *	declarations of tiny printf/err functions
3  *
4  *	written by Yasha (ITOH Yasufumi)
5  *	public domain
6  *
7  *	$NetBSD: xprintf.h,v 1.1 1998/09/01 19:51:57 itohy Exp $
8  */
9 
10 #include <sys/cdefs.h>
11 #ifdef __STDC__
12 #include <stdarg.h>
13 #endif
14 
15 size_t xvsnprintf __P((char *buf, size_t len, const char *fmt, va_list ap));
16 size_t xsnprintf __P((char *buf, size_t len, const char *fmt, ...));
17 size_t xvfdprintf __P((int fd, const char *fmt, va_list ap));
18 size_t xprintf __P((const char *fmt, ...));
19 size_t xerrprintf __P((const char *fmt, ...));
20 __dead void xerr __P((int eval, const char *fmt, ...))
21 				__attribute__((noreturn));
22 __dead void xerrx __P((int eval, const char *fmt, ...))
23 				__attribute__((noreturn));
24 void xwarn __P((const char *fmt, ...));
25 void xwarnx __P((const char *fmt, ...));
26