File:  [DVB] / dietlibc / libcompat / err.c
Revision 1.2: download - view: text, annotated - select for diffs
Tue Mar 15 08:51:22 2005 UTC (19 years, 2 months ago) by leitner
Branches: MAIN
CVS tags: HEAD
  Lots of fixes and patches from Markus Oberhumer.
    libstdc++ compatibility
    ilp64 compatibility
    make diet libc compile with -Werror on 13 platforms
  ppc64 now compiles again

#define _GNU_SOURCE
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#undef __deprecated__
#define __deprecated__
#include <err.h>

void err(int e,const char* f, ...) {
  va_list ap;
  va_start(ap,f);
  vwarn(f,ap);
  va_end(ap);
  exit(e);
}

LinuxTV legacy CVS <linuxtv.org/cvs>