Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / stdlib / eprintf.c
blob46cf8104be2fd7f1f680039d72a6ca0c5685e0e9
1 /* This is an implementation of the __eprintf function which is
2 compatible with the assert.h which is distributed with gcc.
4 This function is provided because in some cases libgcc.a will not
5 provide __eprintf. This will happen if inhibit_libc is defined,
6 which is done because at the time that libgcc2.c is compiled, the
7 correct <stdio.h> may not be available. newlib provides its own
8 copy of assert.h, which calls __assert, not __eprintf. However, in
9 some cases you may accidentally wind up compiling with the gcc
10 assert.h. In such a case, this __eprintf will be used if there
11 does not happen to be one in libgcc2.c. */
13 #include <stdlib.h>
14 #include <stdio.h>
16 void
17 __eprintf (format, file, line, expression)
18 const char *format;
19 const char *file;
20 unsigned int line;
21 const char *expression;
23 (void) fiprintf (stderr, format, file, line, expression);
24 abort ();
25 /*NOTREACHED*/