44 #include <machine/ansi.h> 45 #include <sys/cdefs.h> 48 #define _BSD_VA_LIST_ va_list 52 #define err rtems_shell_err 53 #define verr rtems_shell_verr 54 #define errx rtems_shell_errx 55 #define verrx rtems_shell_verrx 56 #define warn rtems_shell_warn 57 #define vwarn rtems_shell_vwarn 58 #define warnx rtems_shell_warnx 59 #define vwarnx rtems_shell_vwarnx 63 extern jmp_buf rtems_shell_bsd_exit_recover;
66 __dead
void err(jmp_buf*,
int,
const char *, ...)
67 __attribute__((__noreturn__, __format__(__printf__, 3, 4)));
68 __dead
void verr(jmp_buf*,
int, const
char *, _BSD_VA_LIST_)
69 __attribute__((__noreturn__, __format__(__printf__, 3, 0)));
70 __dead
void errx(jmp_buf*,
int, const
char *, ...)
71 __attribute__((__noreturn__, __format__(__printf__, 3, 4)));
72 __dead
void verrx(jmp_buf*,
int, const
char *, _BSD_VA_LIST_)
73 __attribute__((__noreturn__, __format__(__printf__, 3, 0)));
74 void warn(const
char *, ...)
75 __attribute__((__format__(__printf__, 1, 2)));
76 void vwarn(const
char *, _BSD_VA_LIST_)
77 __attribute__((__format__(__printf__, 1, 0)));
78 void warnx(const
char *, ...)
79 __attribute__((__format__(__printf__, 1, 2)));
80 void vwarnx(const
char *, _BSD_VA_LIST_)
81 __attribute__((__format__(__printf__, 1, 0)));