aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/systat
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2009-12-13 03:14:06 +0000
committerXin LI <delphij@FreeBSD.org>2009-12-13 03:14:06 +0000
commit821df508e882ca532bec415852399c6558f22f7a (patch)
treeec0e60a06ede057b5afe3f1a6eccc05036f5c424 /usr.bin/systat
parent066b1a5c7bda073983abfd26c58f78fd353b6e95 (diff)
Revert most part of 200420 as requested, as more review and polish is
needed.
Notes
Notes: svn path=/head/; revision=200462
Diffstat (limited to 'usr.bin/systat')
-rw-r--r--usr.bin/systat/fetch.c1
-rw-r--r--usr.bin/systat/icmp.c2
-rw-r--r--usr.bin/systat/iostat.c1
-rw-r--r--usr.bin/systat/ip.c4
-rw-r--r--usr.bin/systat/main.c1
-rw-r--r--usr.bin/systat/mbufs.c1
-rw-r--r--usr.bin/systat/mode.c2
-rw-r--r--usr.bin/systat/netstat.c1
-rw-r--r--usr.bin/systat/swap.c1
-rw-r--r--usr.bin/systat/tcp.c2
-rw-r--r--usr.bin/systat/vmstat.c1
11 files changed, 17 insertions, 0 deletions
diff --git a/usr.bin/systat/fetch.c b/usr.bin/systat/fetch.c
index 124c3b9763f1..0edce342e7b2 100644
--- a/usr.bin/systat/fetch.c
+++ b/usr.bin/systat/fetch.c
@@ -42,6 +42,7 @@ static const char sccsid[] = "@(#)fetch.c 8.1 (Berkeley) 6/6/93";
#include <sys/types.h>
#include <sys/sysctl.h>
+#include <err.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
diff --git a/usr.bin/systat/icmp.c b/usr.bin/systat/icmp.c
index acf6b3fca99c..2d5f8e4e1ff9 100644
--- a/usr.bin/systat/icmp.c
+++ b/usr.bin/systat/icmp.c
@@ -54,7 +54,9 @@ static char sccsid[] = "@(#)mbufs.c 8.1 (Berkeley) 6/6/93";
#include <netinet/ip_icmp.h>
#include <netinet/icmp_var.h>
+#include <stdlib.h>
#include <string.h>
+#include <paths.h>
#include "systat.h"
#include "extern.h"
#include "mode.h"
diff --git a/usr.bin/systat/iostat.c b/usr.bin/systat/iostat.c
index d3573af5546c..90e1578efeb7 100644
--- a/usr.bin/systat/iostat.c
+++ b/usr.bin/systat/iostat.c
@@ -73,6 +73,7 @@ static const char sccsid[] = "@(#)iostat.c 8.1 (Berkeley) 6/6/93";
#include <devstat.h>
#include <err.h>
#include <nlist.h>
+#include <paths.h>
#include <stdlib.h>
#include <string.h>
diff --git a/usr.bin/systat/ip.c b/usr.bin/systat/ip.c
index 44ed6ac97069..091432857516 100644
--- a/usr.bin/systat/ip.c
+++ b/usr.bin/systat/ip.c
@@ -55,6 +55,10 @@ static const char sccsid[] = "@(#)mbufs.c 8.1 (Berkeley) 6/6/93";
#include <netinet/udp.h>
#include <netinet/udp_var.h>
+#include <stdlib.h>
+#include <string.h>
+#include <paths.h>
+
#include "systat.h"
#include "extern.h"
#include "mode.h"
diff --git a/usr.bin/systat/main.c b/usr.bin/systat/main.c
index 90c6208759d6..d092f10fe19a 100644
--- a/usr.bin/systat/main.c
+++ b/usr.bin/systat/main.c
@@ -53,6 +53,7 @@ static const char copyright[] =
#include <limits.h>
#include <locale.h>
#include <nlist.h>
+#include <paths.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/usr.bin/systat/mbufs.c b/usr.bin/systat/mbufs.c
index 9b0d4a8c22ca..37be1ef3d593 100644
--- a/usr.bin/systat/mbufs.c
+++ b/usr.bin/systat/mbufs.c
@@ -47,6 +47,7 @@ static const char sccsid[] = "@(#)mbufs.c 8.1 (Berkeley) 6/6/93";
#include <errno.h>
#include <stdlib.h>
#include <string.h>
+#include <paths.h>
#include "systat.h"
#include "extern.h"
diff --git a/usr.bin/systat/mode.c b/usr.bin/systat/mode.c
index 745a283ff398..5f64e3ec237f 100644
--- a/usr.bin/systat/mode.c
+++ b/usr.bin/systat/mode.c
@@ -60,6 +60,8 @@
__FBSDID("$FreeBSD$");
+#include <sys/types.h>
+
#include "systat.h"
#include "extern.h"
#include "mode.h"
diff --git a/usr.bin/systat/netstat.c b/usr.bin/systat/netstat.c
index eb469f3e06bc..14fc4956f343 100644
--- a/usr.bin/systat/netstat.c
+++ b/usr.bin/systat/netstat.c
@@ -74,6 +74,7 @@ static const char sccsid[] = "@(#)netstat.c 8.1 (Berkeley) 6/6/93";
#include <netdb.h>
#include <nlist.h>
+#include <paths.h>
#include <stdlib.h>
#include <string.h>
diff --git a/usr.bin/systat/swap.c b/usr.bin/systat/swap.c
index dca29b508bf1..43df8eb8aa1e 100644
--- a/usr.bin/systat/swap.c
+++ b/usr.bin/systat/swap.c
@@ -53,6 +53,7 @@ static const char sccsid[] = "@(#)swap.c 8.3 (Berkeley) 4/29/95";
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
+#include <err.h>
#include "systat.h"
#include "extern.h"
diff --git a/usr.bin/systat/tcp.c b/usr.bin/systat/tcp.c
index 4a69a4f0e2dc..b7f7592208cf 100644
--- a/usr.bin/systat/tcp.c
+++ b/usr.bin/systat/tcp.c
@@ -57,7 +57,9 @@ __FBSDID("$FreeBSD$");
#include <netinet/tcp_timer.h>
#include <netinet/tcp_var.h>
+#include <stdlib.h>
#include <string.h>
+#include <paths.h>
#include "systat.h"
#include "extern.h"
diff --git a/usr.bin/systat/vmstat.c b/usr.bin/systat/vmstat.c
index 6585d938b265..742e2f7b4f07 100644
--- a/usr.bin/systat/vmstat.c
+++ b/usr.bin/systat/vmstat.c
@@ -60,6 +60,7 @@ static const char sccsid[] = "@(#)vmstat.c 8.2 (Berkeley) 1/12/94";
#include <errno.h>
#include <langinfo.h>
#include <nlist.h>
+#include <paths.h>
#include <signal.h>
#include <stdlib.h>
#include <string.h>