/* abort.c (emx+gcc) -- Copyright (c) 1990-1993 by Eberhard Mattes */

#include <sys/emx.h>
#include <stdlib.h>
#include <signal.h>

static sig_atomic_t abort_flag = 0;

void abort (void)
{
  if (abort_flag++ == 0)
    _cleanup ();
  raise (SIGABRT);
  _exit (3);                    /* Should not get reached */
}
