void errx(int status, const char *fmt, ...) { va_list ap; va_start(ap, fmt); verrx(status, fmt, ap); va_end(ap); }
void errx(int eval, const char *format, ...) { va_list ap; va_start(ap, format); verrx(eval, format, ap); va_end(ap); }
void errx(int eval, const char *fmt, ...) { va_list argp; va_start(argp, fmt); verrx(eval, fmt, argp); va_end(argp); }
void errx(int eval, const char *fmt, ...) { va_list argptr; va_start(argptr, fmt); verrx(eval, fmt, argptr); /* NOTREACHED, so don't worry about va_end() */ }
static void XmBugCheck(const char *fmt, ...) { va_list args; va_start(args, fmt); verrx(1, fmt, args); }
void errx(int exitcode, const char *fmt, ...) { va_list args; va_start(args, fmt); verrx(exitcode, fmt, args); }
void panic(const char *fmt, ...) { va_list ap; va_start(ap, fmt); verrx(1, fmt, ap); va_end(ap); }
void errx(int exitcode, const char *fmt, ...) { va_list ap; va_start(ap, fmt); verrx(exitcode, fmt, ap); va_end(ap); }
void ROKEN_LIB_FUNCTION errx(int eval, const char *fmt, ...) { va_list ap; va_start(ap, fmt); verrx(eval, fmt, ap); va_end(ap); }
static void die(const char *err, ...) { va_list params; va_start(params, err); verrx(EXIT_FAILURE, err, params); va_end(params); }
static void error(const char *msg, ...) { va_list ap; va_start(ap, msg); verrx(2, msg, ap); /*NOTREACHED*/ va_end(ap); }
__dead void errx(int eval, const char *fmt, ...) { va_list ap; va_start(ap, fmt); verrx(eval, fmt, ap); va_end(ap); }
/* * leavex: * Leave the game somewhat gracefully, restoring all current * tty stats. */ void leavex(int exitval, const char *fmt, ...) { va_list ap; fincurs(); va_start(ap, fmt); verrx(exitval, fmt, ap); va_end(ap); }
static void rshd_errx(int errcode, const char *fmt, ...) { va_list ap; va_start(ap, fmt); if (sent_null == 0) write(STDERR_FILENO, "\1", 1); verrx(errcode, fmt, ap); /* NOTREACHED */ }
/* Logs the given error message to syslog if running in daemon mode, or * to the console if running in the foreground. */ void log_errx(int e, const char *fmt, ...) { va_list ap; va_start(ap, fmt); if (Foreground) verrx(e, fmt, ap); else { vsyslog(LOG_DAEMON | LOG_ERR, fmt, ap); exit(e); } /* NOTREACHED */ va_end(ap); }
void error(int status, int errnum, const char *format, ...) { va_list arg; va_start(arg, format); if (errnum == 0) { if (status == 0) vwarnx(format, arg); else verrx(status, format, arg); } else { if (status == 0) vwarn(format, arg); else verr(status, format, arg); } va_end(arg); }
void verrxDotsShell( int eval, const char * fmt, ... ) { va_list argList; va_start( argList, fmt ); verrx( eval, fmt, argList ); va_end( argList ); }
static void test_verrx_helper(int eval, const char *fmt, ...) { va_list args; va_start(args, fmt); verrx(eval, fmt, args); va_end(args); }
} libc_hidden_def (warnx) void verr (int status, const char *format, __gnuc_va_list ap) { vwarn (format, ap); exit (status); } libc_hidden_def (verr) void verrx (int status, const char *format, __gnuc_va_list ap) { vwarnx (format, ap); exit (status); } libc_hidden_def (verrx) void err (int status, const char *format, ...) { VA (verr (status, format, ap)) } void errx (int status, const char *format, ...) { VA (verrx (status, format, ap)) }
__noreturn void errx(int status, const char* format, ...) { va_list ap; va_start(ap, format); verrx(status, format, ap); }