187703Smarkm/* 2204977Simp * Copyright 1997 Sean Eric Fagan 387703Smarkm * 487703Smarkm * Redistribution and use in source and binary forms, with or without 587703Smarkm * modification, are permitted provided that the following conditions 687703Smarkm * are met: 787703Smarkm * 1. Redistributions of source code must retain the above copyright 887703Smarkm * notice, this list of conditions and the following disclaimer. 987703Smarkm * 2. Redistributions in binary form must reproduce the above copyright 1087703Smarkm * notice, this list of conditions and the following disclaimer in the 1187703Smarkm * documentation and/or other materials provided with the distribution. 1287703Smarkm * 3. All advertising materials mentioning features or use of this software 1387703Smarkm * must display the following acknowledgement: 1487703Smarkm * This product includes software developed by Sean Eric Fagan 1587703Smarkm * 4. Neither the name of the author may be used to endorse or promote 1687703Smarkm * products derived from this software without specific prior written 1787703Smarkm * permission. 1887703Smarkm * 1987703Smarkm * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 2087703Smarkm * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2187703Smarkm * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2287703Smarkm * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 2387703Smarkm * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2487703Smarkm * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2587703Smarkm * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2687703Smarkm * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2787703Smarkm * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2887703Smarkm * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2987703Smarkm * SUCH DAMAGE. 3087703Smarkm * 3187703Smarkm * $FreeBSD$ 3287703Smarkm */ 3387703Smarkm 34298427Sjhbextern int print_line_prefix(struct trussinfo *); 35290052Sjhbextern void setup_and_wait(struct trussinfo *, char **); 36290052Sjhbextern void start_tracing(struct trussinfo *, pid_t); 3787703Smarkmextern void restore_proc(int); 38290052Sjhbextern void eventloop(struct trussinfo *); 39226608Sdesextern const char *ioctlname(unsigned long val); 40132306Salfredextern char *strsig(int sig); 41