Deleted Added
full compact
main.c (153963) main.c (154047)
1/*
2 * Copryight 1997 Sean Eric Fagan
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 */
31
32#include <sys/cdefs.h>
1/*
2 * Copryight 1997 Sean Eric Fagan
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/usr.bin/truss/main.c 153963 2006-01-02 08:36:25Z brian $");
33__FBSDID("$FreeBSD: head/usr.bin/truss/main.c 154047 2006-01-05 05:57:47Z grehan $");
34
35/*
36 * The main module for truss. Suprisingly simple, but, then, the other
37 * files handle the bulk of the work. And, of course, the kernel has to
38 * do a lot of the work :).
39 */
40
41#include <sys/param.h>

--- 52 unchanged lines hidden (view full) ---

94 { "FreeBSD a.out", i386_syscall_entry, i386_syscall_exit },
95 { "FreeBSD ELF", i386_syscall_entry, i386_syscall_exit },
96 { "FreeBSD ELF32", i386_syscall_entry, i386_syscall_exit },
97 { "Linux ELF", i386_linux_syscall_entry, i386_linux_syscall_exit },
98#endif
99#ifdef __ia64__
100 { "FreeBSD ELF64", ia64_syscall_entry, ia64_syscall_exit },
101#endif
34
35/*
36 * The main module for truss. Suprisingly simple, but, then, the other
37 * files handle the bulk of the work. And, of course, the kernel has to
38 * do a lot of the work :).
39 */
40
41#include <sys/param.h>

--- 52 unchanged lines hidden (view full) ---

94 { "FreeBSD a.out", i386_syscall_entry, i386_syscall_exit },
95 { "FreeBSD ELF", i386_syscall_entry, i386_syscall_exit },
96 { "FreeBSD ELF32", i386_syscall_entry, i386_syscall_exit },
97 { "Linux ELF", i386_linux_syscall_entry, i386_linux_syscall_exit },
98#endif
99#ifdef __ia64__
100 { "FreeBSD ELF64", ia64_syscall_entry, ia64_syscall_exit },
101#endif
102#ifdef __powerpc__
103 { "FreeBSD ELF", powerpc_syscall_entry, powerpc_syscall_exit },
104 { "FreeBSD ELF32", powerpc_syscall_entry, powerpc_syscall_exit },
105#endif
102#ifdef __sparc64__
103 { "FreeBSD ELF64", sparc64_syscall_entry, sparc64_syscall_exit },
104#endif
105 { 0, 0, 0 },
106};
107
108/*
109 * Set the execution type. This is called after every exec, and when

--- 257 unchanged lines hidden ---
106#ifdef __sparc64__
107 { "FreeBSD ELF64", sparc64_syscall_entry, sparc64_syscall_exit },
108#endif
109 { 0, 0, 0 },
110};
111
112/*
113 * Set the execution type. This is called after every exec, and when

--- 257 unchanged lines hidden ---