aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-05-31 22:42:12 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-05-31 22:42:12 +0000
commit9a7d38fe2448617df98ecaea7dbe6f3131088586 (patch)
tree5966d651dcb5588e24106791f9cd3647f358112b /libbb
parentfad2b86c9e7eaadb973b50a1bc0e2accc1a96cfd (diff)
downloadbusybox-w32-9a7d38fe2448617df98ecaea7dbe6f3131088586.tar.gz
busybox-w32-9a7d38fe2448617df98ecaea7dbe6f3131088586.tar.bz2
busybox-w32-9a7d38fe2448617df98ecaea7dbe6f3131088586.zip
delete tons of extra #includes
Diffstat (limited to 'libbb')
-rw-r--r--libbb/ask_confirmation.c2
-rw-r--r--libbb/bb_askpass.c7
-rw-r--r--libbb/bb_do_delay.c2
-rw-r--r--libbb/get_console.c2
-rw-r--r--libbb/herror_msg.c3
-rw-r--r--libbb/human_readable.c1
-rw-r--r--libbb/inode_hash.c3
-rw-r--r--libbb/lineedit.c2
-rw-r--r--libbb/llist.c1
-rw-r--r--libbb/login.c6
-rw-r--r--libbb/mtab_file.c2
-rw-r--r--libbb/safe_strncpy.c3
-rw-r--r--libbb/sha1.c8
13 files changed, 4 insertions, 38 deletions
diff --git a/libbb/ask_confirmation.c b/libbb/ask_confirmation.c
index 4642fa036..646ec4b7e 100644
--- a/libbb/ask_confirmation.c
+++ b/libbb/ask_confirmation.c
@@ -11,8 +11,6 @@
11 * return 1. Otherwise return 0. 11 * return 1. Otherwise return 0.
12 */ 12 */
13 13
14#include <stdio.h>
15#include <ctype.h>
16#include "libbb.h" 14#include "libbb.h"
17 15
18int bb_ask_confirmation(void) 16int bb_ask_confirmation(void)
diff --git a/libbb/bb_askpass.c b/libbb/bb_askpass.c
index 097a0a290..0f1f68687 100644
--- a/libbb/bb_askpass.c
+++ b/libbb/bb_askpass.c
@@ -8,13 +8,8 @@
8 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 8 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
9 */ 9 */
10 10
11#include <stdio.h>
12#include <string.h>
13#include <unistd.h>
14#include <fcntl.h>
15#include <signal.h>
16#include <termios.h> 11#include <termios.h>
17#include <sys/ioctl.h> 12//#include <sys/ioctl.h>
18 13
19#include "libbb.h" 14#include "libbb.h"
20 15
diff --git a/libbb/bb_do_delay.c b/libbb/bb_do_delay.c
index e14b67a19..aa26aded1 100644
--- a/libbb/bb_do_delay.c
+++ b/libbb/bb_do_delay.c
@@ -7,8 +7,6 @@
7 * Licensed under the GPL v2, see the file LICENSE in this tarball. 7 * Licensed under the GPL v2, see the file LICENSE in this tarball.
8 */ 8 */
9 9
10#include <time.h>
11#include <unistd.h>
12#include "libbb.h" 10#include "libbb.h"
13 11
14void bb_do_delay(int seconds) 12void bb_do_delay(int seconds)
diff --git a/libbb/get_console.c b/libbb/get_console.c
index 9797ad6f0..b12951823 100644
--- a/libbb/get_console.c
+++ b/libbb/get_console.c
@@ -8,7 +8,7 @@
8 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 8 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
9 */ 9 */
10 10
11#include <sys/ioctl.h> 11//#include <sys/ioctl.h>
12#include "libbb.h" 12#include "libbb.h"
13 13
14 14
diff --git a/libbb/herror_msg.c b/libbb/herror_msg.c
index 1e6908d82..943702c68 100644
--- a/libbb/herror_msg.c
+++ b/libbb/herror_msg.c
@@ -7,9 +7,6 @@
7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
8 */ 8 */
9 9
10#include <stdarg.h>
11#include <stdlib.h>
12
13#include "libbb.h" 10#include "libbb.h"
14 11
15void bb_herror_msg(const char *s, ...) 12void bb_herror_msg(const char *s, ...)
diff --git a/libbb/human_readable.c b/libbb/human_readable.c
index 7469e7999..7714abecb 100644
--- a/libbb/human_readable.c
+++ b/libbb/human_readable.c
@@ -26,7 +26,6 @@
26 * and "#if 0"'d below. 26 * and "#if 0"'d below.
27 */ 27 */
28 28
29#include <stdio.h>
30#include "libbb.h" 29#include "libbb.h"
31 30
32const char *make_human_readable_str(unsigned long long size, 31const char *make_human_readable_str(unsigned long long size,
diff --git a/libbb/inode_hash.c b/libbb/inode_hash.c
index 78c1b0f9e..69e39af63 100644
--- a/libbb/inode_hash.c
+++ b/libbb/inode_hash.c
@@ -8,9 +8,6 @@
8 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 8 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
9 */ 9 */
10 10
11#include <stdio.h>
12#include <stdlib.h>
13#include <string.h>
14#include "libbb.h" 11#include "libbb.h"
15 12
16typedef struct ino_dev_hash_bucket_struct { 13typedef struct ino_dev_hash_bucket_struct {
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index 9bbc7097d..b950d7f26 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -28,7 +28,7 @@
28 - not true viewing if length prompt less terminal width 28 - not true viewing if length prompt less terminal width
29 */ 29 */
30 30
31#include <sys/ioctl.h> 31//#include <sys/ioctl.h>
32#include "libbb.h" 32#include "libbb.h"
33 33
34 34
diff --git a/libbb/llist.c b/libbb/llist.c
index 706751447..4b3971bbe 100644
--- a/libbb/llist.c
+++ b/libbb/llist.c
@@ -10,7 +10,6 @@
10 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. 10 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
11 */ 11 */
12 12
13#include <stdlib.h>
14#include "libbb.h" 13#include "libbb.h"
15 14
16/* Add data to the start of the linked list. */ 15/* Add data to the start of the linked list. */
diff --git a/libbb/login.c b/libbb/login.c
index f3a3357bc..1cbadd228 100644
--- a/libbb/login.c
+++ b/libbb/login.c
@@ -10,12 +10,8 @@
10 */ 10 */
11 11
12#include <sys/param.h> /* MAXHOSTNAMELEN */ 12#include <sys/param.h> /* MAXHOSTNAMELEN */
13#include <stdio.h>
14#include <unistd.h>
15#include "libbb.h"
16
17#include <sys/utsname.h> 13#include <sys/utsname.h>
18#include <time.h> 14#include "libbb.h"
19 15
20#define LOGIN " login: " 16#define LOGIN " login: "
21 17
diff --git a/libbb/mtab_file.c b/libbb/mtab_file.c
index 67367e3d7..d00405d8a 100644
--- a/libbb/mtab_file.c
+++ b/libbb/mtab_file.c
@@ -7,10 +7,8 @@
7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
8 */ 8 */
9 9
10#include <stdio.h>
11#include "libbb.h" 10#include "libbb.h"
12 11
13
14/* Busybox mount uses either /proc/mounts or /etc/mtab to 12/* Busybox mount uses either /proc/mounts or /etc/mtab to
15 * get the list of currently mounted filesystems */ 13 * get the list of currently mounted filesystems */
16const char bb_path_mtab_file[] = 14const char bb_path_mtab_file[] =
diff --git a/libbb/safe_strncpy.c b/libbb/safe_strncpy.c
index 42bc16ea0..ebc7e28f3 100644
--- a/libbb/safe_strncpy.c
+++ b/libbb/safe_strncpy.c
@@ -7,11 +7,8 @@
7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
8 */ 8 */
9 9
10#include <string.h>
11#include "libbb.h" 10#include "libbb.h"
12 11
13
14
15/* Like strncpy but make sure the resulting string is always 0 terminated. */ 12/* Like strncpy but make sure the resulting string is always 0 terminated. */
16char * safe_strncpy(char *dst, const char *src, size_t size) 13char * safe_strncpy(char *dst, const char *src, size_t size)
17{ 14{
diff --git a/libbb/sha1.c b/libbb/sha1.c
index 734fde4c5..552dcad80 100644
--- a/libbb/sha1.c
+++ b/libbb/sha1.c
@@ -16,14 +16,6 @@
16 * stored in memory. It runs at 22 cycles per byte on a Pentium P4 processor 16 * stored in memory. It runs at 22 cycles per byte on a Pentium P4 processor
17 */ 17 */
18 18
19#include <fcntl.h>
20#include <limits.h>
21#include <stdio.h>
22#include <stdint.h>
23#include <stdlib.h>
24#include <string.h>
25#include <unistd.h>
26
27#include "libbb.h" 19#include "libbb.h"
28 20
29#define SHA1_BLOCK_SIZE 64 21#define SHA1_BLOCK_SIZE 64