17777dab0Sopenharmony_ci/* $OpenBSD: execinfo.h,v 1.1 2021/06/09 19:37:43 mortimer Exp $ */ 27777dab0Sopenharmony_ci 37777dab0Sopenharmony_ci/*- 47777dab0Sopenharmony_ci * Copyright (c) 2012 The NetBSD Foundation, Inc. 57777dab0Sopenharmony_ci * All rights reserved. 67777dab0Sopenharmony_ci * 77777dab0Sopenharmony_ci * This code is derived from software contributed to The NetBSD Foundation 87777dab0Sopenharmony_ci * by Christos Zoulas. 97777dab0Sopenharmony_ci * 107777dab0Sopenharmony_ci * Redistribution and use in source and binary forms, with or without 117777dab0Sopenharmony_ci * modification, are permitted provided that the following conditions 127777dab0Sopenharmony_ci * are met: 137777dab0Sopenharmony_ci * 1. Redistributions of source code must retain the above copyright 147777dab0Sopenharmony_ci * notice, this list of conditions and the following disclaimer. 157777dab0Sopenharmony_ci * 2. Redistributions in binary form must reproduce the above copyright 167777dab0Sopenharmony_ci * notice, this list of conditions and the following disclaimer in the 177777dab0Sopenharmony_ci * documentation and/or other materials provided with the distribution. 187777dab0Sopenharmony_ci * 197777dab0Sopenharmony_ci * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 207777dab0Sopenharmony_ci * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 217777dab0Sopenharmony_ci * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 227777dab0Sopenharmony_ci * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 237777dab0Sopenharmony_ci * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 247777dab0Sopenharmony_ci * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 257777dab0Sopenharmony_ci * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 267777dab0Sopenharmony_ci * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 277777dab0Sopenharmony_ci * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 287777dab0Sopenharmony_ci * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 297777dab0Sopenharmony_ci * POSSIBILITY OF SUCH DAMAGE. 307777dab0Sopenharmony_ci */ 317777dab0Sopenharmony_ci#ifndef _EXECINFO_H 327777dab0Sopenharmony_ci#define _EXECINFO_H 1 337777dab0Sopenharmony_ci 347777dab0Sopenharmony_ci#include <sys/cdefs.h> 357777dab0Sopenharmony_ci#ifdef __cplusplus 367777dab0Sopenharmony_ci__BEGIN_EXTERN_C 377777dab0Sopenharmony_ci#endif 387777dab0Sopenharmony_ciint backtrace(void **, int); 397777dab0Sopenharmony_cichar **backtrace_symbols(void *const *, int); 407777dab0Sopenharmony_ciint backtrace_symbols_fd(void *const *, int, int); 417777dab0Sopenharmony_ci 427777dab0Sopenharmony_ci#ifdef __cplusplus 437777dab0Sopenharmony_ci__END_EXTERN_C 447777dab0Sopenharmony_ci#endif 457777dab0Sopenharmony_ci 467777dab0Sopenharmony_ci#endif /* execinfo.h */ 47