xref: /freebsd/usr.bin/truss/extern.h (revision d70876fd7e2fe46f9d1fb2212a2687f9684ccb7a)
11be5d704SMark Murray /*
20a6c71f8SWarner Losh  * Copyright 1997 Sean Eric Fagan
31be5d704SMark Murray  *
41be5d704SMark Murray  * Redistribution and use in source and binary forms, with or without
51be5d704SMark Murray  * modification, are permitted provided that the following conditions
61be5d704SMark Murray  * are met:
71be5d704SMark Murray  * 1. Redistributions of source code must retain the above copyright
81be5d704SMark Murray  *    notice, this list of conditions and the following disclaimer.
91be5d704SMark Murray  * 2. Redistributions in binary form must reproduce the above copyright
101be5d704SMark Murray  *    notice, this list of conditions and the following disclaimer in the
111be5d704SMark Murray  *    documentation and/or other materials provided with the distribution.
121be5d704SMark Murray  * 3. All advertising materials mentioning features or use of this software
131be5d704SMark Murray  *    must display the following acknowledgement:
141be5d704SMark Murray  *	This product includes software developed by Sean Eric Fagan
151be5d704SMark Murray  * 4. Neither the name of the author may be used to endorse or promote
161be5d704SMark Murray  *    products derived from this software without specific prior written
171be5d704SMark Murray  *    permission.
181be5d704SMark Murray  *
191be5d704SMark Murray  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
201be5d704SMark Murray  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
211be5d704SMark Murray  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
221be5d704SMark Murray  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
231be5d704SMark Murray  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
241be5d704SMark Murray  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
251be5d704SMark Murray  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
261be5d704SMark Murray  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
271be5d704SMark Murray  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
281be5d704SMark Murray  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
291be5d704SMark Murray  * SUCH DAMAGE.
301be5d704SMark Murray  *
311be5d704SMark Murray  * $FreeBSD$
321be5d704SMark Murray  */
331be5d704SMark Murray 
34*d70876fdSJohn 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);
382b75c8adSJohn Baldwin extern void eventloop(struct trussinfo *);
39c04743daSDag-Erling Smørgrav extern const char *ioctlname(unsigned long val);
40d75300bfSAlfred Perlstein extern char *strsig(int sig);
41