File: erp_execinfo_plus.h

package info (click to toggle)
boinc-app-eah-brp 0.20170426%2Bdfsg-10
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,940 kB
  • sloc: ansic: 5,508; cpp: 3,512; makefile: 206; sh: 157
file content (41 lines) | stat: -rw-r--r-- 1,941 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/***************************************************************************
 *   Copyright (C) 2009 by Oliver Bock                                     *
 *   oliver.bock[AT]aei.mpg.de                                             *
 *                                                                         *
 *   This file is part of Einstein@Home (Radio Pulsar Edition).            *
 *                                                                         *
 *   Einstein@Home is free software: you can redistribute it and/or modify *
 *   it under the terms of the GNU General Public License as published     *
 *   by the Free Software Foundation, version 2 of the License.            *
 *                                                                         *
 *   Einstein@Home is distributed in the hope that it will be useful,      *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the          *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with Einstein@Home. If not, see <http://www.gnu.org/licenses/>. *
 *                                                                         *
 ***************************************************************************/

#ifndef ERP_EXECINFO_PLUS_H
#define ERP_EXECINFO_PLUS_H

#ifdef __cplusplus
extern "C" {
#endif

    /**
     * Takes the string list of symbols returned by glibc's
     * backtrace_symbols() and prints its content with additional
     * information to the given file descriptor.
     *
     * @return: 0 if success, <0 if error, >0 if warning
     */
    int backtrace_symbols_fd_plus(const char *const *symbols, const int size, int fd);

#ifdef __cplusplus
}
#endif

#endif