| Current File : //usr/include/execinfo.h |
/*
* Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
*/
#ifndef _EXECINFO_H
#define _EXECINFO_H
/*
* These functions provide glibc-compatible backtrace functionality.
* Improved functionality is available using Solaris-specific APIs;
* see man page for walkcontext(), printstack() and addtosymstr().
*/
#ifdef __cplusplus
extern "C" {
#endif
#if defined(__STDC__)
extern int backtrace(void **, int);
extern char **backtrace_symbols(void *const *, int);
extern void backtrace_symbols_fd(void *const *, int, int);
#else
extern int backtrace();
extern char **backtrace_symbols();
extern void backtrace_symbols_fd();
#endif
#ifdef __cplusplus
}
#endif
#endif /* _EXECINFO_H */