1254661Semaste/*	$NetBSD: execinfo.h,v 1.2 2012/06/09 21:22:17 christos Exp $	*/
2255176Semaste/*	$FreeBSD$ */
3254661Semaste
4254661Semaste/*-
5254661Semaste * Copyright (c) 2012 The NetBSD Foundation, Inc.
6254661Semaste * All rights reserved.
7254661Semaste *
8254661Semaste * This code is derived from software contributed to The NetBSD Foundation
9254661Semaste * by Christos Zoulas.
10254661Semaste *
11254661Semaste * Redistribution and use in source and binary forms, with or without
12254661Semaste * modification, are permitted provided that the following conditions
13254661Semaste * are met:
14254661Semaste * 1. Redistributions of source code must retain the above copyright
15254661Semaste *    notice, this list of conditions and the following disclaimer.
16254661Semaste * 2. Redistributions in binary form must reproduce the above copyright
17254661Semaste *    notice, this list of conditions and the following disclaimer in the
18254661Semaste *    documentation and/or other materials provided with the distribution.
19254661Semaste *
20254661Semaste * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
21254661Semaste * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
22254661Semaste * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23254661Semaste * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
24254661Semaste * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25254661Semaste * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26254661Semaste * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27254661Semaste * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28254661Semaste * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29254661Semaste * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30254661Semaste * POSSIBILITY OF SUCH DAMAGE.
31254661Semaste */
32254661Semaste#ifndef _EXECINFO_H_
33254661Semaste#define _EXECINFO_H_
34254661Semaste
35254661Semaste#include <stddef.h>
36254661Semaste
37254661Semaste__BEGIN_DECLS
38254661Semastesize_t backtrace(void **, size_t);
39254661Semastechar **backtrace_symbols(void *const *, size_t);
40254661Semasteint backtrace_symbols_fd(void *const *, size_t, int);
41254661Semastechar **backtrace_symbols_fmt(void *const *, size_t, const char *);
42254661Semasteint backtrace_symbols_fd_fmt(void *const *, size_t, int, const char *);
43254661Semaste__END_DECLS
44254661Semaste
45254661Semaste#endif /* _EXECINFO_H_ */
46