Deleted Added
full compact
main.c (101373) main.c (101423)
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.

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

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#ifndef lint
33static const char rcsid[] =
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.

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

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#ifndef lint
33static const char rcsid[] =
34 "$FreeBSD: head/usr.bin/truss/main.c 101373 2002-08-05 12:22:55Z mdodd $";
34 "$FreeBSD: head/usr.bin/truss/main.c 101423 2002-08-06 12:46:14Z mdodd $";
35#endif /* not lint */
36
37/*
38 * The main module for truss. Suprisingly simple, but, then, the other
39 * files handle the bulk of the work. And, of course, the kernel has to
40 * do a lot of the work :).
41 */
42
43#include <sys/param.h>
44#include <sys/ioctl.h>
45#include <sys/pioctl.h>
35#endif /* not lint */
36
37/*
38 * The main module for truss. Suprisingly simple, but, then, the other
39 * files handle the bulk of the work. And, of course, the kernel has to
40 * do a lot of the work :).
41 */
42
43#include <sys/param.h>
44#include <sys/ioctl.h>
45#include <sys/pioctl.h>
46#include <sys/time.h>
47
48#include <err.h>
49#include <errno.h>
50#include <fcntl.h>
51#include <signal.h>
52#include <stdio.h>
53#include <stdlib.h>
54#include <string.h>
46
47#include <err.h>
48#include <errno.h>
49#include <fcntl.h>
50#include <signal.h>
51#include <stdio.h>
52#include <stdlib.h>
53#include <string.h>
54#include <time.h>
55#include <unistd.h>
56
57#include "truss.h"
58#include "extern.h"
59
60/*
61 * It's difficult to parameterize this because it must be
62 * accessible in a signal handler.

--- 249 unchanged lines hidden ---
55#include <unistd.h>
56
57#include "truss.h"
58#include "extern.h"
59
60/*
61 * It's difficult to parameterize this because it must be
62 * accessible in a signal handler.

--- 249 unchanged lines hidden ---