execinfo.in.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /* Information about executables.
  2. Copyright (C) 2012-2017 Free Software Foundation, Inc.
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation; either version 3 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  13. /* Written by Paul Eggert. */
  14. #ifndef _GL_EXECINFO_H
  15. #define _GL_EXECINFO_H
  16. #ifndef _GL_INLINE_HEADER_BEGIN
  17. #error "Please include config.h first."
  18. #endif
  19. _GL_INLINE_HEADER_BEGIN
  20. #ifndef _GL_EXECINFO_INLINE
  21. # define _GL_EXECINFO_INLINE _GL_INLINE
  22. #endif
  23. _GL_EXECINFO_INLINE int
  24. backtrace (void **buffer, int size)
  25. {
  26. (void) buffer;
  27. (void) size;
  28. return 0;
  29. }
  30. _GL_EXECINFO_INLINE char **
  31. backtrace_symbols (void *const *buffer, int size)
  32. {
  33. (void) buffer;
  34. (void) size;
  35. return 0;
  36. }
  37. _GL_EXECINFO_INLINE void
  38. backtrace_symbols_fd (void *const *buffer, int size, int fd)
  39. {
  40. (void) buffer;
  41. (void) size;
  42. (void) fd;
  43. }
  44. _GL_INLINE_HEADER_END
  45. #endif