diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-08-10 21:59:11 +0400 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-08-10 21:59:11 +0400 |
commit | 88f50b6bf5e79ca9d5f30e5899ace1cbda0950a4 (patch) | |
tree | 4871d5fdfd0c601396ef4651c3d1458bedb5a854 | |
parent | 40406e6bad9abcd58977ed92194c9061d85c9e47 (diff) |
Some #include updates.
-Erik
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[] = { {"chown", chmod_chown_chgrp_main, _BB_DIR_BIN, chown_usage}, #endif #ifdef BB_CHROOT - {"chroot", chroot_main, _BB_DIR_SBIN, chroot_usage}, + {"chroot", chroot_main, _BB_DIR_USR_SBIN, chroot_usage}, #endif #ifdef BB_CLEAR {"clear", clear_main, _BB_DIR_USR_BIN, clear_usage}, @@ -65,7 +65,7 @@ const struct BB_applet applets[] = { {"dmesg", dmesg_main, _BB_DIR_BIN, dmesg_usage}, #endif #ifdef BB_DU - {"du", du_main, _BB_DIR_BIN, du_usage}, + {"du", du_main, _BB_DIR_USR_BIN, du_usage}, #endif #ifdef BB_DUMPKMAP {"dumpkmap", dumpkmap_main, _BB_DIR_BIN, dumpkmap_usage}, @@ -251,7 +251,7 @@ const struct BB_applet applets[] = { {"sleep", sleep_main, _BB_DIR_BIN, sleep_usage}, #endif #ifdef BB_SORT - {"sort", sort_main, _BB_DIR_BIN, sort_usage}, + {"sort", sort_main, _BB_DIR_USR_BIN, sort_usage}, #endif #ifdef BB_SYNC {"sync", sync_main, _BB_DIR_BIN, sync_usage}, @@ -278,7 +278,7 @@ const struct BB_applet applets[] = { {"test", test_main, _BB_DIR_USR_BIN, test_usage}, #endif #ifdef BB_TEE - {"tee", tee_main, _BB_DIR_BIN, tee_usage}, + {"tee", tee_main, _BB_DIR_USR_BIN, tee_usage}, #endif #ifdef BB_TOUCH {"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[] = { #include <ctype.h> #include <sys/types.h> #include <signal.h> -#include <sys/stat.h> #include <errno.h> /* #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() #include <ctype.h> #include <sys/types.h> #include <signal.h> -#include <sys/stat.h> #include <errno.h> /* configuration */ @@ -32,7 +32,7 @@ const struct BB_applet applets[] = { {"chown", chmod_chown_chgrp_main, _BB_DIR_BIN, chown_usage}, #endif #ifdef BB_CHROOT - {"chroot", chroot_main, _BB_DIR_SBIN, chroot_usage}, + {"chroot", chroot_main, _BB_DIR_USR_SBIN, chroot_usage}, #endif #ifdef BB_CLEAR {"clear", clear_main, _BB_DIR_USR_BIN, clear_usage}, @@ -65,7 +65,7 @@ const struct BB_applet applets[] = { {"dmesg", dmesg_main, _BB_DIR_BIN, dmesg_usage}, #endif #ifdef BB_DU - {"du", du_main, _BB_DIR_BIN, du_usage}, + {"du", du_main, _BB_DIR_USR_BIN, du_usage}, #endif #ifdef BB_DUMPKMAP {"dumpkmap", dumpkmap_main, _BB_DIR_BIN, dumpkmap_usage}, @@ -251,7 +251,7 @@ const struct BB_applet applets[] = { {"sleep", sleep_main, _BB_DIR_BIN, sleep_usage}, #endif #ifdef BB_SORT - {"sort", sort_main, _BB_DIR_BIN, sort_usage}, + {"sort", sort_main, _BB_DIR_USR_BIN, sort_usage}, #endif #ifdef BB_SYNC {"sync", sync_main, _BB_DIR_BIN, sync_usage}, @@ -278,7 +278,7 @@ const struct BB_applet applets[] = { {"test", test_main, _BB_DIR_USR_BIN, test_usage}, #endif #ifdef BB_TEE - {"tee", tee_main, _BB_DIR_BIN, tee_usage}, + {"tee", tee_main, _BB_DIR_USR_BIN, tee_usage}, #endif #ifdef BB_TOUCH {"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) errorMsg("ioctl returned: %s, %s, %s, %xqq\n",strerror(errno),(char *)&ke.kb_index,(char *)&ke.kb_table,(int)&ke.kb_value); } else { - write(1,&ke.kb_value,2); + write(1,(void*)&ke.kb_value,2); } } 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 @@ #include <errno.h> #include <signal.h> #include <sys/types.h> -#include <sys/stat.h> #include <sys/ioctl.h> #include <sys/kd.h> 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 @@ #include <stdlib.h> #include <unistd.h> #include <sys/types.h> -#include <sys/stat.h> #include <dirent.h> #include <errno.h> #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 @@ #include <unistd.h> #include <time.h> #include <stdio.h> +#include <getopt.h> /* 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 @@ #include "internal.h" #include <stdio.h> #include <mntent.h> -#include <sys/stat.h> #include <sys/vfs.h> extern 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 @@ #include "internal.h" # include <sys/types.h> -#include <sys/stat.h> #include <stdio.h> #include <unistd.h> #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 @@ #include "internal.h" #include <stdio.h> #include <sys/types.h> -#include <sys/stat.h> #include <errno.h> extern 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 @@ #include <stdio.h> #include <errno.h> #include <sys/types.h> -#include <sys/stat.h> #include <fcntl.h> #include <unistd.h> 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 @@ #include <unistd.h> #include <stdio.h> #include <sys/types.h> -#include <sys/stat.h> #include <string.h> #include <errno.h> #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 @@ */ #include <sys/types.h> -#include <sys/stat.h> #include <fcntl.h> #include <stdio.h> #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 @@ #include "internal.h" #include <sys/types.h> -#include <sys/stat.h> #include <unistd.h> #include <ctype.h> #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 @@ #include "internal.h" #include <stdio.h> #include <sys/types.h> -#include <sys/stat.h> #include <fcntl.h> #include <utime.h> #include <errno.h> @@ -31,6 +31,7 @@ #include <unistd.h> #include <time.h> #include <stdio.h> +#include <getopt.h> /* This 'date' command supports only 2 time setting formats, @@ -25,7 +25,6 @@ #include "internal.h" #include <stdio.h> #include <mntent.h> -#include <sys/stat.h> #include <sys/vfs.h> extern 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) errorMsg("ioctl returned: %s, %s, %s, %xqq\n",strerror(errno),(char *)&ke.kb_index,(char *)&ke.kb_table,(int)&ke.kb_value); } else { - write(1,&ke.kb_value,2); + write(1,(void*)&ke.kb_value,2); } } @@ -14,7 +14,6 @@ #include "internal.h" #include <sys/types.h> -#include <sys/stat.h> #include <fcntl.h> #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 @@ #include "internal.h" #include <stdio.h> -#include <sys/stat.h> #include <sys/param.h> extern 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 @@ #include <stdio.h> #include <string.h> #include <sys/types.h> -#include <sys/stat.h> #include <fcntl.h> #include <sys/ioctl.h> #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 @@ #include <stdlib.h> #include <termios.h> #include <mntent.h> -#include <sys/stat.h> #include <sys/param.h> @@ -94,7 +94,6 @@ static char *license_msg[] = { #include <ctype.h> #include <sys/types.h> #include <signal.h> -#include <sys/stat.h> #include <errno.h> /* #include "tailor.h" */ @@ -1609,7 +1609,6 @@ ulg deflate() #include <ctype.h> #include <sys/types.h> #include <signal.h> -#include <sys/stat.h> #include <errno.h> /* configuration */ @@ -28,7 +28,6 @@ #include <unistd.h> #include <signal.h> #include <ctype.h> -#include <sys/stat.h> #include <unistd.h> #define KILL 0 @@ -18,7 +18,6 @@ #include <errno.h> #include <signal.h> #include <sys/types.h> -#include <sys/stat.h> #include <sys/ioctl.h> #include <sys/kd.h> diff --git a/loadfont.c b/loadfont.c index 622142925..927c2bad4 100644 --- a/loadfont.c +++ b/loadfont.c @@ -15,7 +15,6 @@ #include <stdlib.h> #include <unistd.h> #include <sys/types.h> -#include <sys/stat.h> #include <dirent.h> #include <errno.h> #include <sys/ioctl.h> @@ -25,7 +25,6 @@ #include <stdio.h> #include <unistd.h> #include <sys/types.h> -#include <sys/stat.h> #include <fcntl.h> #include <ctype.h> @@ -50,7 +50,6 @@ #include "internal.h" # include <sys/types.h> -#include <sys/stat.h> #include <stdio.h> #include <unistd.h> #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 @@ #include <fcntl.h> #include <unistd.h> #include <sys/types.h> -#include <sys/stat.h> int makedevs_main(int argc, char **argv) { 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 @@ #include "internal.h" #include <sys/types.h> -#include <sys/stat.h> #include <fcntl.h> #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 @@ #include <fcntl.h> #include <unistd.h> #include <sys/types.h> -#include <sys/stat.h> int makedevs_main(int argc, char **argv) { @@ -23,7 +23,6 @@ #include "internal.h" #include <stdio.h> #include <sys/types.h> -#include <sys/stat.h> #include <errno.h> extern 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 @@ #include <ctype.h> #include <stdlib.h> #include <termios.h> -#include <sys/stat.h> #include <sys/ioctl.h> #include <sys/param.h> #include <mntent.h> @@ -24,7 +24,6 @@ #include <stdio.h> #include <errno.h> #include <sys/types.h> -#include <sys/stat.h> #include <fcntl.h> #include <unistd.h> @@ -43,7 +43,6 @@ #include <stdlib.h> #include <sys/ioctl.h> /* for _IO */ #include <sys/utsname.h> -#include <sys/stat.h> #include <asm/page.h> /* for PAGE_SIZE and PAGE_SHIFT */ /* we also get PAGE_SIZE via getpagesize() */ diff --git a/nfsmount.c b/nfsmount.c index 5c29b5f6b..628772b1b 100644 --- a/nfsmount.c +++ b/nfsmount.c @@ -47,7 +47,6 @@ #include <sys/socket.h> #include <sys/time.h> #include <sys/utsname.h> -#include <sys/stat.h> #include <netinet/in.h> #include <arpa/inet.h> @@ -51,7 +51,6 @@ #include <unistd.h> #include <stdio.h> #include <sys/types.h> -#include <sys/stat.h> #include <string.h> #include <errno.h> #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 @@ #include <unistd.h> #include <signal.h> #include <ctype.h> -#include <sys/stat.h> #include <unistd.h> #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 @@ #include <stdio.h> #include <unistd.h> #include <sys/types.h> -#include <sys/stat.h> #include <fcntl.h> #include <ctype.h> 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 @@ #include <time.h> #include <unistd.h> #include <sys/socket.h> -#include <sys/stat.h> #include <sys/types.h> #include <sys/un.h> #include <sys/param.h> @@ -36,7 +36,6 @@ #include <time.h> #include <unistd.h> #include <sys/socket.h> -#include <sys/stat.h> #include <sys/types.h> #include <sys/un.h> #include <sys/param.h> @@ -32,7 +32,6 @@ */ #include <sys/types.h> -#include <sys/stat.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> @@ -33,7 +33,6 @@ #include "internal.h" #include <sys/types.h> -#include <sys/stat.h> #include <unistd.h> #include <ctype.h> #include <errno.h> @@ -25,7 +25,6 @@ #include "internal.h" #include <stdio.h> #include <sys/types.h> -#include <sys/stat.h> #include <fcntl.h> #include <utime.h> #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 @@ #include <stdio.h> #include <string.h> #include <sys/types.h> -#include <sys/stat.h> #include <fcntl.h> #include <sys/ioctl.h> #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 @@ #include <stdlib.h> #include <termios.h> #include <mntent.h> -#include <sys/stat.h> #include <sys/param.h> 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 @@ #include <ctype.h> #include <stdlib.h> #include <termios.h> -#include <sys/stat.h> #include <sys/ioctl.h> #include <sys/param.h> #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 @@ #include <stdlib.h> #include <sys/ioctl.h> /* for _IO */ #include <sys/utsname.h> -#include <sys/stat.h> #include <asm/page.h> /* for PAGE_SIZE and PAGE_SHIFT */ /* we also get PAGE_SIZE via getpagesize() */ 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 @@ #include <sys/socket.h> #include <sys/time.h> #include <sys/utsname.h> -#include <sys/stat.h> #include <netinet/in.h> #include <arpa/inet.h> @@ -50,7 +50,6 @@ #include <utime.h> #include <unistd.h> #include <ctype.h> -#include <sys/stat.h> #include <sys/ioctl.h> #include <sys/utsname.h> /* for uname(2) */ @@ -23,7 +23,6 @@ #include "internal.h" #include <stdio.h> -#include <sys/stat.h> #include <sys/param.h> extern int which_main(int argc, char **argv) |