11be5d704SMark Murray /* 21be5d704SMark Murray * Copryight 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 341be5d704SMark Murray extern int setup_and_wait(char **); 351be5d704SMark Murray extern int start_tracing(int, int); 361be5d704SMark Murray extern void restore_proc(int); 371be5d704SMark Murray extern const char *ioctlname(register_t val); 381be5d704SMark Murray #ifdef __alpha__ 391be5d704SMark Murray extern void alpha_syscall_entry(int, int); 401be5d704SMark Murray extern void alpha_syscall_exit(int, int); 411be5d704SMark Murray #endif 421be5d704SMark Murray #ifdef __i386__ 431be5d704SMark Murray extern void i386_syscall_entry(int, int); 441be5d704SMark Murray extern void i386_syscall_exit(int, int); 451be5d704SMark Murray extern void i386_linux_syscall_entry(int, int); 461be5d704SMark Murray extern void i386_linux_syscall_exit(int, int); 471be5d704SMark Murray #endif 48