/* This file is in the public domain. */ #include #include #include #include #include "impl.h" static const char * volatile panicstr; void aio__panic(const char *fmt, ...) { va_list ap; char *s; int l; va_start(ap,fmt); l = vasprintf(&s,fmt,ap); va_end(ap); if (l < 0) { panicstr = "out of memory in aio__panic"; } else { panicstr = s; } abort(); }