Some #include updates.

-Erik
This commit is contained in:
Eric Andersen 2000-08-10 17:59:11 +00:00
parent 40406e6bad
commit 88f50b6bf5
53 changed files with 12 additions and 57 deletions

View File

@ -32,7 +32,7 @@ const struct BB_applet applets[] = {
{"chown", chmod_chown_chgrp_main, _BB_DIR_BIN, chown_usage}, {"chown", chmod_chown_chgrp_main, _BB_DIR_BIN, chown_usage},
#endif #endif
#ifdef BB_CHROOT #ifdef BB_CHROOT
{"chroot", chroot_main, _BB_DIR_SBIN, chroot_usage}, {"chroot", chroot_main, _BB_DIR_USR_SBIN, chroot_usage},
#endif #endif
#ifdef BB_CLEAR #ifdef BB_CLEAR
{"clear", clear_main, _BB_DIR_USR_BIN, clear_usage}, {"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}, {"dmesg", dmesg_main, _BB_DIR_BIN, dmesg_usage},
#endif #endif
#ifdef BB_DU #ifdef BB_DU
{"du", du_main, _BB_DIR_BIN, du_usage}, {"du", du_main, _BB_DIR_USR_BIN, du_usage},
#endif #endif
#ifdef BB_DUMPKMAP #ifdef BB_DUMPKMAP
{"dumpkmap", dumpkmap_main, _BB_DIR_BIN, dumpkmap_usage}, {"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}, {"sleep", sleep_main, _BB_DIR_BIN, sleep_usage},
#endif #endif
#ifdef BB_SORT #ifdef BB_SORT
{"sort", sort_main, _BB_DIR_BIN, sort_usage}, {"sort", sort_main, _BB_DIR_USR_BIN, sort_usage},
#endif #endif
#ifdef BB_SYNC #ifdef BB_SYNC
{"sync", sync_main, _BB_DIR_BIN, sync_usage}, {"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}, {"test", test_main, _BB_DIR_USR_BIN, test_usage},
#endif #endif
#ifdef BB_TEE #ifdef BB_TEE
{"tee", tee_main, _BB_DIR_BIN, tee_usage}, {"tee", tee_main, _BB_DIR_USR_BIN, tee_usage},
#endif #endif
#ifdef BB_TOUCH #ifdef BB_TOUCH
{"touch", touch_main, _BB_DIR_USR_BIN, touch_usage}, {"touch", touch_main, _BB_DIR_USR_BIN, touch_usage},

View File

@ -94,7 +94,6 @@ static char *license_msg[] = {
#include <ctype.h> #include <ctype.h>
#include <sys/types.h> #include <sys/types.h>
#include <signal.h> #include <signal.h>
#include <sys/stat.h>
#include <errno.h> #include <errno.h>
/* #include "tailor.h" */ /* #include "tailor.h" */

View File

@ -1609,7 +1609,6 @@ ulg deflate()
#include <ctype.h> #include <ctype.h>
#include <sys/types.h> #include <sys/types.h>
#include <signal.h> #include <signal.h>
#include <sys/stat.h>
#include <errno.h> #include <errno.h>
/* configuration */ /* configuration */

View File

@ -32,7 +32,7 @@ const struct BB_applet applets[] = {
{"chown", chmod_chown_chgrp_main, _BB_DIR_BIN, chown_usage}, {"chown", chmod_chown_chgrp_main, _BB_DIR_BIN, chown_usage},
#endif #endif
#ifdef BB_CHROOT #ifdef BB_CHROOT
{"chroot", chroot_main, _BB_DIR_SBIN, chroot_usage}, {"chroot", chroot_main, _BB_DIR_USR_SBIN, chroot_usage},
#endif #endif
#ifdef BB_CLEAR #ifdef BB_CLEAR
{"clear", clear_main, _BB_DIR_USR_BIN, clear_usage}, {"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}, {"dmesg", dmesg_main, _BB_DIR_BIN, dmesg_usage},
#endif #endif
#ifdef BB_DU #ifdef BB_DU
{"du", du_main, _BB_DIR_BIN, du_usage}, {"du", du_main, _BB_DIR_USR_BIN, du_usage},
#endif #endif
#ifdef BB_DUMPKMAP #ifdef BB_DUMPKMAP
{"dumpkmap", dumpkmap_main, _BB_DIR_BIN, dumpkmap_usage}, {"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}, {"sleep", sleep_main, _BB_DIR_BIN, sleep_usage},
#endif #endif
#ifdef BB_SORT #ifdef BB_SORT
{"sort", sort_main, _BB_DIR_BIN, sort_usage}, {"sort", sort_main, _BB_DIR_USR_BIN, sort_usage},
#endif #endif
#ifdef BB_SYNC #ifdef BB_SYNC
{"sync", sync_main, _BB_DIR_BIN, sync_usage}, {"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}, {"test", test_main, _BB_DIR_USR_BIN, test_usage},
#endif #endif
#ifdef BB_TEE #ifdef BB_TEE
{"tee", tee_main, _BB_DIR_BIN, tee_usage}, {"tee", tee_main, _BB_DIR_USR_BIN, tee_usage},
#endif #endif
#ifdef BB_TOUCH #ifdef BB_TOUCH
{"touch", touch_main, _BB_DIR_USR_BIN, touch_usage}, {"touch", touch_main, _BB_DIR_USR_BIN, touch_usage},

View File

@ -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); errorMsg("ioctl returned: %s, %s, %s, %xqq\n",strerror(errno),(char *)&ke.kb_index,(char *)&ke.kb_table,(int)&ke.kb_value);
} }
else { else {
write(1,&ke.kb_value,2); write(1,(void*)&ke.kb_value,2);
} }
} }

View File

@ -18,7 +18,6 @@
#include <errno.h> #include <errno.h>
#include <signal.h> #include <signal.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/kd.h> #include <sys/kd.h>

View File

@ -15,7 +15,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h> #include <dirent.h>
#include <errno.h> #include <errno.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>

View File

@ -31,6 +31,7 @@
#include <unistd.h> #include <unistd.h>
#include <time.h> #include <time.h>
#include <stdio.h> #include <stdio.h>
#include <getopt.h>
/* This 'date' command supports only 2 time setting formats, /* This 'date' command supports only 2 time setting formats,

View File

@ -25,7 +25,6 @@
#include "internal.h" #include "internal.h"
#include <stdio.h> #include <stdio.h>
#include <mntent.h> #include <mntent.h>
#include <sys/stat.h>
#include <sys/vfs.h> #include <sys/vfs.h>
extern const char mtab_file[]; /* Defined in utility.c */ extern const char mtab_file[]; /* Defined in utility.c */

View File

@ -50,7 +50,6 @@
#include "internal.h" #include "internal.h"
# include <sys/types.h> # include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>
#include <dirent.h> #include <dirent.h>

View File

@ -23,7 +23,6 @@
#include "internal.h" #include "internal.h"
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h>
#include <errno.h> #include <errno.h>
extern int mkfifo_main(int argc, char **argv) extern int mkfifo_main(int argc, char **argv)

View File

@ -24,7 +24,6 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>

View File

@ -51,7 +51,6 @@
#include <unistd.h> #include <unistd.h>
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h>
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -32,7 +32,6 @@
*/ */
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -33,7 +33,6 @@
#include "internal.h" #include "internal.h"
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h> #include <unistd.h>
#include <ctype.h> #include <ctype.h>
#include <errno.h> #include <errno.h>

View File

@ -25,7 +25,6 @@
#include "internal.h" #include "internal.h"
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#include <utime.h> #include <utime.h>
#include <errno.h> #include <errno.h>

1
date.c
View File

@ -31,6 +31,7 @@
#include <unistd.h> #include <unistd.h>
#include <time.h> #include <time.h>
#include <stdio.h> #include <stdio.h>
#include <getopt.h>
/* This 'date' command supports only 2 time setting formats, /* This 'date' command supports only 2 time setting formats,

1
df.c
View File

@ -25,7 +25,6 @@
#include "internal.h" #include "internal.h"
#include <stdio.h> #include <stdio.h>
#include <mntent.h> #include <mntent.h>
#include <sys/stat.h>
#include <sys/vfs.h> #include <sys/vfs.h>
extern const char mtab_file[]; /* Defined in utility.c */ extern const char mtab_file[]; /* Defined in utility.c */

View File

@ -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); errorMsg("ioctl returned: %s, %s, %s, %xqq\n",strerror(errno),(char *)&ke.kb_index,(char *)&ke.kb_table,(int)&ke.kb_value);
} }
else { else {
write(1,&ke.kb_value,2); write(1,(void*)&ke.kb_value,2);
} }
} }

