Exemplo n.º 1
0
Arquivo: err.c Projeto: KGG814/AOS
void errx(int status, const char *fmt, ...)
{
	va_list ap;
	va_start(ap, fmt);
	verrx(status, fmt, ap);
	va_end(ap);
}
Exemplo n.º 2
0
void errx(int eval, const char *format, ...)
{
    va_list ap;
    va_start(ap, format);
    verrx(eval, format, ap);
    va_end(ap);
}
Exemplo n.º 3
0
void errx(int eval, const char *fmt, ...)
{
    va_list argp;
    va_start(argp, fmt);
    verrx(eval, fmt, argp);
    va_end(argp);
}
Exemplo n.º 4
0
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() */
}
Exemplo n.º 5
0
static void
XmBugCheck(const char *fmt, ...)
{
    va_list args;
    va_start(args, fmt);
    verrx(1, fmt, args);
}
Exemplo n.º 6
0
void
errx(int exitcode, const char *fmt, ...)
{
	va_list args;

	va_start(args, fmt);
	verrx(exitcode, fmt, args);
}
Exemplo n.º 7
0
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);
}
Exemplo n.º 9
0
void ROKEN_LIB_FUNCTION
errx(int eval, const char *fmt, ...)
{
  va_list ap;
  va_start(ap, fmt);
  verrx(eval, fmt, ap);
  va_end(ap);
}
Exemplo n.º 10
0
static void die(const char *err, ...)
{
	va_list params;

	va_start(params, err);
	verrx(EXIT_FAILURE, err, params);
	va_end(params);
}
Exemplo n.º 11
0
static void error(const char *msg, ...)
{
    va_list ap;
    va_start(ap, msg);
    verrx(2, msg, ap);
    /*NOTREACHED*/
    va_end(ap);
}
Exemplo n.º 12
0
__dead void
errx(int eval, const char *fmt, ...)
{
	va_list ap;

	va_start(ap, fmt);
	verrx(eval, fmt, ap);
	va_end(ap);
}
Exemplo n.º 13
0
/*
 * 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);
}
Exemplo n.º 14
0
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 */
}
Exemplo n.º 15
0
/* 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);
}
Exemplo n.º 16
0
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);
}
Exemplo n.º 17
0
void verrxDotsShell( int eval, const char * fmt, ... ) {
    va_list argList;
    va_start( argList, fmt );
    verrx( eval, fmt, argList );
    va_end( argList );
}
Exemplo n.º 18
0
static void test_verrx_helper(int eval, const char *fmt, ...) {
  va_list args;
  va_start(args, fmt);
  verrx(eval, fmt, args);
  va_end(args);
}
Exemplo n.º 19
0
}
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))
}
Exemplo n.º 20
0
__noreturn void errx(int status, const char* format, ...) {
    va_list ap;
    va_start(ap, format);
    verrx(status, format, ap);
}