backtrace-rename.h 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /* Ensure we don't pollute application namespace. */
  2. #define backtrace_alloc __asan_backtrace_alloc
  3. #define backtrace_close __asan_backtrace_close
  4. #define backtrace_create_state __asan_backtrace_create_state
  5. #define backtrace_dwarf_add __asan_backtrace_dwarf_add
  6. #define backtrace_free __asan_backtrace_free
  7. #define backtrace_get_view __asan_backtrace_get_view
  8. #define backtrace_initialize __asan_backtrace_initialize
  9. #define backtrace_open __asan_backtrace_open
  10. #define backtrace_pcinfo __asan_backtrace_pcinfo
  11. #define backtrace_qsort __asan_backtrace_qsort
  12. #define backtrace_release_view __asan_backtrace_release_view
  13. #define backtrace_syminfo __asan_backtrace_syminfo
  14. #define backtrace_vector_finish __asan_backtrace_vector_finish
  15. #define backtrace_vector_grow __asan_backtrace_vector_grow
  16. #define backtrace_vector_release __asan_backtrace_vector_release
  17. #define cplus_demangle_builtin_types __asan_cplus_demangle_builtin_types
  18. #define cplus_demangle_fill_ctor __asan_cplus_demangle_fill_ctor
  19. #define cplus_demangle_fill_dtor __asan_cplus_demangle_fill_dtor
  20. #define cplus_demangle_fill_extended_operator __asan_cplus_demangle_fill_extended_operator
  21. #define cplus_demangle_fill_name __asan_cplus_demangle_fill_name
  22. #define cplus_demangle_init_info __asan_cplus_demangle_init_info
  23. #define cplus_demangle_mangled_name __asan_cplus_demangle_mangled_name
  24. #define cplus_demangle_operators __asan_cplus_demangle_operators
  25. #define cplus_demangle_print __asan_cplus_demangle_print
  26. #define cplus_demangle_print_callback __asan_cplus_demangle_print_callback
  27. #define cplus_demangle_type __asan_cplus_demangle_type
  28. #define cplus_demangle_v3 __asan_cplus_demangle_v3
  29. #define cplus_demangle_v3_callback __asan_cplus_demangle_v3_callback
  30. #define is_gnu_v3_mangled_ctor __asan_is_gnu_v3_mangled_ctor
  31. #define is_gnu_v3_mangled_dtor __asan_is_gnu_v3_mangled_dtor
  32. #define java_demangle_v3 __asan_java_demangle_v3
  33. #define java_demangle_v3_callback __asan_java_demangle_v3_callback
  34. #ifndef __cplusplus
  35. #include <string.h>
  36. extern void *__asan_internal_memcpy (void *, const void *, size_t);
  37. extern void *__asan_internal_memset (void *, int, size_t);
  38. extern int __asan_internal_memcmp (const void *, const void *, size_t);
  39. extern int __asan_internal_strcmp (const char *, const char *);
  40. extern int __asan_internal_strncmp (const char *, const char *, size_t);
  41. extern size_t __asan_internal_strlen (const char *);
  42. extern size_t __asan_internal_strnlen (const char *, size_t);
  43. #undef memcpy
  44. #undef memset
  45. #undef memcmp
  46. #undef strcmp
  47. #undef strncmp
  48. #undef strlen
  49. #undef strnlen
  50. #define memcpy(x,y,z) __asan_internal_memcpy (x, y, z)
  51. #define memset(x,y,z) __asan_internal_memset (x, y, z)
  52. #define memcmp(x,y,z) __asan_internal_memcmp (x, y, z)
  53. #define strcmp(x,y) __asan_internal_strcmp (x, y)
  54. #define strncmp(x,y,z) __asan_internal_strncmp (x, y, z)
  55. #define strlen(x) __asan_internal_strlen (x)
  56. #ifdef HAVE_DECL_STRNLEN
  57. #define strnlen(x,y) __asan_internal_strnlen (x, y)
  58. #endif
  59. #endif