View File

@ -14,7 +14,6 @@
#include "internal.h" #include "internal.h"
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#include <errno.h> #include <errno.h>

View File

@ -23,7 +23,6 @@
#include "internal.h" #include "internal.h"
#include <stdio.h> #include <stdio.h>
#include <sys/stat.h>
#include <sys/param.h> #include <sys/param.h>
extern int which_main(int argc, char **argv) extern int which_main(int argc, char **argv)

View File

@ -24,7 +24,6 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <errno.h> #include <errno.h>

View File

@ -96,7 +96,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <termios.h> #include <termios.h>
#include <mntent.h> #include <mntent.h>
#include <sys/stat.h>
#include <sys/param.h> #include <sys/param.h>

View File

@ -94,7 +94,6 @@ static char *license_msg[] = {
#include <ctype.h> #include <ctype.h>
#include <sys/types.h> #include <sys/types.h>
#include <signal.h> #include <signal.h>
#include <sys/stat.h>
#include <errno.h> #include <errno.h>
/* #include "tailor.h" */ /* #include "tailor.h" */

1
gzip.c
View File

@ -1609,7 +1609,6 @@ ulg deflate()
#include <ctype.h> #include <ctype.h>
#include <sys/types.h> #include <sys/types.h>
#include <signal.h> #include <signal.h>
#include <sys/stat.h>
#include <errno.h> #include <errno.h>
/* configuration */ /* configuration */

1
kill.c
View File

@ -28,7 +28,6 @@
#include <unistd.h> #include <unistd.h>
#include <signal.h> #include <signal.h>
#include <ctype.h> #include <ctype.h>
#include <sys/stat.h>
#include <unistd.h> #include <unistd.h>
#define KILL 0 #define KILL 0

View File

@ -18,7 +18,6 @@
#include <errno.h> #include <errno.h>
#include <signal.h> #include <signal.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/kd.h> #include <sys/kd.h>

View File

@ -15,7 +15,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h> #include <dirent.h>
#include <errno.h> #include <errno.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>

View File

@ -25,7 +25,6 @@
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#include <ctype.h> #include <ctype.h>

1
ls.c
View File

@ -50,7 +50,6 @@
#include "internal.h" #include "internal.h"
# include <sys/types.h> # include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>
#include <dirent.h> #include <dirent.h>

View File

@ -14,7 +14,6 @@
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h>
int makedevs_main(int argc, char **argv) int makedevs_main(int argc, char **argv)
{ {

View File

@ -14,7 +14,6 @@
#include "internal.h" #include "internal.h"
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#include <errno.h> #include <errno.h>

View File

@ -14,7 +14,6 @@
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h>
int makedevs_main(int argc, char **argv) int makedevs_main(int argc, char **argv)
{ {

View File

@ -23,7 +23,6 @@
#include "internal.h" #include "internal.h"
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h>
#include <errno.h> #include <errno.h>
extern int mkfifo_main(int argc, char **argv) extern int mkfifo_main(int argc, char **argv)

View File

@ -72,7 +72,6 @@
#include <ctype.h> #include <ctype.h>
#include <stdlib.h> #include <stdlib.h>
#include <termios.h> #include <termios.h>
#include <sys/stat.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/param.h> #include <sys/param.h>
#include <mntent.h> #include <mntent.h>

View File

@ -24,7 +24,6 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>

View File

@ -43,7 +43,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <sys/ioctl.h> /* for _IO */ #include <sys/ioctl.h> /* for _IO */
#include <sys/utsname.h> #include <sys/utsname.h>
#include <sys/stat.h>
#include <asm/page.h> /* for PAGE_SIZE and PAGE_SHIFT */ #include <asm/page.h> /* for PAGE_SIZE and PAGE_SHIFT */
/* we also get PAGE_SIZE via getpagesize() */ /* we also get PAGE_SIZE via getpagesize() */

View File

@ -47,7 +47,6 @@
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/time.h> #include <sys/time.h>
#include <sys/utsname.h> #include <sys/utsname.h>
#include <sys/stat.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <arpa/inet.h> #include <arpa/inet.h>

View File

@ -51,7 +51,6 @@
#include <unistd.h> #include <unistd.h>
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h>
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -28,7 +28,6 @@
#include <unistd.h> #include <unistd.h>
#include <signal.h> #include <signal.h>
#include <ctype.h> #include <ctype.h>
#include <sys/stat.h>
#include <unistd.h> #include <unistd.h>
#define KILL 0 #define KILL 0

View File

@ -25,7 +25,6 @@
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#include <ctype.h> #include <ctype.h>

View File

@ -36,7 +36,6 @@
#include <time.h> #include <time.h>
#include <unistd.h> #include <unistd.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/un.h> #include <sys/un.h>
#include <sys/param.h> #include <sys/param.h>

View File

@ -36,7 +36,6 @@
#include <time.h> #include <time.h>
#include <unistd.h> #include <unistd.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/un.h> #include <sys/un.h>
#include <sys/param.h> #include <sys/param.h>

1
tail.c
View File

@ -32,7 +32,6 @@
*/ */
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

1
test.c
View File

@ -33,7 +33,6 @@
#include "internal.h" #include "internal.h"
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h> #include <unistd.h>
#include <ctype.h> #include <ctype.h>
#include <errno.h> #include <errno.h>

View File

@ -25,7 +25,6 @@
#include "internal.h" #include "internal.h"
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#include <utime.h> #include <utime.h>
#include <errno.h> #include <errno.h>

View File

@ -24,7 +24,6 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <errno.h> #include <errno.h>

View File

@ -96,7 +96,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <termios.h> #include <termios.h>
#include <mntent.h> #include <mntent.h>
#include <sys/stat.h>
#include <sys/param.h> #include <sys/param.h>

View File

@ -72,7 +72,6 @@
#include <ctype.h> #include <ctype.h>
#include <stdlib.h> #include <stdlib.h>
#include <termios.h> #include <termios.h>
#include <sys/stat.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/param.h> #include <sys/param.h>
#include <mntent.h> #include <mntent.h>

View File

@ -43,7 +43,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <sys/ioctl.h> /* for _IO */ #include <sys/ioctl.h> /* for _IO */
#include <sys/utsname.h> #include <sys/utsname.h>
#include <sys/stat.h>
#include <asm/page.h> /* for PAGE_SIZE and PAGE_SHIFT */ #include <asm/page.h> /* for PAGE_SIZE and PAGE_SHIFT */
/* we also get PAGE_SIZE via getpagesize() */ /* we also get PAGE_SIZE via getpagesize() */

View File

@ -47,7 +47,6 @@
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/time.h> #include <sys/time.h>
#include <sys/utsname.h> #include <sys/utsname.h>
#include <sys/stat.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <arpa/inet.h> #include <arpa/inet.h>

View File

@ -50,7 +50,6 @@
#include <utime.h> #include <utime.h>
#include <unistd.h> #include <unistd.h>
#include <ctype.h> #include <ctype.h>
#include <sys/stat.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/utsname.h> /* for uname(2) */ #include <sys/utsname.h> /* for uname(2) */

View File

@ -23,7 +23,6 @@
#include "internal.h" #include "internal.h"
#include <stdio.h> #include <stdio.h>
#include <sys/stat.h>
#include <sys/param.h> #include <sys/param.h>
extern int which_main(int argc, char **argv) extern int which_main(int argc, char **argv)