1*df57947fSPedro F. Giffuni /*- 2*df57947fSPedro F. Giffuni * SPDX-License-Identifier: BSD-4-Clause 3*df57947fSPedro F. Giffuni * 40a6c71f8SWarner Losh * Copyright 1997 Sean Eric Fagan 51be5d704SMark Murray * 61be5d704SMark Murray * Redistribution and use in source and binary forms, with or without 71be5d704SMark Murray * modification, are permitted provided that the following conditions 81be5d704SMark Murray * are met: 91be5d704SMark Murray * 1. Redistributions of source code must retain the above copyright 101be5d704SMark Murray * notice, this list of conditions and the following disclaimer. 111be5d704SMark Murray * 2. Redistributions in binary form must reproduce the above copyright 121be5d704SMark Murray * notice, this list of conditions and the following disclaimer in the 131be5d704SMark Murray * documentation and/or other materials provided with the distribution. 141be5d704SMark Murray * 3. All advertising materials mentioning features or use of this software 151be5d704SMark Murray * must display the following acknowledgement: 161be5d704SMark Murray * This product includes software developed by Sean Eric Fagan 171be5d704SMark Murray * 4. Neither the name of the author may be used to endorse or promote 181be5d704SMark Murray * products derived from this software without specific prior written 191be5d704SMark Murray * permission. 201be5d704SMark Murray * 211be5d704SMark Murray * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 221be5d704SMark Murray * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 231be5d704SMark Murray * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 241be5d704SMark Murray * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 251be5d704SMark Murray * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 261be5d704SMark Murray * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 271be5d704SMark Murray * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 281be5d704SMark Murray * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 291be5d704SMark Murray * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 301be5d704SMark Murray * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 311be5d704SMark Murray * SUCH DAMAGE. 321be5d704SMark Murray */ 331be5d704SMark Murray 34d70876fdSJohn Baldwin extern int print_line_prefix(struct trussinfo *); 352b75c8adSJohn Baldwin extern void setup_and_wait(struct trussinfo *, char **); 362b75c8adSJohn Baldwin extern void start_tracing(struct trussinfo *, pid_t); 371be5d704SMark Murray extern void restore_proc(int); 3813e5e6b6SJohn Baldwin extern void decode_siginfo(FILE *, siginfo_t *); 392b75c8adSJohn Baldwin extern void eventloop(struct trussinfo *); 40