From 3516b8b7558a69dfd06410b0c997d096a78221c9 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 1 Sep 2016 11:20:05 +0200 Subject: Add libmissing This patch adds a libmissing library to mtd-utils, containing implementations of functionality found in glibc but typically missing from embedded C libraries such as uclibc ot musl. For now, the library only contains stub implementations of the backtrace*() family of functions. Signed-off-by: David Oberhollenzer Signed-off-by: Richard Weinberger --- include/libmissing.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 include/libmissing.h (limited to 'include/libmissing.h') diff --git a/include/libmissing.h b/include/libmissing.h new file mode 100644 index 0000000..c765f6d --- /dev/null +++ b/include/libmissing.h @@ -0,0 +1,15 @@ +#ifndef LIBMISSING_H +#define LIBMISSING_H + +#ifdef HAVE_EXECINFO +#include +#endif + +#ifndef HAVE_EXECINFO +int backtrace(void **buffer, int size); +char **backtrace_symbols(void *const *buffer, int size); +void backtrace_symbols_fd(void *const *buffer, int size, int fd); +#endif + +#endif /* LIBMISSING_H */ + -- cgit v1.2.3