aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-08-10 17:59:11 +0000
committerEric Andersen <andersen@codepoet.org>2000-08-10 17:59:11 +0000
commit88f50b6bf5e79ca9d5f30e5899ace1cbda0950a4 (patch)
tree4871d5fdfd0c601396ef4651c3d1458bedb5a854
parent40406e6bad9abcd58977ed92194c9061d85c9e47 (diff)
downloadbusybox-w32-88f50b6bf5e79ca9d5f30e5899ace1cbda0950a4.tar.gz
busybox-w32-88f50b6bf5e79ca9d5f30e5899ace1cbda0950a4.tar.bz2
busybox-w32-88f50b6bf5e79ca9d5f30e5899ace1cbda0950a4.zip
Some #include updates.
-Erik
-rw-r--r--applets/busybox.c8
-rw-r--r--archival/gunzip.c1
-rw-r--r--archival/gzip.c1
-rw-r--r--busybox.c8
-rw-r--r--console-tools/dumpkmap.c2
-rw-r--r--console-tools/loadacm.c1
-rw-r--r--console-tools/loadfont.c1
-rw-r--r--coreutils/date.c1
-rw-r--r--coreutils/df.c1
-rw-r--r--coreutils/ls.c1
-rw-r--r--coreutils/mkfifo.c1
-rw-r--r--coreutils/mknod.c1
-rw-r--r--coreutils/printf.c1
-rw-r--r--coreutils/tail.c1
-rw-r--r--coreutils/test.c1
-rw-r--r--coreutils/touch.c1
-rw-r--r--date.c1
-rw-r--r--df.c1
-rw-r--r--dumpkmap.c2
-rw-r--r--dutmp.c1
-rw-r--r--findutils/which.c1
-rw-r--r--freeramdisk.c1
-rw-r--r--fsck_minix.c1
-rw-r--r--gunzip.c1
-rw-r--r--gzip.c1
-rw-r--r--kill.c1
-rw-r--r--loadacm.c1
-rw-r--r--loadfont.c1
-rw-r--r--logger.c1
-rw-r--r--ls.c1
-rw-r--r--makedevs.c1
-rw-r--r--miscutils/dutmp.c1
-rw-r--r--miscutils/makedevs.c1
-rw-r--r--mkfifo.c1
-rw-r--r--mkfs_minix.c1
-rw-r--r--mknod.c1
-rw-r--r--mkswap.c1
-rw-r--r--nfsmount.c1
-rw-r--r--printf.c1
-rw-r--r--procps/kill.c1
-rw-r--r--sysklogd/logger.c1
-rw-r--r--sysklogd/syslogd.c1
-rw-r--r--syslogd.c1
-rw-r--r--tail.c1
-rw-r--r--test.c1
-rw-r--r--touch.c1
-rw-r--r--util-linux/freeramdisk.c1
-rw-r--r--util-linux/fsck_minix.c1
-rw-r--r--util-linux/mkfs_minix.c1
-rw-r--r--util-linux/mkswap.c1
-rw-r--r--util-linux/nfsmount.c1
-rw-r--r--utility.c1
-rw-r--r--which.c1
53 files changed, 12 insertions, 57 deletions
diff --git a/applets/busybox.c b/applets/busybox.c
index 1ed44ed9b..2a05e1551 100644
--- a/applets/busybox.c
+++ b/applets/busybox.c
@@ -32,7 +32,7 @@ const struct BB_applet applets[] = {
32 {"chown", chmod_chown_chgrp_main, _BB_DIR_BIN, chown_usage}, 32 {"chown", chmod_chown_chgrp_main, _BB_DIR_BIN, chown_usage},
33#endif 33#endif
34#ifdef BB_CHROOT 34#ifdef BB_CHROOT
35 {"chroot", chroot_main, _BB_DIR_SBIN, chroot_usage}, 35 {"chroot", chroot_main, _BB_DIR_USR_SBIN, chroot_usage},
36#endif 36#endif
37#ifdef BB_CLEAR 37#ifdef BB_CLEAR
38 {"clear", clear_main, _BB_DIR_USR_BIN, clear_usage}, 38 {"clear", clear_main, _BB_DIR_USR_BIN, clear_usage},
@@ -65,7 +65,7 @@ const struct BB_applet applets[] = {
65 {"dmesg", dmesg_main, _BB_DIR_BIN, dmesg_usage}, 65 {"dmesg", dmesg_main, _BB_DIR_BIN, dmesg_usage},
66#endif 66#endif
67#ifdef BB_DU 67#ifdef BB_DU
68 {"du", du_main, _BB_DIR_BIN, du_usage}, 68 {"du", du_main, _BB_DIR_USR_BIN, du_usage},
69#endif 69#endif
70#ifdef BB_DUMPKMAP 70#ifdef BB_DUMPKMAP
71 {"dumpkmap", dumpkmap_main, _BB_DIR_BIN, dumpkmap_usage}, 71 {"dumpkmap", dumpkmap_main, _BB_DIR_BIN, dumpkmap_usage},
@@ -251,7 +251,7 @@ const struct BB_applet applets[] = {
251 {"sleep", sleep_main, _BB_DIR_BIN, sleep_usage}, 251 {"sleep", sleep_main, _BB_DIR_BIN, sleep_usage},
252#endif 252#endif
253#ifdef BB_SORT 253#ifdef BB_SORT
254 {"sort", sort_main, _BB_DIR_BIN, sort_usage}, 254 {"sort", sort_main, _BB_DIR_USR_BIN, sort_usage},
255#endif 255#endif
256#ifdef BB_SYNC 256#ifdef BB_SYNC
257 {"sync", sync_main, _BB_DIR_BIN, sync_usage}, 257 {"sync", sync_main, _BB_DIR_BIN, sync_usage},
@@ -278,7 +278,7 @@ const struct BB_applet applets[] = {
278 {"test", test_main, _BB_DIR_USR_BIN, test_usage}, 278 {"test", test_main, _BB_DIR_USR_BIN, test_usage},
279#endif 279#endif
280#ifdef BB_TEE 280#ifdef BB_TEE
281 {"tee", tee_main, _BB_DIR_BIN, tee_usage}, 281 {"tee", tee_main, _BB_DIR_USR_BIN, tee_usage},
282#endif 282#endif
283#ifdef BB_TOUCH 283#ifdef BB_TOUCH
284 {"touch", touch_main, _BB_DIR_USR_BIN, touch_usage}, 284 {"touch", touch_main, _BB_DIR_USR_BIN, touch_usage},
diff --git a/archival/gunzip.c b/archival/gunzip.c
index 330dee335..20af97aed 100644
--- a/archival/gunzip.c
+++ b/archival/gunzip.c
@@ -94,7 +94,6 @@ static char *license_msg[] = {
94#include <ctype.h> 94#include <ctype.h>
95#include <sys/types.h> 95#include <sys/types.h>
96#include <signal.h> 96#include <signal.h>
97#include <sys/stat.h>
98#include <errno.h> 97#include <errno.h>
99 98
100/* #include "tailor.h" */ 99/* #include "tailor.h" */
diff --git a/archival/gzip.c b/archival/gzip.c
index 19ad1a729..591b8cc7f 100644
--- a/archival/gzip.c
+++ b/archival/gzip.c
@@ -1609,7 +1609,6 @@ ulg deflate()
1609#include <ctype.h> 1609#include <ctype.h>
1610#include <sys/types.h> 1610#include <sys/types.h>
1611#include <signal.h> 1611#include <signal.h>
1612#include <sys/stat.h>
1613#include <errno.h> 1612#include <errno.h>
1614 1613
1615 /* configuration */ 1614 /* configuration */
diff --git a/busybox.c b/busybox.c
index 1ed44ed9b..2a05e1551 100644
--- a/busybox.c
+++ b/busybox.c
@@ -32,7 +32,7 @@ const struct BB_applet applets[] = {
32 {"chown", chmod_chown_chgrp_main, _BB_DIR_BIN, chown_usage}, 32 {"chown", chmod_chown_chgrp_main, _BB_DIR_BIN, chown_usage},
33#endif 33#endif
34#ifdef BB_CHROOT 34#ifdef BB_CHROOT
35 {"chroot", chroot_main, _BB_DIR_SBIN, chroot_usage}, 35 {"chroot", chroot_main, _BB_DIR_USR_SBIN, chroot_usage},
36#endif 36#endif
37#ifdef BB_CLEAR 37#ifdef BB_CLEAR
38 {"clear", clear_main, _BB_DIR_USR_BIN, clear_usage}, 38 {"clear", clear_main, _BB_DIR_USR_BIN, clear_usage},
@@ -65,7 +65,7 @@ const struct BB_applet applets[] = {
65 {"dmesg", dmesg_main, _BB_DIR_BIN, dmesg_usage}, 65 {"dmesg", dmesg_main, _BB_DIR_BIN, dmesg_usage},
66#endif 66#endif
67#ifdef BB_DU 67#ifdef BB_DU
68 {"du", du_main, _BB_DIR_BIN, du_usage}, 68 {"du", du_main, _BB_DIR_USR_BIN, du_usage},
69#endif 69#endif
70#ifdef BB_DUMPKMAP 70#ifdef BB_DUMPKMAP
71 {"dumpkmap", dumpkmap_main, _BB_DIR_BIN, dumpkmap_usage}, 71 {"dumpkmap", dumpkmap_main, _BB_DIR_BIN, dumpkmap_usage},
@@ -251,7 +251,7 @@ const struct BB_applet applets[] = {
251 {"sleep", sleep_main, _BB_DIR_BIN, sleep_usage}, 251 {"sleep", sleep_main, _BB_DIR_BIN, sleep_usage},
252#endif 252#endif
253#ifdef BB_SORT 253#ifdef BB_SORT
254 {"sort", sort_main, _BB_DIR_BIN, sort_usage}, 254 {"sort", sort_main, _BB_DIR_USR_BIN, sort_usage},
255#endif 255#endif
256#ifdef BB_SYNC 256#ifdef BB_SYNC
257 {"sync", sync_main, _BB_DIR_BIN, sync_usage}, 257 {"sync", sync_main, _BB_DIR_BIN, sync_usage},
@@ -278,7 +278,7 @@ const struct BB_applet applets[] = {
278 {"test", test_main, _BB_DIR_USR_BIN, test_usage}, 278 {"test", test_main, _BB_DIR_USR_BIN, test_usage},
279#endif 279#endif
280#ifdef BB_TEE 280#ifdef BB_TEE
281 {"tee", tee_main, _BB_DIR_BIN, tee_usage}, 281 {"tee", tee_main, _BB_DIR_USR_BIN, tee_usage},
282#endif 282#endif
283#ifdef BB_TOUCH 283#ifdef BB_TOUCH
284 {"touch", touch_main, _BB_DIR_USR_BIN, touch_usage}, 284 {"touch", touch_main, _BB_DIR_USR_BIN, touch_usage},
diff --git a/console-tools/dumpkmap.c b/console-tools/dumpkmap.c
index 4ce6e8698..13b7d8937 100644
--- a/console-tools/dumpkmap.c
+++ b/console-tools/dumpkmap.c
@@ -81,7 +81,7 @@ int dumpkmap_main(int argc, char **argv)
81 errorMsg("ioctl returned: %s, %s, %s, %xqq\n",strerror(errno),(char *)&ke.kb_index,(char *)&ke.kb_table,(int)&ke.kb_value); 81 errorMsg("ioctl returned: %s, %s, %s, %xqq\n",strerror(errno),(char *)&ke.kb_index,(char *)&ke.kb_table,(int)&ke.kb_value);
82 } 82 }
83 else { 83 else {
84 write(1,&ke.kb_value,2); 84 write(1,(void*)&ke.kb_value,2);
85 } 85 }
86 86
87 } 87 }
diff --git a/console-tools/loadacm.c b/console-tools/loadacm.c
index 2d70ffc5d..7f669bf08 100644
--- a/console-tools/loadacm.c
+++ b/console-tools/loadacm.c
@@ -18,7 +18,6 @@
18#include <errno.h> 18#include <errno.h>
19#include <signal.h> 19#include <signal.h>
20#include <sys/types.h> 20#include <sys/types.h>
21#include <sys/stat.h>
22#include <sys/ioctl.h> 21#include <sys/ioctl.h>
23#include <sys/kd.h> 22#include <sys/kd.h>
24 23
diff --git a/console-tools/loadfont.c b/console-tools/loadfont.c
index 622142925..927c2bad4 100644
--- a/console-tools/loadfont.c
+++ b/console-tools/loadfont.c
@@ -15,7 +15,6 @@
15#include <stdlib.h> 15#include <stdlib.h>
16#include <unistd.h> 16#include <unistd.h>
17#include <sys/types.h> 17#include <sys/types.h>
18#include <sys/stat.h>
19#include <dirent.h> 18#include <dirent.h>
20#include <errno.h> 19#include <errno.h>
21#include <sys/ioctl.h> 20#include <sys/ioctl.h>
diff --git a/coreutils/date.c b/coreutils/date.c
index e0f0f3129..571a55625 100644
--- a/coreutils/date.c
+++ b/coreutils/date.c
@@ -31,6 +31,7 @@
31#include <unistd.h> 31#include <unistd.h>
32#include <time.h> 32#include <time.h>
33#include <stdio.h> 33#include <stdio.h>
34#include <getopt.h>
34 35
35 36
36/* This 'date' command supports only 2 time setting formats, 37/* This 'date' command supports only 2 time setting formats,
diff --git a/coreutils/df.c b/coreutils/df.c
index 714c79965..d8f8b7739 100644
--- a/coreutils/df.c
+++ b/coreutils/df.c
@@ -25,7 +25,6 @@
25#include "internal.h" 25#include "internal.h"
26#include <stdio.h> 26#include <stdio.h>
27#include <mntent.h> 27#include <mntent.h>
28#include <sys/stat.h>
29#include <sys/vfs.h> 28#include <sys/vfs.h>
30 29
31extern const char mtab_file[]; /* Defined in utility.c */ 30extern const char mtab_file[]; /* Defined in utility.c */
diff --git a/coreutils/ls.c b/coreutils/ls.c
index e56e3bcfb..d7455f427 100644
--- a/coreutils/ls.c
+++ b/coreutils/ls.c
@@ -50,7 +50,6 @@
50 50
51#include "internal.h" 51#include "internal.h"
52# include <sys/types.h> 52# include <sys/types.h>
53#include <sys/stat.h>
54#include <stdio.h> 53#include <stdio.h>
55#include <unistd.h> 54#include <unistd.h>
56#include <dirent.h> 55#include <dirent.h>
diff --git a/coreutils/mkfifo.c b/coreutils/mkfifo.c
index 3db17bbbc..5d4126ac0 100644
--- a/coreutils/mkfifo.c
+++ b/coreutils/mkfifo.c
@@ -23,7 +23,6 @@
23#include "internal.h" 23#include "internal.h"
24#include <stdio.h> 24#include <stdio.h>
25#include <sys/types.h> 25#include <sys/types.h>
26#include <sys/stat.h>
27#include <errno.h> 26#include <errno.h>
28 27
29extern int mkfifo_main(int argc, char **argv) 28extern int mkfifo_main(int argc, char **argv)
diff --git a/coreutils/mknod.c b/coreutils/mknod.c
index b51c8f3e3..b815aa198 100644
--- a/coreutils/mknod.c
+++ b/coreutils/mknod.c
@@ -24,7 +24,6 @@
24#include <stdio.h> 24#include <stdio.h>
25#include <errno.h> 25#include <errno.h>
26#include <sys/types.h> 26#include <sys/types.h>
27#include <sys/stat.h>
28#include <fcntl.h> 27#include <fcntl.h>
29#include <unistd.h> 28#include <unistd.h>
30 29
diff --git a/coreutils/printf.c b/coreutils/printf.c
index 6a87fc319..94b809348 100644
--- a/coreutils/printf.c
+++ b/coreutils/printf.c
@@ -51,7 +51,6 @@
51#include <unistd.h> 51#include <unistd.h>
52#include <stdio.h> 52#include <stdio.h>
53#include <sys/types.h> 53#include <sys/types.h>
54#include <sys/stat.h>
55#include <string.h> 54#include <string.h>
56#include <errno.h> 55#include <errno.h>
57#include <stdlib.h> 56#include <stdlib.h>
diff --git a/coreutils/tail.c b/coreutils/tail.c
index 627373bfd..6c4a6f468 100644
--- a/coreutils/tail.c
+++ b/coreutils/tail.c
@@ -32,7 +32,6 @@
32 32
33 */ 33 */
34#include <sys/types.h> 34#include <sys/types.h>
35#include <sys/stat.h>
36#include <fcntl.h> 35#include <fcntl.h>
37#include <stdio.h> 36#include <stdio.h>
38#include <stdlib.h> 37#include <stdlib.h>
diff --git a/coreutils/test.c b/coreutils/test.c
index 818b3db12..6dde718c7 100644
--- a/coreutils/test.c
+++ b/coreutils/test.c
@@ -33,7 +33,6 @@
33 33
34#include "internal.h" 34#include "internal.h"
35#include <sys/types.h> 35#include <sys/types.h>
36#include <sys/stat.h>
37#include <unistd.h> 36#include <unistd.h>
38#include <ctype.h> 37#include <ctype.h>
39#include <errno.h> 38#include <errno.h>
diff --git a/coreutils/touch.c b/coreutils/touch.c
index afdd265f7..464aedb55 100644
--- a/coreutils/touch.c
+++ b/coreutils/touch.c
@@ -25,7 +25,6 @@
25#include "internal.h" 25#include "internal.h"
26#include <stdio.h> 26#include <stdio.h>
27#include <sys/types.h> 27#include <sys/types.h>
28#include <sys/stat.h>
29#include <fcntl.h> 28#include <fcntl.h>
30#include <utime.h> 29#include <utime.h>
31#include <errno.h> 30#include <errno.h>
diff --git a/date.c b/date.c
index e0f0f3129..571a55625 100644
--- a/date.c
+++ b/date.c
@@ -31,6 +31,7 @@
31#include <unistd.h> 31#include <unistd.h>
32#include <time.h> 32#include <time.h>
33#include <stdio.h> 33#include <stdio.h>
34#include <getopt.h>
34 35
35 36
36/* This 'date' command supports only 2 time setting formats, 37/* This 'date' command supports only 2 time setting formats,
diff --git a/df.c b/df.c
index 714c79965..d8f8b7739 100644
--- a/df.c
+++ b/df.c
@@ -25,7 +25,6 @@
25#include "internal.h" 25#include "internal.h"
26#include <stdio.h> 26#include <stdio.h>
27#include <mntent.h> 27#include <mntent.h>
28#include <sys/stat.h>
29#include <sys/vfs.h> 28#include <sys/vfs.h>
30 29
31extern const char mtab_file[]; /* Defined in utility.c */ 30extern const char mtab_file[]; /* Defined in utility.c */
diff --git a/dumpkmap.c b/dumpkmap.c
index 4ce6e8698..13b7d8937 100644
--- a/dumpkmap.c
+++ b/dumpkmap.c
@@ -81,7 +81,7 @@ int dumpkmap_main(int argc, char **argv)
81 errorMsg("ioctl returned: %s, %s, %s, %xqq\n",strerror(errno),(char *)&ke.kb_index,(char *)&ke.kb_table,(int)&ke.kb_value); 81 errorMsg("ioctl returned: %s, %s, %s, %xqq\n",strerror(errno),(char *)&ke.kb_index,(char *)&ke.kb_table,(int)&ke.kb_value);
82 } 82 }
83 else { 83 else {
84 write(1,&ke.kb_value,2); 84 write(1,(void*)&ke.kb_value,2);
85 } 85 }
86 86
87 } 87 }
diff --git a/dutmp.c b/dutmp.c
index 047b8805f..5a6eb076b 100644
--- a/dutmp.c
+++ b/dutmp.c
@@ -14,7 +14,6 @@
14 14
15#include "internal.h" 15#include "internal.h"
16#include <sys/types.h> 16#include <sys/types.h>
17#include <sys/stat.h>
18#include <fcntl.h> 17#include <fcntl.h>
19 18
20#include <errno.h> 19#include <errno.h>
diff --git a/findutils/which.c b/findutils/which.c
index 943e10a57..b3fd934d7 100644
--- a/findutils/which.c
+++ b/findutils/which.c
@@ -23,7 +23,6 @@
23 23
24#include "internal.h" 24#include "internal.h"
25#include <stdio.h> 25#include <stdio.h>
26#include <sys/stat.h>
27#include <sys/param.h> 26#include <sys/param.h>
28 27
29extern int which_main(int argc, char **argv) 28extern int which_main(int argc, char **argv)
diff --git a/freeramdisk.c b/freeramdisk.c
index 2da2427c1..64915b313 100644
--- a/freeramdisk.c
+++ b/freeramdisk.c
@@ -24,7 +24,6 @@
24#include <stdio.h> 24#include <stdio.h>
25#include <string.h> 25#include <string.h>
26#include <sys/types.h> 26#include <sys/types.h>
27#include <sys/stat.h>
28#include <fcntl.h> 27#include <fcntl.h>
29#include <sys/ioctl.h> 28#include <sys/ioctl.h>
30#include <errno.h> 29#include <errno.h>
diff --git a/fsck_minix.c b/fsck_minix.c
index f980fe9ea..bc92f20b7 100644
--- a/fsck_minix.c
+++ b/fsck_minix.c
@@ -96,7 +96,6 @@
96#include <stdlib.h> 96#include <stdlib.h>
97#include <termios.h> 97#include <termios.h>
98#include <mntent.h> 98#include <mntent.h>
99#include <sys/stat.h>
100#include <sys/param.h> 99#include <sys/param.h>
101 100
102 101
diff --git a/gunzip.c b/gunzip.c
index 330dee335..20af97aed 100644
--- a/gunzip.c
+++ b/gunzip.c
@@ -94,7 +94,6 @@ static char *license_msg[] = {
94#include <ctype.h> 94#include <ctype.h>
95#include <sys/types.h> 95#include <sys/types.h>
96#include <signal.h> 96#include <signal.h>
97#include <sys/stat.h>
98#include <errno.h> 97#include <errno.h>
99 98
100/* #include "tailor.h" */ 99/* #include "tailor.h" */
diff --git a/gzip.c b/gzip.c
index 19ad1a729..591b8cc7f 100644
--- a/gzip.c
+++ b/gzip.c
@@ -1609,7 +1609,6 @@ ulg deflate()
1609#include <ctype.h> 1609#include <ctype.h>
1610#include <sys/types.h> 1610#include <sys/types.h>
1611#include <signal.h> 1611#include <signal.h>
1612#include <sys/stat.h>
1613#include <errno.h> 1612#include <errno.h>
1614 1613
1615 /* configuration */ 1614 /* configuration */
diff --git a/kill.c b/kill.c
index da46620dd..dc48d4337 100644
--- a/kill.c
+++ b/kill.c
@@ -28,7 +28,6 @@
28#include <unistd.h> 28#include <unistd.h>
29#include <signal.h> 29#include <signal.h>
30#include <ctype.h> 30#include <ctype.h>
31#include <sys/stat.h>
32#include <unistd.h> 31#include <unistd.h>
33 32
34#define KILL 0 33#define KILL 0
diff --git a/loadacm.c b/loadacm.c
index 2d70ffc5d..7f669bf08 100644
--- a/loadacm.c
+++ b/loadacm.c
@@ -18,7 +18,6 @@
18#include <errno.h> 18#include <errno.h>
19#include <signal.h> 19#include <signal.h>
20#include <sys/types.h> 20#include <sys/types.h>
21#include <sys/stat.h>
22#include <sys/ioctl.h> 21#include <sys/ioctl.h>
23#include <sys/kd.h> 22#include <sys/kd.h>
24 23
diff --git a/loadfont.c b/loadfont.c
index 622142925..927c2bad4 100644
--- a/loadfont.c
+++ b/loadfont.c
@@ -15,7 +15,6 @@
15#include <stdlib.h> 15#include <stdlib.h>
16#include <unistd.h> 16#include <unistd.h>
17#include <sys/types.h> 17#include <sys/types.h>
18#include <sys/stat.h>
19#include <dirent.h> 18#include <dirent.h>
20#include <errno.h> 19#include <errno.h>
21#include <sys/ioctl.h> 20#include <sys/ioctl.h>
diff --git a/logger.c b/logger.c
index 0e1ce8dce..f4a0f82fb 100644
--- a/logger.c
+++ b/logger.c
@@ -25,7 +25,6 @@
25#include <stdio.h> 25#include <stdio.h>
26#include <unistd.h> 26#include <unistd.h>
27#include <sys/types.h> 27#include <sys/types.h>
28#include <sys/stat.h>
29#include <fcntl.h> 28#include <fcntl.h>
30#include <ctype.h> 29#include <ctype.h>
31 30
diff --git a/ls.c b/ls.c
index e56e3bcfb..d7455f427 100644
--- a/ls.c
+++ b/ls.c
@@ -50,7 +50,6 @@
50 50
51#include "internal.h" 51#include "internal.h"
52# include <sys/types.h> 52# include <sys/types.h>
53#include <sys/stat.h>
54#include <stdio.h> 53#include <stdio.h>
55#include <unistd.h> 54#include <unistd.h>
56#include <dirent.h> 55#include <dirent.h>
diff --git a/makedevs.c b/makedevs.c
index 99dbc0bd5..c9802cca7 100644
--- a/makedevs.c
+++ b/makedevs.c
@@ -14,7 +14,6 @@
14#include <fcntl.h> 14#include <fcntl.h>
15#include <unistd.h> 15#include <unistd.h>
16#include <sys/types.h> 16#include <sys/types.h>
17#include <sys/stat.h>
18 17
19int makedevs_main(int argc, char **argv) 18int makedevs_main(int argc, char **argv)
20{ 19{
diff --git a/miscutils/dutmp.c b/miscutils/dutmp.c
index 047b8805f..5a6eb076b 100644
--- a/miscutils/dutmp.c
+++ b/miscutils/dutmp.c
@@ -14,7 +14,6 @@
14 14
15#include "internal.h" 15#include "internal.h"
16#include <sys/types.h> 16#include <sys/types.h>
17#include <sys/stat.h>
18#include <fcntl.h> 17#include <fcntl.h>
19 18
20#include <errno.h> 19#include <errno.h>
diff --git a/miscutils/makedevs.c b/miscutils/makedevs.c
index 99dbc0bd5..c9802cca7 100644
--- a/miscutils/makedevs.c
+++ b/miscutils/makedevs.c
@@ -14,7 +14,6 @@
14#include <fcntl.h> 14#include <fcntl.h>
15#include <unistd.h> 15#include <unistd.h>
16#include <sys/types.h> 16#include <sys/types.h>
17#include <sys/stat.h>
18 17
19int makedevs_main(int argc, char **argv) 18int makedevs_main(int argc, char **argv)
20{ 19{
diff --git a/mkfifo.c b/mkfifo.c
index 3db17bbbc..5d4126ac0 100644
--- a/mkfifo.c
+++ b/mkfifo.c
@@ -23,7 +23,6 @@
23#include "internal.h" 23#include "internal.h"
24#include <stdio.h> 24#include <stdio.h>
25#include <sys/types.h> 25#include <sys/types.h>
26#include <sys/stat.h>
27#include <errno.h> 26#include <errno.h>
28 27
29extern int mkfifo_main(int argc, char **argv) 28extern int mkfifo_main(int argc, char **argv)
diff --git a/mkfs_minix.c b/mkfs_minix.c
index 240dfded0..1bbccd978 100644
--- a/mkfs_minix.c
+++ b/mkfs_minix.c
@@ -72,7 +72,6 @@
72#include <ctype.h> 72#include <ctype.h>
73#include <stdlib.h> 73#include <stdlib.h>
74#include <termios.h> 74#include <termios.h>
75#include <sys/stat.h>
76#include <sys/ioctl.h> 75#include <sys/ioctl.h>
77#include <sys/param.h> 76#include <sys/param.h>
78#include <mntent.h> 77#include <mntent.h>
diff --git a/mknod.c b/mknod.c
index b51c8f3e3..b815aa198 100644
--- a/mknod.c
+++ b/mknod.c
@@ -24,7 +24,6 @@
24#include <stdio.h> 24#include <stdio.h>
25#include <errno.h> 25#include <errno.h>
26#include <sys/types.h> 26#include <sys/types.h>
27#include <sys/stat.h>
28#include <fcntl.h> 27#include <fcntl.h>
29#include <unistd.h> 28#include <unistd.h>
30 29
diff --git a/mkswap.c b/mkswap.c
index eacd8816c..70028dc2e 100644
--- a/mkswap.c
+++ b/mkswap.c
@@ -43,7 +43,6 @@
43#include <stdlib.h> 43#include <stdlib.h>
44#include <sys/ioctl.h> /* for _IO */ 44#include <sys/ioctl.h> /* for _IO */
45#include <sys/utsname.h> 45#include <sys/utsname.h>
46#include <sys/stat.h>
47#include <asm/page.h> /* for PAGE_SIZE and PAGE_SHIFT */ 46#include <asm/page.h> /* for PAGE_SIZE and PAGE_SHIFT */
48 /* we also get PAGE_SIZE via getpagesize() */ 47 /* we also get PAGE_SIZE via getpagesize() */
49 48
diff --git a/nfsmount.c b/nfsmount.c
index 5c29b5f6b..628772b1b 100644
--- a/nfsmount.c
+++ b/nfsmount.c
@@ -47,7 +47,6 @@
47#include <sys/socket.h> 47#include <sys/socket.h>
48#include <sys/time.h> 48#include <sys/time.h>
49#include <sys/utsname.h> 49#include <sys/utsname.h>
50#include <sys/stat.h>
51#include <netinet/in.h> 50#include <netinet/in.h>
52#include <arpa/inet.h> 51#include <arpa/inet.h>
53 52
diff --git a/printf.c b/printf.c
index 6a87fc319..94b809348 100644
--- a/printf.c
+++ b/printf.c
@@ -51,7 +51,6 @@
51#include <unistd.h> 51#include <unistd.h>
52#include <stdio.h> 52#include <stdio.h>
53#include <sys/types.h> 53#include <sys/types.h>
54#include <sys/stat.h>
55#include <string.h> 54#include <string.h>
56#include <errno.h> 55#include <errno.h>
57#include <stdlib.h> 56#include <stdlib.h>
diff --git a/procps/kill.c b/procps/kill.c
index da46620dd..dc48d4337 100644
--- a/procps/kill.c
+++ b/procps/kill.c
@@ -28,7 +28,6 @@
28#include <unistd.h> 28#include <unistd.h>
29#include <signal.h> 29#include <signal.h>
30#include <ctype.h> 30#include <ctype.h>
31#include <sys/stat.h>
32#include <unistd.h> 31#include <unistd.h>
33 32
34#define KILL 0 33#define KILL 0
diff --git a/sysklogd/logger.c b/sysklogd/logger.c
index 0e1ce8dce..f4a0f82fb 100644
--- a/sysklogd/logger.c
+++ b/sysklogd/logger.c
@@ -25,7 +25,6 @@
25#include <stdio.h> 25#include <stdio.h>
26#include <unistd.h> 26#include <unistd.h>
27#include <sys/types.h> 27#include <sys/types.h>
28#include <sys/stat.h>
29#include <fcntl.h> 28#include <fcntl.h>
30#include <ctype.h> 29#include <ctype.h>
31 30
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c
index 508a6572b..dfc933dbf 100644
--- a/sysklogd/syslogd.c
+++ b/sysklogd/syslogd.c
@@ -36,7 +36,6 @@
36#include <time.h> 36#include <time.h>
37#include <unistd.h> 37#include <unistd.h>
38#include <sys/socket.h> 38#include <sys/socket.h>
39#include <sys/stat.h>
40#include <sys/types.h> 39#include <sys/types.h>
41#include <sys/un.h> 40#include <sys/un.h>
42#include <sys/param.h> 41#include <sys/param.h>
diff --git a/syslogd.c b/syslogd.c
index 508a6572b..dfc933dbf 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -36,7 +36,6 @@
36#include <time.h> 36#include <time.h>
37#include <unistd.h> 37#include <unistd.h>
38#include <sys/socket.h> 38#include <sys/socket.h>
39#include <sys/stat.h>
40#include <sys/types.h> 39#include <sys/types.h>
41#include <sys/un.h> 40#include <sys/un.h>
42#include <sys/param.h> 41#include <sys/param.h>
diff --git a/tail.c b/tail.c
index 627373bfd..6c4a6f468 100644
--- a/tail.c
+++ b/tail.c
@@ -32,7 +32,6 @@
32 32
33 */ 33 */
34#include <sys/types.h> 34#include <sys/types.h>
35#include <sys/stat.h>
36#include <fcntl.h> 35#include <fcntl.h>
37#include <stdio.h> 36#include <stdio.h>
38#include <stdlib.h> 37#include <stdlib.h>
diff --git a/test.c b/test.c
index 818b3db12..6dde718c7 100644
--- a/test.c
+++ b/test.c
@@ -33,7 +33,6 @@
33 33
34#include "internal.h" 34#include "internal.h"
35#include <sys/types.h> 35#include <sys/types.h>
36#include <sys/stat.h>
37#include <unistd.h> 36#include <unistd.h>
38#include <ctype.h> 37#include <ctype.h>
39#include <errno.h> 38#include <errno.h>
diff --git a/touch.c b/touch.c
index afdd265f7..464aedb55 100644
--- a/touch.c
+++ b/touch.c
@@ -25,7 +25,6 @@
25#include "internal.h" 25#include "internal.h"
26#include <stdio.h> 26#include <stdio.h>
27#include <sys/types.h> 27#include <sys/types.h>
28#include <sys/stat.h>
29#include <fcntl.h> 28#include <fcntl.h>
30#include <utime.h> 29#include <utime.h>
31#include <errno.h> 30#include <errno.h>
diff --git a/util-linux/freeramdisk.c b/util-linux/freeramdisk.c
index 2da2427c1..64915b313 100644
--- a/util-linux/freeramdisk.c
+++ b/util-linux/freeramdisk.c
@@ -24,7 +24,6 @@
24#include <stdio.h> 24#include <stdio.h>
25#include <string.h> 25#include <string.h>
26#include <sys/types.h> 26#include <sys/types.h>
27#include <sys/stat.h>
28#include <fcntl.h> 27#include <fcntl.h>
29#include <sys/ioctl.h> 28#include <sys/ioctl.h>
30#include <errno.h> 29#include <errno.h>
diff --git a/util-linux/fsck_minix.c b/util-linux/fsck_minix.c
index f980fe9ea..bc92f20b7 100644
--- a/util-linux/fsck_minix.c
+++ b/util-linux/fsck_minix.c
@@ -96,7 +96,6 @@
96#include <stdlib.h> 96#include <stdlib.h>
97#include <termios.h> 97#include <termios.h>
98#include <mntent.h> 98#include <mntent.h>
99#include <sys/stat.h>
100#include <sys/param.h> 99#include <sys/param.h>
101 100
102 101
diff --git a/util-linux/mkfs_minix.c b/util-linux/mkfs_minix.c
index 240dfded0..1bbccd978 100644
--- a/util-linux/mkfs_minix.c
+++ b/util-linux/mkfs_minix.c
@@ -72,7 +72,6 @@
72#include <ctype.h> 72#include <ctype.h>
73#include <stdlib.h> 73#include <stdlib.h>
74#include <termios.h> 74#include <termios.h>
75#include <sys/stat.h>
76#include <sys/ioctl.h> 75#include <sys/ioctl.h>
77#include <sys/param.h> 76#include <sys/param.h>
78#include <mntent.h> 77#include <mntent.h>
diff --git a/util-linux/mkswap.c b/util-linux/mkswap.c
index eacd8816c..70028dc2e 100644
--- a/util-linux/mkswap.c
+++ b/util-linux/mkswap.c
@@ -43,7 +43,6 @@
43#include <stdlib.h> 43#include <stdlib.h>
44#include <sys/ioctl.h> /* for _IO */ 44#include <sys/ioctl.h> /* for _IO */
45#include <sys/utsname.h> 45#include <sys/utsname.h>
46#include <sys/stat.h>
47#include <asm/page.h> /* for PAGE_SIZE and PAGE_SHIFT */ 46#include <asm/page.h> /* for PAGE_SIZE and PAGE_SHIFT */
48 /* we also get PAGE_SIZE via getpagesize() */ 47 /* we also get PAGE_SIZE via getpagesize() */
49 48
diff --git a/util-linux/nfsmount.c b/util-linux/nfsmount.c
index 5c29b5f6b..628772b1b 100644
--- a/util-linux/nfsmount.c
+++ b/util-linux/nfsmount.c
@@ -47,7 +47,6 @@
47#include <sys/socket.h> 47#include <sys/socket.h>
48#include <sys/time.h> 48#include <sys/time.h>
49#include <sys/utsname.h> 49#include <sys/utsname.h>
50#include <sys/stat.h>
51#include <netinet/in.h> 50#include <netinet/in.h>
52#include <arpa/inet.h> 51#include <arpa/inet.h>
53 52
diff --git a/utility.c b/utility.c
index bc5a5bdc0..3422d997a 100644
--- a/utility.c
+++ b/utility.c
@@ -50,7 +50,6 @@
50#include <utime.h> 50#include <utime.h>
51#include <unistd.h> 51#include <unistd.h>
52#include <ctype.h> 52#include <ctype.h>
53#include <sys/stat.h>
54#include <sys/ioctl.h> 53#include <sys/ioctl.h>
55#include <sys/utsname.h> /* for uname(2) */ 54#include <sys/utsname.h> /* for uname(2) */
56 55
diff --git a/which.c b/which.c
index 943e10a57..b3fd934d7 100644
--- a/which.c
+++ b/which.c
@@ -23,7 +23,6 @@
23 23
24#include "internal.h" 24#include "internal.h"
25#include <stdio.h> 25#include <stdio.h>
26#include <sys/stat.h>
27#include <sys/param.h> 26#include <sys/param.h>
28 27
29extern int which_main(int argc, char **argv) 28extern int which_main(int argc, char **argv)