Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [amihailov@amihailov:/home/amihailov]$ locate execinfo.h
- /usr/local/include/execinfo.h
- [amihailov@amihailov:/home/amihailov]$ cat /usr/local/include/execinfo.h
- /* $backtrace: backtrace.h,v 1.1 2010/09/09 22:23:45 marco Exp $ */
- /*
- * Copyright (c) 2010 Marco Peereboom <marco@conformal.com>
- * Copyright (c) 2010 Conformal Systems LLC.
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
- #ifndef _EXECINFO_H_
- #define _EXECINFO_H_
- #ifdef __cplusplus
- extern "C" {
- #endif
- #ifndef __GNUC__
- #error "this library must be compiled with gcc"
- #endif
- #include <dlfcn.h>
- /* compatability functions with libexecinfo and glibc */
- int backtrace(void **, int);
- char **backtrace_symbols(void *const *, int);
- void backtrace_symbols_fd(void *const *, int, int);
- #ifdef __cplusplus
- }
- #endif
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement