summaryrefslogtreecommitdiffstats
path: root/usr.bin/truss
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2001-10-22 02:02:00 +0000
committerdes <des@FreeBSD.org>2001-10-22 02:02:00 +0000
commit18f95152649910f5d5a99303693e1e9f36eb028a (patch)
tree37d71dad68e0c2b5b64b60bbdeffa73eade242c4 /usr.bin/truss
parent095e24ea8722411d703fc3f8b9150e6078ea8e4a (diff)
downloadFreeBSD-src-18f95152649910f5d5a99303693e1e9f36eb028a.zip
FreeBSD-src-18f95152649910f5d5a99303693e1e9f36eb028a.tar.gz
#include <sys/proc.h> where needed (for the stop event definitions) and
reorder includes everywhere to conform to style(9).
Diffstat (limited to 'usr.bin/truss')
-rw-r--r--usr.bin/truss/alpha-fbsd.c13
-rw-r--r--usr.bin/truss/amd64-fbsd32.c13
-rw-r--r--usr.bin/truss/amd64-linux32.c11
-rw-r--r--usr.bin/truss/i386-fbsd.c13
-rw-r--r--usr.bin/truss/i386-linux.c11
-rw-r--r--usr.bin/truss/main.c7
-rw-r--r--usr.bin/truss/setup.c10
7 files changed, 49 insertions, 29 deletions
diff --git a/usr.bin/truss/alpha-fbsd.c b/usr.bin/truss/alpha-fbsd.c
index 6b58e22..d6ff912 100644
--- a/usr.bin/truss/alpha-fbsd.c
+++ b/usr.bin/truss/alpha-fbsd.c
@@ -44,6 +44,14 @@ static const char rcsid[] =
* This file is almost nothing more than a slightly-edited i386-fbsd.c.
*/
+#include <sys/types.h>
+#include <sys/ioctl.h>
+#include <sys/pioctl.h>
+#include <sys/syscall.h>
+
+#include <machine/reg.h>
+#include <machine/psl.h>
+
#include <err.h>
#include <errno.h>
#include <fcntl.h>
@@ -52,11 +60,6 @@ static const char rcsid[] =
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <sys/ioctl.h>
-#include <sys/pioctl.h>
-#include <machine/reg.h>
-#include <machine/psl.h>
-#include <sys/syscall.h>
#include "syscall.h"
diff --git a/usr.bin/truss/amd64-fbsd32.c b/usr.bin/truss/amd64-fbsd32.c
index 065c90b..57641c3 100644
--- a/usr.bin/truss/amd64-fbsd32.c
+++ b/usr.bin/truss/amd64-fbsd32.c
@@ -42,6 +42,14 @@ static const char rcsid[] =
* names used for the various structures are confusing, I sadly admit.
*/
+#include <sys/types.h>
+#include <sys/ioctl.h>
+#include <sys/pioctl.h>
+#include <sys/syscall.h>
+
+#include <machine/reg.h>
+#include <machine/psl.h>
+
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
@@ -49,11 +57,6 @@ static const char rcsid[] =
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <sys/ioctl.h>
-#include <sys/pioctl.h>
-#include <machine/reg.h>
-#include <machine/psl.h>
-#include <sys/syscall.h>
#include "syscall.h"
diff --git a/usr.bin/truss/amd64-linux32.c b/usr.bin/truss/amd64-linux32.c
index d95c644..158bc95 100644
--- a/usr.bin/truss/amd64-linux32.c
+++ b/usr.bin/truss/amd64-linux32.c
@@ -40,6 +40,13 @@ static const char rcsid[] =
* it in support routines that can be used by any personality support.
*/
+#include <sys/types.h>
+#include <sys/ioctl.h>
+#include <sys/pioctl.h>
+
+#include <machine/reg.h>
+#include <machine/psl.h>
+
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
@@ -47,10 +54,6 @@ static const char rcsid[] =
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <sys/ioctl.h>
-#include <sys/pioctl.h>
-#include <machine/reg.h>
-#include <machine/psl.h>
#include "syscall.h"
diff --git a/usr.bin/truss/i386-fbsd.c b/usr.bin/truss/i386-fbsd.c
index 065c90b..57641c3 100644
--- a/usr.bin/truss/i386-fbsd.c
+++ b/usr.bin/truss/i386-fbsd.c
@@ -42,6 +42,14 @@ static const char rcsid[] =
* names used for the various structures are confusing, I sadly admit.
*/
+#include <sys/types.h>
+#include <sys/ioctl.h>
+#include <sys/pioctl.h>
+#include <sys/syscall.h>
+
+#include <machine/reg.h>
+#include <machine/psl.h>
+
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
@@ -49,11 +57,6 @@ static const char rcsid[] =
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <sys/ioctl.h>
-#include <sys/pioctl.h>
-#include <machine/reg.h>
-#include <machine/psl.h>
-#include <sys/syscall.h>
#include "syscall.h"
diff --git a/usr.bin/truss/i386-linux.c b/usr.bin/truss/i386-linux.c
index d95c644..158bc95 100644
--- a/usr.bin/truss/i386-linux.c
+++ b/usr.bin/truss/i386-linux.c
@@ -40,6 +40,13 @@ static const char rcsid[] =
* it in support routines that can be used by any personality support.
*/
+#include <sys/types.h>
+#include <sys/ioctl.h>
+#include <sys/pioctl.h>
+
+#include <machine/reg.h>
+#include <machine/psl.h>
+
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
@@ -47,10 +54,6 @@ static const char rcsid[] =
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <sys/ioctl.h>
-#include <sys/pioctl.h>
-#include <machine/reg.h>
-#include <machine/psl.h>
#include "syscall.h"
diff --git a/usr.bin/truss/main.c b/usr.bin/truss/main.c
index 7ea0dd0..bf475b2 100644
--- a/usr.bin/truss/main.c
+++ b/usr.bin/truss/main.c
@@ -40,6 +40,11 @@ static const char rcsid[] =
* do a lot of the work :).
*/
+#include <sys/param.h>
+#include <sys/ioctl.h>
+#include <sys/pioctl.h>
+#include <sys/proc.h>
+
#include <err.h>
#include <errno.h>
#include <fcntl.h>
@@ -48,8 +53,6 @@ static const char rcsid[] =
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <sys/ioctl.h>
-#include <sys/pioctl.h>
extern int setup_and_wait(char **);
extern int start_tracing(int, int);
diff --git a/usr.bin/truss/setup.c b/usr.bin/truss/setup.c
index 5af1fab..3f00df0 100644
--- a/usr.bin/truss/setup.c
+++ b/usr.bin/truss/setup.c
@@ -39,6 +39,12 @@ static const char rcsid[] =
* I'm afraid.
*/
+#include <sys/param.h>
+#include <sys/ioctl.h>
+#include <sys/pioctl.h>
+#include <sys/proc.h>
+#include <sys/wait.h>
+
#include <err.h>
#include <errno.h>
#include <fcntl.h>
@@ -47,10 +53,6 @@ static const char rcsid[] =
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <sys/ioctl.h>
-#include <sys/pioctl.h>
-#include <sys/types.h>
-#include <sys/wait.h>
static int evflags = 0;
OpenPOWER on IntegriCloud